/* ============================================================
   海と陸と空 / Load of Game — site.css
   白黒を基調に、作品ページだけ作品の色をアクセントに使う。
   明るい・暗い表示は端末の設定に合わせて切り替わる。
   ============================================================ */

:root {
    --bg: #ffffff;
    --surface: #fafafa;
    --surface-2: #f4f4f5;
    --text: #0a0a0a;
    --text-2: #3f3f46;
    --muted: #71717a;
    --line: #e4e4e7;
    --line-strong: #d4d4d8;
    --invert-bg: #0a0a0a;
    --invert-text: #fafafa;
    --accent: #0a0a0a;
    --accent-soft: rgba(10, 10, 10, 0.06);
    --header-bg: rgba(255, 255, 255, 0.82);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 16px 40px rgba(0, 0, 0, 0.1);

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
    --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", Georgia, serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Consolas", monospace;

    --radius: 14px;
    --radius-sm: 8px;
    --container: 1120px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 64px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0a0b;
        --surface: #121214;
        --surface-2: #19191c;
        --text: #f4f4f5;
        --text-2: #d4d4d8;
        --muted: #a1a1aa;
        --line: #27272a;
        --line-strong: #3f3f46;
        --invert-bg: #f4f4f5;
        --invert-text: #0a0a0b;
        --accent: #f4f4f5;
        --accent-soft: rgba(244, 244, 245, 0.08);
        --header-bg: rgba(10, 10, 11, 0.78);
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
        --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.5);
    }
}

