:root {
    --ink: #17202a;
    --muted: #617080;
    --line: #dce4e8;
    --paper: #ffffff;
    --wash: #f4f8f6;
    --field: #dceecf;
    --blue: #1769aa;
    --green: #2f7d55;
    --orange: #df7b2d;
    --navy: #183349;
    --shadow: 0 22px 60px rgba(23, 32, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.7;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 24px;
    align-items: center;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(220, 228, 232, 0.9);
    backdrop-filter: blur(18px);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
    font-weight: 800;
}

.site-logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
}

.site-nav a,
.header-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--ink);
    background: var(--wash);
}

.header-action {
    color: #fff;
    background: var(--green);
}

.hero {
    position: relative;
    display: grid;
    overflow: hidden;
    background: var(--paper);
}

.hero-media {
    position: relative;
    width: 100%;
    height: auto;
    background: #76b9ec;
}

.hero-media::after {
    content: none;
}

.hero-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center top;
}

.hero-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 24px;
    align-items: center;
    max-width: none;
    color: var(--ink);
    padding: 20px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.eyebrow,
.section-kicker,
.area-label,
.fact-label {
    margin: 0;
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 560px;
    margin: 10px 0 12px;
    font-size: clamp(1.7rem, 3.1vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: 0;
    text-shadow: 0 2px 16px rgba(16, 24, 32, 0.42);
}

.hero-lead {
    max-width: 590px;
    margin: 10px 0 0;
    color: var(--ink);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 0;
}

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 18px 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.button-primary {
    color: #fff;
    background: var(--orange);
}

.button-secondary {
    color: var(--navy);
    border-color: var(--line);
    background: var(--paper);
}

.button-dark {
    color: #fff;
    background: var(--navy);
}

.button-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.button-secondary .button-icon {
    color: #fff;
    background: var(--green);
}

.hero-facts {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 1px;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--line);
}

.hero-facts div {
    padding: 16px clamp(18px, 4vw, 56px);
    background: var(--wash);
}

.hero-facts strong {
    display: block;
    margin-top: 2px;
    font-size: 1.08rem;
}

.section {
    display: grid;
    grid-template-columns: minmax(220px, 0.46fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 84px);
    padding: clamp(76px, 10vw, 128px) clamp(18px, 6vw, 80px);
}

