/* =========================================================
   Dandori LP
   ブランドトークンは departments/creative/BRAND.md に準拠
   ========================================================= */

:root {
    --base: #0E0F13;
    --surface: #1A1C22;
    --raised: #24272F;
    --accent: #C6F24E;
    --accent-dark: #A5D030;
    --text: #F5F6F8;
    --text-sub: #9BA1AE;
    --rec: #FF4D4F;

    --font-jp: "Noto Sans JP", sans-serif;
    --font-en: "Inter", sans-serif;
    /* 等幅は英数字ラベル・数字のみに使う。和文には使わない（字面が崩れるため） */
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --container: 1080px;
    --radius: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--base);
    color: var(--text);
    font-family: var(--font-en), var(--font-jp);
    font-size: 16px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.4;
    font-weight: 900;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}

strong {
    color: var(--accent);
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.sp-only {
    display: none;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(14, 15, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--raised);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 64px;
}

.wordmark {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.03em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header-logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: cover;
    display: block;
}

.wordmark-sm {
    font-size: 18px;
}

.badge-soon {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    color: var(--accent);
    line-height: 1.4;
}

/* ---------- 言語切り替え（マルチ言語対応） ---------- */

.lang-dropdown-container {
    position: relative;
    margin-left: auto;
}

.lang-dropdown-container summary {
    list-style: none;
    cursor: pointer;
}

.lang-dropdown-container summary::-webkit-details-marker {
    display: none;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-sub);
    padding: 6px 12px;
    border: 1px solid var(--raised);
    border-radius: 999px;
    background: var(--surface);
    transition: border-color 0.16s ease, color 0.16s ease;
    white-space: nowrap;
    user-select: none;
}

.lang-dropdown-container[open] .lang-switch-btn,
.lang-switch-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--raised);
    border-radius: 12px;
    padding: 6px;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sub);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.12s ease, color 0.12s ease;
}

.lang-dropdown-menu a:hover,
.lang-dropdown-menu a.active {
    background: var(--raised);
    color: var(--text-main);
}

.lang-dropdown-menu a.active {
    font-weight: 700;
    color: var(--accent);
}

.lang-switch {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-sub);
    text-decoration: none;
    padding: 6px 13px;
    border: 1px solid var(--raised);
    border-radius: 999px;
    transition: border-color 0.16s ease, color 0.16s ease;
    white-space: nowrap;
}

.lang-switch:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ポリシーページ（利用規約・プライバシーポリシー・404）用 */
.policy-lang-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.policy-lang-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.policy-lang-links a {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-sub);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--raised);
    border-radius: 999px;
    transition: all 0.16s ease;
}

.policy-lang-links a:hover,
.policy-lang-links a.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* 英語版の利用規約・プライバシーポリシーに付ける「参考訳であり、日本語版が正」の注記 */
.policy-translation-notice {
    background: var(--surface);
    border: 1px solid var(--raised);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 36px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.8;
}

.policy-translation-notice strong {
    color: var(--text);
}

.policy-translation-notice a {
    color: var(--accent);
    font-weight: 700;
}

/* ---------- Hero ---------- */

/* 三分割構図のグリッド。「撮る前に画角を決める」＝段取りのモチーフ。
   ファインダー風の演出ではないので、RECタイムコード等の録画中の記号は載せない（BRAND.md 5） */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 88px;
    background:
        radial-gradient(900px 460px at 50% -10%, rgba(198, 242, 78, 0.13), transparent 70%),
        var(--base);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 40px 24px;
    pointer-events: none;
    background:
        linear-gradient(to right, transparent calc(33.333% - 1px), rgba(245, 246, 248, 0.07) calc(33.333% - 1px), rgba(245, 246, 248, 0.07) 33.333%, transparent 33.333%),
        linear-gradient(to right, transparent calc(66.666% - 1px), rgba(245, 246, 248, 0.07) calc(66.666% - 1px), rgba(245, 246, 248, 0.07) 66.666%, transparent 66.666%),
        linear-gradient(to bottom, transparent calc(33.333% - 1px), rgba(245, 246, 248, 0.05) calc(33.333% - 1px), rgba(245, 246, 248, 0.05) 33.333%, transparent 33.333%),
        linear-gradient(to bottom, transparent calc(66.666% - 1px), rgba(245, 246, 248, 0.05) calc(66.666% - 1px), rgba(245, 246, 248, 0.05) 66.666%, transparent 66.666%);
}

/* 四隅の構図ブラケット — 各L字パーツが独立してキュッと内側へ動くアニメーション */
.hero-brackets {
    position: absolute;
    inset: 36px 24px;
    pointer-events: none;
    z-index: 0;
}

.hero-brackets .corner {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0.65;
}

.hero-brackets .top-left {
    top: 0;
    left: 0;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    animation: corner-tl 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.hero-brackets .top-right {
    top: 0;
    right: 0;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    animation: corner-tr 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.hero-brackets .bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    animation: corner-bl 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.hero-brackets .bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    animation: corner-br 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* REC + タイムコード HUD（2026-08-02: BRAND.md 5章の方針転換。詳細は同ドキュメント参照）
   .hero-brackets / .cta-brackets（どちらも position:absolute）の内側に置くことで
   その要素のボックスが位置決めの基準になり、右上コーナーブラケットのすぐ内側に収まる。
   数字は script（下部）が1秒ごとに書き換える。CSSアニメーションはドットの明滅のみ。 */
.rec-hud {
    position: absolute;
    top: 32px;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.rec-hud .rec-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--rec);
}

.rec-hud .rec-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rec);
    box-shadow: 0 0 6px var(--rec);
    animation: rec-pulse 1.6s ease-in-out infinite;
}

@keyframes rec-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.rec-hud .tc {
    color: var(--text-sub);
    font-variant-numeric: tabular-nums;
}

