/* ==========================================================================
   home.css — ランディングページ専用スタイル
   クリーム地 + 藍の枠 + 黄色アクセントのブランドを維持しつつ、
   スカラップ区切り・パステル面・ステッカー風装飾で「かわいく」作り込む。
   ビジュアルはすべて手書きSVG/CSS（AI生成イラストは不使用）。
   動きはCSSアニメーション中心、prefers-reduced-motion で停止する。
   ========================================================================== */

.home-page {
    /* セクションの面色。クリームと薄黄の2色だけで交互に切り替える
       （3色目のピーチは差が小さく、区切りとして機能していなかった） */
    --home-cream: var(--c-white, #FFFDF7);
    --home-butter: #FFF6D9;
    background: var(--home-cream);
}

.sp-only { display: none; }

@media (max-width: 40rem) {
    .sp-only { display: inline; }
}

/* ===== Header =====
   サービス内（community の cm-header / dashboard）と同じ横長バーで統一する */
.home-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    border-block-end: 1px solid var(--c-border);
    background: var(--c-white);
}

.home-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-4);
    height: var(--header-h);
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--sp-6);
}

.home-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
}

.home-nav__anchor {
    color: var(--c-text-muted);
    font-size: var(--text-sm);
    text-decoration: none;
}

.home-nav__anchor:hover {
    color: var(--c-text);
}

@media (max-width: 40rem) {
    .home-nav__anchor { display: none; }
}

/* ===== 汎用: スクロール出現モーション ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease-out),
                transform 0.6s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ===== Hero =====
   コピーと配信画面の2カラム。周囲に装飾を敷かず、視線が画面に集まるようにする */
.hero {
    position: relative;
    padding-block: var(--sp-16) var(--sp-20);
    overflow: hidden;
}

/* 配信画面の背後に置く暖色のにじみ。輪郭を持たせず奥行きだけ足す */
.hero::before {
    content: "";
    position: absolute;
    top: -25%;
    right: -12%;
    width: 62%;
    height: 130%;
    background: radial-gradient(closest-side, var(--home-butter) 0%, transparent 76%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    /* 見出しの2行目「きっと思うままに。」が折り返さない幅を左に確保する */
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    gap: var(--sp-10);
    align-items: center;
}

@media (max-width: 56rem) {
    .hero { padding-block: var(--sp-10) var(--sp-16); }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--sp-10);
    }

    /* 1カラム時に配信画面が横いっぱいへ広がりすぎないよう上限を設ける */
    .hero-stage {
        width: 100%;
        max-width: 34rem;
        margin-inline: auto;
    }
}

/* --- コピー --- */
.hero-eyebrow {
    display: inline-block;
    padding: 5px 14px;
    margin-block-end: var(--sp-5);
    border-radius: var(--radius-pill);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    font-weight: var(--weight-bold);
    line-height: 1.26;
    letter-spacing: -0.02em;
    margin-block-end: var(--sp-6);
}

/* 「きっと」に手描き風のブラシを敷く。ページ中で唯一の「手の跡」 */
.hero-title em {
    position: relative;
    z-index: 0;
    font-style: normal;
}

.hero-title em::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -0.1em;
    right: -0.1em;
    bottom: 0.14em;
    height: 0.5em;
    background-color: var(--c-accent);
    -webkit-mask: url("../assets/svgs/brush.625bc77c8954.svg") center / 100% 100% no-repeat;
    mask: url("../assets/svgs/brush.625bc77c8954.svg") center / 100% 100% no-repeat;
}

.hero-desc {
    max-width: 34rem;
    margin-block-end: var(--sp-8);
    font-size: var(--text-base);
    color: var(--c-text-muted);
    line-height: 1.85;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-5);
}

/* --- 配信画面のデモ --- */
.hero-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: linear-gradient(155deg, #2a3358 0%, #46436d 54%, #7d5b74 100%);
    box-shadow: 0 30px 60px -28px rgba(26, 37, 64, 0.55);
    /* ネオン/デュアルの em スケールを画面幅に追従させる */
    container-type: inline-size;
    container-name: hero-screen;
}

/* 配信者が使うバーチャル背景に見立てた抽象的な面。
   具象イラストにすると絵として読まれてしまうので、光と円だけで構成する */
.hero-scene {
    position: absolute;
    inset: 0;
}

.hero-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.5;
}

/* 四隅を落として、中央から左下のコメントへ視線を通す */
.hero-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 50% 45%, transparent 40%, rgba(16, 20, 40, 0.5) 100%);
}

.hero-scene__glow {
    position: absolute;
    right: 2%;
    bottom: -20%;
    width: 62%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 216, 3, 0.3) 0%, rgba(255, 216, 3, 0.1) 46%, transparent 70%);
}