.section-heading h2,
.access-info h2,
.contact-section h2 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.intro-copy {
    max-width: 760px;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.intro-copy p {
    margin: 0 0 1.2em;
}

.flow-section,
.details-section {
    background: var(--wash);
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.flow-item {
    min-height: 260px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.flow-number {
    color: var(--green);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.flow-item h3,
.activity-item h3,
.route-list h3 {
    margin: 12px 0 8px;
    font-size: 1.28rem;
    line-height: 1.35;
}

.flow-item p,
.activity-item p,
.route-list p {
    margin: 0;
    color: var(--muted);
}

.activity-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.activity-item {
    display: block;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.activity-item img {
    width: 100%;
    height: 176px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    background: var(--wash);
    margin-bottom: 20px;
}

.activity-item:nth-child(1) img {
    object-position: 50% 48%;
}

.activity-item:nth-child(2) img {
    object-position: 46% 50%;
}

.activity-item:nth-child(3) img {
    object-position: 56% 50%;
}

.activity-item:nth-child(4) img {
    object-position: 48% 58%;
}

.section-action {
    grid-column: 2;
    margin-top: 8px;
}

.details-list {
    margin: 0;
    border-top: 1px solid var(--line);
}

.details-list div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.details-list dt {
    color: var(--green);
    font-weight: 900;
}

.details-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

.access-section {
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(420px, 1fr);
    min-height: 620px;
    background: var(--navy);
    color: #fff;
}

.access-info {
    padding: clamp(48px, 7vw, 84px);
}

.access-info address {
    margin: 20px 0 32px;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}

.route-list {
    display: grid;
    gap: 18px;
}

.route-list div {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.route-list p {
    color: rgba(255, 255, 255, 0.72);
}

.map-frame {
    min-height: 520px;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: saturate(0.86) contrast(1.04);
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.46fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 84px);
    align-items: center;
    padding: clamp(76px, 10vw, 120px) clamp(18px, 6vw, 80px);
}

.contact-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--wash);
}

.contact-card a {
    display: inline-block;
    margin-top: 8px;
    color: var(--blue);
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    font-weight: 900;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.contact-label {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 30px clamp(18px, 4vw, 56px);
    color: rgba(255, 255, 255, 0.76);
    background: #101820;
}

.site-footer p {
    margin: 0;
    font-weight: 800;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        border-radius: 8px;
    }

    .hero {
        min-height: 0;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .section,
    .contact-section,
    .access-section {
        grid-template-columns: 1fr;
    }

    .flow-grid,
    .activity-list {
        grid-template-columns: 1fr;
    }

    .section-action {
        grid-column: 1;
    }

    .map-frame {
        min-height: 420px;
    }
}

@media (max-width: 640px) {
    .site-header {
        gap: 10px;
        padding: 10px 14px;
    }

    .site-logo-mark {
        width: 42px;
        height: 42px;
    }

    .site-logo-text {
        max-width: none;
        font-size: 0.82rem;
    }

    .header-action {
        min-height: 42px;
        padding: 0 12px;
    }

    .hero {
        min-height: 0;
    }

    .hero-media::after {
        content: none;
    }

    .hero-media {
        height: auto;
        min-height: 0;
    }

    .hero-media img {
        height: auto;
        object-fit: contain;
        object-position: center top;
    }

    .hero-panel {
        padding: 18px 16px;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .hero-facts {
        width: auto;
        grid-template-columns: 1fr;
    }

    .hero-facts div {
        padding: 12px 14px;
    }

    .section,
    .contact-section {
        padding: 64px 16px;
    }

    .flow-item {
        min-height: 0;
    }

    .activity-item {
        padding: 18px;
    }

    .activity-item img {
        height: 150px;
        margin-bottom: 16px;
    }

    .details-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .access-info {
        padding: 58px 16px;
    }

    .map-frame {
        min-height: 360px;
    }

    .site-footer {
        display: grid;
    }
}

/* ===== classes.html 専用：参加教室カード =====
   新規クラスのみ（既存セレクタは未変更）。index.html はこれらを参照しないため影響なし。
   用途：第2回 参加教室カードの一覧グリッドと、当日内容/出展時間などのメタ表示。 */
.school-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.school-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

/* 詳細ボタンをカード下端で揃える（.guest-card > .button と同方針） */
.school-card > .button {
    margin-top: auto;
}

.school-card h3 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.35;
}

.school-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.school-card h3 a:hover {
    text-decoration: underline;
}

.school-card > p {
    margin: 0;
    color: var(--muted);
}

.school-meta {
    display: grid;
    gap: 8px;
    margin: 4px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.school-meta div {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
}

.school-meta dt {
    color: var(--green);
    font-weight: 800;
    font-size: 0.85rem;
}

.school-meta dd {
    margin: 0;
    font-weight: 700;
}

.school-link {
    margin-top: auto;
    align-self: flex-start;
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.school-link:hover {
    text-decoration: underline;
}

.school-note {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .school-list {
        grid-template-columns: 1fr;
    }
}

/* ===== special-guests.html 専用：特別ゲスト3クラブカード =====
   新規クラスのみ（既存セレクタは未変更）。index.html / classes.html はこれらを参照しないため影響なし。
   用途：3クラブの横並びカード、ロゴ統一用の濃色帯、本文下の詳細ボタンの下端揃え。 */
.guest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.guest-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

/* ロゴ表示エリア：濃色帯で3ロゴを同一環境に統一（黒背景のアルバルクJPGを馴染ませる狙い） */
.guest-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    padding: 18px;
    border-radius: 8px;
    background: #101820;
}

.guest-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.guest-card h3 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.35;
}

.guest-card p {
    margin: 0;
    color: var(--muted);
}

/* 本文の長さが異なっても詳細ボタンをカード下端で揃える（既存 .button は未変更） */
.guest-card > .button {
    margin-top: auto;
}

@media (max-width: 980px) {
    .guest-grid {
        grid-template-columns: 1fr;
    }
}

/* special-guests.html 専用：見出しを上、コンテンツを全幅で下に積む単カラム variant。
   .section の2カラムを上書き（既存 .section セレクタは未変更／後勝ちで適用）。
   3クラブセクションを全幅にして .guest-grid の3カードを広く横並びにするために使用。 */
.section--stack {
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 48px);
}

/* special-guests.html 専用：Special Booth 節の体験イメージ2点ギャラリー。
   新規クラスのみ（既存セレクタ未変更／index.html・classes.html は未参照）。
   PC=2列横並び、980px以下=1列スタック。2点を 4:3・object-fit:cover で揃える。 */
.booth-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.booth-gallery figure {
    margin: 0;
}

.booth-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: var(--wash);
}

.booth-gallery figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .booth-gallery {
        grid-template-columns: 1fr;
    }
}

/* Alvark Tokyo brand-compliant logo cell: white bg + ~0.5x safe area per brand guidelines.
   特別ゲストページのアルバルクカードのみに適用。既存 .guest-logo（濃色帯）は無変更で
   TUBC・サンロッカーズは現状維持。新規クラスのみ。 */
.guest-logo--alvark {
    background: #ffffff;
}

/* safe area：ALVARK 横長ワードマークに対する保護エリア確保のため、幅基準で帯の約6割に整える。
   高さは縦の上限として 80% を置き、ロゴが帯の縁に接しないクリアスペース（ALVARK高さの0.5x以上）を残す。
   トリム版（alvark-logo-trim.png）と組み合わせて TUBC・サンロッカーズと視覚的に釣り合うサイズに。 */
.guest-logo--alvark img {
    max-width: 60%;
    max-height: 80%;
}

/* 第2回 参加教室カードの画像セル：index.html の .activity-item img と同等の見せ方
   （width 100% / height 176px / object-fit: cover / radius）を .school-card 配下に最小だけ追加。
   既存 .school-card のレイアウト（display:flex; flex-direction:column; gap:10px）と組み合わせて、
   画像→教室名→誘導文→詳細リンク の縦並びを揃える。 */
.school-card img {
    display: block;
    width: 100%;
    height: 176px;
    object-fit: cover;
    border-radius: 8px;
}