@keyframes corner-tl {
    0%, 100% { transform: translate(0, 0); opacity: 0.65; }
    50% { transform: translate(14px, 14px); opacity: 0.95; }
}

@keyframes corner-tr {
    0%, 100% { transform: translate(0, 0); opacity: 0.65; }
    50% { transform: translate(-14px, 14px); opacity: 0.95; }
}

@keyframes corner-bl {
    0%, 100% { transform: translate(0, 0); opacity: 0.65; }
    50% { transform: translate(14px, -14px); opacity: 0.95; }
}

@keyframes corner-br {
    0%, 100% { transform: translate(0, 0); opacity: 0.65; }
    50% { transform: translate(-14px, -14px); opacity: 0.95; }
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(34px, 6.4vw, 62px);
    line-height: 1.28;
    margin-bottom: 28px;
}

.hero-lead {
    color: var(--text-sub);
    font-size: clamp(15px, 1.7vw, 17px);
    margin-bottom: 44px;
}

.hero-statement {
    position: relative;
    font-family: var(--font-en), var(--font-jp);
    font-size: clamp(22px, 3.4vw, 34px);
    font-weight: 900;
    letter-spacing: -0.01em;
    padding: 20px 0 20px 22px;
    margin-bottom: 30px;
}

/* アクセントバー。border-left ではなく擬似要素にして、伸びるアニメーションを載せる */
.hero-statement::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    transform-origin: top center;
}

.hero-statement strong {
    font-size: 1.24em;
}

.hero-sub {
    font-size: clamp(15px, 1.8vw, 18px);
    max-width: 640px;
    margin-bottom: 44px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 24px;
}

.hero-note {
    font-size: 13px;
    color: var(--text-sub);
}

/* ---------- Hero: 入場アニメーション ----------
   目的は装飾ではなく「読ませる順番を作ること」。
   ヒーローのコピーは 課題 → 転換 → 解決 という論法なので、その順に現れる。
   - CSSのみ（JSが無くても動く）。opacity と transform だけを使うのでレイアウトシフトは発生しない
   - 最後のCTAが出そろうまで約1.04秒。1秒を大きく超えると「もたつき」として知覚されるため、
     ディレイと再生時間はこの予算内に収める（変更時は getAnimations() で実測すること）
   - prefers-reduced-motion では全て無効化し、最初から表示する（末尾のメディアクエリ）
*/

@keyframes dnd-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 構図ブラケットが少し外から締まる＝「撮る前に画角を決める」 */
@keyframes dnd-frame-in {
    from { opacity: 0; transform: scale(1.03); }
    to   { opacity: 0.55; transform: scale(1); }
}

@keyframes dnd-grid-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes dnd-bar-grow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

.hero::before {
    animation: dnd-grid-in 500ms ease-out 100ms both;
}

.hero::after {
    animation: dnd-frame-in 500ms cubic-bezier(0.22, 0.7, 0.3, 1) both;
}

.hero-eyebrow,
.hero-title .l1,
.hero-title .l2,
.hero-lead,
.hero-statement,
.hero-sub,
.hero-actions {
    animation: dnd-fade-up 420ms cubic-bezier(0.22, 0.7, 0.3, 1) both;
}

.hero-title .l1,
.hero-title .l2 {
    display: inline-block;
}

.hero-eyebrow      { animation-delay: 170ms; }
.hero-title .l1    { animation-delay: 240ms; }
/* 読点の「間」を実際の時間にする */
.hero-title .l2    { animation-delay: 330ms; }
.hero-lead         { animation-delay: 420ms; }
.hero-statement    { animation-delay: 490ms; }
.hero-sub          { animation-delay: 560ms; }
.hero-actions      { animation-delay: 620ms; }

.hero-statement::before {
    animation: dnd-bar-grow 380ms cubic-bezier(0.22, 0.7, 0.3, 1) 540ms both;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 15px 34px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--base);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--raised);
    color: var(--text-sub);
    padding: 13px 26px;
    font-size: 14px;
}

.btn-outline[aria-disabled="true"] {
    cursor: default;
    opacity: 0.62;
}

/* ---------- Section common ---------- */

section {
    padding: 96px 0;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(26px, 4vw, 40px);
    margin-bottom: 52px;
}

/* ---------- Pain ---------- */

.pain {
    background: var(--surface);
}

.pain-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.pain-item {
    background: var(--base);
    border: 1px solid var(--raised);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.pain-item:hover {
    border-color: rgba(245, 246, 248, 0.25);
}

.pain-quote {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.95;
}

.pain-conclusion-box {
    margin: 48px 0 56px;
    background: var(--base);
    border: 1px solid var(--raised);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.pain-conclusion-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px 200px at 50% 0%, rgba(198, 242, 78, 0.08), transparent 70%);
    pointer-events: none;
}

.pain-conclusion {
    position: relative;
    z-index: 1;
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 700;
    line-height: 1.7;
    color: var(--text);
}

.pain-conclusion strong {
    color: var(--accent);
    display: inline-block;
    margin-top: 4px;
}

/* ---------- Before / After（静的図） ---------- */

.ba {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 20px;
    margin-top: 56px;
}

.ba-panel {
    background: var(--base);
    border: 1px solid var(--raised);
    border-radius: var(--radius);
    padding: 22px;
}

.ba-text {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    margin-top: 14px;
    line-height: 1.6;
}

.ba-after {
    border-color: rgba(198, 242, 78, 0.35);
}

.ba-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-sub);
    margin-bottom: 16px;
}

.ba-after .ba-label {
    color: var(--accent);
}

.ba-stage {
    position: relative;
    height: 168px;
    margin-bottom: 16px;
}

.ba-text {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.8;
}

