/* =============================================================
   FONTS & ROOT VARIABLES
   ============================================================= */

:root {
    /* Zurari brand tokens (docs/design/DESIGN.md 準拠) */
    --ink: #141414;
    --brand-cyan: #00CBD6;
    --snap-pink: #FF2C6D;
    --paper-white: #FFFFFF;
    --cool-mist: #F2FAFB;
    --cyan-soft: #DFFBFE;
    --pink-soft: #FFF0F6;
    --text-secondary: #4B5357;
    --text-muted: #7C898E;
    --dark-surface: #141414;
    --fresh-green: #27B36A;
    --border: #DBE6E9;
    --copy-ink: #073243;
    --font-body: "Noto Sans JP", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-hand: var(--font-body);
    --progress: 0;
    --hero-opacity: 1;
    --phone-x: 0px;
    --phone-y: 0px;
    --phone-scale: 1;
    --phone-rotate-x: 30deg;
    --phone-rotate-y: 0deg;
    --phone-rotate-z: 0deg;
    --phone-opacity: 1;
    --capture-bg-y: 88vh;
    --copy-opacity: 0;
    --copy-y: 0px;
    --copy-x: 430px;
    --copy-top: 22vh;
    --copy-color: var(--copy-ink);
    --show-opacity: 0;
    --relive-bg-opacity: 0;
    --highlights-opacity: 0;
    --highlights-card-opacity: 1;
    --highlights-copy-opacity: 1;
    --highlights-y: 120px;
    --snapbook-opacity: 0;
    --snapbook-copy-opacity: 1;
    --snapbook-y: 140px;
    --snapbook-scale: 0.92;
    --tabs-opacity: 0;
    --phone-border: #06151a;
    --tab-color: var(--copy-ink);
    --tab-active-bg: #5b756d;
    --tab-active-color: var(--paper-white);
    /* Phone mockup component tokens */
    --phone-island-black: #02090c;
    /* phone dynamic island */
    --highlights-border: #04161f;
    /* relive video card border */
}
/* =============================================================
   BASE RESET
   ============================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cool-mist);
    font-family: var(--font-body);
    overflow-x: hidden;
}

button, a {
    color: inherit;
    font: inherit;
}

a {
    text-decoration: none;
}

button {
    border: 0;
}

svg {
    display: block;
}

:where( .brand__icon, .menu-button, .site-footer__social a) {
    display: grid;
    place-items: center;
}

:where( .hero-shade, .show-bg, .relive-bg, .phone__shine, .phone-screen) {
    position: absolute;
    inset: 0;
}

:where( .highlights-card, .highlights-main) {
    background-position: center;
    background-size: cover;
}

:where(.feature-panel p, .highlights-copy p, .snapbook-copy p) {
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: 0.08em;
}
/* =============================================================
   NAVIGATION
   ============================================================= */

.site-nav {
    position: fixed;
    top: 38px;
    left: 50%;
    z-index: 40;
    display: flex;
    width: min(1180px, calc(100vw - 140px));
    height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    color: var(--paper-white);
    transform: translateX(-50%);
    transition: top 280ms ease, width 360ms ease, height 360ms ease, padding 360ms ease, color 280ms ease, background 280ms ease, box-shadow 280ms ease;
}

.site-nav.is-pill {
    top: 28px;
    width: min(640px, calc(100vw - 44px));
    height: 60px;
    padding: 0 16px;
    color: var(--ink);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(4, 23, 29, 0.18);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 31px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
}

.site-nav.is-pill .brand {
    font-size: 26px;
}

.brand__icon {
    width: 40px;
    height: 40px;
}

.brand__icon img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 22%;
}

