/* modern.css (index only) */
:root{
    --bg:#0b1214;
    --panel:#101a1d;
    --text:#0f172a;
    --muted:#5b6b73;
    --line:rgba(15, 23, 42, .12);
    --white:#fff;
    --brand:#2f7f8f;
    --brand2:#1c5f6b;
    --shadow: 0 14px 40px rgba(0,0,0,.14);
    --radius: 18px;
    }    
body.modern{
    font-family: "Inter","Noto Sans JP",system-ui,-apple-system,"Segoe UI",sans-serif;
    color: #0f172a;
    background:#fff;
    line-height: 1.7;
    }
  /* base overrides (style.css が a{display:block} なので index だけ整える) */
body.modern a{ display:inline-block; }
body.modern nav a{ display:block; }
.wrap{
    width:min(1120px, 92%);
    margin:0 auto;
    }

.section{
    padding: 64px 0;
    }
.section.muted{
    background: #f6f8f9;
    }
.section-head{
    margin-bottom: 26px;
    }
.section-title{
    font-size: clamp(22px, 3vw, 34px);
    letter-spacing: .02em;
    margin: 0 0 8px;
    line-height: 1.25;
    word-break: keep-all;
    }
.section-sub{
    color: var(--muted);
    margin: 0;
    }
  /* Topbar */
.topbar{
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.78);
    border-bottom: 1px solid rgba(0,0,0,.06);
    }
.topbar-inner{
    width:min(1120px, 92%);
    margin:0 auto;
    display:flex;
    align-items:center;
    gap: 14px;
    padding: 10px 0;
    }
.brand{
    display:flex;
    flex-direction:column;
    gap:2px;
    }
.brand-link{
    font-weight: 800;
    letter-spacing: .06em;
    color: #0f172a;
    }
.brand-sub{
    font-size: 12px;
    color: var(--muted);
    }
.top-actions{
    margin-left:auto;
    display:flex;
    gap:10px;
    align-items:center;
    }
.pill{
    padding: 10px 14px;
    border-radius: 999px;
    background: #eef6f7;
    color: #0f172a;
    border: 1px solid rgba(47,127,143,.18);
    font-weight: 700;
    }
.pill.ghost{
    background: #fff;
    }
.menu-btn{
    display:none;
    margin-left: 6px;
    background:#fff;
    border:1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    padding: 10px 12px;
    }
.menu{
    width:min(1120px, 92%);
    margin:0 auto;
    display:flex;
    gap: 14px;
    padding: 10px 0 14px;
    }
.menu a{
    color:#0f172a;
    opacity:.86;
    font-weight:700;
    padding: 8px 10px;
    border-radius: 12px;
    }
.menu a:hover{
    background: rgba(47,127,143,.10);
    }
  /* Hero */
.hero{
    position: relative;
    min-height: 72vh;
    display:flex;
    align-items:center;
    overflow:hidden;
    }
.hero-bg{
    position:absolute;
    inset:0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05) contrast(1.02);
    transform: scale(1.04);
    z-index: -1;
    }
.hero-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index: 0;
    }
.hero-overlay{
    position:absolute;
    inset:0;
    z-index: 1;
    background:
    radial-gradient(1200px 600px at 20% 40%, rgba(47,127,143,.55), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
    }
.hero-inner{
    position:relative;
    z-index: 2;
    padding-left: clamp(18px, 6vw, 72px);
    padding-right: clamp(18px, 3vw, 40px);
    }
.hero-kicker{
    font-weight: 800;
    letter-spacing: .14em;
    font-size: 12px;
    opacity: .92;
    margin: 0 0 10px;
    }
.hero-title{
    font-size: clamp(28px, 4.6vw, 54px);
    line-height: 1.12;
    margin: 0 0 14px;
    }
.hero-lead{
    max-width: 54ch;
    opacity: .95;
    margin: 0 0 22px;
    }
.hero-cta{
    display:flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    }
.hero-badges{
    display:flex;
    flex-wrap:wrap;
    gap:0;              /* 区切り文字で分けるので gap は不要 */
    margin-top: 10px;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    line-height: 1.6;
    }

.hero-badges .badge{
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: none;
    cursor: default;
    user-select: none;
    }

/* 「・」区切りを自動付与 */
.hero-badges .badge:not(:last-child)::after{
    content: "・";
    margin: 0 10px;
    opacity: .65;
    }

/* hover/active の演出が混ざっても無効化 */
.hero-badges .badge:hover,
.hero-badges .badge:active{
    background: transparent;
    transform: none;
    }

  /* Buttons */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.10);
    color:#fff;
    font-weight: 800;
    }