/* BEFORE: 散らばった素材が不規則にゆらゆら漂う */
.scrap {
    position: absolute;
    width: 62px;
    height: 40px;
    border-radius: 6px;
    background: var(--raised);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.scrap.s1 { left: 4%;  top: 6%;   animation: scrap-float-1 5.2s ease-in-out infinite; }
.scrap.s2 { left: 38%; top: 0;    animation: scrap-float-2 4.4s ease-in-out infinite; }
.scrap.s3 { left: 68%; top: 18%;  animation: scrap-float-3 4.8s ease-in-out infinite; }
.scrap.s4 { left: 12%; top: 46%;  animation: scrap-float-2 5.6s ease-in-out infinite; }
.scrap.s5 { left: 46%; top: 56%;  animation: scrap-float-1 4.9s ease-in-out infinite; }
.scrap.s6 { left: 74%; top: 62%;  animation: scrap-float-3 5.3s ease-in-out infinite; }

@keyframes scrap-float-1 {
    0%, 100% { transform: rotate(-13deg) translateY(0); }
    50% { transform: rotate(-8deg) translateY(-7px); }
}
@keyframes scrap-float-2 {
    0%, 100% { transform: rotate(8deg) translateY(0); }
    50% { transform: rotate(13deg) translateY(-9px); }
}
@keyframes scrap-float-3 {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-6px); }
}

/* AFTER: 整った段取りが順々にスッ…スッ…と組み立てられる */
.ba-after .ba-stage {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ordered {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--raised);
    border-left: 3px solid var(--accent);
    animation: ordered-assemble 6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.ordered:nth-child(1) { animation-delay: 0s; }
.ordered:nth-child(2) { animation-delay: 0.15s; }
.ordered:nth-child(3) { animation-delay: 0.3s; }
.ordered:nth-child(4) { animation-delay: 0.45s; }

@keyframes ordered-assemble {
    0% { opacity: 0.2; transform: translateX(14px); }
    15%, 85% { opacity: 1; transform: translateX(0); }
    95%, 100% { opacity: 0.2; transform: translateX(14px); }
}

.ordered .n {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    color: var(--accent);
}

.ordered::after {
    content: "";
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(245, 246, 248, 0.14);
}

/* 矢印の光脈動 */
.ba-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 4px;
}

.ba-arrow-line {
    width: 26px;
    height: 26px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transform: rotate(45deg);
    margin-right: 10px;
    animation: arrow-glow 3s ease-in-out infinite;
}

@keyframes arrow-glow {
    0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 0 rgba(198, 242, 78, 0)); }
    50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(198, 242, 78, 0.8)); }
}

.ba-arrow-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    writing-mode: vertical-rl;
    letter-spacing: 0.12em;
}

/* ---------- Steps ---------- */

.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 44px 0;
    border-top: 1px solid var(--raised);
}

.step:first-of-type {
    border-top: none;
}

.step-reverse .step-body {
    order: 2;
}

.step-no {
    display: block;
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 20px;
}

.step-title {
    font-size: clamp(19px, 2.3vw, 25px);
    margin-bottom: 18px;
}

.step-text {
    color: var(--text-sub);
    font-size: 15px;
}

/* ---------- Mock（コンセプト図。実画面ではない） ---------- */

.mock {
    background: var(--surface);
    border: 1px solid var(--raised);
    border-radius: var(--radius);
    padding: 22px;
}

.mock-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--raised);
}

.mock-head-text {
    font-size: 13px;
    font-weight: 700;
}

.mock-progress {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

/* 生成完了を示すステータスドット。録画状態ではないので --rec は使わない（BRAND.md 2） */
.mock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

.mock-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin-bottom: 6px;
}

