@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400&family=Zen+Maru+Gothic:wght@500;700&display=swap');

/* 季節ごとの変数定義 */
:root {
    --theme-bg: #fff5f7;
    --theme-accent: #f06292;
    --theme-accent-soft: #fce4ec;
    --theme-text: #5d4037;
    --disabled-gray: #e0e0e0;
    --disabled-text: #9e9e9e;
}

/* 季節別のテーマクラスと背景パターン */
#fs-wrap.theme-spring {
    --theme-bg: #fffcfd;
    --theme-accent: #f06292;
    --theme-accent-soft: #fce4ec;
    --theme-text: #5d4037;
    background-image: 
        repeating-linear-gradient(rgba(240, 98, 146, 0.04) 0, rgba(240, 98, 146, 0.04) 15px, transparent 15px, transparent 30px),
        repeating-linear-gradient(90deg, rgba(240, 98, 146, 0.04) 0, rgba(240, 98, 146, 0.04) 15px, transparent 15px, transparent 30px);
}
#fs-wrap.theme-summer {
    --theme-bg: #f0faff;
    --theme-accent: #00a0e9;
    --theme-accent-soft: #d6f0ff;
    --theme-text: #263238;
    background-image: repeating-linear-gradient(
        -45deg, rgba(0, 160, 233, 0.05), rgba(0, 160, 233, 0.05) 20px, transparent 20px, transparent 40px
    );
}
#fs-wrap.theme-autumn {
    --theme-bg: #fff9f0;
    --theme-accent: #e65100;
    --theme-accent-soft: #fff3e0;
    --theme-text: #3e2723;
    background-image: 
        linear-gradient(45deg, var(--theme-accent-soft) 25%, transparent 25%, transparent 75%, var(--theme-accent-soft) 75%, var(--theme-accent-soft)), 
        linear-gradient(45deg, var(--theme-accent-soft) 25%, transparent 25%, transparent 75%, var(--theme-accent-soft) 75%, var(--theme-accent-soft));
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}
#fs-wrap.theme-winter {
    --theme-bg: #f8f9fa;
    --theme-accent: #546e7a;
    --theme-accent-soft: #eceff1;
    --theme-text: #212121;
    background-image: 
        linear-gradient(135deg, var(--theme-accent-soft) 25%, transparent 25%), 
        linear-gradient(225deg, var(--theme-accent-soft) 25%, transparent 25%), 
        linear-gradient(45deg, var(--theme-accent-soft) 25%, transparent 25%), 
        linear-gradient(315deg, var(--theme-accent-soft) 25%, transparent 25%);
    background-size: 40px 40px;
    background-position: 20px 0, 20px 0, 0 0, 0 0;
}

/* 全体の囲み設定 */
#fs-wrap {
    color: var(--theme-text);
    background-color: var(--theme-bg);
    transition: background-color 0.5s ease, background-image 0.5s ease;
    text-align: center; 
    padding: 20px 0;
}

#fs-wrap .container {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* メインバナー */
#fs-wrap .main-banner {
    width: 100%;
    padding: 20px 0;
    border-radius: 20px;
    margin-bottom: 25px;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease, box-shadow 0.5s ease;
    box-sizing: border-box;
}

#fs-wrap .main-banner h1 {
    margin: 0;
    padding: 0;
    letter-spacing: 0.1em;
    color: white;
    background: transparent !important; 
    border: none !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.2;
    text-align: center!important;
}
#fs-wrap .main-banner h1 img{
    width: 92%;
}

/* 季節ごとのバナーグラデーション */
#fs-wrap.theme-spring .main-banner { background: linear-gradient(135deg, #ffdde1 0%, #f06292 100%); box-shadow: 0 10px 25px rgba(240, 98, 146, 0.2); }
#fs-wrap.theme-summer .main-banner { background: linear-gradient(135deg, #c2e9fb 0%, #00a0e9 100%); box-shadow: 0 10px 25px rgba(0, 160, 233, 0.2); }
#fs-wrap.theme-autumn .main-banner { background: linear-gradient(135deg, #ffecd2 0%, #e65100 100%); box-shadow: 0 10px 25px rgba(230, 81, 0, 0.2); }
#fs-wrap.theme-winter .main-banner { background: linear-gradient(135deg, #e2ebf0 0%, #546e7a 100%); box-shadow: 0 10px 25px rgba(84, 110, 122, 0.2); }

