/* Bivrost — AIインフルエンサーのショート動画制作（2026-11）
   実績動画と同じ色と形で組む。色: 生成り・墨・朱・群青・山吹。 */

@font-face {
  font-family: "NSJ Black";
  src: url("fonts/nsj-black-subset.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Black Sub";
  src: url("fonts/archivo-black-subset.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #F3EDE1;
  --paper2: #FFFDF8;
  --ink: #15130F;
  --verm: #FF4B26;
  --cobalt: #2742F5;
  --butter: #FFD23F;
  --line: rgba(21, 19, 15, .16);
  --max: 1200px;
  --gut: clamp(20px, 4.4vw, 56px);
  --hd: 60px;
  --f-d: "NSJ Black", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --f-l: "Archivo Black Sub", "Arial Black", "Helvetica Neue", sans-serif;
  --f-b: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--f-b);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt";
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
h2, h3, .lead, .why-end, .pain-t, .hero-lead, .card p, .step p, .work-info p { word-break: auto-phrase; text-wrap: pretty; }
h2, h3 { text-wrap: balance; }
ul, ol { list-style: none; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
.lat { font-family: var(--f-l); font-weight: 400; letter-spacing: -.01em; }
.lat-s { font-family: "SFMono-Regular", "Roboto Mono", ui-monospace, monospace; font-size: .86em; letter-spacing: .02em; }
.sp { display: none; }
.anchor { position: absolute; top: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

/* ---------- 進み具合の棒 ---------- */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; gap: 4px; padding: 6px 8px 0; pointer-events: none; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: rgba(128, 122, 110, .38); overflow: hidden; }
.progress i b { display: block; height: 100%; width: 100%; background: var(--verm); transform: scaleX(0); transform-origin: 0 50%; border-radius: 4px; }

/* ---------- ヘッダー（浮いた札） ---------- */
.hd {
  position: fixed; left: 50%; top: 18px; z-index: 50; transform: translateX(-50%);
  width: min(calc(100% - 24px), 980px); height: var(--hd);
  display: flex; align-items: center; gap: 20px; padding: 0 10px 0 22px;
  background: var(--paper2); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 5px 5px 0 var(--ink);
  transition: transform .5s var(--ease);
}
.hd.is-hidden { transform: translate(-50%, -140%); }
.hd-logo { font-family: var(--f-l); font-size: 20px; letter-spacing: .02em; text-decoration: none; }
.hd-nav { margin-left: auto; display: flex; gap: clamp(12px, 2vw, 26px); font-size: 14px; font-weight: 700; }
.hd-nav a { text-decoration: none; padding: 6px 2px; background: linear-gradient(var(--verm), var(--verm)) 0 100% / 0 3px no-repeat; transition: background-size .3s var(--ease); }
.hd-nav a:hover, .hd-nav a.is-on { background-size: 100% 3px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-d); font-weight: 900; font-size: 17px; line-height: 1; text-decoration: none; white-space: nowrap;
  padding: 18px 28px; border: 3px solid var(--ink); border-radius: 999px; background: var(--paper2); color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn-verm { background: var(--verm); color: var(--paper2); }
.btn-ink { background: var(--ink); color: var(--paper2); box-shadow: none; }
.btn-ink:hover { background: var(--verm); box-shadow: none; transform: none; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--paper2); box-shadow: 5px 5px 0 var(--ink); }
.btn-sm { font-size: 14px; padding: 12px 18px; border-width: 0; }
.btn-lg { font-size: clamp(18px, 2vw, 22px); padding: 24px 36px; }
.btn-line { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; font-family: var(--f-b); font-weight: 700; font-size: 15px; }
.btn-line:hover { box-shadow: none; transform: none; background: rgba(255, 253, 248, .12); }
.tri { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }

/* ---------- 場面の共通 ---------- */
.sc { position: relative; padding: clamp(88px, 12vw, 160px) 0; }
.sc[data-tone="paper"] { background: var(--paper); }
.sc[data-tone="paper2"] { background: var(--paper2); }
.sc[data-tone="ink"] { background: var(--ink); color: var(--paper); }
.sc[data-tone="verm"] { background: var(--verm); color: var(--paper2); }
.sc[data-tone="cobalt"] { background: var(--cobalt); color: var(--paper2); }
.sc[data-tone="butter"] { background: var(--butter); }
.wrap { width: min(100% - var(--gut) * 2, var(--max)); margin-inline: auto; }
.wrap-narrow { --max: 860px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; letter-spacing: .08em; margin-bottom: 22px; }
.kicker .lat { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: var(--paper2); font-size: 14px; }
.sc[data-tone="ink"] .kicker .lat { background: var(--butter); color: var(--ink); }
.sc[data-tone="verm"] .kicker .lat, .sc[data-tone="cobalt"] .kicker .lat { background: var(--paper2); color: var(--ink); }
.h2 { font-family: var(--f-d); font-weight: 900; font-size: clamp(2rem, 5.2vw, 4.2rem); line-height: 1.22; letter-spacing: -.01em; }
.h2 em { font-style: normal; color: var(--verm); }
.sc[data-tone="verm"] .h2 em { color: var(--butter); }
.h2-xl { font-size: clamp(2.6rem, 8vw, 6.4rem); line-height: 1.12; }
.lead { max-width: 40em; margin-top: 22px; font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: 13px; font-weight: 700; line-height: 1.3; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper2); color: var(--ink); }

/* 画面に入ったら出す */
.rv { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .rv { opacity: 0; transform: translateY(28px); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- スマホの枠 ---------- */
.phone {
  position: relative; display: block; aspect-ratio: 9 / 16; height: min(70svh, 640px); padding: 0;
  border: 6px solid var(--ink); border-radius: 38px; background: var(--ink); overflow: hidden; box-shadow: 12px 12px 0 var(--ink);
}
.phone-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }


/* ---------- 人物のステッカー ---------- */
.stk { height: auto; pointer-events: none; user-select: none; filter: drop-shadow(6px 8px 0 rgba(21, 19, 15, .9)); }
.js .stk.rv { transform: translateY(28px) rotate(var(--r, 0deg)) scale(.86); }
.js .stk.rv.in { transform: rotate(var(--r, 0deg)); transition: opacity .5s var(--ease), transform .7s var(--pop); }
.why .wrap, .contact .wrap { position: relative; }
.stk-why { --r: 8deg; position: absolute; right: 0; top: -34px; width: clamp(120px, 15vw, 210px); filter: drop-shadow(6px 8px 0 rgba(255, 210, 63, .9)); }
.stk-contact { --r: 6deg; position: absolute; right: 0; top: 0; width: clamp(150px, 21vw, 290px); filter: drop-shadow(6px 8px 0 rgba(255, 210, 63, .9)); }

/* ---------- 入口の料金の一行 ---------- */
.hero-price { margin-top: 22px; opacity: 0; animation: fade .8s var(--ease) .72s forwards; }
.hero-price a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; font-family: var(--f-d); font-weight: 900; font-size: clamp(.95rem, 1.5vw, 1.15rem); line-height: 1.5; text-decoration: none; padding: 8px 18px; border: 3px solid var(--ink); border-radius: 16px; background: var(--paper2); box-shadow: 4px 4px 0 var(--ink); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.hero-price a:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.hero-price b { font-size: 1.7em; line-height: 1; color: var(--verm); margin: 0 2px; }
.hero-price i { align-self: center; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); margin: 0 8px; }
.hero-price span { margin-left: 8px; }

/* ---------- 表情の帯 ---------- */
.faces { margin-top: clamp(48px, 8vw, 110px); padding-top: clamp(40px, 6vw, 72px); border-top: 3px solid var(--ink); }
.faces-h { font-family: var(--f-d); font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.3; }
.faces-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2.4vw, 32px); margin-top: clamp(28px, 4vw, 48px); }
.face { display: grid; justify-items: center; gap: 12px; }
.face img { width: 100%; max-width: 250px; height: auto; filter: drop-shadow(5px 7px 0 rgba(21, 19, 15, .9)); transition: transform .35s var(--pop); }
.face:nth-child(odd) img { transform: rotate(-4deg); }
.face:nth-child(even) img { transform: rotate(3deg); }
.face:hover img { transform: rotate(0deg) scale(1.08); }
.face span { font-family: var(--f-d); font-weight: 900; font-size: clamp(.85rem, 1.5vw, 1.1rem); line-height: 1; padding: 8px 16px; border: 3px solid var(--ink); border-radius: 999px; background: var(--butter); }
.face:nth-child(2) { --d: .08s; } .face:nth-child(3) { --d: .16s; } .face:nth-child(4) { --d: .24s; }