.mock-hook {
    margin-bottom: 16px;
    animation: paragraph-reveal 6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.mock-hook:nth-child(2) {
    animation-delay: 0s;
}

.mock-hook:nth-child(3) {
    animation-delay: 0.4s;
}

.mock-hook p {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

@keyframes paragraph-reveal {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    12%, 85% {
        opacity: 1;
        transform: translateY(0);
    }
    95%, 100% {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.mock-hook:last-child {
    margin-bottom: 0;
}

/* ショットリスト（自動チェック＆カウントアップアニメーション） */

.progress-num::after {
    content: "1 / 4";
    animation: counter-step 8s ease-in-out infinite;
}

@keyframes counter-step {
    0%, 20% { content: "1 / 4"; }
    25%, 45% { content: "2 / 4"; }
    50%, 70% { content: "3 / 4"; }
    75%, 90% { content: "4 / 4"; }
    95%, 100% { content: "1 / 4"; }
}

.mock-shots li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.shot-info {
    flex: 1;
}

/* 撮影済みショットのリアルタイム映像サムネイル */
.shot-thumb {
    width: 38px;
    height: 24px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.shot-thumb.thumb-1 {
    background: url('assets/thumb-cafe.jpg') center/cover no-repeat;
}

.shot-thumb.thumb-2 {
    background: url('assets/thumb-coffee.jpg') center/cover no-repeat;
}

.shot-thumb.thumb-3 {
    background: url('assets/thumb-coffee.jpg') center/cover no-repeat;
}

.shot-thumb.thumb-4 {
    background: url('assets/thumb-laptop.jpg') center/cover no-repeat;
}

.shot-thumb::after {
    content: "PLAY";
    position: absolute;
    inset: 0;
    font-family: var(--font-mono);
    font-size: 7px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

.mock-shots li:last-child {
    border-bottom: none;
}

.mock-shots .check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid var(--raised);
    flex: none;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.mock-shots .check::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--base);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
}

/* 01: 常に完了 */
.shot-1 {
    color: var(--text-sub);
    text-decoration: line-through;
    text-decoration-color: var(--raised);
}
.shot-1 .check {
    background: var(--accent);
    border-color: var(--accent);
}
.shot-1 .check::after {
    transform: rotate(45deg) scale(1);
    opacity: 1;
}

/* 02: 25%時点（2.0秒後）でチェック完了 & サムネイル現像 */
.shot-2 {
    animation: shot2-text 8s ease-in-out infinite;
}
.shot-2 .check {
    animation: shot2-box 8s ease-in-out infinite;
}
.shot-2 .check::after {
    animation: shot2-tick 8s ease-in-out infinite;
}
.shot-2 .shot-thumb {
    animation: shot2-thumb 8s ease-in-out infinite;
}

/* 03: 50%時点（4.0秒後）でチェック完了 & サムネイル現像 */
.shot-3 {
    animation: shot3-text 8s ease-in-out infinite;
}
.shot-3 .check {
    animation: shot3-box 8s ease-in-out infinite;
}
.shot-3 .check::after {
    animation: shot3-tick 8s ease-in-out infinite;
}
.shot-3 .shot-thumb {
    animation: shot3-thumb 8s ease-in-out infinite;
}

/* 04: 75%時点（6.0秒後）でチェック完了 & サムネイル現像 */
.shot-4 {
    animation: shot4-text 8s ease-in-out infinite;
}
.shot-4 .check {
    animation: shot4-box 8s ease-in-out infinite;
}
.shot-4 .check::after {
    animation: shot4-tick 8s ease-in-out infinite;
}
.shot-4 .shot-thumb {
    animation: shot4-thumb 8s ease-in-out infinite;
}

/* --- Shot 02 アニメーション --- */
@keyframes shot2-text {
    0%, 20% { color: var(--text); text-decoration: none; }
    25%, 90% { color: var(--text-sub); text-decoration: line-through; text-decoration-color: var(--raised); }
    95%, 100% { color: var(--text); text-decoration: none; }
}
@keyframes shot2-box {
    0%, 20% { background: transparent; border-color: var(--accent); }
    25%, 90% { background: var(--accent); border-color: var(--accent); }
    95%, 100% { background: transparent; border-color: var(--raised); }
}
@keyframes shot2-tick {
    0%, 20% { transform: rotate(45deg) scale(0); opacity: 0; }
    25%, 90% { transform: rotate(45deg) scale(1); opacity: 1; }
    95%, 100% { transform: rotate(45deg) scale(0); opacity: 0; }
}
@keyframes shot2-thumb {
    0%, 20% { opacity: 0; transform: scale(0.6); width: 0; margin-right: 0; }
    25%, 90% { opacity: 1; transform: scale(1); width: 38px; margin-right: 4px; }
    95%, 100% { opacity: 0; transform: scale(0.6); width: 0; margin-right: 0; }
}

/* --- Shot 03 アニメーション --- */
@keyframes shot3-text {
    0%, 45% { color: var(--text); text-decoration: none; }
    50%, 90% { color: var(--text-sub); text-decoration: line-through; text-decoration-color: var(--raised); }
    95%, 100% { color: var(--text); text-decoration: none; }
}
@keyframes shot3-box {
    0%, 20% { background: transparent; border-color: var(--raised); }
    25%, 45% { background: transparent; border-color: var(--accent); }
    50%, 90% { background: var(--accent); border-color: var(--accent); }
    95%, 100% { background: transparent; border-color: var(--raised); }
}
@keyframes shot3-tick {
    0%, 45% { transform: rotate(45deg) scale(0); opacity: 0; }
    50%, 90% { transform: rotate(45deg) scale(1); opacity: 1; }
    95%, 100% { transform: rotate(45deg) scale(0); opacity: 0; }
}
@keyframes shot3-thumb {
    0%, 45% { opacity: 0; transform: scale(0.6); width: 0; margin-right: 0; }
    50%, 90% { opacity: 1; transform: scale(1); width: 38px; margin-right: 4px; }
    95%, 100% { opacity: 0; transform: scale(0.6); width: 0; margin-right: 0; }
}

/* --- Shot 04 アニメーション --- */
@keyframes shot4-text {
    0%, 70% { color: var(--text); text-decoration: none; }
    75%, 90% { color: var(--text-sub); text-decoration: line-through; text-decoration-color: var(--raised); }
    95%, 100% { color: var(--text); text-decoration: none; }
}
@keyframes shot4-box {
    0%, 45% { background: transparent; border-color: var(--raised); }
    50%, 70% { background: transparent; border-color: var(--accent); }
    75%, 90% { background: var(--accent); border-color: var(--accent); }
    95%, 100% { background: transparent; border-color: var(--raised); }
}
@keyframes shot4-tick {
    0%, 70% { transform: rotate(45deg) scale(0); opacity: 0; }
    75%, 90% { transform: rotate(45deg) scale(1); opacity: 1; }
    95%, 100% { transform: rotate(45deg) scale(0); opacity: 0; }
}
@keyframes shot4-thumb {
    0%, 70% { opacity: 0; transform: scale(0.6); width: 0; margin-right: 0; }
    75%, 90% { opacity: 1; transform: scale(1); width: 38px; margin-right: 4px; }
    95%, 100% { opacity: 0; transform: scale(0.6); width: 0; margin-right: 0; }
}

/* タイムライン & Step 03 アニメーション */

.mock-timeline-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.mock-timeline {
    display: flex;
    gap: 6px;
}

.mock-timeline .clip {
    flex: 1;
    height: 54px;
    border-radius: 8px;
    background: var(--raised);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-sub);
    border: 1px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clip-bg {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-size: cover;
    background-position: center;
    mix-blend-mode: luminosity;
    transition: opacity 0.3s ease;
}

.clip-bg.bg-1 { background: url('assets/thumb-cafe.jpg') center/cover no-repeat; opacity: 0.6; }
.clip-bg.bg-2 { background: url('assets/thumb-coffee.jpg') center/cover no-repeat; opacity: 0.6; }
.clip-bg.bg-3 { background: linear-gradient(135deg, #1e3b30 0%, #12241d 100%); }
.clip-bg.bg-4 { background: linear-gradient(135deg, #3d2b45 0%, #211626 100%); }

.clip-label {
    position: relative;
    z-index: 1;
}

/* クリップの順次ハイライト */
.clip-1 { animation: clip1-highlight 7s ease-in-out infinite; }
.clip-2 { animation: clip2-highlight 7s ease-in-out infinite; }
.clip-3 { animation: clip3-highlight 7s ease-in-out infinite; }
.clip-4 { animation: clip4-highlight 7s ease-in-out infinite; }

@keyframes clip1-highlight {
    0%, 20% { background: rgba(198, 242, 78, 0.15); border-color: var(--accent); color: var(--accent); }
    25%, 100% { background: var(--raised); border-color: transparent; color: var(--text-sub); }
}
@keyframes clip2-highlight {
    0%, 20% { background: var(--raised); border-color: transparent; color: var(--text-sub); }
    25%, 45% { background: rgba(198, 242, 78, 0.15); border-color: var(--accent); color: var(--accent); }
    50%, 100% { background: var(--raised); border-color: transparent; color: var(--text-sub); }
}
@keyframes clip3-highlight {
    0%, 45% { background: var(--raised); border-color: transparent; color: var(--text-sub); }
    50%, 70% { background: rgba(198, 242, 78, 0.15); border-color: var(--accent); color: var(--accent); }
    75%, 100% { background: var(--raised); border-color: transparent; color: var(--text-sub); }
}
@keyframes clip4-highlight {
    0%, 70% { background: var(--raised); border-color: transparent; color: var(--text-sub); }
    75%, 90% { background: rgba(198, 242, 78, 0.15); border-color: var(--accent); color: var(--accent); }
    95%, 100% { background: var(--raised); border-color: transparent; color: var(--text-sub); }
}

/* スカウター風の再生バー（Playhead） */
.playhead {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 54px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    pointer-events: none;
    border-radius: 2px;
    animation: playhead-sweep 7s ease-in-out infinite;
}

@keyframes playhead-sweep {
    0% { left: 0%; opacity: 0; }
    5% { opacity: 1; }
    90% { left: calc(100% - 2px); opacity: 1; }
    95%, 100% { left: calc(100% - 2px); opacity: 0; }
}

/* テロップ文章の連動切替 */
.mock-caption-row {
    background: var(--raised);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.animated-caption {
    font-size: 14px;
    font-weight: 500;
}

.animated-caption::after {
    content: "「休日、家から一歩も出ないつもりだった。」";
    animation: caption-switch 7s ease-in-out infinite;
}

@keyframes caption-switch {
    0%, 24% { content: "「休日、家から一歩も出ないつもりだった。」"; }
    25%, 49% { content: "「気づいたら、お気に入りのカフェへ。」"; }
    50%, 74% { content: "「注文したのは、いつものアイスラテ。」"; }
    75%, 100% { content: "「帰り道の夕空が、すごくきれいだった。」"; }
}

/* 英語版LP（html lang="en"）用のテロップ差し替え */
html[lang="en"] .animated-caption::after {
    content: "“I wasn’t planning to leave the house all weekend.”";
    animation-name: caption-switch-en;
}

@keyframes caption-switch-en {
    0%, 24% { content: "“I wasn’t planning to leave the house all weekend.”"; }
    25%, 49% { content: "“Next thing I knew, I was at my favorite café.”"; }
    50%, 74% { content: "“I ordered my usual iced latte.”"; }
    75%, 100% { content: "“The sunset on the way home was stunning.”"; }
}

/* 韓国語版LP（html lang="ko"）用 */
html[lang="ko"] .animated-caption::after {
    content: "“주말 내내 집에만 있으려고 했다.”";
    animation-name: caption-switch-ko;
}

@keyframes caption-switch-ko {
    0%, 24% { content: "“주말 내내 집에만 있으려고 했다.”"; }
    25%, 49% { content: "“정신을 차려보니, 좋아하는 카페에 와 있었다.”"; }
    50%, 74% { content: "“주문한 건, 늘 먹던 아이스 라떼.”"; }
    75%, 100% { content: "“집으로 돌아가는 길의 노을이 정말 예뻤다.”"; }
}

/* スペイン語版LP（html lang="es"）用 */
html[lang="es"] .animated-caption::after {
    content: "“No pensaba salir de casa en todo el fin de semana.”";
    animation-name: caption-switch-es;
}

@keyframes caption-switch-es {
    0%, 24% { content: "“No pensaba salir de casa en todo el fin de semana.”"; }
    25%, 49% { content: "“Sin darme cuenta, ya estaba en mi cafetería favorita.”"; }
    50%, 74% { content: "“Pedí mi latte helado de siempre.”"; }
    75%, 100% { content: "“El atardecer de camino a casa era hermoso.”"; }
}

/* 繁体字中国語（台湾）版LP（html lang="zh-TW"）用 */
html[lang="zh-TW"] .animated-caption::after {
    content: "「原本打算這個週末完全不出門的。」";
    animation-name: caption-switch-zh-tw;
}

@keyframes caption-switch-zh-tw {
    0%, 24% { content: "「原本打算這個週末完全不出門的。」"; }
    25%, 49% { content: "「不知不覺間，又來到最喜歡的咖啡廳。」"; }
    50%, 74% { content: "「點了一如往常的冰拿鐵。」"; }
    75%, 100% { content: "「回家途中的夕陽，真的好美。」"; }
}

/* 書き出しボタンのタップ・発光アクション */
.btn-export {
    background: var(--accent);
    color: var(--base);
    border-radius: 999px;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: btn-press 7s ease-in-out infinite;
}

@keyframes btn-press {
    0%, 88% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(198, 242, 78, 0);
    }
    91% {
        transform: scale(0.96);
        box-shadow: 0 0 20px rgba(198, 242, 78, 0.6);
    }
    95%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(198, 242, 78, 0);
    }
}

/* ---------- Position ---------- */

.position {
    background: var(--surface);
}

.position-lead {
    font-size: clamp(16px, 2vw, 19px);
    margin: -28px 0 48px;
    line-height: 1.9;
}

.position-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.position-card {
    background: var(--base);
    border: 1px solid var(--raised);
    border-radius: var(--radius);
    padding: 32px 28px;
}

.position-card h3 {
    font-size: 17px;
    margin-bottom: 20px;
}

.position-card.is-yes h3 {
    color: var(--accent);
}

.position-card.is-no h3 {
    color: var(--text-sub);
}

.position-card.is-yes {
    border-color: rgba(198, 242, 78, 0.25);
}

.position-card li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.85;
}

.position-card.is-yes li {
    color: var(--text);
    font-weight: 500;
}

.position-card.is-no li {
    color: var(--text-sub);
}

.position-card li:last-child {
    margin-bottom: 0;
}

.position-card.is-yes li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 11px;
    width: 5px;
    height: 10px;
    border: solid var(--accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.position-card.is-no li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 12px;
    height: 1.5px;
    background: var(--raised);
}

/* ---------- Build in Public ---------- */

.bip {
    background: var(--surface);
}

.bip-text {
    color: var(--text-sub);
    font-size: 15px;
    max-width: 700px;
    margin: -28px 0 36px;
}

.bip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* 投稿動画の横スライダー（2026-08-02 追加）。
   HTML側は投稿がたまるまでコメントアウトしてある（index.html の該当箇所参照）。
   JSを使わない CSS scroll-snap 実装。ライブラリ不要・モバイルで指スワイプがそのまま効く。 */

.bip-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* カードのフォーカスリングが上下で切れないよう余白を確保する */
    padding: 4px 4px 16px;
    margin: 0 -4px 32px;
    /* スクロールバーを控えめに */
    scrollbar-width: thin;
    scrollbar-color: var(--raised) transparent;
    -webkit-overflow-scrolling: touch;
}

.bip-slider::-webkit-scrollbar {
    height: 6px;
}

.bip-slider::-webkit-scrollbar-thumb {
    background: var(--raised);
    border-radius: 999px;
}

.bip-card {
    flex: 0 0 auto;
    width: 168px;
    scroll-snap-align: start;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.16s ease;
}

.bip-card:hover {
    transform: translateY(-3px);
}

.bip-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* 9:16 の縦動画サムネイル
   ⚠️ height: auto は必須。<img> の height 属性はUAスタイルシートで
   presentational hint として height:960px のように効くため、これが無いと
   aspect-ratio が上書きされてサムネイルが縦に伸びる（2026-08-02 実測で確認済み） */
.bip-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 12px;
    background: var(--raised);
    border: 1px solid var(--raised);
}

.bip-card-meta {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-sub);
}

.bip-card-no {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2px;
}

/* ---------- Q&A（よくある質問） ----------
   旧 .privacy-note セクションを廃止し、その内容をQ2として本セクションに統合した（2026-08-02）。
   <details>/<summary> のネイティブ挙動を使う（JSなし・キーボード操作とスクリーンリーダー対応が標準で効く）。 */

.faq-list {
    max-width: 760px;
    margin-top: -28px;
}

.faq-item {
    border-bottom: 1px solid var(--raised);
}

.faq-item:first-child {
    border-top: 1px solid var(--raised);
}

.faq-q {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 4px;
    font-size: clamp(15px, 1.8vw, 17px);
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
    /* タップ領域を44px以上に保つ（BRAND.md 7章） */
    min-height: 44px;
}

/* デフォルトの三角マーカーを消す（Safari/Chrome 両方） */
.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::marker {
    content: "";
}

.faq-q:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-radius: 6px;
}

/* 開閉インジケータ（＋ / −）。色だけでなく形でも状態を示す */
.faq-q::after {
    content: "";
    flex: none;
    margin-left: auto;
    width: 13px;
    height: 13px;
    background:
        linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat;
    transition: transform 0.18s ease;
}

.faq-item[open] .faq-q::after {
    /* 縦棒を潰して「−」にする */
    background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat;
    transform: rotate(180deg);
}

.faq-a {
    padding: 0 4px 24px;
    color: var(--text-sub);
    font-size: 15px;
    max-width: 680px;
}

.faq-a a {
    color: var(--accent);
    font-weight: 700;
}

/* ---------- CTA ---------- */

.cta {
    text-align: center;
    padding: 120px 0;
    background:
        radial-gradient(720px 380px at 50% 110%, rgba(198, 242, 78, 0.15), transparent 70%),
        var(--base);
}

.cta-title {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 26px;
}

.cta-sub {
    color: var(--text-sub);
    font-size: 15px;
}

.cta-date {
    font-size: 13px;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--raised);
    padding: 44px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 32px;
}

.footer-nav {
    display: flex;
    gap: 26px;
}

.footer-nav a {
    color: var(--text-sub);
    font-size: 14px;
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--accent);
}