.site-nav.is-pill .brand__icon {
    width: 34px;
    height: 34px;
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav__app {
    display: inline-flex;
    width: 0;
    height: 32px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    color: var(--paper-white);
    background: var(--snap-pink);
    font-weight: 950;
    opacity: 0;
    transition: width 260ms ease, padding 260ms ease, opacity 220ms ease;
    white-space: nowrap;
}

.site-nav.is-pill .site-nav__app {
    width: 108px;
    padding: 0 14px;
    opacity: 1;
    font-size: 13px;
}

.menu-button {
    width: 38px;
    height: 38px;
    padding: 5px 0;
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 200ms ease, opacity 200ms ease;
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-menu-wrap {
    position: relative;
}

.nav-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 50;
    display: grid;
    justify-items: center;
    gap: 14px;
    min-width: 180px;
    padding: 16px 18px;
    border-radius: 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(4, 23, 29, 0.22);
    backdrop-filter: blur(14px);
}

.nav-menu[hidden] {
    display: none;
}

.nav-menu__social {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.nav-menu__social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--ink);
    background: var(--cool-mist);
}

.nav-menu__social a[hidden] {
    display: none;
}

/* =============================================================
   EXPERIENCE CONTAINER
   ============================================================= */

.experience {
    height: 625vh;
}

.scroll-stage {
    position: sticky;
    top: 0;
    min-height: 100vh;
    background: var(--cool-mist);
    overflow: hidden;
    isolation: isolate;
}
/* =============================================================
   BACKGROUNDS
   ============================================================= */

/* 出典: Unsplash（撮影者クレジット任意。ライセンス上、自己ホストして外部リクエストを発生させない方針） */
.hero-photo-bg {
    position: absolute;
    inset: -2%;
    z-index: -5;
    background: url("assets/hero-bg.jpg") center 32% / cover no-repeat;
    transform: scale(1.03) translate3d(0, calc(var(--progress) * -52px), 0);
}

.hero-shade {
    z-index: -4;
    background: radial-gradient(circle at 50% 45%, rgba(0, 206, 220, 0.12), transparent 25%), linear-gradient(180deg, rgba(3, 16, 19, 0.52), rgba(3, 16, 19, 0.08) 55%, rgba(3, 16, 19, 0.24));
}

.capture-bg {
    position: absolute;
    right: -4vw;
    bottom: -1px;
    left: -4vw;
    z-index: -2;
    height: 112vh;
    background: var(--cool-mist);
    border-radius: 0 0 26px 26px;
    clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 100%);
    opacity: calc(1 - var(--show-opacity));
    transform: translate3d(0, var(--capture-bg-y), 0);
    transition: transform 80ms linear, opacity 80ms linear;
}

.show-bg {
    z-index: -1;
    background: radial-gradient(circle at 62% 34%, rgba(20, 75, 88, 0.24), transparent 32%), var(--dark-surface);
    opacity: var(--show-opacity);
    transition: opacity 120ms linear;
}

.relive-bg {
    z-index: 0;
    background: var(--paper-white);
    opacity: var(--relive-bg-opacity);
    transition: opacity 120ms linear;
    pointer-events: none;
}
/* =============================================================
   HERO
   ============================================================= */

.hero-copy {
    position: absolute;
    top: 16.4vh;
    left: 50%;
    z-index: 5;
    width: min(840px, calc(100vw - 40px));
    color: var(--paper-white);
    text-align: center;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
    opacity: var(--hero-opacity);
    transform: translate3d(-50%, calc(var(--progress) * -120px), 0);
    pointer-events: none;
}

.hero-copy h1 {
    margin: 0;
    /* 最長行「現場の思い出を、」(8文字)が折り返さないよう幅に追従させる */
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
}

.hero-copy p {
    max-width: 770px;
    margin: 18px auto 0;
    font-size: clamp(1.45rem, 1.43vw, 1.82rem);
    line-height: 1.27;
}

/* .hero-copy を前置して詳細度を .hero-copy p (class+要素) より上げる
   (でないと汎用の p ルールに font-size / max-width / margin が上書きされ、
   本文と同じ大きいフォントで折り返して不自然な改行になる) */
.hero-copy .hero-fact {
    max-width: 620px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    pointer-events: auto;
}

.hero-cta--stores {
    margin-top: 14px;
}

.hero-cta--stores[hidden] {
    display: none;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    height: 50px;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(2, 19, 24, 0.28);
    pointer-events: auto;
}

.store-badge img {
    display: block;
    height: 100%;
    width: auto;
}

/* .hero-copy を前置して詳細度を .hero-copy p (class+要素) より上げる
   (でないと汎用の p ルールに font-size / margin が上書きされる) */
.hero-copy .hero-provisional {
    margin: 16px auto 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    pointer-events: auto;
}