/* ================= 料金 ================= */
.price .h2 em { color: var(--butter); }
.plan-wrap { position: relative; margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 28vw, 360px); align-items: end; gap: clamp(0px, 2vw, 32px); }
.plan { position: relative; z-index: 1; padding: clamp(24px, 3.4vw, 44px); border: 4px solid var(--ink); border-radius: 32px; background: var(--paper2); color: var(--ink); box-shadow: 10px 10px 0 var(--butter); }
.plan-name { display: inline-block; font-family: var(--f-d); font-weight: 900; font-size: clamp(.85rem, 1.4vw, 1.05rem); line-height: 1.3; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--paper2); }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin-top: 18px; font-family: var(--f-d); font-weight: 900; line-height: 1; }
.plan-price > small { font-size: clamp(1rem, 1.8vw, 1.4rem); }
.plan-price b { font-size: clamp(4rem, 12vw, 9rem); letter-spacing: -.03em; color: var(--verm); font-variant-numeric: tabular-nums; }
.plan-price span { font-size: clamp(1.4rem, 3vw, 2.4rem); }
.plan-price span small { font-size: .5em; margin-left: 4px; }
.plan-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; font-size: 14px; font-weight: 700; }
.plan-sub span { white-space: nowrap; }
.plan-sub i { align-self: center; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.plan-sub b { font-size: 1.5em; margin: 0 2px; }
.zero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.zero li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border: 3px solid var(--ink); border-radius: 18px; background: var(--butter); font-weight: 700; font-size: 14px; line-height: 1.4; }
.zero b { flex: none; font-family: var(--f-d); font-weight: 900; font-size: 1.1rem; white-space: nowrap; }
.zero b .lat { font-size: 2.6rem; line-height: 1; margin-right: 2px; }
.incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 26px 0 30px; }
.incl li { position: relative; padding-left: 30px; font-weight: 700; font-size: 15px; line-height: 1.6; }
.incl li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--verm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23FFFDF8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.stk-price { --r: 4deg; width: 100%; margin: 0 0 -6px -18%; max-width: none; z-index: 2; position: relative; filter: drop-shadow(8px 10px 0 rgba(255, 210, 63, .95)); }
.zero s { display: block; font-family: var(--f-b); font-weight: 700; font-size: 12px; line-height: 1.2; text-align: right; text-decoration-thickness: 2px; text-decoration-color: var(--verm); opacity: .8; }
.zero s .lat { font-size: 14px; margin: 0 1px; }
.zero em { display: inline-block; font-style: normal; font-family: var(--f-d); font-weight: 900; font-size: 11px; line-height: 1; margin-left: 8px; padding: 5px 9px; border-radius: 999px; background: var(--verm); color: var(--paper2); vertical-align: 2px; white-space: nowrap; }
.plan-note { margin-top: 16px; font-size: 12px; line-height: 1.7; color: rgba(21, 19, 15, .7); }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); margin-top: clamp(28px, 4vw, 44px); }
.terms li { padding: 20px 22px 22px; border: 2px solid rgba(243, 237, 225, .3); border-radius: 22px; font-size: 14px; font-weight: 500; line-height: 1.7; }
.terms b { display: block; font-family: var(--f-d); font-weight: 900; font-size: 1.2rem; line-height: 1.4; color: var(--butter); margin-bottom: 6px; }
.terms li:nth-child(2) { --d: .08s; } .terms li:nth-child(3) { --d: .16s; }
.flow-need { display: flex; width: fit-content; max-width: 100%; }
.flow-need + .flow-need { margin-top: 12px; }