.btn:hover{ background: rgba(255,255,255,.16); }
.btn.primary{
    border-color: rgba(47,127,143,.45);
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    }
.btn.small{
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    color:#0f172a;
    border: 1px solid rgba(0,0,0,.10);
    }
.btn.small:hover{ background:#f3f6f7; }
  /* Layout helpers */
.grid-2{
    display:grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 26px;
    align-items:center;
    }
.media img{
    width:100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    }
.points{
    display:grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
    }
.point-card{
    background:#fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius);
    padding: 16px 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    }
.point-card h3{
    margin: 0 0 4px;
    font-size: 16px;
    }
.point-card p{
    margin:0;
    color: var(--muted);
    }

  /* Cards */
.cards{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    }
.card{
    background:#fff;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,.08);
    overflow:hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,.06);
    }
.card-media img{
    width:100%;
    height: 170px;
    object-fit: cover;
    }
.card-body{
    padding: 14px 14px 16px;
    }
.tag{
    display:inline-block;
    font-size: 12px;
    font-weight: 800;
    color: var(--brand2);
    background: rgba(47,127,143,.10);
    padding: 6px 10px;
    border-radius: 999px;
    margin: 0 0 10px;
    }
.card h3{ margin: 0 0 6px; }
.meta{ color: var(--muted); margin: 0 0 10px; }
.desc{ margin: 0 0 12px; color:#1f2937; }
.card-actions{ display:flex; gap: 10px; }

  /* Timeline */
.timeline{
    border-left: none;     /* 既存の縦線は不要なら消す */
    padding-left: 0;
    display: grid;
    gap: 16px;
    }
.timeline-item{
    position: relative;
    padding-left: 14px;
    }
.timeline-dot{
    position:absolute;
    left:-25px;
    top: 10px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    border-radius: 999px;
    }
.timeline-body{
    background:#fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius);
    padding: 14px 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    }
.timeline-body h3{ margin: 0 0 6px; }
.timeline-body p{ margin:0; color: var(--muted); }
  /* Access */
.access-grid{
    display:grid;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    align-items:stretch;
    }
  /* 地図を潰さない（任意だけど効く） */
.access-map iframe{
    width: 100% !important;
    height: min(60vh, 360px) !important;
    border-radius: var(--radius);
    }
.info-card{
    background:#fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 10px 26px rgba(0,0,0,.06);
    height: 100%;
    }
.info-card h3{ margin:0 0 8px; }
.info-actions{ display:flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }

  /* Google form */
.google-form-wrap{
    width:100%;
    max-width: 900px;
    margin: 16px auto 0;
    }
.google-form-wrap iframe{
    display:block;
    width:100% !important;
    max-width:100% !important;
    height: 1800px;
    border: 0;
    background:#fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    }

.reserve-top{
    display:flex;
    justify-content:center;
    margin: 10px 0 8px;
    }
.contact-row{
    display:flex;
    justify-content:center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    }

  /* Footer */
.footer{
    background:#0c1416;
    color: rgba(255,255,255,.82);
    padding: 26px 0;
    }
.to-top{
    position: fixed;
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(12,20,22,.86);
    color:#fff;
    border: 1px solid rgba(255,255,255,.18);
    }

  /* Reveal animation */
.reveal{
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
    }
.reveal.is-in{
    opacity: 1;
    transform: translateY(0);
    }

  /* Responsive */
.pc-only{ display:inline; }
.sp-only{ display:none; }

.inline-link{
    color: inherit;
    text-decoration: underline;
    font-weight: 800;
    }
.inline-link:hover{
    opacity: .85;
    }

/* ===== Season (pills) : FINAL ===== */
.timeline{
    border-left: none;
    padding-left: 0;
    display: grid;
    gap: 16px;
    }

/* 1カード */
.season-pill{
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    overflow: visible;
    min-height: 140px;
    }

/* 左の棒（デフォルト） */
.season-pill::before{
    content:"";
    position:absolute;
    left:-5px;
    top:0;
    bottom:0;
    width: 12px;
    background: linear-gradient(180deg, var(--brand), var(--brand2));
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
    }

/* 季節別（棒の色） */
.season-spring::before{ background: linear-gradient(180deg, #4ade80, #22c55e); }
.season-summer::before{ background: linear-gradient(180deg, #22c55e, #16a34a); }
.season-autumn::before{ background: linear-gradient(180deg, #f59e0b, #ef4444); }
.season-winter::before{ background: linear-gradient(180deg, #60a5fa, #2563eb); }

/* 右側の楕円写真 */
.season-pill::after{
    content:"";
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: 14px;
    width: min(44%, 420px);
    border-radius: 999px;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
    filter: saturate(1.05) contrast(1.02);
    z-index: 0;
    }

/* 白→透明のグラデ（カード全体に均一） */
.season-fade{
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        #fff 0%,
        rgba(255,255,255,.98) 40%,
        rgba(255,255,255,.72) 58%,
        rgba(255,255,255,0) 78%
        );
    }

/* テキスト */
.season-text{
    position: relative;
    z-index: 2;
    padding: 18px 22px;
    max-width: 70%;
    }

.season-text h3{
    margin: 0 0 6px;
    padding-left: 10px; /* 左棒との間 */
    font-size: 18px;
    }
.season-text p{
    margin: 0;
    padding-left: 10px;
    color: var(--muted);
    }

    /* ===========================
    Responsive fixes (scoped to modern pages)
    =========================== */

    /* Gallery (desktop default) */
body.modern .gallery{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
body.modern .gallery img{
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

body.modern .hero .hero-kicker,
body.modern .hero .hero-title,
body.modern .hero .hero-lead{
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,.55);
}

/* Hero 内のリンク（ボタン以外）が黒くならないように */
body.modern .hero a{
    color: #fff;
}

/* Tablet & Mobile */
@media (max-width: 980px){
    body.modern .section-title br{ display: block; }

    body.modern .season-text{ max-width: 100%; padding-bottom: 160px; }
    body.modern .season-pill::after{
        left: 14px; right: 14px;
        width: auto; height: 132px;
        top: auto; bottom: 14px;
        border-radius: 24px;
    }
    body.modern .season-fade{
        background: linear-gradient(
        180deg,
        #fff 0%,
        rgba(255,255,255,.98) 55%,
        rgba(255,255,255,0) 100%
        );
    }
}

/* Mobile */
@media (max-width: 768px){

  /* Prevent accidental horizontal scroll (only modern pages) */
    body.modern{ overflow-x: hidden; }
    body.modern img,
    body.modern iframe{ max-width: 100%; height: auto; }
    body.modern *{ min-width: 0; }

  /* Top menu: 3 columns x 2 rows, no weird line breaks */
    body.modern .menu{
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 10px;
        padding: 10px 14px;
    }
    body.modern .menu a{
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
        padding: 10px 0;
        font-size: 14px;
        border-radius: 999px;
    }
    body.modern .menu a br{ display:none; }

    /* Cards (courses etc.) */
    body.modern .cards{
        grid-template-columns: 1fr;
        gap: 14px;
    }
    body.modern .card-media img{
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    /* Access: single column */
    body.modern .access-grid{
        grid-template-columns: 1fr;
        gap: 14px;
    }
    body.modern .access-map iframe{
        width: 100%;
        height: min(60vh, 360px);
        border-radius: var(--radius);
    }

    /* Two-column blocks (e.g., ワクワクの理由) */
    body.modern .grid-2{
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
    }
    body.modern .grid-2 .media{ margin-top: 6px; }
    body.modern .grid-2 .media img{
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    /* Gallery on mobile: 1 column */
    body.modern .gallery{
        grid-template-columns: 1fr;
    }

    /* Tables: keep as tables, just wrap text (no cardification) */
    body.modern table.table,
    body.modern .table{
        width: 100%;
        max-width: 100%;
        table-layout: auto;
    }
    body.modern table.table th,
    body.modern table.table td,
    body.modern .table th,
    body.modern .table td{
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
        vertical-align: top;
    }

    /* Readability */
    body.modern .section-title{
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.25;
    }
    body.modern .section-text{ line-height: 1.9; }
    /* ===========================
    Mobile統一：魅力（grid-2）とギャラリーを全部1列にする
    貼る場所：modern.css の一番下
    =========================== */
@media (max-width: 768px){

    /* 前提：modern レイアウトのページだけに効かせる（他へ影響させない） */
    body.modern .grid-2{
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        align-items: start !important;
    }

    /* 「このコースの魅力」内の右画像が潰れないように */
    body.modern .grid-2 .media img{
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3;  /* 16/9 が好みなら変えてOK */
        object-fit: cover !important;
        display: block;
    }

    /* ギャラリーは常に1列で大きく */
    body.modern .gallery{
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    body.modern .gallery img{
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3;
        object-fit: cover !important;
        display: block;
    }
}
}