#fs-wrap .current-season-wrapper { text-align: center; margin-bottom: 40px; }
#fs-wrap .current-season-label {
    display: inline-block; background: white; padding: 12px 40px; border-radius: 50px;
    color: var(--theme-accent); font-weight: bold; font-size: 1.1rem;
    border: 3px dashed var(--theme-accent-soft); box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}
#fs-wrap .current-season-label p {
    text-align: center;
    font-family: 'Zen Maru Gothic', sans-serif !important;
}

#fs-wrap .tab-nav { display: flex; gap: 8px; margin-bottom: 40px; justify-content: center; flex-wrap: wrap; }
#fs-wrap .nav-item { position: relative; }
#fs-wrap .tab-btn {
    font-family: 'Zen Maru Gothic', sans-serif !important;
    font-weight: 700 !important;
    padding: 14px 25px; border: none; border-radius: 25px; background-color: white;
    color: var(--disabled-text); font-weight: bold; cursor: pointer; transition: all 0.3s ease;
    font-size: 0.95rem; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
#fs-wrap .tab-btn.active { background-color: var(--theme-accent); color: white; transform: translateY(2px); }

#fs-wrap .tab-content { display: none; animation: fadeIn 0.5s ease; }
#fs-wrap .tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

#fs-wrap .fair-list { display: flex; flex-direction: column; gap: 40px; }
#fs-wrap .fair-card {
    background: white; border-radius: 30px; overflow: hidden; border: 3px solid var(--theme-accent-soft);
    box-shadow: 0 15px 35px rgba(0,0,0,0.04); position: relative; transition: transform 0.3s ease;
}
#fs-wrap .fair-card:hover { transform: translateY(-5px); }

/* -----------------------------------
   ★スライダーとぼかし背景の設定★
----------------------------------- */
#fs-wrap .slider-container {
    position: relative; 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    max-height: 400px;    
    overflow: hidden;
    background-color: #f5f5f5; 
}

#fs-wrap .slider-wrapper { 
    display: flex; 
    width: 100%;
    height: 100%; 
    transition: transform 0.5s ease; 
}

#fs-wrap .slide { 
    flex: 0 0 100%; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-bottom: 1px solid var(--theme-accent-soft); 
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#fs-wrap .slide::before {
    content: '';
    position: absolute;
    top: -5%; left: -5%; right: -5%; bottom: -5%;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: center;
    filter: blur(15px); 
    z-index: -1;
    opacity: 0.6; 
}

#fs-wrap .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#fs-wrap .slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.8); border: none;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer; z-index: 5; 
    font-weight: bold; display: flex; align-items: center; justify-content: center; color: #333;
}
#fs-wrap .prev-btn { left: 15px; } 
#fs-wrap .next-btn { right: 15px; }
#fs-wrap .slider-dots { 
    position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); 
    display: flex; gap: 10px; z-index: 5; 
}
#fs-wrap .dot { width: 10px; height: 10px; background: rgba(0,0,0,0.3); border-radius: 50%; cursor: pointer; }
#fs-wrap .dot.active { background: var(--theme-accent); width: 25px; border-radius: 5px; }

/* -----------------------------------
   ★詳細テキスト（フォント・行間・ズレの完全リセット）★
----------------------------------- */
#fs-wrap .fair-info { 
    padding: 35px; 
    text-align: center; 
    box-sizing: border-box; 
}
#fs-wrap .fair-info h3 { 
    /* 既存CSSの悪影響（左余白、字下げなど）を確実に無効化 */
    margin: 0 0 20px 0 !important; 
    padding: 0 !important;
    text-indent: 0 !important;
    width: 100% !important;
    text-align: center !important;
    
    font-size: 1.6rem; 
    color: var(--theme-accent); 
    background: transparent !important; 
    border: none !important; 
    
    /* Zen丸ゴシックの適用 */
    font-family: 'Zen Maru Gothic', sans-serif !important;
    font-weight: 700 !important;
}

#fs-wrap .fair-info h3::before,
#fs-wrap .fair-info h3::after {
    display: none !important;
}

#fs-wrap .fair-info p { 
    /* 既存の p{margin:10px} などの影響を無効化 */
    margin: 30px 0 30px 0 !important; 
    padding: 0 !important;
    text-align: left !important;
    
    font-size: 1rem; 
    color: #555; 
    
    /* Noto Sans JP の細字の適用 */
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 300 !important; 
    line-height: 2 !important; 
    letter-spacing: 0.05em !important; 
}