.copyright {
    margin-left: auto;
    color: var(--text-sub);
    font-size: 13px;
}

/* =========================================================
   ポリシーページ（利用規約・プライバシーポリシー）
   ========================================================= */

.policy-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}

.policy-header h1 {
    font-size: clamp(24px, 4vw, 34px);
    margin-bottom: 12px;
}

.policy-meta {
    color: var(--text-sub);
    font-size: 13px;
    margin-bottom: 40px;
}

.policy-body h2 {
    font-size: 18px;
    margin: 44px 0 14px;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
}

.policy-body p {
    color: var(--text-sub);
    font-size: 15px;
    margin-bottom: 14px;
}

.policy-body ul,
.policy-body ol {
    color: var(--text-sub);
    font-size: 15px;
    padding-left: 22px;
    margin-bottom: 14px;
}

.policy-body ul {
    list-style: disc;
}

.policy-body ol {
    list-style: decimal;
}

.policy-body li {
    margin-bottom: 8px;
}

.policy-body a {
    color: var(--accent);
}

.policy-body hr {
    border: none;
    border-top: 1px solid var(--raised);
    margin: 32px 0;
}

.policy-footer-btn {
    margin-top: 56px;
    text-align: center;
}

/* 404.html は日英2ボタン併記のため、間隔を確保する */
.policy-footer-btn .policy-back-btn + .policy-back-btn {
    margin-left: 12px;
}