/* 作品ごとのアクセント（body に付ける） */
.theme-niji { --accent: #3f6f9f; --accent-soft: rgba(63, 111, 159, 0.1); }
.theme-mirai { --accent: #6d4fa8; --accent-soft: rgba(109, 79, 168, 0.1); }
.theme-airship { --accent: #1f74b0; --accent-soft: rgba(31, 116, 176, 0.1); }
@media (prefers-color-scheme: dark) {
    .theme-niji { --accent: #8bb4dd; --accent-soft: rgba(139, 180, 221, 0.12); }
    .theme-mirai { --accent: #b9a2e6; --accent-soft: rgba(185, 162, 230, 0.12); }
    .theme-airship { --accent: #7cc0ec; --accent-soft: rgba(124, 192, 236, 0.12); }
}

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "palt" 1;
    overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; transition: color 0.2s, text-decoration-color 0.2s; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--text); color: var(--bg); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 760px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--invert-bg); color: var(--invert-text); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- ヘッダー ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-name { font-weight: 800; font-size: 1.125rem; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
    text-decoration: none;
    font-size: 0.875rem;
    color: var(--text-2);
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); font-weight: 600; }
.lang-switch {
    margin-left: 8px;
    display: inline-flex;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.lang-switch a, .lang-switch span { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang-switch span { background: var(--invert-bg); color: var(--invert-text); }
.lang-switch a:hover { color: var(--text); }
.menu-toggle {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
    .menu-toggle { display: inline-flex; }
    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px var(--gutter) 20px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
    }
    .site-nav.open { transform: none; opacity: 1; visibility: visible; }
    .site-nav a { font-size: 1rem; padding: 12px 14px; border-radius: 10px; }
    .lang-switch { margin: 8px 0 0; align-self: flex-start; }
    .lang-switch a, .lang-switch span { padding: 6px 14px; }
}

/* ---------- ボタン ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--invert-bg); color: var(--invert-text); }
.btn-primary:hover { box-shadow: var(--shadow-hover); }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { box-shadow: var(--shadow-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 見出し・セクション ---------- */
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--surface); }
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.section-head { margin-bottom: clamp(32px, 5vw, 48px); max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.section-lead { margin-top: 12px; color: var(--muted); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding: clamp(80px, 14vw, 160px) 0 clamp(64px, 10vw, 120px); overflow: hidden; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    opacity: 0.6;
    pointer-events: none;
}
.hero .container { position: relative; }
.hero-title { font-size: clamp(2.75rem, 9vw, 6rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; }
.hero-lead { margin-top: 20px; font-size: clamp(1.0625rem, 2vw, 1.375rem); color: var(--text-2); max-width: 640px; }
.hero .btn-row { margin-top: 36px; }
.hero.center { text-align: center; }
.hero.center .hero-lead { margin-left: auto; margin-right: auto; }
.hero.center .btn-row { justify-content: center; }

/* 作品ページのヒーロー（画像や作品の色を背景に） */
.work-hero {
    position: relative;
    min-height: min(78vh, 720px);
    display: flex;
    align-items: flex-end;
    padding: 120px 0 clamp(48px, 8vw, 88px);
    color: #fff;
    background: #0b0f14;
    overflow: hidden;
    isolation: isolate;
}
.work-hero-bg { position: absolute; inset: 0; z-index: -2; }
.work-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; filter: blur(10px) saturate(1.1); transform: scale(1.12); }
.work-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(5, 8, 12, 0.15) 0%, rgba(5, 8, 12, 0.55) 55%, rgba(5, 8, 12, 0.92) 100%);
}
.work-hero .eyebrow { color: rgba(255, 255, 255, 0.72); }
.work-hero h1 { font-size: clamp(2.5rem, 8vw, 5.25rem); font-weight: 900; letter-spacing: -0.02em; }
.work-hero .work-sub { margin-top: 10px; font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255, 255, 255, 0.85); }
.work-hero .work-tagline { margin-top: 24px; max-width: 560px; color: rgba(255, 255, 255, 0.78); line-height: 2; }
.work-hero .btn-row { margin-top: 32px; }
.work-hero .btn-primary { background: #fff; color: #0a0a0a; }
.work-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.work-hero .btn-ghost:hover { border-color: #fff; }

/* 雨（虹が咲くころ） */
.rain { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.rain i {
    position: absolute;
    top: -20%;
    width: 1px;
    height: 18%;
    background: linear-gradient(transparent, rgba(190, 215, 240, 0.55));
    animation: rain-fall linear infinite;
}
@keyframes rain-fall { to { transform: translateY(700%); } }

/* 光の粒（未来が咲くころ） */
.motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.motes i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(220, 205, 255, 0.85);
    box-shadow: 0 0 8px rgba(200, 180, 255, 0.9);
    animation: mote-float ease-in-out infinite alternate;
}
@keyframes mote-float { from { transform: translateY(0); opacity: 0.2; } to { transform: translateY(-40px); opacity: 1; } }

/* ---------- バッジ ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--text-2);
    background: var(--bg);
    white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live { color: #15803d; border-color: rgba(21, 128, 61, 0.35); }
.badge-dev { color: #b45309; border-color: rgba(180, 83, 9, 0.35); }
@media (prefers-color-scheme: dark) {
    .badge-live { color: #4ade80; border-color: rgba(74, 222, 128, 0.35); }
    .badge-dev { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); }
}
.work-hero .badge { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); color: #fff; margin-bottom: 18px; }
.badge.plain::before { display: none; }

/* ---------- 作品カード ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.work-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-media .badge { position: absolute; top: 12px; left: 12px; }
.work-art {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.375rem;
    line-height: 1.4;
    color: #fff;
}
.work-art small { display: block; margin-top: 6px; font-family: var(--font-sans); font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.75; }
.art-mirai { background: radial-gradient(120% 90% at 20% 10%, #4b3b7a 0%, #1d1830 55%, #0d0b16 100%); }
.art-airship { background: linear-gradient(180deg, #8cc3ea 0%, #3d84bd 55%, #1b4d78 100%); }
.art-airship::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 28px), linear-gradient(transparent, rgba(0, 0, 0, 0.25));
    transform: perspective(240px) rotateX(55deg);
    transform-origin: bottom;
}
.work-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work-kind { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.work-title { font-size: 1.25rem; font-weight: 800; }
.work-desc { color: var(--text-2); font-size: 0.9375rem; line-height: 1.75; }
.work-more { margin-top: auto; padding-top: 8px; font-size: 0.875rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.work-more .arrow { transition: transform 0.2s var(--ease); }
.work-card:hover .work-more .arrow { transform: translateX(4px); }

/* ---------- お知らせ ---------- */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.news time, .news .news-date { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); letter-spacing: 0.02em; }
.news strong { font-weight: 700; margin-right: 8px; }
.news a { text-decoration: none; }
.news a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 640px) { .news li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- 汎用カード・パネル ---------- */
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.section-alt .panel { background: var(--bg); }
.callout { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }
.callout h2, .callout h3 { font-size: 1.375rem; margin-bottom: 12px; }
.note { font-size: 0.875rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* 物語 */
.story { font-family: var(--font-serif); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 2.2; color: var(--text-2); text-align: center; }
.story p { margin-bottom: 1.4em; }
.story .story-highlight { margin-top: 2.4em; padding-top: 2em; border-top: 1px solid var(--line); color: var(--text); font-size: 1.15em; }

/* 特徴 */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg); padding: 28px 24px; }
.feature-num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); font-weight: 600; }
.feature h3 { font-size: 1.0625rem; margin: 10px 0 8px; }
.feature p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.75; }