#fs-wrap .fair-link {
    font-family: 'Zen Maru Gothic', sans-serif !important;
    font-weight: 700 !important;
    display: inline-block; padding: 14px 50px; background-color: var(--theme-accent); 
    color: white; text-decoration: none; border-radius: 50px; font-weight: bold; 
    transition: 0.3s; box-shadow: 0 6px 0 rgba(0,0,0,0.1);
}
#fs-wrap .fair-link:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* -----------------------------------
   ★フェアの紹介文（破線の囲み枠）のセンター配置★
----------------------------------- */
#fs-wrap .season-intro-box {
    text-align: center !important;
    background-color: white;
    border: 3px dashed var(--theme-accent-soft); 
    border-radius: 30px;
    padding: 25px 30px;
    margin: 0 auto 40px auto; 
    max-width: 90%; 
}

#fs-wrap .season-intro-box p {
    text-align: center !important; 
    color: var(--theme-accent) !important;
    font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif !important; 
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    line-height: 2 !important;
    margin: 0 0 10px 0 !important;
}
#fs-wrap .season-intro-box p:last-child {
    margin-bottom: 0 !important; 
}

/* -----------------------------------
   ★季節のまとめ画像（4つ並び）の設定★
----------------------------------- */
#fs-wrap .season-summary-wrapper {
    margin: 0 auto 20px auto;
    max-width: 90%; 
}

#fs-wrap .summary-icons {
    display: flex;
    justify-content: center;
    gap: 15px; 
    flex-wrap: wrap; 
    margin-top: 30px;
}

#fs-wrap .summary-icons img {
    width: calc(25% - 15px); 
    min-width: 120px; 
    height: auto;
    
    /* ▼ アイコンにグラデーションの縁取りをつける設定 ▼ */
    padding: 4px; /* これが縁取りの太さになります */
    border-radius: 18px; /* 縁取りごと角を丸くする */
    box-sizing: border-box;
    /* 背景色は下の各季節のテーマで上書きします */
    
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ▼ 季節ごとにアイコンの縁取りグラデーションを切り替える ▼ */
#fs-wrap.theme-spring .summary-icons img { background: linear-gradient(135deg, #ffdde1 0%, #f06292 100%); }
#fs-wrap.theme-summer .summary-icons img { background: linear-gradient(135deg, #c2e9fb 0%, #00a0e9 100%); }
#fs-wrap.theme-autumn .summary-icons img { background: linear-gradient(135deg, #ffecd2 0%, #e65100 100%); }
#fs-wrap.theme-winter .summary-icons img { background: linear-gradient(135deg, #e2ebf0 0%, #546e7a 100%); }

#fs-wrap .summary-icons img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    #fs-wrap .summary-icons { gap: 10px; }
    #fs-wrap .summary-icons img {
        width: calc(50% - 10px); 
    }
}

/* -----------------------------------
   ★カラフルな見出し（h2）の設定★
----------------------------------- */
#fs-wrap .season-intro-box h2.colorful-heading {
    width: auto !important;
    max-width: 100% !important;
    position: relative !important;
    margin: 0 auto 25px auto !important;
    text-align: center !important;
    display: inline-block !important;
    
    font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: white !important;
    
    background-size: 200% 200% !important;
    animation: gradientMove 5s ease infinite !important; 
    
    padding: 10px 35px !important;
    border-radius: 50px !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1) !important;
    letter-spacing: 0.1em !important;
    margin-top: -50px !important;
}

/* ▼ 季節ごとにh2見出しのグラデーションを切り替える ▼ */
#fs-wrap.theme-spring .season-intro-box h2.colorful-heading { background-image: linear-gradient(135deg, #ffdde1 0%, #f06292 100%) !important; }
#fs-wrap.theme-summer .season-intro-box h2.colorful-heading { background-image: linear-gradient(135deg, #c2e9fb 0%, #00a0e9 100%) !important; }
#fs-wrap.theme-autumn .season-intro-box h2.colorful-heading { background-image: linear-gradient(135deg, #ffecd2 0%, #e65100 100%) !important; }
#fs-wrap.theme-winter .season-intro-box h2.colorful-heading { background-image: linear-gradient(135deg, #e2ebf0 0%, #546e7a 100%) !important; }

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}