/* ================= 入口 ================= */
.hero { min-height: 100svh; padding: calc(var(--hd) + 56px) 0 0; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: 1fr auto; column-gap: clamp(24px, 4vw, 64px); align-items: center; overflow: hidden; }
.hero-copy { padding-left: max(var(--gut), calc((100vw - var(--max)) / 2)); padding-bottom: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 7px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--butter); }
.eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.hero-h1 { margin-top: 26px; font-family: var(--f-d); font-weight: 900; font-size: clamp(2.6rem, 6.1vw, 5.9rem); line-height: 1.1; letter-spacing: -.02em; }
.h1-line { display: block; overflow: hidden; padding: .04em 0 .1em; }
.h1-line > span { display: inline-block; white-space: nowrap; transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
.h1-line:nth-child(2) > span { animation-delay: .14s; }
.h1-b { position: relative; z-index: 0; color: var(--ink); }
.h1-b::before { content: ""; position: absolute; z-index: -1; left: -.06em; right: -.04em; bottom: .06em; height: .42em; background: var(--verm); border-radius: .08em; transform: scaleX(0); transform-origin: 0 50%; animation: mark .5s var(--ease) .95s forwards; }
.hero-lead { margin-top: 26px; max-width: 34em; font-size: clamp(1rem, 1.45vw, 1.16rem); font-weight: 500; opacity: 0; animation: fade .8s var(--ease) .5s forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; opacity: 0; animation: fade .8s var(--ease) .65s forwards; }
.hero-facts { display: flex; gap: clamp(14px, 2.4vw, 34px); margin-top: 44px; opacity: 0; animation: fade .8s var(--ease) .8s forwards; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts b { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.hero-facts b.jp { font-family: var(--f-d); font-weight: 900; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.hero-facts span { font-size: 12px; font-weight: 700; line-height: 1.35; }
.hero-facts li + li { padding-left: clamp(14px, 2.4vw, 34px); border-left: 2px solid var(--line); }

.hero-stage { position: relative; justify-self: center; display: grid; place-items: center; padding: 20px max(var(--gut), 24px) 48px 0; width: 100%; }
.sun { position: absolute; width: min(108%, 620px); aspect-ratio: 1; border-radius: 50%; background: var(--butter); border: 5px solid var(--ink); transform: scale(.6); opacity: 0; animation: sun .9s var(--ease) .2s forwards; }
#heroPhone { transform: rotate(3deg) translateY(60px) scale(.94); opacity: 0; animation: phone-in 1s var(--ease) .3s forwards; }
.sound { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border: 3px solid var(--ink); border-radius: 999px; background: var(--paper2); font-size: 13px; font-weight: 700; line-height: 1; }
.sound svg { width: 20px; height: 20px; fill: var(--ink); stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.sound svg .wave, .sound svg .mute { fill: none; }
.sound .wave { display: none; }
.sound[aria-pressed="true"] .wave { display: block; }
.sound[aria-pressed="true"] .mute { display: none; }
.sound[aria-pressed="true"] { background: var(--butter); }
.who { position: absolute; left: clamp(-8px, 2%, 40px); bottom: 12%; width: clamp(112px, 15vw, 176px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--paper2); outline: 5px solid var(--ink); background: #fff; transform: scale(0); animation: pop .6s var(--pop) 1.1s forwards; z-index: 3; }
.who-v { width: 100%; height: 100%; object-fit: cover; }
.who-2 { left: auto; right: clamp(-4px, 3%, 44px); bottom: auto; top: 30%; width: clamp(88px, 11vw, 132px); background: var(--butter); animation-delay: 1.3s; }
.who-tag { position: absolute; left: clamp(-8px, 2%, 40px); bottom: calc(12% - 34px); z-index: 4; transform: rotate(-4deg) scale(0); animation: pop-tag .5s var(--pop) 1.5s forwards; }
.who-tag span { display: inline-block; font-family: var(--f-d); font-weight: 900; font-size: 14px; line-height: 1; padding: 9px 14px; background: var(--ink); color: var(--paper2); border-radius: 999px; white-space: nowrap; }
.read { position: absolute; right: max(var(--gut), 18px); top: 6px; z-index: 3; font-size: 13px; font-weight: 700; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper2); transform: rotate(5deg) scale(0); animation: pop-read .5s var(--pop) 1.7s forwards; }
.read .lat { font-size: 17px; margin-right: 2px; }

.ticker { grid-column: 1 / -1; background: var(--ink); color: transparent; overflow: hidden; border-top: 5px solid var(--ink); }
.ticker-t { display: flex; width: max-content; animation: tick 26s linear infinite; }
.ticker-t span { font-family: var(--f-l); font-size: clamp(34px, 5vw, 64px); line-height: 1; padding: 16px 0 14px; white-space: pre; -webkit-text-stroke: 2px rgba(243, 237, 225, .55); }

/* ================= 課題 ================= */
.pains { margin-top: clamp(36px, 6vw, 72px); counter-reset: p; border-top: 2px solid rgba(243, 237, 225, .22); }
.pain { counter-increment: p; position: relative; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding: clamp(18px, 2.6vw, 30px) 0; border-bottom: 2px solid rgba(243, 237, 225, .22); }
.pain::before { content: "0" counter(p); font-family: var(--f-l); font-size: 14px; color: var(--butter); min-width: 28px; }
.pain-w { flex: 1 1 auto; min-width: 0; font-family: var(--f-d); font-weight: 900; font-size: clamp(1.15rem, 3.1vw, 2.5rem); line-height: 1.4; }
.pain-t { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(var(--verm), var(--verm)) 0 56% / 0% clamp(4px, .5vw, 7px) no-repeat; transition: color .5s .45s, background-size .5s var(--ease) .2s; }
.stamp { margin-left: auto; flex: none; font-family: var(--f-d); font-weight: 900; font-size: clamp(.95rem, 1.8vw, 1.4rem); line-height: 1; padding: .5em .9em; background: var(--butter); color: var(--ink); border-radius: 10px; transform: rotate(-8deg) scale(0); transition: transform .45s var(--pop) .55s; }
.pain.in .pain-t { color: rgba(243, 237, 225, .42); }
.pain.in .pain-t { background-size: 100% clamp(4px, .5vw, 7px); }
.pain.in .stamp { transform: rotate(-8deg) scale(1); }
.why-end { margin-top: clamp(40px, 6vw, 72px); font-family: var(--f-d); font-weight: 900; font-size: clamp(1.5rem, 3.6vw, 3rem); line-height: 1.35; color: var(--butter); }

/* ================= できること（スマホが残り続ける） ================= */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 80px); margin-top: clamp(24px, 4vw, 48px); }
.step { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; transition: opacity .5s var(--ease); }
.js .step { opacity: .28; }
.js .step.is-on { opacity: 1; }
.step-n .lat { display: inline-block; font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--verm); color: var(--paper2); }
.step h3 { margin-top: 16px; font-family: var(--f-d); font-weight: 900; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.25; }
.step > p:not(.step-n) { margin-top: 16px; max-width: 30em; font-weight: 500; font-size: clamp(1rem, 1.35vw, 1.1rem); }
.story-stage { position: sticky; top: calc(50svh - min(35svh, 320px) - 10px); align-self: start; display: grid; justify-items: center; gap: 22px; padding-top: 20px; }
.phone-story { transform: rotate(-2deg); background: #fff; }
.sv { opacity: 0; transition: opacity .45s var(--ease); }
.sv.is-on { opacity: 1; }
.story-cap { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-d); font-weight: 900; font-size: 16px; line-height: 1; padding: 10px 18px 10px 10px; border: 3px solid var(--ink); border-radius: 999px; background: var(--paper2); box-shadow: 4px 4px 0 var(--ink); }
.story-cap .lat { padding: 6px 10px; border-radius: 999px; background: var(--ink); color: var(--paper2); font-size: 13px; }

/* ================= 実績 ================= */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); margin-top: clamp(36px, 5vw, 64px); }
.work { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); align-items: center; }
.phone-work { height: min(58svh, 470px); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.phone-work:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 16px 16px 0 var(--ink); }
.play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(21, 19, 15, .18); transition: opacity .25s; }
.play .tri { width: 84px; height: 84px; border: 4px solid var(--ink); border-radius: 50%; background: var(--butter); position: relative; }
.play .tri::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--ink); }
.phone-work.is-playing .play { opacity: 0; }
.work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.work-meta .lat { font-size: 26px; line-height: 1; margin-right: -6px; }
.work-meta i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.work-info h3 { margin-top: 10px; font-family: var(--f-d); font-weight: 900; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.35; }
.work-info > p:not(.work-meta) { margin-top: 12px; font-size: 15px; font-weight: 500; line-height: 1.75; }
.note { margin-top: clamp(28px, 4vw, 48px); font-size: 12px; opacity: .85; }