.hero-scene__ring {
    position: absolute;
    right: 7%;
    bottom: 4%;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
}

/* 配信中であることを示すHUD */
.hero-hud {
    position: absolute;
    top: var(--sp-4);
    left: var(--sp-4);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.hero-hud__live,
.hero-hud__viewers {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 0.08em;
}

.hero-hud__live {
    background: rgba(255, 77, 79, 0.2);
    color: #ff9a9c;
}

.hero-hud__live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4d4f;
    animation: live-pulse 1.6s ease-in-out infinite;
}

.hero-hud__viewers {
    background: rgba(10, 14, 30, 0.34);
    color: rgba(255, 255, 255, 0.82);
}

.hero-hud__viewers svg {
    width: 11px;
    height: 11px;
}

@keyframes deco-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -6px; }
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* --- 時計ウィジェット ---
   cat/heart → ドレープ、neon → ネオン、simple → デュアル（いずれも実スタイル準拠） */
.hero-clock {
    position: absolute;
    top: 0;
    right: 9%;
    z-index: 2;
}

/* ドレープ（実物: widgets/clock/styles/drape.css） */
.hero-clock__drape {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18em;
    min-width: 2.7em;
    padding: 0.72em 0.5em 1.2em;
    font-size: clamp(1rem, 2.1vw, 1.35rem);
    color: var(--c-gray-900, #1a1a1a);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 36%),
        var(--clock-bg, var(--c-accent, #FFD803));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 87%, 0 100%);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.hero-clock__drape::before {
    content: "";
    position: absolute;
    inset: 0.14em 0.14em 0.34em 0.14em;
    background-image:
        repeating-linear-gradient(to bottom, currentColor 0 0.18em, transparent 0.18em 0.28em),
        repeating-linear-gradient(to bottom, currentColor 0 0.18em, transparent 0.18em 0.28em);
    background-repeat: no-repeat;
    background-size: 0.05em 100%, 0.05em 100%;
    background-position: left top, right top;
    opacity: 0.6;
    pointer-events: none;
}

.hero-clock__icon {
    width: 0.7em;
    height: 0.7em;
    background-color: currentColor;
    -webkit-mask: url("../assets/svgs/cat.907f8d9ffa4c.svg") center / contain no-repeat;
    mask: url("../assets/svgs/cat.907f8d9ffa4c.svg") center / contain no-repeat;
}

.hero-clock__time {
    font-size: 0.82em;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

/* ネオン / デュアルは既定で隠し、data-style で出し分ける */
.hero-clock__neon,
.hero-clock__dual {
    display: none;
}

/* --- コメントウィジェット（マークアップはJSがスタイルごとに差し替える） --- */
.hero-comments {
    position: absolute;
    left: var(--sp-4);
    bottom: var(--sp-4);
    z-index: 2;
    width: min(56%, 16.5rem);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

/* 本文の長さで幅が決まるスタイルがあるので、コメント欄からはみ出させない */
.hero-comments > *,
.hero-comments .mock-glitch-comment__msg,
.hero-comments .mock-cat-comment__msg {
    max-width: 100%;
}

/* --- デザイン切り替え: コメントと時計の配色をまとめて差し替える --- */
.hero-screen[data-style="heart"] {
    --cc: #fb7185;
    --cbg: #fff1f2;
    --ct: #881337;
}

.hero-screen[data-style="heart"] .hero-clock__drape {
    --clock-bg: #fb7185;
    color: #fff5f6;
}

.hero-screen[data-style="heart"] .hero-clock__icon {
    -webkit-mask-image: url("../assets/svgs/heart-fill.f51469ba7174.svg");
    mask-image: url("../assets/svgs/heart-fill.f51469ba7174.svg");
}

.hero-screen[data-style="neon"] {
    --g1: #00dbde;
    --g2: #fc00ff;
    --gbg: #0a0a12;
    /* ネオン発光が読めるよう、配信画面だけ一段暗くする */
    background: linear-gradient(155deg, #151a2e 0%, #1f1c36 54%, #3a2438 100%);
}

.hero-screen[data-style="simple"] {
    --cc: #ffffff;
}

/* ネオン / シンプルではドレープを隠し、対応する実スタイルを出す */
.hero-screen[data-style="neon"] .hero-clock__drape,
.hero-screen[data-style="simple"] .hero-clock__drape {
    display: none;
}

/*
 * ネオン / デュアルのプレビュー用スケール。
 * 実物の em 比率はそのままに、配信画面幅（cqi）へ合わせて
 * 「隅のオーバーレイ」として読めるサイズに落とす。
 * 旧 40px 固定だとネオンが画面幅の約45%を占めていた。
 */
.hero-screen[data-style="neon"] .hero-clock {
    top: var(--sp-4);
    right: var(--sp-4);
    /* カプセル幅 ≈ 6em → 画面の約18–22% */
    --hero-clock-size: clamp(14px, 3.4cqi, 20px);
}

.hero-screen[data-style="simple"] .hero-clock {
    top: var(--sp-4);
    right: var(--sp-4);
    /* アナログ+時刻 ≈ 3.7em → 画面の約16–20% */
    --hero-clock-size: clamp(18px, 4.8cqi, 26px);
}

/* ネオン（実物: widgets/clock/styles/neon.css / sky） */
.hero-screen[data-style="neon"] .hero-clock__neon {
    --neon-color: #1ce1d4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: content-box;
    width: 4.2em;
    height: 1.3em;
    padding: 0.3em 0.9em 0;
    font-size: var(--hero-clock-size);
    font-family: "Outfit", "Open Sans", "Noto Sans JP", sans-serif;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: transparent;
    border: 0.058em solid #fff;
    border-radius: 100vh;
    text-shadow:
        0 0 0.096em var(--neon-color),
        0 0 0.192em var(--neon-color),
        0 0 0.096em var(--neon-color),
        0 0 0.192em var(--neon-color);
    box-shadow:
        0 0 0.096em var(--neon-color),
        0 0 0.192em var(--neon-color),
        inset 0 0 0.096em var(--neon-color),
        inset 0 0 0.192em var(--neon-color);
}

.hero-clock__neon-time {
    letter-spacing: 0.05em;
    line-height: 0.75em;
    margin-bottom: 0.192em;
    font-variant-numeric: tabular-nums;
}

.hero-clock__ampm-wrap {
    position: relative;
    margin-left: 0.096em;
}

.hero-clock__ampm {
    font-size: 0.7em;
    font-weight: 600;
    vertical-align: 0.055em;
}

/* デュアル（実物: widgets/clock/styles/dual.css） */
.hero-screen[data-style="simple"] .hero-clock__dual {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: var(--hero-clock-size);
    font-family: "Outfit", "Open Sans", "Noto Sans JP", sans-serif;
    color: #ffffff;
    filter: drop-shadow(0 0.02em 0.04em rgba(0, 0, 0, 0.2));
}

.hero-clock__dual-sub {
    display: flex;
    align-items: center;
    gap: 0.35em;
    margin-bottom: 0.25em;
    margin-right: 0.3em;
    font-size: 0.2em;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1;
}

.hero-clock__dual-date {
    white-space: nowrap;
}

.hero-clock__dual-sep {
    opacity: 0.35;
}

.hero-clock__dual-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3em;
}

.hero-clock__dual-time {
    letter-spacing: 0.02em;
    line-height: 1;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.hero-clock__analog {
    position: relative;
    flex-shrink: 0;
    width: 0.9em;
    height: 0.9em;
    border-radius: 50%;
    border: 0.03em solid currentColor;
}

.hero-clock__hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    background: currentColor;
    border-radius: 1px;
}

.hero-clock__hand--hour {
    width: 0.035em;
    height: 0.25em;
    margin-left: -0.0175em;
}

.hero-clock__hand--minute {
    width: 0.025em;
    height: 0.35em;
    margin-left: -0.0125em;
}

.hero-clock__analog-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.06em;
    height: 0.06em;
    margin: -0.03em 0 0 -0.03em;
    border-radius: 50%;
    background: currentColor;
}

/* シンプルは名前ピルが白なので、その上の文字とアイコンだけ藍に反転させる */
.hero-screen[data-style="simple"] .mock-dot-comment__author {
    color: var(--c-ink, #22304F);
}

.hero-screen[data-style="simple"] .mock-dot-comment__icon::after {
    background-color: var(--c-ink, #22304F);
}

/* --- デザイン切り替えチップ --- */
.hero-switch {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-3);
    margin-block-start: var(--sp-4);
}

.hero-switch__label {
    font-size: var(--text-xs);
    color: var(--c-text-muted);
}

.hero-switch__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.hero-chip {
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--c-border);
    background: var(--c-white);
    color: var(--c-text-muted);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    cursor: pointer;
    transition: color var(--duration-fast, 0.15s) var(--ease-out),
                border-color var(--duration-fast, 0.15s) var(--ease-out),
                background-color var(--duration-fast, 0.15s) var(--ease-out);
}

.hero-chip:hover {
    border-color: var(--c-ink, #22304F);
    color: var(--c-text);
}

.hero-chip.is-active {
    background: var(--c-ink, #22304F);
    border-color: var(--c-ink, #22304F);
    color: var(--c-ink-text, #EAEEF8);
}

@media (max-width: 30rem) {
    .hero-comments { width: 62%; }

    /* 画面が低いので直近2件だけ見せる */
    .hero-comments > :nth-last-child(n+3) { display: none; }

    /* 立ち絵に重なりすぎないよう、コメント幅を詰める */
    .mock-cat-comment__msg { min-width: 150px; }
}

.mock-cat-comment {
    animation: comment-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.mock-cat-comment.is-leaving {
    animation: comment-out 0.45s ease forwards;
}

@keyframes comment-in {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

@keyframes comment-out {
    to { opacity: 0; transform: translateY(-4px); }
}

/* 実物 (widgets/comment/styles/concept-bar.css) の値を 0.7 倍でスケーリング。
   テーマ色は --cc で差し替え可能（既定はねこスタイルの紫 #a78bfa） */

/* 名前: カラーピル（実物: margin-left 42px / font 12px / radius 16px / padding 4px 22px） */
.mock-cat-comment__author {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    margin-left: 38px;
    font-size: 8px;
    font-weight: 600;
    color: #ffffff;
    background: var(--cc, #a78bfa);
    border-radius: 11px;
    padding: 2px 15px;
}

/* メッセージ: 角ばったコメント本体
   （実物: border 3px / min-width 320px / padding 18px 48px 10px 12px /
     radius 12px / margin -10px 0 0 24px） */
.mock-cat-comment__msg {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 2px solid var(--cc, #a78bfa);
    min-width: 224px;
    padding: 13px 34px 7px 9px;
    border-radius: 8px;
    margin-top: -12px;
    margin-left: 17px;
    overflow: hidden;
    isolation: isolate;
    font-size: 11px;
    color: var(--c-gray-900, #1a1a1a);
    line-height: 1.5;
}

/* テキスト左の肉球アイコン（実物: 20px / gap 8px） */
.mock-cat-comment__msg::before {
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background-color: var(--cc, #a78bfa);
    -webkit-mask: url("../assets/svgs/paw.92c12911efeb.svg") center / contain no-repeat;
    mask: url("../assets/svgs/paw.92c12911efeb.svg") center / contain no-repeat;
}

/* 右下の半透明ねこシルエット（実物: 52px / right -8px / bottom -12px） */
.mock-cat-comment__msg::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -8px;
    width: 36px;
    height: 36px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
    background-color: var(--cc, #a78bfa);
    transform: rotate(-20deg);
    -webkit-mask: url("../assets/svgs/cat.907f8d9ffa4c.svg") center / contain no-repeat;
    mask: url("../assets/svgs/cat.907f8d9ffa4c.svg") center / contain no-repeat;
}

/* ===== セクション共通 ===== */
.home-section {
    padding-block: var(--sp-16);
}

/* ラベルは情報量が小さいので、黄色を使わず見出しの前置きに徹させる。
   黄色はCTAと「きっと」のマーカーのために取っておく */
.home-section__label {
    display: inline-block;
    margin-block-end: var(--sp-2);
    color: var(--c-text-muted);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-section__title {
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    font-weight: var(--weight-bold);
    line-height: 1.35;
    margin-block-end: var(--sp-2);
    text-wrap: balance;
}

/* 見出しを文節単位で折り返すためのセグメント */
.seg {
    display: inline-block;
}

.home-section__desc {
    font-size: var(--text-base);
    color: var(--c-text-muted);
    line-height: var(--leading-relaxed, 1.9);
    max-width: 36rem;
}

/* ===== デザインマーキー ===== */
.designs-section {
    background: var(--home-butter);
    overflow: hidden;
    /* 他セクション（.home-section の --sp-16）と同じ帯の余白に揃える */
    padding-block: var(--sp-16);
}

.designs-section .home-section__head {
    margin-block-end: var(--sp-8);
}


.marquee {
    overflow: hidden;
    margin-block-end: var(--sp-4);
    /* 端をふわっと消す */
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.designs-section .marquee:last-child {
    margin-block-end: 0;
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: max-content;
    animation: marquee-left 42s linear infinite;
}

.marquee--reverse .marquee__track {
    animation-name: marquee-right;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

@keyframes marquee-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes marquee-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* 白フチのカード。行ごとにサムネ比に寄せた外形を揃え、
   中身は contain で見切れなく収める（余白はティント背景） */
.design-item {
    flex-shrink: 0;
    padding: 0.3rem;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 0 color-mix(in srgb, var(--c-gray-900) 8%, transparent);
    transition: transform var(--duration-normal) var(--ease-spring),
                box-shadow var(--duration-normal) var(--ease-out);
}

/* 1行目: コメント（約 8:3）向けの横長カード */
.marquee:not(.marquee--reverse) .design-item {
    width: 10.25rem;
}

.marquee:not(.marquee--reverse) .design-item__thumb {
    height: 4rem;
}

/* 2行目: 時計・セトリ・お知らせの混在向け（1:1〜3:1 の中間） */
.marquee--reverse .design-item {
    width: 8.75rem;
}

.marquee--reverse .design-item__thumb {
    height: 5rem;
}

.design-item:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--c-gray-900) 25%, transparent);
}

.design-item__thumb {
    display: block;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    border-radius: calc(var(--radius-md) - 1px);
    background:
        radial-gradient(130% 160% at 50% 28%,
            color-mix(in srgb, var(--thumb-tint, #b6bcd0) 30%, var(--thumb-base-1, #ffffff)) 0%,
            color-mix(in srgb, var(--thumb-tint, #b6bcd0) 12%, var(--thumb-base-2, #f2f3f7)) 62%,
            var(--thumb-base-3, #e8e9f0) 100%);
}

/* ハートスタイル (widgets/comment/styles/concept-bar.css の heart 差分):
   ねこと同じ構造で、アイコンがハート。右下の濃淡2枚のハートは
   実物どおり本文の背景（overflow: hidden の内側・テキストの背面）に敷く */
.mock-cat-comment--heart .mock-cat-comment__msg {
    background: var(--cbg, #ffffff);
    color: var(--ct, #7f1d1d);
}

/* テキスト左の小ハート（実物: 12px → 0.7倍で8px） */
.mock-cat-comment--heart .mock-cat-comment__msg::before {
    width: 8px;
    height: 8px;
    -webkit-mask-image: url("../assets/svgs/heart.374f3514a7f3.svg");
    mask-image: url("../assets/svgs/heart.374f3514a7f3.svg");
}

/* 背面の大きい半透明ハート（実物: 48px / bottom -8px / rotate 18deg / opacity 0.3） */
.mock-cat-comment--heart .mock-cat-comment__msg::after {
    right: -6px;
    bottom: -6px;
    width: 34px;
    height: 34px;
    transform: rotate(18deg);
    -webkit-mask-image: url("../assets/svgs/heart.374f3514a7f3.svg");
    mask-image: url("../assets/svgs/heart.374f3514a7f3.svg");
}

/* 背面の小さい濃いハート（実物: 38px / right 12px / bottom -12px / rotate -15deg / opacity 0.8） */
.mock-cat-comment--heart .mock-cat-comment__msg span::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: -8px;
    width: 27px;
    height: 27px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
    background-color: var(--cc, #dc2626);
    transform: rotate(-15deg);
    -webkit-mask: url("../assets/svgs/heart.374f3514a7f3.svg") center / contain no-repeat;
    mask: url("../assets/svgs/heart.374f3514a7f3.svg") center / contain no-repeat;
}

/* ネオングリッチスタイル (widgets/comment/styles/glitch-frame.css) の再現:
   2色パネル(c1=左上/c2=右下)がシャープにずれて重なる色収差グリッチ。
   名前は c1 タグをカード上辺に半掛け、本文は微細な色ズレの text-shadow */
.mock-glitch-comment {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 6px 4px;
}

.mock-glitch-comment__author {
    position: relative;
    z-index: 2;
    margin-left: 3px;
    margin-bottom: -6px;
    padding: 3px 9px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, #14101d 88%, var(--g1, #00dbde));
    background: var(--g1, #00dbde);
    border-radius: 4px;
    box-shadow: 2.5px 2px 0 var(--g2, #fc00ff);
}

.mock-glitch-comment__msg {
    position: relative;
    display: block;
    min-width: 150px;
    padding: 12px 16px 10px;
    background: var(--gbg, #0a0a12);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.5;
    box-shadow:
        -4px -2px 0 color-mix(in srgb, var(--g1, #00dbde) 82%, transparent),
        4px 2px 0 color-mix(in srgb, var(--g2, #fc00ff) 82%, transparent);
    text-shadow:
        1.2px 0.3px 0 color-mix(in srgb, var(--g2, #fc00ff) 55%, transparent),
        -1.2px -0.3px 0 color-mix(in srgb, var(--g1, #00dbde) 55%, transparent);
}

/* 右枠をまたぐ2色の信号ノイズバー（実物 card-bg::after の再現） */
.mock-glitch-comment__msg::after {
    content: "";
    position: absolute;
    top: 56%;
    right: -4px;
    width: 11px;
    height: 3px;
    border-radius: 1px;
    background: var(--g2, #fc00ff);
    box-shadow: -4px 6px 0 -1px var(--g1, #00dbde);
    pointer-events: none;
}

/* ドットラインスタイル (widgets/comment/styles/dot-line.css) の 0.7 倍再現:
   丸アイコン + 縦点線 + 背景なしテキスト */
.mock-dot-comment {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-height: 36px;
    padding-bottom: 4px;
}

.mock-dot-comment::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 20px;
    bottom: 0;
    width: 2px;
    border-radius: 2px;
    background: repeating-linear-gradient(to bottom,
        var(--cc, #7c6cac) 0 2px, transparent 2px 6px);
    opacity: 0.45;
}

.mock-dot-comment__icon {
    position: absolute;
    left: 0;
    top: -1px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--cc, #7c6cac);
}

.mock-dot-comment__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    -webkit-mask: url("../assets/svgs/heart-fill.f51469ba7174.svg") center / 40% no-repeat;
    mask: url("../assets/svgs/heart-fill.f51469ba7174.svg") center / 40% no-repeat;
}

.mock-dot-comment__author {
    display: inline-flex;
    align-items: center;
    margin-left: 21px;
    padding: 2px 8px;
    font-size: 8px;
    font-weight: 600;
    color: #ffffff;
    background: var(--cc, #7c6cac);
    border-radius: 3px;
}

.mock-dot-comment__msg {
    margin-left: 21px;
    font-size: 11px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    line-height: 1.5;
}

/* ===== ツール + OBSドック =====
   ページ中盤の藍の帯。実際のドックのスクリーンショットを大きく置いて、
   「配信中の操作はここで完結する」という一番の価値をそのまま見せる */
.dock-section {
    background: var(--c-ink, #22304F);
    color: var(--c-ink-text, #EAEEF8);
}

.dock-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1fr);
    gap: clamp(var(--sp-8), 5vw, var(--sp-16));
    align-items: center;
}

.dock-section .home-section__label {
    color: var(--c-ink-text-muted, #AEB9D6);
}

.dock-section .home-section__title {
    color: var(--c-ink-text, #EAEEF8);
}

.dock-section .home-section__desc {
    max-width: 32rem;
    color: var(--c-ink-text-muted, #AEB9D6);
}

/* 縦長のスクリーンショット。UIの文字が読める大きさを保ちたいので、
   列幅と高さの小さいほうに合わせる */
.dock-shot img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 34rem;
    margin-inline: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
}

@media (max-width: 56rem) {
    .dock-grid { grid-template-columns: 1fr; }
    .dock-section .home-section__desc { max-width: none; }
}

/* ===== はじめかた3ステップ ===== */
.steps-section {
    background: var(--home-butter);
}

.steps-section .home-section__head {
    margin-block-end: var(--sp-10);
}

.steps-grid {
    position: relative;
    display: grid;
    /* minmax(0,1fr) でカード幅が中身に押し広げられないようにする */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-6);
}

@media (max-width: 56rem) {
    .steps-grid { grid-template-columns: 1fr; }
}

.step-card {
    position: relative;
    min-width: 0;
    padding: var(--sp-6);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-2xl);
}

.step-card__num {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--c-ink, #22304F);
    color: var(--c-ink-text, #EAEEF8);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    margin-block-end: var(--sp-4);
}

/* --- ステップ内ミニUIモック（テキストなし・枠のみのデフォルメ） --- */
.step-mock {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: var(--sp-3);
    min-width: 0;
    min-height: 7.5rem;
    margin-block-end: var(--sp-4);
    padding: var(--sp-5);
    border-radius: var(--radius-xl);
    background: var(--c-gray-50);
    border: 1px solid var(--c-border-subtle);
    overflow: hidden;
}

/* Step1: アカウント連携ボタン（Google / Twitch）のデフォルメ */
.sk-bar {
    width: 36%;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--c-gray-200);
}

.sk-sso {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--c-white);
    border: 1.5px solid var(--c-border);
}

.sk-sso i {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

/* ロゴは使わず、ブランドカラーの円で「らしさ」だけ示す */
.sk-sso__google {
    background: conic-gradient(
        #4285F4 0 25%, #34A853 25% 50%,
        #FBBC05 50% 75%, #EA4335 75% 100%);
}

.sk-sso__twitch {
    background: #9146FF;
}

.sk-sso b {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 52%;
    height: 7px;
    border-radius: var(--radius-pill);
    background: var(--c-gray-200);
}

/* Step2: URL貼り付け + OBSドック */
.sk-url {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    background: var(--c-white);
    border: 1.5px dashed var(--c-gray-300, #d4d4d4);
}

.sk-url svg {
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    color: var(--c-text-muted);
}

.sk-bar--url {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: 62%;
    height: 7px;
    background: var(--c-gray-200);
}

/* 固定幅だと狭いカードで潰れて円になるので、割合で並べる */
.sk-dock {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    align-items: center;
    gap: clamp(0.3rem, 2.4vw, 0.5rem);
    min-width: 0;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-lg);
    background: var(--c-ink, #22304F);
}

.sk-dock__item {
    min-width: 0;
    height: 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.28);
}

.sk-dock__item.is-active {
    background: var(--c-accent);
}

/* Step3: 配信画面（ヒーローの縮小デフォルメ）。
   LIVEバッジ + 垂れ幕時計 + ねこ風コメントで
   「上の配信画面ができあがった状態」だと一目でわかるようにする */
.step-mock--live {
    position: relative;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--sp-2);
    padding: 0;
    background:
        radial-gradient(120% 140% at 80% 0%, #35446e 0%, var(--c-ink, #22304F) 60%, #1a2540 100%);
    border: none;
    overflow: hidden;
}

.sk-winbar {
    display: flex;
    align-items: center;
    height: 22px;
    padding-inline: 9px;
}

.sk-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: var(--radius-pill);
    background: rgba(255, 77, 79, 0.18);
}

.sk-live::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ff4d4f;
    animation: live-pulse 1.6s ease-in-out infinite;
}

.sk-live::after {
    content: "";
    width: 12px;
    height: 4px;
    border-radius: var(--radius-pill);
    background: #ff8a8c;
}

/* 垂れ幕時計（ヒーローの hero-clock のシルエット） */
.sk-drape {
    position: absolute;
    top: 23px;
    right: clamp(0.6rem, 3vw, 0.9rem);
    width: clamp(1.25rem, 8vw, 1.6rem);
    height: clamp(1.75rem, 11vw, 2.25rem);
    background: var(--c-accent);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
}

/* ねこ風コメント（名前ピル + 白い本体）のシルエット */
.sk-msg {
    display: block;
    min-width: 0;
    margin-inline: clamp(0.5rem, 3vw, 0.75rem);
}

/* 兄弟はすべて span のため first-of-type は使えない。
   垂れ幕の直後 = 1件目のコメントを下端へ押し下げる */
.sk-drape + .sk-msg {
    margin-block-start: auto;
}

.sk-msg:last-child {
    margin-block-end: 12px;
}

.sk-msg b {
    position: relative;
    z-index: 1;
    display: block;
    width: min(32%, 4.5rem);
    max-width: 100%;
    height: 8px;
    margin-left: 8px;
    border-radius: var(--radius-pill);
    background: var(--cc, #a78bfa);
}

.sk-msg > span {
    display: block;
    width: min(80%, 9rem);
    max-width: 100%;
    height: 18px;
    margin-top: -2px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid var(--cc, #a78bfa);
    border-radius: 5px;
}

.sk-msg:last-child b { width: min(26%, 3.5rem); }
.sk-msg:last-child > span { width: min(62%, 7rem); }

.step-card__title {
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    margin-block-end: var(--sp-2);
}

.step-card__desc {
    font-size: var(--text-sm);
    color: var(--c-text-muted);
    line-height: 1.8;
}

/* ===== コミュニティ + 料金（2カード） ===== */
.duo-section {
    background: var(--home-cream);
    padding-block: var(--sp-20);
}

.duo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
    align-items: stretch;
}

@media (max-width: 48rem) {
    .duo-grid { grid-template-columns: 1fr; }
}

.duo-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-8);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    min-height: 22rem;
}

.duo-card__title {
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    font-weight: var(--weight-bold);
    line-height: 1.45;
    margin-block-end: var(--sp-3);
}

.duo-card__desc {
    font-size: var(--text-sm);
    line-height: 1.9;
    margin-block-end: var(--sp-6);
    max-width: 28em;
}

.duo-card .btn {
    margin-block-start: auto;
}

/* コミュニティ: 料金の¥0と同位置に、ギャラリー由来のサムネを置く */
.duo-card--community {
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 216, 3, 0.35) 0%, transparent 55%),
        var(--home-butter);
    border: 1px solid var(--c-border);
}

.duo-card__thumbs {
    display: flex;
    align-items: flex-end;
    margin-block-end: var(--sp-5);
    width: 100%;
}

.duo-card__thumbs img {
    /* 黒余白は透過済み。カード枠は付けず描画だけを重ねて見せる */
    width: min(72%, 14.5rem);
    height: auto;
    display: block;
    background: transparent;
    filter: drop-shadow(0 8px 14px rgba(34, 48, 79, 0.18));
}

.duo-card__thumbs img + img {
    margin-left: -2.2rem;
    margin-bottom: 0.1rem;
    transform: rotate(3.5deg);
    z-index: 1;
}

.duo-card--community .duo-card__desc {
    color: var(--c-text-muted);
}

.duo-card--community .btn--secondary {
    background: var(--c-white);
    border-color: var(--c-border);
    color: var(--c-ink, #22304F);
}

/* 料金カード: 藍地に大きな¥0 */
.duo-card--pricing {
    background:
        radial-gradient(120% 140% at 80% 0%, #35446e 0%, var(--c-ink, #22304F) 60%, #1a2540 100%);
    color: var(--c-ink-text, #EAEEF8);
}

.duo-card--pricing .home-section__label {
    color: var(--c-ink-text-muted, #AEB9D6);
}

.duo-card--pricing .duo-card__title {
    color: var(--c-ink-text, #EAEEF8);
}

.duo-card--pricing .duo-card__desc {
    color: var(--c-ink-text-muted, #AEB9D6);
}

.duo-card__price {
    font-size: clamp(2.75rem, 5.5vw, 4rem);
    font-weight: var(--weight-bold);
    line-height: 1;
    color: var(--c-accent);
    margin-block-end: var(--sp-5);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.duo-card__yen {
    font-size: 0.45em;
    vertical-align: 0.5em;
    margin-inline-end: 0.05em;
}

.duo-card__per {
    font-size: 0.28em;
    font-weight: var(--weight-medium);
    color: var(--c-ink-text-muted, #AEB9D6);
    margin-inline-start: 0.3em;
}

/* ===== 最終CTA + フッター（藍の帯・夜空） ===== */
.home-final {
    position: relative;
    margin-block-start: var(--sp-4);
    border-radius: 36px 36px 0 0;
    background:
        radial-gradient(140% 120% at 50% 0%, #2E3F66 0%, var(--c-ink, #22304F) 45%, #16203a 100%);
    color: var(--c-ink-text, #EAEEF8);
    text-align: center;
    padding-block: var(--sp-24) 0;
    overflow: hidden;
}

.home-final__inner {
    position: relative;
    z-index: 1;
}

/* 夜空の散らし装飾（既存SVGのシルエット） */
.sky-deco {
    position: absolute;
    pointer-events: none;
    background-color: var(--c-accent);
    -webkit-mask: var(--deco-mask) center / contain no-repeat;
    mask: var(--deco-mask) center / contain no-repeat;
    animation: sky-twinkle 3.2s ease-in-out infinite;
}

.sky-deco--star1 {
    --deco-mask: url("../assets/svgs/star.dca41bd0180d.svg");
    width: 1.5rem; height: 1.5rem;
    top: 18%; left: 12%;
    transform: rotate(-10deg);
}

.sky-deco--star2 {
    --deco-mask: url("../assets/svgs/star.dca41bd0180d.svg");
    width: 0.9rem; height: 0.9rem;
    top: 42%; left: 24%;
    transform: rotate(18deg);
    animation-delay: 1.1s;
}

.sky-deco--star3 {
    --deco-mask: url("../assets/svgs/star.dca41bd0180d.svg");
    width: 1.1rem; height: 1.1rem;
    top: 26%; right: 20%;
    transform: rotate(8deg);
    animation-delay: 2s;
}

.sky-deco--moon {
    --deco-mask: url("../assets/svgs/moon.a1bdcb38f44c.svg");
    width: 2.6rem; height: 2.6rem;
    top: 14%; right: 9%;
    transform: rotate(-14deg);
    animation: none;
    opacity: 0.9;
}

.sky-deco--heart {
    --deco-mask: url("../assets/svgs/heart-fill.f51469ba7174.svg");
    width: 1rem; height: 1rem;
    bottom: 34%; left: 8%;
    background-color: #F9A8D4;
    transform: rotate(-12deg);
    animation-delay: 0.5s;
}

.sky-deco--paw {
    --deco-mask: url("../assets/svgs/paw.92c12911efeb.svg");
    width: 1.6rem; height: 1.6rem;
    bottom: 30%; right: 12%;
    transform: rotate(16deg);
    opacity: 0.55;
    animation-delay: 1.6s;
}

@keyframes sky-twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.home-final__logo {
    width: 4rem;
    height: 4rem;
    margin-inline: auto;
    margin-block-end: var(--sp-5);
    animation: deco-float 5s ease-in-out infinite;
}

.home-final__title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: var(--weight-bold);
    margin-block-end: var(--sp-8);
    text-wrap: balance;
}

.home-footer {
    margin-block-start: var(--sp-20);
    padding-block: var(--sp-8);
    border-block-start: 1px solid var(--c-ink-border, #33426A);
    color: var(--c-ink-text-muted, #AEB9D6);
    font-size: var(--text-sm);
}

.home-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.home-footer a {
    color: inherit;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .marquee__track,
    .hero-hud__live::before,
    .sk-live::before,
    .sky-deco,
    .home-final__logo {
        animation: none;
    }

    .design-item,
    .step-card,
    .hero-chip {
        transition: none;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