.hero-provisional a {
    color: var(--paper-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.scroll-cue {
    position: absolute;
    bottom: 92px;
    left: 50%;
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.32);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: calc(1 - var(--progress) * 12);
    transform: translateX(-50%);
    pointer-events: none;
    animation: scrollCueBounce 1.8s ease-in-out infinite;
}

@keyframes scrollCueBounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 8px);
    }
}

/* =============================================================
   PHONE MOCKUP
   ============================================================= */

.phone-holder {
    position: absolute;
    top: calc(100vh + var(--phone-y));
    left: 50%;
    z-index: 8;
    width: min(382px, 31vw);
    opacity: var(--phone-opacity);
    transform: translate3d(calc(-50% + var(--phone-x)), -42%, 0) perspective(1200px) rotateX(var(--phone-rotate-x)) rotateY(var(--phone-rotate-y)) rotateZ(var(--phone-rotate-z)) scale(var(--phone-scale));
    transform-origin: center top;
    transform-style: preserve-3d;
    transition: transform 80ms linear, top 80ms linear, opacity 80ms linear;
}

.phone {
    position: relative;
    aspect-ratio: 0.492;
    border: 12px solid var(--phone-border);
    border-radius: 46px;
    background: var(--phone-border);
    box-shadow: 0 34px 70px rgba(2, 16, 19, 0.32), 0 12px 24px rgba(2, 16, 19, 0.24);
    overflow: hidden;
    transform: translateZ(0);
}

.phone::after {
    inset: 0;
    z-index: 16;
    border-radius: 34px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.phone__shine {
    z-index: 15;
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.16), transparent 34%, transparent 62%, rgba(255, 255, 255, 0.08));
    mix-blend-mode: screen;
    pointer-events: none;
}

.phone__island {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 20;
    width: 114px;
    height: 28px;
    border-radius: 999px;
    background: var(--phone-island-black);
    transform: translateX(-50%);
}

.phone__status {
    /* 実スクリーンショットに OS ステータスバーが写るため二重表示を避ける */
    display: none;
}

.status-icons {
    font-size: 13px;
}

.phone-screen {
    border-radius: 34px;
    overflow: hidden;
    opacity: var(--screen-opacity, 0);
    transform: translate3d(0, var(--screen-y, 0), 0) scale(var(--screen-scale, 1.035));
    transition: none;
    pointer-events: none;
}

.phone-screen.is-active {
    opacity: var(--screen-opacity, 1);
    transform: translate3d(0, var(--screen-y, 0), 0) scale(var(--screen-scale, 1));
}

.phone-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--cool-mist);
}
/* =============================================================
   FEATURE COPY & PANELS
   ============================================================= */

.feature-copy {
    position: absolute;
    top: var(--copy-top);
    left: 50%;
    z-index: 7;
    width: min(400px, 42vw);
    color: var(--copy-color);
    opacity: var(--copy-opacity);
    text-align: center;
    transform: translate3d(calc(-50% + var(--copy-x)), var(--copy-y), 0);
    transition: none;
}

.feature-panel {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    opacity: var(--panel-opacity, 0);
    transform: translateY(var(--panel-y, 560px));
    transition: none;
}

.feature-panel.is-active {
    opacity: var(--panel-opacity, 1);
    transform: translateY(var(--panel-y, 0));
}

.feature-panel p {
    margin: 0 0 8px;
    color: var(--snap-pink);
    font-size: 16px;
    line-height: 1.2;
}

.feature-panel h2 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
}

/* =============================================================
   FEATURE TABS
   ============================================================= */

.feature-tabs {
    position: absolute;
    bottom: 31px;
    left: 50%;
    z-index: 18;
    display: flex;
    align-items: center;
    gap: 46px;
    /* 絶対配置の shrink-to-fit は left:50% から右端までの幅(=50vw)に制限され、
       狭い画面でボタン文字が折り返すため、常にコンテンツ幅を確保する */
    width: max-content;
    opacity: var(--tabs-opacity);
    transform: translateX(-50%);
    transition: opacity 160ms linear;
}