/* ================= ちがい ================= */
.cmp { margin-top: clamp(32px, 5vw, 56px); border: 4px solid var(--ink); border-radius: 28px; overflow: hidden; background: var(--paper2); box-shadow: 10px 10px 0 var(--ink); }
.cmp-r { display: grid; grid-template-columns: clamp(64px, 12vw, 150px) minmax(0, 1fr) minmax(0, 1.15fr); }
.cmp-r + .cmp-r { border-top: 2px solid var(--line); }
.cmp-r > span { padding: clamp(14px, 2vw, 24px) clamp(10px, 2vw, 26px); font-size: clamp(.82rem, 1.35vw, 1.05rem); line-height: 1.55; font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; }
.cmp-r > span:first-child { font-family: var(--f-d); font-weight: 900; font-size: clamp(.82rem, 1.5vw, 1.15rem); }
.cmp-r > span:nth-child(2) { color: rgba(21, 19, 15, .58); border-left: 2px solid var(--line); }
.cmp-r > span:nth-child(3) { background: var(--butter); border-left: 4px solid var(--ink); font-weight: 700; }
.cmp-r > span b { font-family: var(--f-d); font-weight: 900; margin-right: .2em; }
.cmp-h > span { font-family: var(--f-d); font-weight: 900; font-size: clamp(.8rem, 1.4vw, 1.05rem) !important; }
.cmp-h > span:nth-child(3) { background: var(--ink); color: var(--paper2); }

