/* Ra・Mu consulting 第9版
   主役は「仕事が見える絵」：流れ続ける投稿、制作中のスマホ。下の段はその2つの素材を大きくして使う。
   背景は下へ読むほど藍が深くなる（帯の切り替え）。 */

@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 400; font-display: swap; src: url("fonts/zen-400.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 700; font-display: swap; src: url("fonts/zen-700.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 900; font-display: swap; src: url("fonts/zen-900.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("fonts/plexmono-500.woff2") format("woff2"); }

:root {
  --ai-1: #e6eef8;
  --ai-2: #bfd1e8;
  --ai-3: #87a5cf;
  --ai-4: #3a62a6;
  --ai-5: #1f3a6e;
  --ai-6: #101b35;
  --ai-7: #0a1226;
  --mist: #eef3f9;
  --paper: #ffffff;
  --ink: #111a30;
  --ink-2: #3c4a66;
  --line: rgba(17, 26, 48, 0.14);
  --line-w: rgba(255, 255, 255, 0.2);
  --on-dark: #ffffff;
  --on-dark-2: #c6d3ea;
  --rec: #d6423a;

  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-hero: clamp(2.3rem, 1.2rem + 4.1vw, 4.6rem);
  --fs-h2: clamp(1.75rem, 1.15rem + 2.3vw, 3rem);
  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --gutter: clamp(1.25rem, 0.6rem + 3.2vw, 4rem);
  --section: clamp(5rem, 3.5rem + 6vw, 9rem);
  --max: 76rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius: 4px;
  --d0: 0ms; /* 暖簾の幕があるときは、最初の演出をその分だけ遅らせる */
}
.intro { --d0: 950ms; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.9; letter-spacing: 0.02em; overflow-wrap: anywhere; line-break: strict; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ai-4); outline-offset: 3px; }
#main:focus { outline: none; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 70; padding: 0.6rem 1rem; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--mono); font-weight: 500; font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ai-4); }

/* ---------- 暖簾の幕（最初の1回だけ） ---------- */
.curtain { display: none; }
.intro .curtain { display: grid; position: fixed; inset: 0; z-index: 60; grid-template-columns: repeat(4, 1fr); gap: 3px; pointer-events: none; }
.intro .curtain span { background-color: var(--ai-5); background-image: var(--p-asanoha-d, none); background-size: 44px; animation: noren-up 720ms cubic-bezier(0.7, 0, 0.25, 1) 480ms forwards; }
.intro .curtain span:nth-child(2) { animation-delay: 540ms; }
.intro .curtain span:nth-child(3) { animation-delay: 600ms; }
.intro .curtain span:nth-child(4) { animation-delay: 660ms; }
.intro .curtain b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); letter-spacing: 0.04em; animation: curtain-logo 900ms var(--ease) both; }
@keyframes noren-up { to { transform: translateY(-101%); } }
/* 一度終わった幕は、アニメーションの最終フレームに頼らず消す（途中で「動きを減らす」にしても戻らない） */
.intro-done .curtain, .paused .curtain { display: none !important; }
@keyframes curtain-logo { 0% { opacity: 0; transform: translateY(10px); } 30%, 55% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-30px); } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { flex: none; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 0.5rem; text-decoration: none; line-height: 1; }
.brand-mark { font-weight: 900; font-size: 1.375rem; }
.brand-sub { font-family: var(--mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--ink-2); }
.global-nav { display: flex; gap: 1.5rem; margin-left: auto; font-size: 0.9375rem; }
.global-nav a { text-decoration: none; padding-block: 0.5rem; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 180ms var(--ease); }
.global-nav a:hover { background-size: 100% 1px; }
.header-contact { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.2rem; background: var(--ai-5); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9375rem; border-radius: 2px; transition: background-color 160ms var(--ease); }
.header-contact:hover { background: var(--ai-6); }
/* 自動の動きを止めるボタン：どこまで読んでもヘッダーから押せる。動きがあるときだけ見せる */
.pause { display: none; flex: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ai-5); cursor: pointer; transition: border-color 160ms; }
.motion .pause { display: inline-flex; }
.motion .pause + .header-contact { margin-left: -0.9rem; } /* ボタンと問い合わせを近づける */
.pause:hover { border-color: var(--ai-5); }
.pause-ico { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.pause[aria-pressed="true"] .pause-ico { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- 共通の部品 ---------- */
.button { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0 1.5rem; background: var(--ai-5); color: #fff; text-decoration: none; font-weight: 700; border-radius: 2px; transition: background-color 160ms var(--ease); }
.button:hover { background: var(--ai-6); }
.arrow { display: inline-block; transition: transform 180ms var(--ease); }
.button:hover .arrow { transform: translateX(4px); }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; transition: text-underline-offset 160ms var(--ease), color 160ms; }
.text-link:hover { text-underline-offset: 0.55em; color: var(--ai-4); }
.text-link:hover .arrow { transform: translateY(3px); }
.section-label { display: flex; gap: 0.9rem; margin-bottom: 1.2rem; }
.section-label span { color: var(--ink-2); }
.section-title { font-size: var(--fs-h2); font-weight: 900; line-height: 1.3; font-feature-settings: "palt" 1; text-wrap: balance; }
.sec-lead { margin-top: 1.4rem; max-width: 34em; color: var(--ink-2); }

/* 線画：.f＝薄い塗り、.k＝下の線を隠す塗り */
.motif-svg { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.motif-svg .f { fill: currentColor; fill-opacity: 0.16; stroke: none; }
.motif-svg .k { fill: var(--knock, var(--bg, var(--paper))); stroke: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: clamp(38rem, calc(100svh - var(--header-h)), 54rem); display: flex; align-items: center; background: var(--paper); }
.hero-grid { position: relative; z-index: 3; }
.hero-copy { max-width: 35rem; padding-block: 3rem 4.5rem; }
.hero-eyebrow { margin-bottom: 1.4rem; }
.hero-title { font-size: var(--fs-hero); font-weight: 900; line-height: 1.16; letter-spacing: 0.02em; font-feature-settings: "palt" 1; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line > span { display: block; } /* 文字を大きくしても隠れないよう、収まらなければ折り返す */
.hero-lead { margin-top: 1.6rem; max-width: 27em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; margin-top: 1.8rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.6rem 0; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.hero-facts > div { padding-right: 1.4rem; margin-right: 1.4rem; border-right: 1px solid var(--line); }
.hero-facts > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
/* 対応SNSは長いので1行を占め、支援先と目的を次の行に並べる */
.hero-facts > div:first-child { flex-basis: 100%; border-right: 0; margin-right: 0; padding-right: 0; }
.hero-facts dt { font-size: 0.75rem; color: var(--ink-2); line-height: 1.4; }
.hero-facts dd { font-size: 0.9375rem; font-weight: 700; line-height: 1.6; }

.hero-visual { position: absolute; top: 0; bottom: 0; left: 46%; right: 0; z-index: 1; }
.feed { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.feed-tilt { position: absolute; inset: -30% -6% -30% 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; transform: rotate(-9deg); }
.col { display: flex; flex-direction: column; gap: 16px; will-change: transform; } /* 流れる動きは .motion のときだけ */
.col.down { animation-name: scroll-down; }
@keyframes scroll-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes scroll-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

/* 投稿1枚 */
.card { position: relative; flex: none; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 10px; overflow: hidden; background-color: var(--bg, var(--ai-5)); background-image: var(--pat, none); background-size: var(--ps, 44px); }
.card::before { content: ""; position: absolute; inset: 0; background: var(--bg, var(--ai-5)); opacity: 0.62; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 27, 53, 0) 52%, rgba(16, 27, 53, 0.62)); }
.card.light::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, 0.8)); }
.motif { position: absolute; z-index: 1; left: 11%; right: 11%; top: 15%; color: #fff; }
.card.light .motif { color: var(--ai-5); }
.seg { position: absolute; z-index: 2; top: 8px; left: 8px; right: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.seg i { height: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.45); }
.seg i:first-child { background: #fff; }
.card.light .seg i { background: rgba(31, 58, 110, 0.25); }
.card.light .seg i:first-child { background: var(--ai-5); }
.seg.reel i:first-child { background: rgba(255, 255, 255, 0.45) linear-gradient(#fff, #fff) left / 0 100% no-repeat; }
.card.light .seg.reel i:first-child { background: rgba(31, 58, 110, 0.25) linear-gradient(var(--ai-5), var(--ai-5)) left / 0 100% no-repeat; }
.cap { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 11px; display: grid; gap: 4px; color: #fff; }
.cap b { font-size: 13px; font-weight: 900; line-height: 1.35; letter-spacing: 0.02em; }
.cap span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; opacity: 0.8; }
.card.light .cap { color: var(--ai-6); }
.play { position: absolute; z-index: 2; right: 10px; top: 20px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.88); }
.play::before { content: ""; position: absolute; left: 10px; top: 8px; border-left: 8px solid var(--ai-5); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.like { position: absolute; z-index: 3; right: 12px; bottom: 52px; width: 24px; height: 24px; fill: var(--rec); stroke: #fff; stroke-width: 1.4; transform: scale(0); opacity: 0; }
/* 文字が主役の表紙 */
.card.cover { display: flex; flex-direction: column; padding: 18px 12px 12px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.card.cover::before, .card.cover::after { content: none; }
.cover-title { font-size: 19px; font-weight: 900; line-height: 1.3; letter-spacing: 0.02em; }
.cover-title::before { content: ""; display: block; width: 18px; height: 3px; margin-bottom: 10px; background: var(--ai-4); }
.cover-ico { width: 62%; margin-top: auto; align-self: flex-end; color: var(--ai-5); --knock: var(--paper); }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ai-2); }
.dots i:first-child { background: var(--ai-5); }
.card.cover-dark { background: var(--ai-6); color: #fff; box-shadow: none; }
.cover-dark .cover-ico { color: var(--ai-3); --knock: var(--ai-6); }
.cover-dark .cover-title::before { background: var(--ai-3); }
.cover-dark .dots i { background: rgba(255, 255, 255, 0.3); }
.cover-dark .dots i:first-child { background: #fff; }

/* 制作中のスマホ */
.phone { position: absolute; z-index: 2; left: -1.5rem; bottom: 2.5rem; width: 15.5rem; aspect-ratio: 9 / 19; border-radius: 2.3rem; background: var(--ai-6); padding: 0.6rem; transform: rotate(-4deg); box-shadow: 0 40px 70px -30px rgba(16, 27, 53, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.screen { position: relative; height: 100%; border-radius: 1.75rem; overflow: hidden; background: #fff; }
.tabs { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.5rem 0.5rem 0.45rem; background: #fff; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 700; text-align: center; color: var(--ink-2); }
.tab-bar { position: absolute; left: 0.5rem; bottom: -1px; width: calc((100% - 1rem) / 4); height: 2px; background: var(--ai-5); transform: translateX(calc(var(--tab, 0) * 100%)); transition: transform 420ms var(--ease); }
.scene { position: absolute; inset: 0; padding: 3.9rem 0.7rem 0.8rem; visibility: hidden; transform: translateX(100%); }
.phone:not(.run) .s-plan, .scene.is-active { visibility: visible; transform: none; }
.scene.is-active { transition: transform 560ms var(--ease); }
.scene.is-leaving { visibility: visible; transform: translateX(-30%); opacity: 0; transition: transform 560ms var(--ease), opacity 420ms; }
.scene-title { margin-bottom: 0.5rem; font-size: 11px; font-weight: 700; line-height: 1.5; }
.scene-title small { font-weight: 400; color: var(--ink-2); margin-left: 0.3rem; }
.tick { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--ai-5); border: 1.5px solid var(--ai-5); }
.tick::after { content: ""; position: absolute; left: 3.5px; top: 1.5px; width: 3.5px; height: 6.5px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.cut { display: grid; grid-template-columns: 2.6rem 1fr 14px; gap: 0.55rem; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
.cut .th { aspect-ratio: 9 / 16; border-radius: 3px; overflow: hidden; background-color: var(--bg); background-image: var(--pat, none); background-size: 20px; color: #fff; display: grid; place-items: center; }
.cut .th .motif-svg { width: 84%; stroke-width: 5; }
.cut .th[data-pat="shippo-l"] { color: var(--ai-5); }
.cut b { display: block; font-size: 11px; }
.cut span { font-family: var(--mono); font-size: 9px; color: var(--ink-2); }
.finder { position: absolute; inset: 3.4rem 0 0; overflow: hidden; background-color: var(--ai-3); background-image: var(--p-asanoha-l, none); background-size: 44px; }
.finder::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.28), rgba(16, 27, 53, 0.35) 75%); }
.grid { position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent calc(33.3% - 0.5px), rgba(255,255,255,.55) calc(33.3% - 0.5px), rgba(255,255,255,.55) calc(33.3% + 0.5px), transparent calc(33.3% + 0.5px), transparent calc(66.6% - 0.5px), rgba(255,255,255,.55) calc(66.6% - 0.5px), rgba(255,255,255,.55) calc(66.6% + 0.5px), transparent calc(66.6% + 0.5px)),
  linear-gradient(180deg, transparent calc(33.3% - 0.5px), rgba(255,255,255,.55) calc(33.3% - 0.5px), rgba(255,255,255,.55) calc(33.3% + 0.5px), transparent calc(33.3% + 0.5px), transparent calc(66.6% - 0.5px), rgba(255,255,255,.55) calc(66.6% - 0.5px), rgba(255,255,255,.55) calc(66.6% + 0.5px), transparent calc(66.6% + 0.5px)); }
.finder-dish { position: absolute; left: 12%; right: 12%; top: 24%; z-index: 1; color: #fff; --knock: var(--ai-3); }
.finder-dish .motif-svg { stroke-width: 2; }
.rec { position: absolute; z-index: 2; top: 0.7rem; left: 0.7rem; display: flex; gap: 0.35rem; align-items: center; padding: 1px 7px; border-radius: 2px; background: rgba(16, 27, 53, 0.7); color: #fff; font-family: var(--mono); font-size: 9px; }
.rec b { font-weight: 500; }
.rec i { width: 6px; height: 6px; border-radius: 50%; background: var(--rec); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.focus { position: absolute; z-index: 2; left: 50%; top: 45%; width: 4.4rem; height: 4.4rem; margin: -2.2rem 0 0 -2.2rem; border: 1.5px solid #fff; border-radius: 3px; }
.cut-label { position: absolute; z-index: 2; left: 0.7rem; bottom: 4.6rem; padding: 2px 8px; border-radius: 2px; background: #fff; color: var(--ai-5); font-size: 9.5px; font-weight: 700; }
.shutter { position: absolute; z-index: 2; left: 50%; bottom: 1rem; width: 2.8rem; height: 2.8rem; margin-left: -1.4rem; border-radius: 50%; border: 3px solid #fff; background: rgba(255, 255, 255, 0.35); }
.shutter::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--rec); }
.preview { position: relative; height: 46%; border-radius: 5px; overflow: hidden; background-color: var(--ai-5); background-image: var(--p-seigaiha-d, none); background-size: 34px; }
.preview-dish { position: absolute; left: 18%; right: 18%; top: 8%; color: #fff; }
.caption { position: absolute; left: 50%; bottom: 0.7rem; transform: translateX(-50%); padding: 2px 9px; background: #fff; color: var(--ai-5); font-size: 9px; font-weight: 700; font-style: normal; border-radius: 2px; white-space: nowrap; }
.tl { position: relative; margin-top: 0.7rem; display: grid; gap: 5px; }
.track { display: flex; gap: 3px; height: 1.2rem; }
.track span { flex: 1; border-radius: 3px; }
.track.clips span { background-color: var(--bg); background-image: var(--pat, none); background-size: 14px; }
.track.text span { background: var(--ai-1); border: 1px solid var(--ai-3); }
.track.wave { align-items: flex-end; gap: 2px; height: 1rem; }
.track.wave span { background: var(--ai-2); }
.head { position: absolute; top: -4px; bottom: -4px; left: 30%; width: 2px; background: var(--rec); }
.edit-note { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0.8rem; }
.edit-note span { padding: 1px 7px; border: 1px solid var(--ai-3); border-radius: 2px; font-size: 9.5px; font-weight: 700; color: var(--ai-5); }
.checks { display: grid; gap: 0.3rem; }
.checks div { display: grid; grid-template-columns: 1fr 14px; column-gap: 0.4rem; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.checks dt { grid-column: 1; font-size: 9px; color: var(--ink-2); line-height: 1.4; }
.checks dd { grid-column: 1; font-size: 10.5px; font-weight: 700; line-height: 1.5; }
.checks .tick { grid-column: 2; grid-row: 1 / span 2; }
.memo { margin-top: 0.7rem; padding: 0.5rem 0.6rem; border-radius: 4px; background: var(--mist); border-left: 3px solid var(--ai-5); font-size: 10px; line-height: 1.6; }
.memo b { display: block; font-size: 10.5px; color: var(--ai-5); }

/* スマホの横の「いまの工程」 */
.phone-step { position: absolute; z-index: 3; left: 14.6rem; bottom: 6.5rem; width: 15rem; padding: 0.8rem 1rem 0.9rem; background: #fff; border-radius: 4px; box-shadow: 0 20px 40px -20px rgba(16, 27, 53, 0.45), 0 0 0 1px var(--line); }
.phone-step .label b { font-weight: 500; color: var(--ai-5); }
.ps-text { margin-top: 0.3rem; font-size: 0.875rem; font-weight: 700; line-height: 1.55; }
.ps-bar { display: block; height: 2px; margin-top: 0.6rem; background: var(--ai-1); overflow: hidden; }
.ps-bar i { display: block; height: 100%; background: var(--ai-5); transform-origin: left; transform: scaleX(0); }

.visual-note { position: absolute; z-index: 4; right: calc(var(--gutter) + 8.5rem); bottom: 1.55rem; font-size: 0.6875rem; color: var(--ink-2); background: rgba(255, 255, 255, 0.92); padding: 0.1rem 0.5rem; }

/* ---------- 仕事の言葉が流れる帯 ---------- */
.marquee { overflow: hidden; background: var(--ai-6); color: #fff; }
.marquee-track { display: flex; width: max-content; }
.motion .marquee-track { animation: marquee 48s linear infinite; }
.marquee-track li { display: flex; align-items: center; padding: 1.15rem 1.1rem; white-space: nowrap; font-size: clamp(1.05rem, 0.8rem + 1vw, 1.5rem); font-weight: 700; letter-spacing: 0.06em; }
.marquee-track li::after { content: ""; width: 0.55rem; height: 0.55rem; margin-left: 2.2rem; background: var(--ai-3); transform: rotate(45deg); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 01 サービス：4つの仕事と、次の企画に戻る輪 ---------- */
.service { padding-block: var(--section); background: var(--paper); }
.service .sec-head { max-width: 46rem; }
.cycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 0.5rem + 2vw, 2.5rem); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.work { position: relative; display: flex; flex-direction: column; }
.work:not(:last-child) .work-screen::after { content: ""; position: absolute; top: 50%; right: calc(clamp(1.25rem, 0.5rem + 2vw, 2.5rem) / -2 - 4px); width: 12px; height: 12px; border: solid var(--ai-4); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.work-screen { position: relative; min-height: 27rem; max-width: 100%; display: grid; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -34px rgba(16, 27, 53, 0.45); background-image: linear-gradient(var(--ai-1), var(--ai-1)); }
.work-screen .scene { position: relative; inset: auto; padding: 1.1rem 1rem; visibility: visible; transform: none; background: #fff; border-radius: 14px; overflow: hidden; }
.work-screen .s-shoot { padding: 0; }
.work-screen .finder { position: relative; inset: auto; height: 100%; min-height: 27rem; }
.work-screen .scene-title { font-size: 0.875rem; }
.work-screen .cut { grid-template-columns: 2.2rem 1fr 14px; gap: 0.6rem; }
.work-screen .cut b { font-size: 0.875rem; }
.work-screen .cut span { font-size: 0.8125rem; }
.work-screen .preview { height: 13rem; }
.work-screen .caption { font-size: 0.8125rem; }
.anno { display: none; }
.work-screen .anno { display: block; position: absolute; z-index: 3; padding: 2px 8px; border-radius: 2px; background: var(--ai-6); color: #fff; font-size: 0.8125rem; font-weight: 700; line-height: 1.5; max-width: calc(100% - 1.2rem); }
.work-screen .anno::before { content: ""; position: absolute; width: 1px; background: var(--ai-6); }
.work-screen .anno-frame { left: 50%; top: 15%; transform: translateX(-50%); width: max-content; }
.work-screen .anno-cap { right: 0.6rem; top: 0.6rem; background: #fff; color: var(--ai-5); box-shadow: 0 0 0 1px var(--ai-3); }
.work-screen .focus { top: 24%; left: 10%; width: 80%; height: 46%; margin: 0; border: 2px dashed #fff; }
.work-screen .pick { margin-inline: -0.5rem; padding-inline: 0.5rem; background: var(--ai-1); border-radius: 4px; }
.track.clips span { display: grid; place-items: center; color: #fff; }
.track.clips span[data-pat="shippo-l"] { color: var(--ai-5); }
.track.clips .motif-svg { width: 1rem; stroke-width: 7; }
.track.clips .sel { outline: 2px solid var(--rec); outline-offset: 1px; }
.work-screen .finder { inset: 0; }
.work-screen .tl { margin-top: 1rem; gap: 7px; }
.work-screen .track { height: 1.5rem; }
.work-screen .edit-note span { font-size: 0.8125rem; padding: 2px 9px; }
.work-screen .checks { gap: 0.5rem; }
.work-screen .checks dt { font-size: 0.8125rem; }
.work-screen .checks dd { font-size: 0.875rem; }
.work-screen .memo { margin-top: 1rem; font-size: 0.8125rem; }
.work-screen .memo b { font-size: 0.875rem; }
.work-no { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.work-no span { color: var(--ink-2); }
.work h3 { margin-top: 0.4rem; font-size: 1.25rem; font-weight: 900; line-height: 1.45; }
.work > p:not(.label):not(.ask) { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.8; }
.ask { margin-top: auto; padding-top: 1rem; font-size: 0.875rem; font-weight: 700; line-height: 1.6; }
.ask span { display: block; margin-bottom: 0.15rem; padding-top: 0.7rem; border-top: 1px dashed var(--ai-3); font-size: 0.75rem; font-weight: 400; color: var(--ai-4); }
.loop { position: relative; margin-top: 1rem; height: 60px; }
.loop svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--ai-4); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.loop span { position: absolute; left: 50%; bottom: 8px; transform: translate(-50%, 50%); padding: 0.2rem 0.9rem; background: var(--paper); color: var(--ai-5); font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.loop-path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 0.5rem + 2.5vw, 3rem); margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.offer-item { padding-top: 1.4rem; border-top: 3px solid var(--ai-5); }
.offer-item h3 { margin-top: 0.5rem; font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 900; line-height: 1.45; }
.offer-item > p:not(.label) { margin-top: 0.7rem; color: var(--ink-2); max-width: 32em; }
.task-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.task-list li { padding: 0.25rem 0.75rem; border: 1px solid var(--ai-3); border-radius: 2px; font-size: 0.875rem; font-weight: 700; color: var(--ai-5); background: var(--paper); }
.offer-item .text-link { margin-top: 0.8rem; }
.team-note { margin-top: 2.2rem; font-size: 0.875rem; color: var(--ink-2); }

/* ---------- 02 集客と採用：2つの行き先 ---------- */
.purpose { padding-block: var(--section); background: var(--mist); }
.purpose-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.routes { display: grid; }
.route { padding-block: 1.5rem; }
.route-b { border-top: 1px solid var(--line); }
.route-note { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--ink-2); }
.route-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.2rem; }
.route-name b { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 900; line-height: 1.2; color: var(--ai-5); }
.route-name span { font-size: 0.9375rem; color: var(--ink-2); }
.route-line { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.6rem; --node: clamp(3.75rem, 3rem + 2.4vw, 5.25rem); }
.route-line::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: calc(var(--node) / 2); height: 2px; background: var(--ai-4); transform-origin: left; }
.route-b .route-line::before { background: repeating-linear-gradient(90deg, var(--ai-4) 0 8px, transparent 8px 14px); }
.route-line li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.node { position: relative; display: grid; place-items: center; width: var(--node); height: var(--node); border-radius: 50%; background: var(--paper); border: 2px solid var(--ai-4); color: var(--ai-5); --knock: var(--paper); }
.node .motif-svg { width: 64%; stroke-width: 3.2; }
.node-end { background: var(--ai-5); border-color: var(--ai-5); color: #fff; --knock: var(--ai-5); }
.route-line b { margin-top: 0.7rem; font-size: 1rem; font-weight: 900; line-height: 1.4; }
.route-line b span { display: inline-block; } /* 「来店・問い合わせ」を語の途中で折らない */
.route-line small { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- 03 運用が御社に移る図 ---------- */
.handover { position: relative; background: var(--ai-1); }
.handover-stage { padding-block: var(--section); }
.handover-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: start; }
.handover .section-title { font-size: clamp(1.6rem, 1.05rem + 1.9vw, 2.6rem); }
.states { margin-top: 2rem; display: grid; border-top: 1px solid var(--line); }
.states li { position: relative; padding: 1.1rem 0 1.1rem 1.4rem; border-bottom: 1px solid var(--line); transition: opacity 300ms var(--ease); }
.states li::before { content: ""; position: absolute; left: 0; top: 1.1rem; bottom: 1.1rem; width: 3px; background: var(--ai-5); transform: scaleY(0); transform-origin: top; transition: transform 400ms var(--ease); }
.states h3 { font-size: 1.125rem; font-weight: 900; line-height: 1.5; margin-top: 0.2rem; }
.states p:not(.state-when) { margin-top: 0.3rem; font-size: 0.9375rem; color: var(--ink-2); }
.handover.ready .states li { opacity: 1; }
.handover.ready .states li h3 { color: var(--ink-2); transition: color 300ms; }
.handover.ready[data-state="1"] .states li[data-step="1"],
.handover.ready[data-state="2"] .states li[data-step="2"],
.handover.ready[data-state="3"] .states li[data-step="3"] { opacity: 1; }
.handover.ready[data-state="1"] .states li[data-step="1"] h3,
.handover.ready[data-state="2"] .states li[data-step="2"] h3,
.handover.ready[data-state="3"] .states li[data-step="3"] h3 { color: var(--ink); }
.handover[data-state="1"] .states li[data-step="1"]::before,
.handover[data-state="2"] .states li[data-step="2"]::before,
.handover[data-state="3"] .states li[data-step="3"]::before { transform: scaleY(1); }

.diagram { background: var(--paper); border: 1px solid var(--line); padding: clamp(1rem, 0.6rem + 1.4vw, 1.75rem); }
.switch { display: inline-grid; grid-auto-flow: column; border: 1px solid var(--ai-5); border-radius: 2px; margin-bottom: 1.2rem; }
.switch button { min-height: 2.75rem; padding: 0 1rem; border: 0; background: transparent; color: var(--ai-5); font-size: 0.8125rem; font-weight: 700; cursor: pointer; transition: background-color 160ms var(--ease), color 160ms; }
.switch button + button { border-left: 1px solid var(--ai-5); }
.switch button[aria-pressed="true"] { background: var(--ai-5); color: #fff; }
.switch button:hover:not([aria-pressed="true"]) { background: var(--ai-1); }

.dia { position: relative; --lane: 6.8rem; --label: 5.2rem; height: calc(var(--lane) * 3); }
.lanes { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(3, 1fr); }
.lane { display: flex; align-items: center; border-top: 1px dashed rgba(17, 26, 48, 0.2); }
.lane:last-child { border-bottom: 1px dashed rgba(17, 26, 48, 0.2); }
.lane:nth-child(1) { background: rgba(31, 58, 110, 0.06); }
.lane:nth-child(3) { background: rgba(135, 165, 207, 0.14); }
.lane span { width: var(--label); padding-left: 0.6rem; font-size: 0.8125rem; font-weight: 900; }
.tasks { position: absolute; left: var(--label); right: 0; top: 0; height: var(--lane); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; padding: 0.5rem; }
.t { --row: 0; --knock: var(--ai-5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; border-radius: var(--radius); background: var(--ai-5); color: #fff; font-size: 0.8125rem; font-weight: 700; line-height: 1.3; text-align: center; transform: translateY(calc(var(--row) * var(--lane))); transition: transform 650ms var(--ease), background-color 450ms var(--ease), color 450ms var(--ease), box-shadow 450ms; box-shadow: 0 6px 14px -8px rgba(16, 27, 53, 0.5); }
.t-ico { width: 2.7rem; }
.t-ico .motif-svg { stroke-width: 3.6; }
.t-shoot { transition-delay: 60ms; }
.t-edit { transition-delay: 120ms; }
.t-post { transition-delay: 180ms; }
.t-review { transition-delay: 240ms; }
/* なか：企画と振り返りは一緒に、投稿の準備は御社へ */
.handover[data-state="2"] .t-plan, .handover[data-state="2"] .t-review { --row: 1; --knock: var(--ai-3); background: var(--ai-3); color: var(--ink); }
.handover[data-state="2"] .t-post { --row: 2; --knock: var(--paper); background: var(--paper); color: var(--ai-5); box-shadow: inset 0 0 0 1.5px var(--ai-5); }
/* 1年を目安に：すべて御社へ。私たちは確認と相談 */
.handover[data-state="3"] .t { --row: 2; --knock: var(--paper); background: var(--paper); color: var(--ai-5); box-shadow: inset 0 0 0 1.5px var(--ai-5); }
.advice { position: absolute; right: 0.6rem; top: calc(var(--lane) / 2); transform: translateY(-50%); display: flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: 2px; background: var(--paper); border: 1px dashed var(--ai-4); color: var(--ai-4); font-size: 0.75rem; font-weight: 700; opacity: 0; transition: opacity 400ms var(--ease) 500ms; }
.advice svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.handover[data-state="3"] .advice { opacity: 1; }
.handover[data-state="3"] .lane:nth-child(1) span { color: var(--ai-4); }

/* スマホ用の表（PCでは図で見せる） */
/* PCでは目に見えないが読み上げられる（図の代わりに担当を伝える） */
.matrix-wrap { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.diagram { position: relative; }
.diagram-kicker { margin-bottom: 1rem; font-size: 0.875rem; line-height: 1.7; color: var(--ink-2); }
.matrix { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.8125rem; line-height: 1.4; }
.matrix caption { text-align: left; font-weight: 900; font-size: 0.9375rem; padding-bottom: 0.6rem; }
.matrix th, .matrix td { padding: 0.3rem 0.2rem; text-align: center; border-bottom: 1px solid var(--line); }
.matrix thead th { font-size: 0.8125rem; color: var(--ink-2); font-weight: 700; }
.matrix tbody th { text-align: left; font-weight: 700; }
.matrix thead th:first-child { width: 6.2em; text-align: left; }
.matrix td { font-weight: 700; font-size: 0.8125rem; }
.matrix .m-r, .matrix .m-w, .matrix .m-s { padding: 0.3rem 0.15rem; }
.matrix .m-r { color: #fff; background: var(--ai-5); background-clip: content-box; }
.matrix .m-w { color: var(--ink); background: var(--ai-3); background-clip: content-box; }
.matrix .m-s { color: var(--ai-5); background: var(--ai-1); background-clip: content-box; }
.matrix .m-role td { font-weight: 400; color: var(--ink-2); font-size: 0.6875rem; }

.keep { margin-top: 1.2rem; }
.keep-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.keep-tag { font-size: 0.6875rem; color: var(--ink-2); border: 1px solid var(--line); padding: 0 0.45rem; border-radius: 2px; }
.keep-doc { position: relative; padding: 1rem 1.1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; box-shadow: 4px 4px 0 var(--ai-1), 8px 8px 0 var(--ai-2); transition: border-color 450ms var(--ease), transform 450ms var(--ease); }
.keep-doc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ai-2); transition: background-color 450ms var(--ease); }
.keep-doc .doc-title small { margin-left: 0.8rem; font-size: 0.75rem; font-weight: 400; color: var(--ink-2); }
.doc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 0.6rem; }
.doc-cols b { display: block; font-size: 0.8125rem; color: var(--ai-5); }
.doc-lines { display: grid; gap: 0.55rem; margin-top: 0.5rem; }
.doc-lines i { height: 1px; border-bottom: 1px dashed rgba(17, 26, 48, 0.28); }
.handover[data-state="3"] .keep-doc { border-color: var(--ai-5); transform: translateY(-3px); }
.handover[data-state="3"] .keep-doc::before { background: var(--ai-5); }
.keep ul.unused { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.keep li { position: relative; padding: 0.8rem 0.85rem 0.9rem; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; box-shadow: 3px 3px 0 var(--ai-1); transition: border-color 450ms var(--ease), box-shadow 450ms var(--ease), transform 450ms var(--ease); }
.keep li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ai-2); transition: background-color 450ms var(--ease); }
.doc-title { font-size: 0.875rem; font-weight: 900; }
.keep dl { margin-top: 0.4rem; display: grid; gap: 0.35rem; }
.keep dl div { display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.4rem; align-items: end; }
.keep dt { font-size: 0.6875rem; color: var(--ink-2); line-height: 1.4; }
.keep dd { height: 0.6rem; border-bottom: 1px dashed rgba(17, 26, 48, 0.25); }
.handover[data-state="3"] .keep li { border-color: var(--ai-5); box-shadow: 3px 3px 0 var(--ai-2); transform: translateY(-3px); }
.handover[data-state="3"] .keep li::before { background: var(--ai-5); }
.handover[data-state="3"] .keep li:nth-child(2) { transition-delay: 90ms; }
.handover[data-state="3"] .keep li:nth-child(3) { transition-delay: 180ms; }
.handover-summary { margin-top: 0.9rem; padding: 0.7rem 0.9rem; border-left: 3px solid var(--ai-5); background: var(--ai-1); font-size: 0.875rem; line-height: 1.7; }
.handover-summary span { display: none; }
.handover-summary b { margin-right: 0.8em; color: var(--ai-5); }
.handover[data-state="1"] .handover-summary [data-s="1"], .handover[data-state="2"] .handover-summary [data-s="2"], .handover[data-state="3"] .handover-summary [data-s="3"] { display: inline; }
.diagram .note { margin-top: 1rem; font-size: 0.8125rem; color: var(--ink-2); }

/* PC：スクロールに合わせて状態が変わる（JSが .scrolly を付けたときだけ） */
@media (min-width: 1101px) and (min-height: 800px) {
  .handover.scrolly { height: 220svh; }
  .handover.scrolly .handover-stage { position: sticky; top: var(--header-h); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: 1.5rem; }
}

/* ---------- 04 進め方：ストーリーの6枚。進むほど藍が深くなる ---------- */
.flow { padding-block: var(--section); background: var(--ai-2); }
.flow-head { max-width: 46rem; }
.flow .section-label span, .flow .sec-lead { color: var(--ink-2); }
.flow .label { color: var(--ai-5); }
.stories-scroll { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.stories-scroll:focus-visible { outline-offset: 6px; }
.stories { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.story { --bgc: var(--paper); position: relative; display: flex; flex-direction: column; aspect-ratio: 9 / 16; padding: 1.4rem 1rem 1.2rem; border-radius: 12px; background: var(--bgc); color: var(--ink); box-shadow: 0 24px 40px -30px rgba(16, 27, 53, 0.6); --knock: var(--bgc); }
.story:nth-child(2) { --bgc: var(--ai-1); }
.story:nth-child(3) { --bgc: var(--ai-3); }
.story:nth-child(4) { --bgc: var(--ai-4); color: #fff; }
.story:nth-child(5) { --bgc: var(--ai-5); color: #fff; }
.story:nth-child(6) { --bgc: var(--ai-6); color: #fff; }
.story-bar { position: absolute; top: 0.6rem; left: 0.7rem; right: 0.7rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.story-bar i { position: relative; height: 2px; border-radius: 1px; overflow: hidden; background: rgba(128, 140, 170, 0.35); }
.story-bar i::after { content: ""; position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(0); }
.story:nth-child(1) .story-bar i:nth-child(-n+1)::after,
.story:nth-child(2) .story-bar i:nth-child(-n+2)::after,
.story:nth-child(3) .story-bar i:nth-child(-n+3)::after,
.story:nth-child(4) .story-bar i:nth-child(-n+4)::after,
.story:nth-child(5) .story-bar i:nth-child(-n+5)::after,
.story:nth-child(6) .story-bar i:nth-child(-n+6)::after { transform: none; }
.flow .story-no { color: inherit; }
/* 工程ごとの小さな絵：同じ素材（投稿の画面・設計書・一皿・編集）を、工程ごとに見せ方を変える */
.story { --sv: var(--ai-5); }
.story:nth-child(n+4) { --sv: #fff; }
.story-visual { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; margin-top: 1.1rem; border-radius: 8px; border: 1px solid rgba(128, 140, 170, 0.35); border-color: color-mix(in srgb, currentColor 22%, transparent); background: color-mix(in srgb, currentColor 5%, transparent); overflow: hidden; font-size: 0.625rem; line-height: 1.3; }
.sv-check { display: flex; flex-direction: column; gap: 7%; padding: 9% 10%; }
.sv-prof { display: flex; align-items: center; gap: 8%; height: 18%; }
.sv-prof i { height: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--sv); }
.sv-prof b { flex: 1; height: 30%; border-radius: 2px; background: color-mix(in srgb, currentColor 22%, transparent); }
.sv-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.sv-grid i { border-radius: 1px; background: color-mix(in srgb, currentColor 14%, transparent); }
.sv-grid i:nth-child(3n+2) { background: color-mix(in srgb, var(--ai-4) 45%, transparent); }
.sv-lens { position: absolute; right: 16%; bottom: 18%; width: 28%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--sv); background: color-mix(in srgb, var(--bgc) 35%, transparent); }
.sv-lens::after { content: ""; position: absolute; left: 86%; top: 86%; width: 45%; height: 2px; background: var(--sv); transform: rotate(45deg); transform-origin: left center; }
.sv-goal { display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; padding: 0 10%; }
.sv-chip { display: inline-flex; align-items: center; gap: 0.5em; width: fit-content; padding: 0.4em 0.85em 0.4em 0.5em; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.75rem; font-weight: 700; box-shadow: 0 4px 10px -6px rgba(16, 27, 53, 0.5); }
.sv-chip + .sv-chip { margin-left: 22%; }
.sv-ck { position: relative; width: 1.15em; height: 1.15em; border-radius: 50%; background: var(--ai-5); }
.sv-ck::after { content: ""; position: absolute; left: 34%; top: 20%; width: 28%; height: 48%; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sv-lines { display: grid; gap: 5px; }
.sv-lines i { height: 3px; border-radius: 2px; background: color-mix(in srgb, currentColor 20%, transparent); }
.sv-lines i:last-child { width: 60%; }
.sv-doc { display: flex; flex-direction: column; gap: 7%; padding: 10% 9% 8%; background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: 4px 4px 0 var(--ai-2); }
.sv-doc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ai-2); }
.sv-doc > b { font-size: 0.75rem; font-weight: 900; }
.sv-row { display: grid; grid-template-columns: 5.4em 1fr; align-items: end; gap: 0.4em; }
.sv-row em { font-style: normal; color: var(--ink-2); }
.sv-row i { height: 0.6em; border-bottom: 1px dashed rgba(17, 26, 48, 0.3); }
.sv-hand { box-shadow: 4px 4px 0 var(--ai-4); }
.sv-hand::before { background: var(--ai-5); }
.sv-hand .sv-row i { height: 3px; border: 0; border-radius: 2px; background: var(--ai-3); margin-bottom: 0.2em; }
.sv-hand .sv-row:nth-of-type(2) i { width: 70%; }
.sv-hand .sv-row:nth-of-type(3) i { width: 85%; }
.sv-tag { position: absolute; right: 7%; top: 9%; padding: 0.25em 0.6em; border-radius: 2px; background: var(--ai-5); color: #fff; font-weight: 700; }
.sv-frame { position: absolute; inset: 16% 20%; background: linear-gradient(currentColor 0 0) 0 0 / 16% 2px, linear-gradient(currentColor 0 0) 0 0 / 2px 20%, linear-gradient(currentColor 0 0) 100% 0 / 16% 2px, linear-gradient(currentColor 0 0) 100% 0 / 2px 20%, linear-gradient(currentColor 0 0) 0 100% / 16% 2px, linear-gradient(currentColor 0 0) 0 100% / 2px 20%, linear-gradient(currentColor 0 0) 100% 100% / 16% 2px, linear-gradient(currentColor 0 0) 100% 100% / 2px 20%; background-repeat: no-repeat; }
.sv-dish { position: absolute; left: 50%; top: 52%; width: 42%; transform: translate(-50%, -50%); }
.sv-dish .motif-svg { stroke-width: 3.4; }
.sv-rec { position: absolute; left: 7%; top: 7%; display: flex; align-items: center; gap: 0.35em; font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.08em; }
.sv-rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); }
.sv-run { display: flex; flex-direction: column; gap: 12%; padding: 12% 9% 10%; }
.sv-clips { position: relative; display: grid; grid-template-columns: 3fr 2fr 4fr 2fr; gap: 3px; height: 24%; }
.sv-clips i { border-radius: 2px; background: color-mix(in srgb, currentColor 30%, transparent); }
.sv-clips i:nth-child(3) { background: color-mix(in srgb, currentColor 60%, transparent); }
.sv-head { position: absolute; top: -25%; bottom: -25%; left: 38%; width: 2px; background: var(--rec); }
.sv-bars { flex: 1; display: flex; align-items: flex-end; gap: 9%; padding: 0 4%; border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
.sv-bars i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: color-mix(in srgb, currentColor 40%, transparent); }
.story h3 { margin-top: auto; font-size: 1.0625rem; font-weight: 900; line-height: 1.45; }
.story p { margin-top: 0.4rem; font-size: 0.8125rem; line-height: 1.7; opacity: 0.88; }
.swipe-hint { display: none; }
.sn-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sn { display: none; gap: 0.5rem; }
.sn button { width: 2.75rem; height: 2.75rem; border: 1px solid var(--ai-5); border-radius: 2px; background: var(--paper); color: var(--ai-5); font-size: 1rem; cursor: pointer; }
.sn button:disabled { opacity: 0.35; cursor: default; }

/* ---------- 05 よくある質問 ---------- */
.faq { padding-block: var(--section); background: var(--ai-4); color: var(--on-dark); }
.faq-grid, .company-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.faq .label, .company .label, .contact .label { color: var(--ai-1); }
.faq .section-label span, .company .section-label span, .contact .section-label span { color: var(--on-dark-2); }
.qa-list { border-top: 1px solid var(--line-w); }
.qa { border-bottom: 1px solid var(--line-w); }
.qa summary { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 4rem; padding: 0.9rem 3rem 0.9rem 0; font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem); font-weight: 700; line-height: 1.6; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 0.6rem; top: 50%; width: 14px; height: 2px; background: currentColor; transition: transform 260ms var(--ease); }
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.q { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--paper); color: var(--ai-5); font-family: var(--mono); font-size: 0.8125rem; }
.qa p { padding: 0 3rem 1.3rem 3rem; color: var(--ai-1); }
.qa summary:focus-visible { outline-color: #fff; }

/* ---------- 06 会社概要 ---------- */
.company { padding-block: var(--section); background: var(--ai-5); color: var(--on-dark); }
.facts { border-top: 1px solid var(--line-w); }
.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line-w); }
.facts dt { font-size: 0.9375rem; color: var(--on-dark-2); }
.facts dd { font-weight: 700; }
.facts a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.company :focus-visible, .contact :focus-visible, .faq :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

/* ---------- お問い合わせ ---------- */
.contact { position: relative; overflow: hidden; background: var(--ai-6); color: var(--on-dark); }
.contact-feed { position: absolute; inset: 0; opacity: 0.2; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
.contact-feed .feed-tilt { inset: -40% -10% -40% 30%; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.contact-grid { position: relative; z-index: 2; padding-block: clamp(6rem, 4rem + 8vw, 11rem); }
.contact-title { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.2rem); font-weight: 900; line-height: 1.22; font-feature-settings: "palt" 1; }
.contact-text { margin-top: 1.6rem; max-width: 32em; color: var(--on-dark-2); }
.contact-mail { display: inline-flex; align-items: center; gap: 1.2rem; margin-top: 2.4rem; padding: 0.4rem 0 0.7rem; border-bottom: 2px solid var(--ai-3); font-family: var(--mono); font-weight: 500; font-size: clamp(1.1rem, 0.8rem + 1.6vw, 2.2rem); text-decoration: none; transition: border-color 200ms var(--ease); }
.contact-mail:hover { border-color: #fff; }
.contact-mail:hover .arrow { transform: translateX(6px); }

/* ---------- footer ---------- */
.site-footer { overflow: hidden; background: var(--ai-7); color: var(--on-dark); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 2.4rem 1rem; }
.site-footer .brand-sub { color: var(--on-dark-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; font-size: 0.875rem; }
.footer-nav a { text-decoration: none; padding-block: 0.4rem; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 180ms var(--ease); }
.footer-nav a:hover { background-size: 100% 1px; }
.site-footer small { margin-left: auto; color: var(--on-dark-2); font-size: 0.8125rem; }
.footer-word { padding-inline: var(--gutter); font-size: clamp(5rem, 1rem + 17vw, 17rem); font-weight: 900; line-height: 0.8; letter-spacing: 0.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16); transform: translateY(0.12em); user-select: none; }

/* ---------- 法的な表示のページ ---------- */
.legal-head { padding-block: clamp(3rem, 2rem + 4vw, 6rem) 2.5rem; background: var(--ai-1); }
.legal-head h1 { font-size: var(--fs-h2); font-weight: 900; line-height: 1.3; }
.legal-head p:not(.section-label) { margin-top: 1.2rem; max-width: 38em; }
.legal-head .section-label span { color: var(--ai-4); }
.legal-body { padding-block: 3rem var(--section); }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 1.125rem; font-weight: 700; line-height: 1.6; }
.prose h2 + p { margin-top: 0.5rem; }
.prose p + p { margin-top: 1rem; }
.prose a, .legal-facts a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.legal-facts { max-width: 52rem; }
.legal-facts h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }
.legal-facts .facts { border-top-color: var(--line); }
.legal-facts .facts > div { grid-template-columns: 11rem 1fr; border-bottom-color: var(--line); }
.legal-facts .facts dt { color: var(--ink); font-weight: 700; }
.legal-facts .facts dd { font-weight: 400; }

/* =========================================================
   動き（動きを減らす設定でないときだけ。html.motion）
   ========================================================= */
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes col-in { from { opacity: 0; translate: 0 80px; } to { opacity: 1; translate: 0 0; } }
@keyframes phone-in { from { opacity: 0; translate: 0 60px; rotate: 8deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
.motion .hero-eyebrow { animation: fade 400ms var(--ease) calc(var(--d0) + 60ms) both; }
.motion .hero-title .line > span { animation: rise 700ms var(--ease) both; }
.motion .hero-title .line:nth-child(1) > span { animation-delay: calc(var(--d0) + 120ms); }
.motion .hero-title .line:nth-child(2) > span { animation-delay: calc(var(--d0) + 210ms); }
.motion .hero-title .line:nth-child(3) > span { animation-delay: calc(var(--d0) + 300ms); }
.motion .hero-lead, .motion .hero-actions { animation: fade-up 600ms var(--ease) calc(var(--d0) + 650ms) both; }
.motion .hero-facts { animation: fade-up 600ms var(--ease) calc(var(--d0) + 800ms) both; }
.motion .feed-tilt .col { animation: col-in 1000ms var(--ease) both, scroll-up var(--dur, 60s) linear infinite; }
.motion .feed-tilt .col.down { animation: col-in 1000ms var(--ease) both, scroll-down var(--dur, 60s) linear infinite; }
.motion .feed-tilt .col:nth-child(1) { animation-delay: calc(var(--d0) + 200ms), 0s; }
.motion .feed-tilt .col:nth-child(2) { animation-delay: calc(var(--d0) + 300ms), 0s; }
.motion .feed-tilt .col:nth-child(3) { animation-delay: calc(var(--d0) + 400ms), 0s; }
.motion .feed-tilt .col:nth-child(4) { animation-delay: calc(var(--d0) + 500ms), 0s; }
.motion .feed-tilt .col:nth-child(5) { animation-delay: calc(var(--d0) + 600ms), 0s; }
.motion .contact-feed .col { animation: scroll-up var(--dur, 90s) linear infinite; }
.motion .contact-feed .col.down { animation-name: scroll-down; }
.motion .phone { animation: phone-in 900ms var(--ease) calc(var(--d0) + 700ms) both; }
.motion .phone-step { animation: fade-up 600ms var(--ease) calc(var(--d0) + 1300ms) both; }
.motion .global-nav, .motion .pause, .motion .header-contact { animation: fade 400ms var(--ease) calc(var(--d0) + 500ms) both; }

/* 投稿の中の小さな動き：湯気・雨・泡・いいね・リールの進み */
@keyframes steam { from { stroke-dashoffset: 0; opacity: 0.35; } 50% { opacity: 1; } to { stroke-dashoffset: -12; opacity: 0.35; } }
@keyframes rain { from { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(7px); opacity: 0; } }
@keyframes bub { from { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-16px); opacity: 0; } }
@keyframes like { 0%, 68% { transform: scale(0); opacity: 0; } 73% { transform: scale(1.3); opacity: 1; } 78%, 90% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.1) translateY(-6px); opacity: 0; } }
@keyframes reel { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.motif-svg .st { stroke-dasharray: 3 3; }
.motion .motif-svg .st { animation: steam 2.4s linear infinite; }
.motion .motif-svg .rain { animation: rain 1.3s linear infinite; }
.motion .motif-svg .bub { animation: bub 2.2s ease-out infinite; }
.motion .motif-svg .bub.b2 { animation-delay: 1.1s; }
.motion .like { animation: like 7s var(--ease) var(--d, 2s) infinite; }
.motion .seg.reel i:first-child { animation: reel 5s linear infinite; }

/* スマホの画面の中：その画面に切り替わったときに一度だけ */
@keyframes cut-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes tick-on { from { background: var(--paper); border-color: var(--ai-3); } to { background: var(--ai-5); border-color: var(--ai-5); } }
@keyframes focus-in { 0% { transform: scale(1.6); opacity: 0; } 60% { transform: scale(0.94); opacity: 1; } 75% { border-color: #ffd86b; } 100% { transform: scale(1); opacity: 1; border-color: #fff; } }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); } to { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
@keyframes head-run { from { left: 0; } to { left: 100%; } }
@keyframes step-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.motion .is-active .cut, .motion .is-active .checks div, .motion .is-active .edit-note span { animation: cut-in 420ms var(--ease) both; }
.motion .is-active .cut:nth-of-type(1), .motion .is-active .checks div:nth-child(1) { animation-delay: 150ms; }
.motion .is-active .cut:nth-of-type(2), .motion .is-active .checks div:nth-child(2) { animation-delay: 450ms; }
.motion .is-active .cut:nth-of-type(3), .motion .is-active .checks div:nth-child(3) { animation-delay: 750ms; }
.motion .is-active .cut:nth-of-type(4) { animation-delay: 1050ms; }
.motion .is-active .tick { animation: tick-on 260ms var(--ease) both; }
.motion .is-active .cut:nth-of-type(1) .tick { animation-delay: 1300ms; }
.motion .is-active .cut:nth-of-type(2) .tick { animation-delay: 1600ms; }
.motion .is-active .cut:nth-of-type(3) .tick { animation-delay: 1900ms; }
.motion .is-active .cut:nth-of-type(4) .tick { animation-delay: 2200ms; }
.motion .is-active .checks div:nth-child(1) .tick { animation-delay: 1100ms; }
.motion .is-active .checks div:nth-child(2) .tick { animation-delay: 1500ms; }
.motion .is-active .checks div:nth-child(3) .tick { animation-delay: 1900ms; }
.motion .is-active .memo { animation: fade-up 500ms var(--ease) 2200ms both; }
.motion .is-active .focus { animation: focus-in 800ms var(--ease) 300ms both; }
.motion .is-active .shutter { animation: ring 1.2s ease-out 1.1s 2; }
.motion .is-active .cut-label { animation: fade-up 400ms var(--ease) 600ms both; }
.motion .is-active .head { animation: head-run 2.8s linear both; }
@keyframes caption-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.motion .is-active .caption { animation: caption-in 400ms var(--ease) 1200ms both; }
.motion .is-active .edit-note span:nth-child(1) { animation-delay: 1400ms; }
.motion .is-active .edit-note span:nth-child(2) { animation-delay: 1600ms; }
.motion .is-active .edit-note span:nth-child(3) { animation-delay: 1800ms; }
.motion .is-active .edit-note span:nth-child(4) { animation-delay: 2000ms; }

/* 下の段：見えたら一度だけ（motion.js が動いて .rv を付けたときだけ隠す） */
.motion.rv [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.motion.rv [data-reveal].is-in { opacity: 1; transform: none; }
.motion.rv .work:nth-child(2) { transition-delay: 100ms; }
.motion.rv .work:nth-child(3) { transition-delay: 200ms; }
.motion.rv .work:nth-child(4) { transition-delay: 300ms; }
.motion.rv .route-b { transition-delay: 150ms; }
.motion.rv .loop-path { stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--ease) 600ms; }
.motion.rv .loop-tip, .motion.rv .loop span { opacity: 0; transition: opacity 400ms var(--ease) 1800ms; }
.motion.rv .loop.is-in .loop-path { stroke-dashoffset: 0; }
.motion.rv .loop.is-in .loop-tip, .motion.rv .loop.is-in span { opacity: 1; }
.motion.rv .route-line::before { transform: scaleX(0); transition: transform 1100ms var(--ease) 400ms; }
.motion.rv .route.is-in .route-line::before { transform: scaleX(1); }
.motion.rv .route .node { transform: scale(0.6); opacity: 0; transition: transform 500ms var(--ease), opacity 500ms var(--ease); }
.motion.rv .route.is-in .node { transform: none; opacity: 1; }
.motion.rv .route.is-in li:nth-child(2) .node { transition-delay: 700ms; }
.motion.rv .route.is-in li:nth-child(3) .node { transition-delay: 1200ms; }
@keyframes seg-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes story-pop { 0% { transform: none; } 40% { transform: translateY(-10px); } 100% { transform: none; } }
.motion.rv .stories .story-bar i::after { transform: scaleX(0); }
.motion.rv .stories.is-in .story-bar i::after { animation: seg-fill 380ms linear both; }
.motion.rv .stories.is-in .story:nth-child(1) .story-bar i:nth-child(n+2)::after,
.motion.rv .stories.is-in .story:nth-child(2) .story-bar i:nth-child(n+3)::after,
.motion.rv .stories.is-in .story:nth-child(3) .story-bar i:nth-child(n+4)::after,
.motion.rv .stories.is-in .story:nth-child(4) .story-bar i:nth-child(n+5)::after,
.motion.rv .stories.is-in .story:nth-child(5) .story-bar i:nth-child(n+6)::after { animation: none; }
.motion.rv .stories.is-in .story-bar i:nth-child(1)::after { animation-delay: 300ms; }
.motion.rv .stories.is-in .story-bar i:nth-child(2)::after { animation-delay: 680ms; }
.motion.rv .stories.is-in .story-bar i:nth-child(3)::after { animation-delay: 1060ms; }
.motion.rv .stories.is-in .story-bar i:nth-child(4)::after { animation-delay: 1440ms; }
.motion.rv .stories.is-in .story-bar i:nth-child(5)::after { animation-delay: 1820ms; }
.motion.rv .stories.is-in .story-bar i:nth-child(6)::after { animation-delay: 2200ms; }
.motion.rv .stories.is-in .story { animation: story-pop 600ms var(--ease) calc(300ms + var(--i) * 380ms) both; }
@keyframes sv-scan { 0%, 100% { transform: none; } 35% { transform: translate(-150%, -10%); } 65% { transform: translate(-70%, -55%); } }
@keyframes sv-play { from { left: 0; } to { left: 100%; } }
@keyframes sv-tag { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.motion .stories.is-in .sv-lens { animation: sv-scan 7s var(--ease) 2.8s infinite; }
.motion .stories.is-in .sv-rec::before { animation: blink 1s steps(2, start) infinite; }
.motion .stories.is-in .sv-head { animation: sv-play 5s linear infinite; }
.motion.rv .stories.is-in .sv-tag { animation: sv-tag 600ms var(--ease) 2.6s both; }

/* 自動の動きを止めたとき：出てくる途中のもの・図の移動は完成形で見せる */
.paused [data-reveal], .paused .cut, .paused .checks div, .paused .memo, .paused .caption, .paused .edit-note span, .paused .cut-label, .paused .focus, .paused .tick, .paused .node, .paused .story { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
.paused .loop-path { stroke-dashoffset: 0 !important; transition: none !important; }
.paused .loop-tip, .paused .loop span { opacity: 1 !important; transition: none !important; }
.paused .route-line::before { transform: none !important; transition: none !important; }
.paused .story-bar i::after { animation: none !important; }
.paused .story:nth-child(1) .story-bar i:nth-child(-n+1)::after { transform: none !important; }
.paused .story:nth-child(2) .story-bar i:nth-child(-n+2)::after { transform: none !important; }
.paused .story:nth-child(3) .story-bar i:nth-child(-n+3)::after { transform: none !important; }
.paused .story:nth-child(4) .story-bar i:nth-child(-n+4)::after { transform: none !important; }
.paused .story:nth-child(5) .story-bar i:nth-child(-n+5)::after { transform: none !important; }
.paused .story:nth-child(6) .story-bar i:nth-child(-n+6)::after { transform: none !important; }
.paused .t, .paused .scene { transition: none !important; }
.paused .caption { transform: translateX(-50%) !important; } /* 字幕は中央寄せの補正を残す */
/* 読み込み直後に止めても、ファーストビューとヘッダーは完成形で見せる（スマホの傾きは構図なので残す） */
.paused .hero-eyebrow, .paused .hero-title .line > span, .paused .hero-lead, .paused .hero-actions, .paused .hero-facts, .paused .phone, .paused .phone-step, .paused .global-nav, .paused .pause, .paused .header-contact { animation-name: none !important; opacity: 1 !important; translate: none !important; rotate: none !important; transition: none !important; }
.paused .hero-title .line > span, .paused .hero-lead, .paused .hero-actions, .paused .hero-facts, .paused .phone-step { transform: none !important; }
.paused .sv-tag { animation: none !important; opacity: 1 !important; transform: none !important; }
/* 「動きを止める」と、見えていない部分は止める */
.paused *, .paused *::before, .paused *::after,
.offscreen *, .offscreen *::before, .offscreen *::after { animation-play-state: paused !important; }

/* ---------- 幅ごとの組み直し ---------- */
@media (min-width: 1101px) {
  .purpose .sec-head, .faq .sec-head, .company .sec-head { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}
@media (max-width: 1200px) {
  .phone-step { left: 13.6rem; width: 13.5rem; }
}
@media (max-width: 1100px) {
  /* ファーストビューは1100px以下で縦に積む（本文とスマホが重ならないように） */
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { max-width: 40rem; padding-block: 2.2rem 1.5rem; }
  .hero-visual { position: relative; order: 2; left: auto; right: auto; height: 32rem; }
  .feed { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 100%); mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 100%); }
  .feed-tilt { inset: -30% -10% -30% -10%; gap: 12px; }
  .phone { left: 50%; bottom: 3.2rem; width: 13rem; margin-left: -6.5rem; }
  .phone-step { left: calc(50% + 7.5rem); bottom: 9rem; width: 13rem; }
  .pause { bottom: 0.8rem; }
  .phone .cut b { font-size: 10px; letter-spacing: 0; }
  .phone .cut { grid-template-columns: 2.1rem 1fr 12px; gap: 0.4rem; }
  .phone .tick { width: 12px; height: 12px; }
  .phone .tick::after { left: 2.8px; top: 1px; }
  .handover-grid { grid-template-columns: 1fr; }
  .handover-copy { max-width: 40rem; }
  .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .work:nth-child(2) .work-screen::after { display: none; }
  .loop { display: none; }
  .stories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story { aspect-ratio: 4 / 5; }
  .purpose-grid, .faq-grid, .company-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .global-nav { display: none; }
  .header-contact { margin-left: auto; }
  .motion .pause { margin-left: auto; }
  .motion .pause + .header-contact { margin-left: -0.9rem; }
}
@media (max-width: 860px) {
  .handover-summary { display: none; } /* 表で3つの状態を一度に見せるので要らない */
  .hero-copy { max-width: none; }
  .feed-tilt { inset: -30% -18% -30% -18%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feed-tilt .col:nth-child(5) { display: none; }
  .tabs { font-size: 8.5px; padding-inline: 0.3rem; letter-spacing: 0; }
  .contact-feed { opacity: 0.12; }
  .hero-facts { margin-top: 1.8rem; }
  /* 移る図：スマホでは表で3つの状態を一度に見せる */
  .switch, .dia, .phone-step { display: none; }
  .handover.ready .states li { opacity: 1; }
  .matrix-wrap { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; }
  .keep { margin-top: 1.6rem; }
}
@media (max-width: 700px) {
  /* 4つの仕事とストーリーは横に送る */
  .cycle, .stories { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72vw, 18rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 1rem; scroll-padding-inline: var(--gutter); }
  .stories-scroll { overflow: visible; }
  .stories { grid-auto-columns: min(62vw, 15rem); }
  .work, .story { scroll-snap-align: start; }
  .story { aspect-ratio: 3 / 4; }
  .work .work-screen::after { display: none; }
  .swipe-hint { display: block; margin-top: 0.4rem; font-size: 0.8125rem; color: var(--ink-2); }
  .sn { display: flex; }
  .route-line { gap: 0.4rem; }
  .route-line b { font-size: 0.875rem; }
  .route-line small { font-size: 0.75rem; letter-spacing: 0; }
  .route-line b { letter-spacing: 0; }
  .offer { grid-template-columns: 1fr; }
  .facts > div, .legal-facts .facts > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .qa p { padding: 0 0 1.3rem 3rem; }
}
@media (max-width: 560px) {
  :root { --header-h: 3.5rem; }
  .brand-mark { font-size: 1.2rem; }
  .header-contact { min-height: 2.5rem; padding: 0 0.85rem; font-size: 0.8125rem; }
  .header-inner { gap: 0.75rem; flex-wrap: wrap; padding-block: 0.4rem; } /* 文字を大きくして収まらないときは2行にする */
  .pause { width: 2.5rem; height: 2.5rem; }
  .motion .pause + .header-contact { margin-left: -0.25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .button { justify-content: space-between; }
  .text-link { align-self: flex-start; }
  .hero-facts > div { padding-right: 0.9rem; margin-right: 0.9rem; }
  .col { animation-duration: calc(var(--dur, 60s) * 1.4); }
  .motion .feed-tilt .col, .motion .feed-tilt .col.down { animation-duration: 1000ms, calc(var(--dur, 60s) * 1.4); }
  .cap b { font-size: 10px; }
  .cap span { display: none; }
  .cover-title { font-size: 13px; }
  .like { width: 18px; height: 18px; right: 8px; bottom: 40px; }
  .phone-step { width: 9.5rem; top: 1rem; }
  .visual-note { right: auto; left: var(--gutter); bottom: 0.9rem; }
  .keep ul { grid-template-columns: 1fr; }
  .keep dl div { grid-template-columns: 6.5rem 1fr; }
  .contact-feed .feed-tilt { inset: -40% -40% -40% 0; }
  .footer-inner small { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pause { display: none; }
}
@media (max-width: 380px) {
  .brand-sub { display: none; } /* 狭い画面では「Ra・Mu」だけにして、止めるボタンと問い合わせを並べる */
}
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none !important; }
}