.policy-back-btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 999px;
    border: 1px solid var(--raised);
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.policy-back-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 880px) {

    .pain-list,
    .position-grid {
        grid-template-columns: 1fr;
    }

    /* Before/After は縦積みにして、矢印を下向きに倒す */
    .ba {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ba-arrow {
        flex-direction: row;
        padding: 4px 0;
    }

    .ba-arrow-line {
        transform: rotate(135deg);
        margin: -8px 8px 0 0;
    }

    .ba-arrow-text {
        writing-mode: horizontal-tb;
    }

    .step {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .step-reverse .step-body {
        order: 0;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .sp-only {
        display: inline;
    }

    section {
        padding: 68px 0;
    }

    .hero {
        padding: 68px 0 60px;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .ba {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .copyright {
        margin-left: 0;
    }
}

/* =========================================================
   新設機能スタイル（光沢ボタン・特徴バッジ・モーダル・CTAブラケット）
   ========================================================= */

/* --- 光沢ボタン (Shine Animation) --- */
.btn-shine {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn-shine::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: rotate(30deg);
    animation: btn-shine-sweep 4s ease-in-out infinite;
}

@keyframes btn-shine-sweep {
    0%, 65% { left: -60%; }
    100% { left: 140%; }
}

/* --- ヒーロー特徴バッジ --- */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.feat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(36, 39, 47, 0.7);
    border: 1px solid rgba(198, 242, 78, 0.3);
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    backdrop-filter: blur(4px);
}

.feat-tag .icon {
    font-style: normal;
    font-size: 13px;
}

/* --- RECOMMENDEDバッジ & カード浮遊 --- */
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-head h3 {
    margin-bottom: 0;
}

.rec-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--accent);
    color: var(--base);
}

.position-card.is-yes {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.position-card.is-yes:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(198, 242, 78, 0.12);
    border-color: var(--accent);
}

/* --- CTA セクション強化 --- */
.cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 120px 0;
    background:
        radial-gradient(800px 400px at 50% 50%, rgba(198, 242, 78, 0.18), transparent 70%),
        var(--base);
}

.cta-inner {
    position: relative;
    z-index: 2;
}

.cta-brackets {
    position: absolute;
    inset: 24px;
    pointer-events: none;
    z-index: 1;
}

.cta-brackets .corner {
    position: absolute;
    width: 22px;
    height: 22px;
    opacity: 0.5;
}

.cta-brackets .top-left {
    top: 0; left: 0;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    animation: corner-tl 5s infinite;
}
.cta-brackets .top-right {
    top: 0; right: 0;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    animation: corner-tr 5s infinite;
}
.cta-brackets .bottom-left {
    bottom: 0; left: 0;
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    animation: corner-bl 5s infinite;
}
.cta-brackets .bottom-right {
    bottom: 0; right: 0;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    animation: corner-br 5s infinite;
}

.cta-btn-wrap {
    margin-top: 36px;
}

/* --- 事前登録（Waitlist）モーダル --- */
.waitlist-modal {
    border: none;
    padding: 0;
    border-radius: 20px;
    background: transparent;
    max-width: 480px;
    width: 90%;
}

.waitlist-modal::backdrop {
    background: rgba(14, 15, 19, 0.85);
    backdrop-filter: blur(12px);
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--raised);
    border-radius: 20px;
    padding: 36px 30px;
    position: relative;
    color: var(--text);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-sub);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text);
}