/* ギャラリー */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }

/* 仕様表 */
.spec { margin: 0; display: grid; grid-template-columns: 180px 1fr; border-top: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 0.875rem; }
.spec dd { font-weight: 600; }
@media (max-width: 560px) { .spec { grid-template-columns: 1fr; } .spec dt { padding-bottom: 0; border-bottom: none; } .spec dd { padding-top: 4px; } }

/* 年表 */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 36px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); }
.timeline li.future::before { border-style: dashed; border-color: var(--muted); }
.timeline .when { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); }
.timeline h3 { font-size: 1.0625rem; margin: 4px 0 6px; }
.timeline p { color: var(--text-2); }

/* 数字 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.stat b { display: block; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-size: 0.8125rem; color: var(--muted); }

/* ミッション（モジュール一覧） */
.missions { display: grid; gap: 20px; }
.mission { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.mission-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.mission-head h3 { font-size: 1rem; letter-spacing: 0.06em; font-family: var(--font-mono); }
.mission-head .badge { margin-left: auto; }
.mission > p { padding: 16px 24px 0; color: var(--text-2); font-size: 0.9375rem; }
.modules { list-style: none; margin: 0; padding: 12px 24px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 760px) { .modules { grid-template-columns: 1fr; } }
.modules li { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.modules li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.modules code { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 600; display: block; color: var(--text); }
.modules span { font-size: 0.8125rem; color: var(--muted); }
.modules em { font-style: normal; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* 埋め込み（X のポスト） */
.embed { max-width: 560px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.embed iframe { display: block; width: 100%; height: 600px; border: 0; }

/* プロフィール */
.profile { display: grid; grid-template-columns: 160px 1fr; gap: clamp(24px, 4vw, 40px); align-items: center; }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; text-align: center; } .profile .btn-row { justify-content: center; } }
.avatar { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); margin: 0 auto; background: var(--surface-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile h3 { font-size: 1.5rem; }
.profile .role { color: var(--muted); font-size: 0.875rem; margin: 4px 0 16px; }
.profile .btn-row { margin-top: 20px; }

.quote { font-family: var(--font-serif); font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.7; margin: 32px 0 0; padding-left: 24px; border-left: 2px solid var(--text); }

/* リンク集 */
.link-group + .link-group { margin-top: 56px; }
.link-group h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.link-group h2 .count { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .link-grid { grid-template-columns: 1fr; } }
.link-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); text-decoration: none; transition: border-color 0.2s, box-shadow 0.3s, transform 0.3s var(--ease); }
.link-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.link-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.link-card h3 { font-size: 1.0625rem; }
.link-card .admin { font-size: 0.8125rem; color: var(--muted); }
.link-card p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.75; }
.link-card .visit { margin-top: auto; font-size: 0.8125rem; font-weight: 600; color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.link-card .visit small { font-weight: 400; color: var(--muted); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 56px 0 40px; font-size: 0.875rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.footer-brand .brand-name { color: var(--text); display: block; margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- スクロールで現れる ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    .rain, .motes { display: none; }
}

/* ---------- 追加：テーブルゲームクエスト・KUMIKO ---------- */
.theme-table { --accent: #a3621b; --accent-soft: rgba(163, 98, 27, 0.1); }
.theme-kumiko { --accent: #b3263a; --accent-soft: rgba(179, 38, 58, 0.08); }
@media (prefers-color-scheme: dark) {
    .theme-table { --accent: #e0a35a; --accent-soft: rgba(224, 163, 90, 0.12); }
    .theme-kumiko { --accent: #f07a8a; --accent-soft: rgba(240, 122, 138, 0.12); }
}

/* 画面写真の枠 */
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2); }
.shot img { width: 100%; height: auto; }

/* 画像と説明を交互に並べる */
.showcase { display: grid; gap: clamp(56px, 8vw, 96px); }
.showcase-item { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.showcase-item:nth-child(even) { grid-template-columns: 7fr 5fr; }
.showcase-item:nth-child(even) .showcase-text { order: 2; }
@media (max-width: 860px) {
    .showcase-item, .showcase-item:nth-child(even) { grid-template-columns: 1fr; }
    .showcase-item:nth-child(even) .showcase-text { order: 0; }
}
.showcase-num { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
.showcase-text h3 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin: 8px 0 14px; }
.showcase-text p { color: var(--text-2); }

/* 収録ゲーム */
.game-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .game-list { grid-template-columns: 1fr; } }
.game-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.game-item h3 { font-size: 1.25rem; }
.game-item p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { font-size: 0.8125rem; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text); border: 1px solid var(--line); }

/* 手順 */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: baseline; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-weight: 600; color: var(--accent); }

.work-art > div { position: relative; z-index: 1; }

/* 名前の由来（組子の麻の葉文様） */
.kumiko-figure { margin: 0; }
.kumiko-figure .asanoha {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    color: var(--accent);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.kumiko-figure figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--muted); text-align: center; }

/* ---------- ヘッダーのドロップダウン（Games / Tools & Plugins） ---------- */
.site-nav a.is-active { color: var(--text); background: var(--surface-2); font-weight: 600; }
.nav-group { position: relative; }
.nav-group > a { display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: 0.6; transition: transform 0.2s var(--ease); }
.nav-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 248px;
    margin-top: 8px;
    padding: 8px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    display: grid;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -4px);
    transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0.18s;
    z-index: 10;
}
/* 項目とメニューの間の隙間でマウスが外れて閉じないように */
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-menu a { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.nav-menu a span { font-size: 0.875rem; color: var(--text); font-weight: 600; }
.nav-menu a small { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; }
.nav-menu a[aria-current="page"] { background: var(--surface-2); }
@media (min-width: 961px) {
    .nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .nav-group:hover .caret, .nav-group:focus-within .caret { transform: translateY(1px) rotate(225deg); }
}
/* スマホ：メニューの中に一覧をそのまま並べる */
@media (max-width: 960px) {
    .nav-group { display: flex; flex-direction: column; }
    .nav-group > a .caret { display: none; }
    .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; margin: 0 0 6px 14px; padding: 0 0 0 10px; border-left: 1px solid var(--line); border-radius: 0; min-width: 0; background: transparent; }
    .nav-menu::before { display: none; }
    .nav-menu a { padding: 8px 12px; }
}
@media (max-width: 960px) {
    .site-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
}

/* サークル紹介：活動内容 */
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .activity-grid { grid-template-columns: 1fr; } }
.activity-grid h3 { font-size: 1.25rem; margin: 8px 0 10px; }
.activity-grid p { color: var(--text-2); font-size: 0.9375rem; }
.activity-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.activity-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.activity-list a { font-weight: 600; text-decoration: none; }
.activity-list a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.profile .btn-row { gap: 8px; }
.profile .btn-row .btn { padding: 9px 16px; font-size: 0.875rem; }

/* KUMIKO：デモ動画 */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 840px; }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } }
.video-item { margin: 0; }
.video-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-item figcaption { margin-top: 16px; }
.video-item h3 { font-size: 1.125rem; margin-bottom: 6px; }
.video-item p { color: var(--text-2); font-size: 0.9375rem; }