.feature-tabs button {
    display: inline-flex;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 7px;
    color: var(--tab-color);
    background: transparent;
    font-family: var(--font-hand);
    font-size: 19px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transform: rotate(-2deg);
}

.feature-tabs button.is-active {
    color: var(--tab-active-color);
    background: var(--tab-active-bg);
}
/* =============================================================
   HIGHLIGHTS SCENE
   ============================================================= */

.highlights-scene {
    position: absolute;
    top: -1vh;
    left: 50%;
    z-index: 12;
    width: min(1120px, 74vw);
    height: 72vh;
    opacity: var(--highlights-opacity);
    transform: translate3d(-50%, var(--highlights-y), 0);
    transition: none;
    pointer-events: none;
}

.highlights-card,
.highlights-main {
    position: absolute;
    overflow: hidden;
    opacity: var(--highlights-card-opacity);
    box-shadow: 0 20px 42px rgba(0, 24, 36, 0.15);
}

.highlights-card {
    width: 100px;
    height: 206px;
    border-radius: 16px;
}

.highlights-card--left-low {
    top: 33vh;
    left: 0;
    background: var(--cool-mist) url("assets/screens/monthly_report_1.webp") center / cover no-repeat;
}

.highlights-card--left-high {
    top: 18vh;
    left: 18%;
    background: var(--cool-mist) url("assets/screens/monthly_report_2.webp") center / cover no-repeat;
}

.highlights-card--right-high {
    top: 19vh;
    right: 20%;
    background: var(--cool-mist) url("assets/screens/year_review_2.webp") center / cover no-repeat;
}

.highlights-card--right-mid {
    top: 29vh;
    right: 0;
    background: var(--cool-mist) url("assets/screens/monthly_report_3.webp") center / cover no-repeat;
}

.highlights-card--bottom-left {
    top: 51vh;
    left: 18%;
    background: var(--cool-mist) url("assets/screens/year_review_3.webp") center / cover no-repeat;
}

.highlights-card--bottom-right {
    top: 51vh;
    right: 12%;
    background: var(--cool-mist) url("assets/screens/monthly_report_4.webp") center / cover no-repeat;
}

.highlights-main {
    top: 0;
    left: 50%;
    /* 14.2vw のみだと中間幅で高さ(min 430px)に対して極端に細長くなるため下限を設ける */
    width: clamp(200px, 14.2vw, 278px);
    height: 39vh;
    min-height: 430px;
    border: 6px solid var(--highlights-border);
    border-radius: 28px;
    background: var(--cool-mist) url("assets/screens/year_review_1.webp") center / cover no-repeat;
    transform: translateX(-50%);
}

.highlights-copy {
    position: absolute;
    top: 56vh;
    left: 50%;
    z-index: 2;
    width: min(720px, calc(100vw - 48px));
    padding: 28px 32px;
    color: var(--ink);
    opacity: var(--highlights-copy-opacity);
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(0, 24, 36, 0.08);
    transform: translateX(-50%);
}

.highlights-copy p,
.snapbook-copy p {
    margin: 0 0 22px;
    color: var(--brand-cyan);
    font-size: 22px;
}

.highlights-copy h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.4rem, 2.45vw, 3rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.05;
    /* 折り返し時に語の途中で切れないようにする(auto-phrase は対応ブラウザのみ) */
    word-break: auto-phrase;
    text-wrap: balance;
}

.highlights-note {
    display: block;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 16px;
    word-break: auto-phrase;
    text-wrap: balance;
}
/* =============================================================
   SNAPBOOK SCENE
   ============================================================= */

.snapbook-scene {
    position: absolute;
    /* 上端固定だと縦長ビューポートでステージ下部が空白のまま Premium の前に
       スクロールされるため、静止位置はビューポート中央に揃える */
    top: 50%;
    left: 50%;
    z-index: 11;
    display: grid;
    justify-items: center;
    width: min(1040px, 62vw);
    opacity: var(--snapbook-opacity);
    transform: translate3d(-50%, calc(-50% + var(--snapbook-y)), 0) scale(var(--snapbook-scale));
    transform-origin: center top;
    transition: none;
    pointer-events: none;
}