/* ================= 流れ ================= */
.flow-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); margin-top: clamp(32px, 5vw, 56px); }
.flow-list li { position: relative; padding: 26px 22px 28px; border: 4px solid var(--ink); border-radius: 26px; background: var(--paper2); box-shadow: 7px 7px 0 var(--ink); }
.flow-list li > .lat { display: block; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1; color: var(--verm); }
.flow-list h3 { margin-top: 14px; font-family: var(--f-d); font-weight: 900; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.35; }
.flow-list p { margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.7; }
.flow-list li:nth-child(2) { --d: .08s; } .flow-list li:nth-child(3) { --d: .16s; } .flow-list li:nth-child(4) { --d: .24s; }
.flow-need { margin-top: 28px; flex-wrap: wrap; align-items: center; gap: 14px; font-weight: 700; padding: 14px 22px; border: 3px solid var(--ink); border-radius: 18px; background: var(--paper2); }
.flow-need b { font-family: var(--f-d); font-weight: 900; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--paper2); }

/* ================= 安心 ================= */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); margin-top: clamp(32px, 5vw, 56px); }
.card { padding: 28px 24px 30px; border: 4px solid var(--ink); border-radius: 26px; background: var(--paper2); color: var(--ink); box-shadow: 7px 7px 0 var(--ink); }
.card h3 { font-family: var(--f-d); font-weight: 900; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.35; }
.card p { margin-top: 10px; font-size: 15px; font-weight: 500; line-height: 1.75; }
.trust-grid .card:nth-child(2) { --d: .08s; } .trust-grid .card:nth-child(3) { --d: .16s; }

