/* ───────────────────────────────────────────────────────────
   製図の仕込みメール — LP shell (gakka-coach lp-mobile.css 移植)
   ・PC: 濃紺の背景に 480px カラム + 左ロゴ / 右CTAレール(≥1280px)
   ・共通: 固定ヘッダー(スクロールでフロスト) + ハンバーガーメニュー
   ・モバイル〜1279px: 固定フッターCTA
   各ページ本文のスタイルはページ内 inline style のまま
   ─────────────────────────────────────────────────────────── */
:root {
    --navy: #1e2a55;
    --coral: #ee7b5f;
    --coral-600: #d96a50;
    --bg: #faf9f6;
    --ink: #1b2138;
    --line: rgba(28, 36, 64, 0.1);
    --line-2: rgba(28, 36, 64, 0.06);
    --stack-head: "Noto Sans JP", system-ui, sans-serif;
    --stack-en: "Inter", "Noto Sans JP", system-ui, sans-serif;
}

/* tokens.css 由来。width:100% + padding の要素(.hero-head/.navmenu/.btn--block 等)のはみ出し防止 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    /* dark showcase backdrop so the centered column pops on desktop */
    background: radial-gradient(
        130% 90% at 50% -10%,
        #1a2347 0%,
        #0b1024 55%,
        #080b1c 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
}

.page {
    position: relative;
    max-width: 480px;
    margin-inline: auto;
    background: var(--bg);
    min-height: 100vh;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 40px 120px rgba(0, 0, 0, 0.55);
}

/* ── Fixed header (transparent over dark hero, frosted on scroll) ── */
.hero-head {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 100%;
    max-width: 480px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}
.hero-head.scrolled {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border-bottom-color: var(--line);
    box-shadow: 0 4px 18px rgba(20, 28, 60, 0.06);
}
.hlogo {
    display: flex;
    align-items: center;
    gap: 11px;
}
.hlogo .emblem {
    width: 42px;
    height: 42px;
    flex: none;
    display: block;
}
.hlogo .emblem img {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 3px 9px rgba(0, 0, 0, 0.35));
}
.hlogo .lt {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.hlogo .lt b {
    font-family: var(--stack-head);
    font-weight: 900;
    font-size: 15px;
    color: #fff;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}
.hlogo .lt small {
    font-family: var(--stack-en);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease;
}
.hero-head.scrolled .hlogo .lt b {
    color: var(--navy);
}
.hero-head.scrolled .hlogo .lt small {
    color: rgba(27, 33, 56, 0.55);
}
.hamburger {
    width: 42px;
    height: 38px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0 6px;
}
.hamburger span {
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition:
        transform 0.3s ease,
        opacity 0.2s ease,
        background 0.3s ease;
}
.hero-head.scrolled .hamburger span {
    background: var(--navy);
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Slide-down menu ─────────────────────────────────────── */
.navmenu {
    position: fixed;
    top: 58px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 100%;
    max-width: 480px;
    z-index: 59;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(20, 28, 60, 0.16);
    padding: 8px 16px 16px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s;
}
.navmenu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.navmenu a:not(.btn) {
    padding: 13px 6px;
    font-family: var(--stack-head);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid var(--line-2);
}
.navmenu a:not(.btn):last-of-type {
    border-bottom: 0;
}
.navmenu .btn {
    margin-top: 12px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--stack-head);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
    padding: 15px 26px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}
.btn--primary {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--coral) 40%, transparent);
}
.btn--block {
    width: 100%;
}

/* ── Fixed footer CTA bar (mobile〜1279px) ───────────────── */
.fixedcta {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 480px;
    z-index: 80;
    box-shadow: 0 -10px 30px rgba(20, 28, 60, 0.18);
    transition: transform 0.4s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.fixedcta.hide {
    transform: translateX(-50%) translateY(115%);
}
.fc-banner {
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 16px calc(12px + env(safe-area-inset-bottom));
}
.fc-banner .tx {
    font-family: var(--stack-head);
    font-weight: 900;
    font-size: 17px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.fc-banner .tx b {
    color: var(--coral);
}
.fc-banner .chev {
    width: 20px;
    height: 20px;
    flex: none;
    color: color-mix(in srgb, var(--coral) 82%, #fff);
}
.has-fixedcta footer {
    padding-bottom: 110px !important;
}

/* ── Desktop side rails (in the dark margins) ───────────────
   < 1280px: bottom fixed CTA (.fixedcta)
   ≥ 1280px: hide bottom bar; show left logo + right CTA in margins */
.side-logo,
.side-cta {
    display: none;
}
@media (min-width: 1280px) {
    .fixedcta {
        display: none;
    }
    .has-fixedcta footer {
        padding-bottom: 40px !important;
    }
    .side-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        position: fixed;
        top: 50%;
        left: calc((100vw - 480px) / 4);
        transform: translate(-50%, -50%);
        z-index: 70;
        text-align: center;
    }
    .side-logo img {
        width: 64px;
        height: 64px;
        display: block;
        filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
    }
    .side-logo b {
        font-family: var(--stack-head);
        font-weight: 900;
        font-size: 18px;
        color: #fff;
        letter-spacing: 0.02em;
    }
    .side-logo small {
        display: block;
        margin-top: 4px;
        font-family: var(--stack-en);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.22em;
        color: rgba(255, 255, 255, 0.5);
    }
    .side-cta {
        display: inline-flex;
        align-items: center;
        gap: 11px;
        position: fixed;
        top: 50%;
        left: calc(100vw - (100vw - 480px) / 4);
        transform: translate(-50%, -50%);
        z-index: 70;
        background: linear-gradient(
            95deg,
            var(--coral),
            color-mix(in srgb, var(--coral) 62%, #ffb27a)
        );
        color: #fff;
        font-family: var(--stack-head);
        font-weight: 800;
        font-size: 17px;
        letter-spacing: 0.02em;
        white-space: nowrap;
        padding: 17px 24px;
        border-radius: 999px;
        box-shadow: 0 16px 40px color-mix(in srgb, var(--coral) 42%, transparent);
        transition:
            transform 0.18s ease,
            box-shadow 0.25s ease;
    }
    .side-cta:hover {
        transform: translate(-50%, -50%) scale(1.03);
        color: #fff;
    }
    .side-cta .sc-badge {
        background: #fff;
        color: var(--coral-600);
        font-size: 12px;
        font-weight: 800;
        padding: 3px 8px;
        border-radius: 7px;
    }
    .side-cta svg {
        width: 22px;
        height: 22px;
        flex: none;
    }
}