.snapbook-mockup {
    width: min(940px, 56vw);
    aspect-ratio: 1738 / 905;
    background: url("assets/screens/snapbook_page.webp") center / contain no-repeat;
    filter: drop-shadow(0 20px 36px rgba(0, 41, 61, 0.15));
}

.snapbook-copy {
    margin-top: 44px;
    color: var(--ink);
    opacity: var(--snapbook-copy-opacity);
    text-align: center;
}

.snapbook-copy h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.25rem, 2.45vw, 3rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.05;
}

.snapbook-copy span {
    display: block;
    max-width: 620px;
    margin: 28px auto 0;
    color: var(--text-secondary);
    font-size: clamp(1.25rem, 1.42vw, 1.62rem);
    font-weight: 500;
    line-height: 1.32;
}

/* =============================================================
   PREMIUM SECTION
   ============================================================= */

.trust-line {
    padding: 48px 24px;
    background: var(--cool-mist);
}

.trust-line__card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 44px 52px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #0a0a0d 0%, var(--ink) 60%, #0a2326 100%);
}

.trust-line__card::before {
    content: "";
    position: absolute;
    top: -35%;
    right: -8%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 203, 214, 0.32), transparent 70%);
    pointer-events: none;
}

.trust-line__copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.trust-line__copy h2 {
    margin: 0 0 10px;
    color: var(--paper-white);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.25;
}

.trust-line__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    font-weight: 500;
}

.trust-line__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    color: var(--paper-white);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.trust-line__badge svg {
    color: var(--brand-cyan);
}

.premium-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--paper-white);
}

.premium-section__inner {
    width: min(880px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 140px 0 120px;
    text-align: center;
}

.premium-section .section-label {
    margin: 0 0 14px;
    color: var(--brand-cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.premium-section h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 2.4vw, 2.75rem);
    font-weight: 950;
    line-height: 1.1;
}

.premium-sub {
    max-width: 520px;
    margin: 16px auto 0;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.5;
}

.premium-table {
    width: 100%;
    margin-top: 56px;
    border-collapse: collapse;
    text-align: left;
}

.premium-table th,
.premium-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.premium-table thead th {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.premium-table thead th:nth-child(2),
.premium-table thead th:nth-child(3),
.premium-table td {
    text-align: center;
    color: var(--ink);
    font-weight: 700;
}

.premium-table tbody th {
    color: var(--ink);
    font-weight: 500;
}

.premium-price {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 56px;
}

.premium-price__card {
    position: relative;
    display: grid;
    gap: 8px;
    width: 240px;
    padding: 28px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--cool-mist);
}

.premium-price__card--best {
    border-color: var(--brand-cyan);
    background: var(--cyan-soft);
}

.premium-price__card b {
    position: absolute;
    top: -14px;
    left: 50%;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--snap-pink);
    color: var(--paper-white);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transform: translateX(-50%);
}

.premium-price__card strong {
    color: var(--ink);
    font-size: 28px;
    font-weight: 950;
}

.premium-price__card strong small {
    font-size: 14px;
    font-weight: 500;
}

.premium-price__card span {
    color: var(--text-muted);
    font-size: 13px;
}

.premium-legal {
    max-width: 480px;
    margin: 28px auto 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.premium-faq {
    max-width: 640px;
    margin: 40px auto 0;
    text-align: left;
}

.premium-faq__item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.premium-faq__item summary {
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.premium-faq__item summary::-webkit-details-marker {
    display: none;
}

.premium-faq__item summary::before {
    margin-right: 4px;
    color: var(--brand-cyan);
    font-weight: 800;
    content: "Q.";
}

.premium-faq__item p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* =============================================================
   BOTTOM CTA
   ============================================================= */

.bottom-cta {
    position: relative;
    min-height: 640px;
    margin-top: 0;
    overflow: hidden;
    color: var(--paper-white);
    background: var(--dark-surface);
    isolation: isolate;
}
.bottom-cta::after {
    position: absolute;
    right: -2vw;
    bottom: -1px;
    left: -2vw;
    z-index: 0;
    height: 78px;
    content: "";
    background: var(--dark-surface);
    clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
}

.bottom-cta__content {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 640px;
    place-items: center;
    align-content: center;
    gap: 20px;
    text-align: center;
}

.bottom-cta h2 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(1.8rem, 2.2vw, 2.75rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.05;
}

.bottom-cta__content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
}

.bottom-cta__buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.bottom-cta__buttons[hidden] {
    display: none;
}

.bottom-cta .store-badge {
    height: 56px;
    box-shadow: 0 18px 36px rgba(0, 10, 15, 0.32);
}

.bottom-cta .store-badge__text strong {
    font-size: 19px;
}
/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
    min-height: auto;
    color: var(--paper-white);
    background-color: var(--dark-surface);
}