/* ================= 質問 ================= */
.qa { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 14px; }
.qa details { border: 3px solid var(--ink); border-radius: 22px; background: var(--paper2); box-shadow: 5px 5px 0 var(--ink); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; font-family: var(--f-d); font-weight: 900; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.45; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; font-family: var(--f-l); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--verm); color: var(--paper2); font-size: 16px; }
.qa summary::after { content: ""; margin-left: auto; flex: none; width: 16px; height: 16px; background: linear-gradient(var(--ink), var(--ink)) 50% 50% / 100% 3px no-repeat, linear-gradient(var(--ink), var(--ink)) 50% 50% / 3px 100% no-repeat; transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 22px 22px 72px; font-weight: 500; }

/* ================= 会社情報 ================= */
.company .h2 { font-size: clamp(2.2rem, 6vw, 5rem); }
.co { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(32px, 5vw, 56px); border-top: 3px solid var(--ink); }
.co > div { padding: 22px 20px 26px 0; border-bottom: 2px solid var(--line); }
.co dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: rgba(21, 19, 15, .58); }
.co dd { margin-top: 8px; font-weight: 700; line-height: 1.6; }
.co a { text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ================= 相談 ================= */
.contact { padding-bottom: clamp(72px, 9vw, 120px); }
.contact .h2 { color: var(--paper); }
.contact-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }
.contact .btn-verm { border-color: var(--paper2); box-shadow: 6px 6px 0 var(--butter); }
.contact .btn-verm:hover { box-shadow: 9px 9px 0 var(--butter); }
.sns { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; font-size: 14px; font-weight: 700; }
.sns a { text-underline-offset: 5px; }