.modal-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
}

.modal-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.modal-desc {
    color: var(--text-sub);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--base);
    border: 1px solid var(--raised);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.modal-input:focus {
    border-color: var(--accent);
}

.modal-submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.modal-success-msg {
    display: none;
    background: rgba(198, 242, 78, 0.1);
    border: 1px solid var(--accent);
    color: var(--text);
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .btn {
        transition: none;
    }

    .btn-primary:hover {
        transform: none;
    }

    /* Q&Aの開閉マーカー・動画スライダーのカードも動かさない */
    .faq-q::after,
    .bip-card {
        transition: none;
    }

    .bip-card:hover {
        transform: none;
    }

    /* ヒーローの入場アニメーションを完全に無効化し、最初から最終状態で表示する */
    .hero::before,
    .hero::after,
    .hero-eyebrow,
    .hero-title .l1,
    .hero-title .l2,
    .hero-lead,
    .hero-statement,
    .hero-statement::before,
    .hero-sub,
    .hero-actions {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .hero::after {
        opacity: 0.55;
    }

    /* ---- ループアニメーション（29個）の停止 ----
       WCAG 2.2.2 (Pause, Stop, Hide) はレベルA。5秒以上自動で動き続けるコンテンツには
       停止手段が必要。ここでまとめて止める。

       ⚠️ 定番の `animation-duration: 0.01ms` 一括指定は使えない。
       paragraph-reveal / shot2-4-tick / playhead-sweep は 100% が opacity:0 で終わるため、
       その手法だと該当要素が「消えた」状態で固定されてしまう（実測で6要素が該当）。
       そのため animation を切ったうえで、見えている状態を明示的に指定する。 */

    /* .corner はヒーロー（.hero-brackets）とCTA（.cta-brackets）の両方にあるため、
       親を限定せずクラス単体で指定する */
    .corner,
    .btn-shine::after,
    .btn-shine::before,
    .mock-hook,
    .progress-num::after,
    .mock-shots li,
    .mock-shots .check,
    .mock-shots .check::after,
    .mock-timeline .clip,
    .playhead,
    .mock-caption-row p::after,
    .mock-export,
    .scrap,
    .ba-after .ordered,
    .ba-arrow-line,
    .rec-hud .rec-dot {
        animation: none !important;
    }

    /* 上で animation を切ると消えてしまう要素を、見えている状態に固定する */
    .mock-hook,
    .ba-after .ordered,
    .rec-hud .rec-dot {
        opacity: 1;
        transform: none;
    }

    .mock-shots .check::after {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }

    /* 再生ヘッドは静止画では意味を持たないため非表示にする */
    .playhead {
        display: none;
    }
}

/* ==========================================================================
   事前登録（Waitlist）カスタムモーダル UI
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(14, 15, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: linear-gradient(165deg, #1a1c22 0%, #0e0f13 100%);
    border: 1px solid rgba(198, 242, 78, 0.25);
    border-radius: calc(var(--radius) + 8px);
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
    padding: 28px 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(198, 242, 78, 0.12);
    position: relative;
    transform: translateY(16px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-box::-webkit-scrollbar {
    display: none; /* Chrome / Safari / Opera */
}