.site-footer__inner--simple {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1320px, calc(100vw - 96px));
    margin: 0 auto;
    padding: 48px 0;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--paper-white);
    font-size: 22px;
    font-weight: 950;
}

.footer-brand .brand__icon {
    color: var(--paper-white);
}

.site-footer__copyright {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    font-weight: 350;
}

.site-footer__legal a {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__legal a:not(:first-child)::before {
    content: "·";
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.38);
}

.site-footer__social {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.site-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--paper-white);
    background: rgba(255, 255, 255, 0.1);
}

.site-footer__social a[hidden] {
    display: none;
}
/* =============================================================
   LANGUAGE SWITCH
   ============================================================= */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    color: currentColor;
    font-size: 13px;
    font-weight: 700;
}

.lang-switch a {
    color: inherit;
    opacity: 0.6;
}

.lang-switch a.is-current,
.lang-switch a:hover {
    color: var(--brand-cyan);
    opacity: 1;
}

/* =============================================================
   LEGAL PAGE (Terms / Privacy)
   ============================================================= */

.legal-page {
    min-height: 100vh;
    background: var(--paper-white);
}

.legal-page__inner {
    width: min(720px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 140px 0 100px;
}

.legal-page__inner h1 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 950;
}

.legal-page__updated {
    margin: 0 0 40px;
    color: var(--text-muted);
    font-size: 13px;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
}

.legal-section p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-line;
}

/* =============================================================
   MEDIA QUERIES
   ============================================================= */

@media (max-width: 1050px) {
    .site-nav {
        top: 24px;
        width: calc(100vw - 40px);
    }
    .site-nav.is-pill {
        width: calc(100vw - 32px);
    }
    .brand {
        font-size: 25px;
    }
    .brand__icon {
        width: 34px;
        height: 34px;
    }
    .site-nav__actions {
        gap: 16px;
    }
    .hero-copy {
        top: 14vh;
    }
    .phone-holder {
        width: min(360px, 38vw);
    }
    .feature-copy {
        right: 4vw;
        width: min(320px, 28vw);
    }
    .feature-panel h2 {
        /* 最長行8文字がカラム幅(28vw)に収まる上限 ≒ 3.2vw */
        font-size: clamp(1.5rem, 3.2vw, 3rem);
    }
    .snapbook-scene {
        width: min(1040px, calc(100vw - 48px));
    }
    .snapbook-mockup {
        width: min(940px, calc(100vw - 96px));
    }
}

@media (min-width: 900px) and (max-height: 1050px) {
    .phone-holder {
        width: min(400px, 29vw);
    }
}

/* 縦幅がさらに狭いデスクトップ(1366×768等)は元々スマホモックと hero-cta の
   余白がほぼ無いため、暫定CTAも重なってしまう。既存の重なりを悪化させない
   よう非表示にする(この高さ帯のモック位置自体は本修正の対象外)。 */
@media (min-width: 900px) and (max-height: 820px) {
    .hero-provisional {
        display: none;
    }
}

@media (max-width: 880px) and (min-width: 761px) {
    .phone-holder {
        width: min(260px, 34vw);
    }
    .feature-copy {
        width: min(280px, 30vw);
    }
}