/* ================= フッター ================= */
.ft { background: var(--ink); color: var(--paper); padding: 48px 0 110px; border-top: 2px solid rgba(243, 237, 225, .2); }
.ft-in { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.ft-logo { font-family: var(--f-l); font-size: 28px; }
.ft-nav { display: flex; gap: clamp(28px, 6vw, 72px); font-size: 13px; }
.ft-nav p { font-weight: 700; opacity: .6; margin-bottom: 8px; }
.ft-nav a { display: block; padding: 3px 0; text-decoration: none; opacity: .9; }
.ft-nav a:hover { text-decoration: underline; }
.ft-c { grid-column: 1 / -1; font-size: 12px; opacity: .6; }

/* スマホで下に出る相談ボタン */
.dock { display: none; }

@keyframes rise { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes mark { to { transform: scaleX(1); } }
@keyframes sun { to { transform: scale(1); opacity: 1; } }
@keyframes phone-in { to { transform: rotate(3deg); opacity: 1; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes pop-tag { to { transform: rotate(-4deg) scale(1); } }
@keyframes pop-read { to { transform: rotate(5deg) scale(1); } }
@keyframes tick { to { transform: translateX(-33.3333%); } }

/* ---------- 狭い画面 ---------- */
@media (max-width: 900px) {
  .sp { display: inline; }
  .pc { display: none; }
  .hd { top: 16px; height: 52px; padding: 0 8px 0 18px; --hd: 52px; }
  .hd-nav { display: none; }
  .hd .btn-sm { margin-left: auto; }
  .hero { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; padding-top: calc(var(--hd) + 40px); align-items: start; }
  .hero-copy { display: contents; }
  .hero-copy > * { margin-inline: var(--gut); }
  .eyebrow { order: 1; justify-self: start; font-size: 11px; gap: 8px; padding: 6px 12px; white-space: nowrap; }
  .hero-h1 { order: 2; }
  .hero-stage { order: 3; }
  .hero-lead { order: 4; }
  .hero-cta { order: 5; }
  .hero-facts { order: 6; margin-bottom: 44px; }
  .ticker { order: 7; }
  .hero-h1 { font-size: clamp(2.3rem, 12.4vw, 4.6rem); margin-top: 16px; }
  .hero-lead { margin-top: 6px; }
  .hero-cta { margin-top: 24px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-facts { margin-top: 28px; justify-content: space-between; }
  .hero-stage { padding: 22px var(--gut) 52px; }
  .sun { width: min(88%, 360px); }
  .phone { height: min(64svh, 540px); border-radius: 32px; }
  #heroPhone { height: min(50svh, 430px); border-radius: 28px; }
  .who { left: 6%; bottom: 9%; }
  .who-2 { left: auto; right: 5%; bottom: auto; top: 34%; }
  .who-tag { left: 4%; bottom: calc(9% - 30px); }
  .read { right: 6%; top: 14px; }

  .story { display: flex; flex-direction: column; gap: 0; }
  .story-stage { order: -1; top: calc(var(--hd) + 26px); z-index: 2; width: 100%; padding: 10px 0 14px; gap: 10px; background: linear-gradient(var(--paper) 86%, rgba(243, 237, 225, 0)); }
  .phone-story { height: min(40svh, 330px); border-radius: 26px; border-width: 5px; box-shadow: 7px 7px 0 var(--ink); }
  .story-cap { font-size: 14px; padding: 7px 14px 7px 7px; }
  .step { min-height: 0; padding: 12svh 0 26svh; }
  .step:first-child { padding-top: 6svh; }

  .hero-price { order: 5; margin-top: 16px; animation-delay: .5s; }
  .hero-cta { order: 6 !important; margin-top: 16px !important; }
  .hero-facts { order: 7 !important; }
  .ticker { order: 8 !important; }
  .stk-why { position: static; display: block; width: 104px; margin: 18px 0 -6px auto; }
  .stk-contact { position: static; display: block; width: 150px; margin: 0 0 8px auto; }
  .faces-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .face img { max-width: 170px; }
  .plan-wrap { grid-template-columns: 1fr; }
  .plan-price > small { flex-basis: 100%; margin-bottom: 6px; }
  .plan-price b { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .plan-price span { font-size: 1.3rem; white-space: nowrap; }
  .plan-sub i { display: none; }
  .plan-sub span { flex-basis: 100%; }
  .stk-price { width: 46%; margin: -36px 4% -4px auto; order: 2; }
  .zero, .incl, .terms { grid-template-columns: 1fr; }
  .plan .btn { width: 100%; }
  .work-grid { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; justify-items: center; }
  .work-info { width: 100%; }
  .phone-work { height: min(66svh, 520px); }
  .flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: 1fr; }
  .co { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa details p { padding-left: 22px; }
  .ft-in { grid-template-columns: 1fr; }

  .dock {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55;
    display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px;
    font-family: var(--f-d); font-weight: 900; font-size: 17px; text-decoration: none;
    background: var(--verm); color: var(--paper2); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 5px 5px 0 var(--ink);
    transform: translateY(150%); transition: transform .5s var(--ease);
  }
  .dock.is-on { transform: none; }
}
@media (max-width: 520px) {
  .flow-list { grid-template-columns: 1fr; }
  .co { grid-template-columns: 1fr; }
  .hero-facts span { font-size: 11px; }
  .cmp { border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
  .stamp { padding: .45em .7em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .ticker-t { animation: none; }
  .js .rv { opacity: 1; transform: none; }
}