/* モーダル上部：ヘッダーHUD */
.modal-vip-card {
    background: rgba(14, 15, 19, 0.6);
    border: 1px dashed rgba(198, 242, 78, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.modal-vip-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 242, 78, 0.15), transparent);
    transform: skewX(-25deg);
    animation: vip-shine 4s ease-in-out infinite;
}

@keyframes vip-shine {
    0%, 60% { left: -100%; }
    100% { left: 200%; }
}

.vip-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.12em;
}

.vip-status {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 6px;
}

.vip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: rec-pulse 2s ease-in-out infinite;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-sub);
    font-size: 20px;
    width: 32px;
    height: 32px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--text);
    background: var(--raised);
    border-color: var(--accent);
}

.modal-header {
    margin-bottom: 18px;
}

.modal-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.modal-desc {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
}

.modal-field {
    margin-bottom: 16px;
}

.modal-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.modal-label .req {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10px;
    background: rgba(198, 242, 78, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(198, 242, 78, 0.3);
}

.modal-label .opt {
    color: var(--text-sub);
    font-size: 11px;
    font-weight: 400;
}

.modal-input,
.modal-textarea {
    width: 100%;
    background: #090a0d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    transition: all 0.25s ease;
}

.modal-input:focus,
.modal-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(198, 242, 78, 0.2);
    background: #0e0f13;
}

.modal-textarea {
    resize: vertical;
    min-height: 58px;
}

/* アコーディオン開閉トグルボタン */
.modal-accordion-toggle {
    margin-bottom: 16px;
    text-align: left;
}

.btn-toggle-survey {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.btn-toggle-survey:hover {
    opacity: 0.8;
}

.modal-survey-accordion {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 14px;
    margin-bottom: 10px;
    animation: accordion-slide 0.25s ease-out;
}

@keyframes accordion-slide {
    0% { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* リッチな1タップ選択チップ */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-btn {
    background: #090a0d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-sub);
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chip-btn:hover {
    border-color: rgba(198, 242, 78, 0.5);
    color: var(--text);
    transform: translateY(-1px);
}

.chip-btn.is-selected {
    background: rgba(198, 242, 78, 0.16);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(198, 242, 78, 0.25);
    transform: translateY(-1px);
}

.modal-error {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.modal-submit-btn {
    width: 100%;
    margin-top: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 25px rgba(198, 242, 78, 0.3);
}

/* 完了状態：リッチなパス発行演出 */
.modal-success-view {
    text-align: center;
    padding: 30px 10px 10px;
    display: none;
    animation: success-appear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes success-appear {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.success-pass-card {
    background: linear-gradient(135deg, rgba(198, 242, 78, 0.12) 0%, rgba(26, 28, 34, 0.9) 100%);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 24px;
    box-shadow: 0 0 30px rgba(198, 242, 78, 0.2);
    position: relative;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--base);
    font-size: 32px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 0 20px rgba(198, 242, 78, 0.6);
}

.success-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.success-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
}

/* ---- App Showcase Gallery ---- */
.showcase {
    padding: 100px 0;
    background: var(--base);
    position: relative;
    border-top: 1px solid var(--surface-raised);
}

.showcase-desc {
    color: var(--text-sub);
    font-size: 16px;
    margin-top: 12px;
    margin-bottom: 48px;
    max-width: 600px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.showcase-card {
    background: var(--surface);
    border: 1px solid var(--surface-raised);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-6px);
    border-color: rgba(198, 242, 78, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(198, 242, 78, 0.08);
}

.showcase-device {
    width: 100%;
    max-width: 260px;
    height: 520px;
    aspect-ratio: 9 / 19.5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0,0,0,0.8);
    border: 2px solid var(--surface-raised);
    margin-bottom: 24px;
    background: #000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.showcase-device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.showcase-info {
    width: 100%;
    text-align: left;
}

.showcase-info .mono-badge {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 8px;
}

.showcase-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.showcase-info p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .showcase-card {
        padding: 20px;
    }
    .showcase-device {
        max-width: 220px;
        height: 450px;
    }
}