@media (max-width: 760px) {
     :root {
        --phone-x: 0px;
    }
    .legal-page__inner {
        padding: 110px 0 72px;
    }
    .site-nav,
    .site-nav.is-pill {
        top: 14px;
        width: calc(100vw - 24px);
        height: 62px;
        padding: 0 14px;
        border-radius: 24px;
        background: rgba(238, 250, 251, 0.92);
        color: var(--ink);
    }
    .brand,
    .site-nav.is-pill .brand {
        font-size: 20px;
    }
    .hero-copy {
        top: 13vh;
    }
    .hero-copy h1 {
        /* 最長行8文字 × フォントサイズが (100vw - 40px) に収まる上限 ≒ 10.5vw */
        font-size: clamp(2rem, 10.5vw, 4.2rem);
    }
    .hero-copy p {
        font-size: clamp(0.95rem, 3.6vw, 1.12rem);
        /* 固定の <br> 位置では狭い幅で中途半端な折り返しになるため、
           自然な流し込み + balance で行長を均等化する */
        word-break: auto-phrase;
        text-wrap: balance;
    }
    .hero-copy p br {
        display: none;
    }
    .hero-fact {
        text-wrap: balance;
    }
    .hero-cta {
        flex-direction: column;
        margin-top: 24px;
    }
    .hero-copy .hero-provisional {
        margin-top: 12px;
        font-size: 12px;
    }
    .scroll-cue {
        bottom: 78px;
    }
    .phone-holder {
        top: calc(100vh + var(--phone-y));
        left: 50%;
        width: min(230px, 52vw);
        transform: translate3d(calc(-50% + var(--phone-x)), -42%, 0) perspective(1200px) rotateX(var(--phone-rotate-x)) rotateY(var(--phone-rotate-y)) rotateZ(var(--phone-rotate-z)) scale(var(--phone-scale));
    }
    .feature-copy {
        top: auto;
        right: 20px;
        bottom: 80px;
        left: 20px;
        width: auto;
        text-align: left;
        transform: translate3d(0, var(--copy-y), 0);
    }
    /* panels anchor to bottom of copy container on mobile */
    .feature-panel {
        top: auto;
        bottom: 0;
    }
    .feature-panel h2 {
        font-size: clamp(1.6rem, 7.5vw, 2.2rem);
    }
    .feature-panel p {
        font-size: 12px;
    }
    .feature-tabs {
        gap: 16px;
        bottom: 24px;
    }
    .feature-tabs button {
        font-size: 15px;
    }
    /* ── Highlights scene ── */
    .highlights-scene {
        width: calc(100vw - 16px);
        height: 68vh;
    }
    .highlights-main {
        width: min(160px, 42vw);
        height: 34vh;
        min-height: 0;
    }
    .highlights-card {
        width: 72px;
        height: 148px;
    }
    .highlights-card--left-high {
        left: 10%;
    }
    .highlights-card--right-high {
        right: 12%;
    }
    .highlights-card--bottom-left,
    .highlights-card--bottom-right {
        display: none;
    }
    .highlights-copy {
        width: calc(100vw - 48px);
        /* 見出しが2行になる分、下部タブと重ならない高さに置く */
        top: 54vh;
        padding: 20px 22px;
    }
    .trust-line__card {
        justify-content: center;
        padding: 32px 28px;
        text-align: center;
    }
    .trust-line__copy {
        max-width: none;
    }
    .highlights-copy p {
        margin-bottom: 12px;
        font-size: 16px;
    }
    .highlights-copy h2 {
        font-size: clamp(1.55rem, 6.4vw, 2.2rem);
    }
    .highlights-note {
        margin-top: 12px;
        font-size: 14px;
    }
    /* ── Snapbook scene ── */
    .snapbook-scene {
        width: calc(100vw - 24px);
    }
    .snapbook-mockup {
        width: 100%;
    }
    .snapbook-copy h2 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }
    .snapbook-copy span {
        font-size: 1rem;
    }
    /* ── Premium section ── */
    .premium-section__inner {
        width: calc(100vw - 40px);
        padding: 110px 0 60px;
    }
    .premium-price {
        flex-direction: column;
        align-items: center;
    }
    /* ── Bottom CTA ── */
    .bottom-cta__content {
        padding: 0 24px;
        gap: 20px;
    }
    .bottom-cta__buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    /* ── Footer ── */
    .site-footer__inner--simple {
        flex-direction: column;
        width: calc(100vw - 40px);
        padding: 40px 0;
        text-align: center;
    }
    .site-footer__legal {
        justify-content: center;
    }
    .site-footer__social {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* 全要素の個別指定(transition/animation)より確実に勝たせて動きを止める必要があるため !important を維持 */
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}