/* Metaworks LP
   淡いアイスブルーとスカイブルーを基調に、セクションごとにアプリのフロアの色
   (デスク=水色 / 会議室=橙 / ラウンジ=桃 / 受付=黄 / ステージ=紫) を差し色に使う。
   画像はすべて実機の画面と、実機の 3D から描いた模型。 */
:root {
  --ink: #0b1526;
  --ink-2: #172539;
  --text: #3a495d;
  --muted: #627287;
  --line: #dce5ef;
  --line-2: #c9d6e4;
  --bg: #ffffff;
  --ice: #eef5fb;
  --ice-2: #e2edf8;
  --sky: #0ea5e9;
  --sky-ink: #0369a1;
  --blue: #2563eb;
  --z-desk: #dcebfa;
  --z-meet: #fdecd9;
  --z-lounge: #fbe0ea;
  --z-recep: #fdf3c7;
  --z-stage: #ebe4fd;
  --l-desk: #22d3ee;
  --l-meet: #fb923c;
  --l-lounge: #ec4899;
  --l-recep: #fbbf24;
  --l-stage: #a78bfa;
  --sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --latin: "Geist", "Noto Sans JP", system-ui, sans-serif;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 16px;
  --shadow: 0 1px 2px rgba(11, 21, 38, .06), 0 18px 44px -22px rgba(11, 33, 64, .32);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html:not([data-motion="reduce"]):not(.lenis) { scroll-behavior: smooth; }
/* なめらかなスクロール (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  /* 日本語は文節の切れ目 (<wbr>。tools/build_site.py で入れる) でだけ改行する */
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sky-ink); }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; font-feature-settings: "palt"; letter-spacing: .01em; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p, li, figcaption { text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- 見出しと本文 ---------- */
.h2 { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.22; letter-spacing: -.005em; }
.h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; }
.lead { margin-top: 24px; max-width: 36em; font-size: 17px; color: var(--text); }
.note { margin-top: 20px; font-size: 13px; color: var(--muted); }
/* 句ごとに改行を許す (句の中では折り返さない) */
.split .ph { display: inline-block; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 22px 0 26px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 700; letter-spacing: .06em;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { background: var(--blue); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 40px; padding: 0 16px 0 18px; font-size: 13.5px; gap: 10px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { height: 60px; padding: 0 26px 0 32px; font-size: 16px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ice); }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background-color .3s, box-shadow .3s, transform .4s var(--ease); }
.site-header.is-solid { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.site-header.is-away { transform: translateY(-100%); }
html[data-motion="reduce"] .site-header { transition: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--latin); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand-mark { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; gap: 26px; }
.nav ul a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav ul a:hover { color: var(--blue); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .8); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

/* =========================================================
   ヒーロー
   ========================================================= */
.hero { position: relative; height: 380vh; background: linear-gradient(180deg, #e7f1fa 0%, #eef5fb 45%, #f6f9fd 100%); }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-still { display: none; }
html:not(.js) .hero { height: auto; }
html:not(.js) .hero-pin { position: relative; height: auto; padding: 120px var(--gut) 60px; }
html:not(.js) .hero-canvas, html:not(.js) .hero-overlay, html:not(.js) .scroll-cue, html:not(.js) .hero-end { display: none; }
html:not(.js) .hero-still { display: block; width: 100%; max-width: 1200px; margin: 40px auto 0; }
html:not(.js) .hero-copy { position: static; }

.hero-overlay { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.hero-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.hero-ring path { fill: rgba(37, 99, 235, .12); stroke: rgba(37, 99, 235, .75); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 6 6; }
.chip, .bubble, .tag-you { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .96); border: 1px solid rgba(11, 21, 38, .08);
  box-shadow: 0 8px 22px -12px rgba(11, 33, 64, .45);
  color: var(--ink); font-size: 13px; font-weight: 700;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
/* いま使われている場所の印 (ゆっくり脈打つ) */
html:not([data-motion="reduce"]) .chip i { animation: live 2.4s ease-in-out infinite; }
.chip:nth-child(3) i { animation-delay: -.6s; } .chip:nth-child(4) i { animation-delay: -1.2s; } .chip:nth-child(5) i { animation-delay: -1.8s; }
@keyframes live { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 26%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 0%, transparent); } }
.chip b { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 500; font-size: 12px; }
.chip b svg { width: 13px; height: 13px; }
.chip-you { background: var(--blue); color: #fff; border-color: transparent; }
.chip-you i { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.bubble {
  padding: 9px 16px; border-radius: 16px; background: #fff; color: var(--ink);
  font-size: clamp(13px, 1.25vw, 17px); font-weight: 700;
  box-shadow: 0 12px 30px -14px rgba(11, 33, 64, .55);
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.tag-you { padding: 5px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
.ring-note { position: absolute; left: 0; top: 0; opacity: 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 12px 28px -14px rgba(11, 33, 64, .6); }
.ring-note b { display: grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--blue); font-family: var(--latin); font-weight: 600; }

.hero-copy { position: absolute; left: 0; right: 0; top: clamp(96px, 15vh, 160px); padding: 0 var(--gut); max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-copy h1 { font-size: clamp(44px, 6.4vw, 96px); line-height: 1.12; letter-spacing: -.01em; }
.hero-lead { margin-top: 22px; max-width: 24em; font-size: clamp(16px, 1.35vw, 19px); color: var(--text); }
.hero-copy .btn { margin-top: 30px; }
.hero-end { position: absolute; left: 0; right: 0; top: clamp(84px, 11vh, 120px); padding: 0 var(--gut); max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; opacity: 0; pointer-events: none; }
.hero-end-title { font-size: clamp(30px, 3.8vw, 54px); font-weight: 700; color: var(--ink); line-height: 1.25; font-feature-settings: "palt"; }
/* 文字を読みやすくするための淡い幕 (模型の上に重ねる) */
.hero-fade { position: absolute; pointer-events: none; opacity: 0; }
.hero-fade-top { left: 0; right: 0; top: 0; height: 36%; background: linear-gradient(180deg, #eef5fb 0%, rgba(238, 245, 251, .9) 40%, rgba(238, 245, 251, 0) 100%); }
.hero-fade-beat { left: 0; bottom: 0; width: min(980px, 82%); height: 64%; background: radial-gradient(115% 100% at 0% 100%, rgba(238, 245, 251, .96) 0%, rgba(238, 245, 251, .8) 34%, rgba(238, 245, 251, 0) 70%); }
.hero-fade-bottom { left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, rgba(246, 249, 253, 0), #f6f9fd 92%); }
/* 降りていく途中の短い文 */
.hero-beats { position: absolute; left: 0; right: 0; bottom: clamp(64px, 14vh, 150px); max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); pointer-events: none; }
.beat { position: absolute; left: var(--gut); bottom: 0; max-width: 16em; opacity: 0; visibility: hidden; font-size: clamp(28px, 3.4vw, 50px); font-weight: 700; line-height: 1.3; letter-spacing: -.005em; color: var(--ink); font-feature-settings: "palt"; will-change: transform, opacity; }
.beat .ph { display: inline-block; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; letter-spacing: .12em; white-space: nowrap; width: max-content; }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--ink), transparent); transform-origin: top; }
html:not([data-motion="reduce"]) .scroll-cue i { animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =========================================================
   ひとこと + 吹き出しの流れ
   ========================================================= */
.intro { padding: clamp(110px, 14vw, 190px) 0 clamp(90px, 10vw, 140px); background: #f6f9fd; overflow: hidden; }
.intro-title { font-size: clamp(32px, 5vw, 72px); line-height: 1.22; letter-spacing: -.01em; }
.intro-text { margin-top: 34px; max-width: 38em; font-size: 17.5px; }
.talk-rail { margin-top: clamp(56px, 7vw, 96px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rail { display: flex; gap: 14px; width: max-content; padding: 6px 0 18px; }
html:not([data-motion="reduce"]) .rail { animation: rail 42s linear infinite; }
.talk-rail:hover .rail { animation-play-state: paused; }
@keyframes rail { to { transform: translateX(-50%); } }
.say { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; box-shadow: 0 10px 24px -18px rgba(11, 33, 64, .5); }
.say img { width: 36px; height: 36px; border-radius: 50%; background: var(--ice-2); object-fit: cover; }

/* =========================================================
   ある1日
   ========================================================= */
.day { position: relative; background: #fff; }
.day-head { padding-top: clamp(110px, 13vw, 170px); padding-bottom: 20px; }
.day-track { position: relative; height: 640vh; }
.day-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; background: var(--tint, #fff); transition: background-color .8s var(--ease); }
.day-grid { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: 68px; }
.day-map { position: relative; }
.plan { width: 100%; height: auto; border-radius: 14px; background: #f7f9fc; box-shadow: var(--shadow); }
.day-map .plan { max-width: 440px; }
/* 平面図の中の文字の大きさ (画面上の px)。--u は app.js が図の拡大率から入れる */
.plan-text { --plan-fs: calc(var(--plan-px, 12px) * var(--u, 1)); }
.day-map .plan { --plan-px: 11px; }
.vd-map { --plan-px: 12px; }
@media (max-width: 640px) { .vd-map { --plan-px: 10px; } }
.zones-hl rect { fill: none; stroke: var(--ink); stroke-width: 3; opacity: 0; transition: opacity .5s var(--ease); vector-effect: non-scaling-stroke; }
.zones-hl rect.on { opacity: 1; }
.route-base { fill: none; stroke: rgba(37, 99, 235, .14); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.route { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.you-halo { fill: rgba(37, 99, 235, .18); }
.you-dot { fill: var(--blue); stroke: #fff; stroke-width: 3; }
html:not([data-motion="reduce"]) .you-halo { animation: halo 2.2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.map-cap { margin-top: 14px; font-size: 14px; color: var(--muted); }
.map-cap b { color: var(--ink); }

.steps { position: relative; min-height: 70vh; }
/* 切り替わるときに前後の文章が重ならないよう、消えるほうは速く、現れるほうは少し遅らせる */
/* 切りかわり: 写真は新しいほうを上に重ねてから古いほうを消す (間に何も映らない瞬間を作らない)。
   文章は、消えるほうを速く、現れるほうを少し遅らせて、前後の文が重ならないようにする */
.step { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; visibility: hidden; transition: visibility 0s 1s; }
.step.on { z-index: 2; visibility: visible; transition: visibility 0s; }
.step-fig { opacity: 0; transition: opacity .45s ease .5s; }
.step.on .step-fig { opacity: 1; transition: opacity .55s var(--ease); }
.step-text { opacity: 0; transform: translateY(24px); transition: opacity .2s ease-out, transform .4s var(--ease); }
.step.past .step-text { transform: translateY(-24px); }
.step.on .step-text { opacity: 1; transform: none; transition: opacity .5s var(--ease) .2s, transform .7s var(--ease) .2s; }
html[data-motion="reduce"] .step-text, html[data-motion="reduce"] .step.past .step-text { transform: none; }
.step-fig { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #dfe6ee; aspect-ratio: 16 / 10; }
.step-fig img { width: 100%; height: 100%; object-fit: cover; }
.step-time { display: flex; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.step-time b { font-family: var(--latin); font-size: 34px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 4px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; }
.step p:not(.step-time) { margin-top: 10px; max-width: 34em; font-size: 15.5px; }
.step-fig img { will-change: transform; transform-origin: 50% 60%; }
/* 時計 (数字の帯を動かして回す) */
.day-clock { display: flex; align-items: center; margin-bottom: 18px; font-family: var(--latin); font-weight: 600; font-size: clamp(44px, 4.4vw, 66px); line-height: 1; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.day-clock .dg { display: inline-block; height: 1em; overflow: hidden; }
.day-clock .strip { display: flex; flex-direction: column; transition: transform .85s cubic-bezier(.65, 0, .2, 1); }
.day-clock .strip i { display: block; height: 1em; line-height: 1; font-style: normal; }
.day-clock .colon { margin: 0 .03em; transform: translateY(-.07em); }
html[data-motion="reduce"] .day-clock .strip { transition: none; }
/* 下の目盛り (押すとその時刻へ) */
.day-ticks-wrap { position: absolute; left: 0; right: 0; bottom: clamp(14px, 3vh, 30px); }
.day-ticks { position: relative; }
.day-line { position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: rgba(11, 21, 38, .1); overflow: hidden; }
.day-line span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.day-ticks ol { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.day-ticks button { position: relative; display: flex; align-items: baseline; gap: 8px; padding: 22px 12px 4px 0; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 500; text-align: left; cursor: pointer; transition: color .3s; }
.day-ticks button::before { content: ""; position: absolute; left: -1px; top: 1px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid rgba(11, 21, 38, .22); transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
.day-ticks button b { font-family: var(--latin); font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; opacity: .55; transition: opacity .3s; }
.day-ticks button:hover b, .day-ticks button.on b, .day-ticks button.past b { opacity: 1; }
.day-ticks button.past::before { background: var(--ink); border-color: var(--ink); }
.day-ticks button.on { color: var(--ink); }
.day-ticks button.on::before { background: var(--blue); border-color: var(--blue); transform: scale(1.25); box-shadow: 0 0 0 5px rgba(37, 99, 235, .16); }
@media (min-width: 901px) {
  /* 時刻は左の時計で見せるので、文章の上には場所だけ (読み上げには時刻も残す) */
  .step-time b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .step-time { font-size: 13px; letter-spacing: .12em; }
  .step-fig { max-height: 54vh; }
}

/* =========================================================
   声の届き方 (暗い面)
   ========================================================= */
.voice { padding: clamp(110px, 13vw, 170px) 0; background: var(--ink); color: rgba(255, 255, 255, .78); }
.voice .h2 { color: #fff; }
.voice .lead { color: rgba(255, 255, 255, .78); }
.voice-head { max-width: 860px; }
.vd { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.vd-stage { position: relative; }
/* 指で図をなぞってもページはスクロールする (図の上で指が止まらないように)。「あなた」は .vd-handle でつかむ */
.vd-map { width: 100%; height: auto; border-radius: 18px; background: #f7f9fc; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.vd-handle { position: absolute; left: 0; top: 0; width: 64px; height: 64px; border-radius: 50%; touch-action: none; cursor: grab; }
.vd-handle:active { cursor: grabbing; }
.vd-you { cursor: grab; outline: none; }
.vd-you:active { cursor: grabbing; }
.vd-you:focus-visible .you-dot { stroke: var(--sky); stroke-width: 5; }
.vd-room { fill: #fb923c; fill-opacity: 0; transition: fill-opacity .4s var(--ease); pointer-events: none; }
.vd.in-room .vd-room { fill-opacity: .14; }
/* 声の届く範囲 (15m)。ふだんはほとんど見えず、歩いている間だけ薄く出る */
.ring15 { fill: rgba(37, 99, 235, .045); stroke: rgba(37, 99, 235, .5); stroke-width: 1.4; stroke-dasharray: 5 6; opacity: .06; }
.ring3 { fill: rgba(37, 99, 235, .12); stroke: rgba(37, 99, 235, .7); stroke-width: 1.4; }
.you-tag rect { fill: var(--blue); }
.you-tag text { font: 700 11.5px var(--sans); fill: #fff; }
.vd-lines line { stroke: #16a34a; stroke-width: 1.6; stroke-dasharray: 4 5; transition: opacity .2s; }
.vd-p .ring-talk { fill: none; stroke: #22c55e; stroke-width: 2; opacity: 0; }
.vd-p:not(.heard) .ring-talk { stroke: #94a3b8; }
.vd-p:not(.heard) image { opacity: .55; }
.vd-p:not(.heard) text { fill: var(--muted); }
html:not([data-motion="reduce"]) .vd-p.talking .ring-talk { animation: talk 1.6s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes talk { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.vd-p .face-bg { fill: #fff; stroke: #94a3b8; stroke-width: 2.5; transition: stroke .3s; }
.vd-p.heard .face-bg { stroke: #22c55e; }
.vd-p text { font: 700 10.5px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #f7f9fc; stroke-width: 4px; }
.vd-hint { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 21, 38, .82); color: #fff; font-size: 12.5px; transition: opacity .4s; }
.vd-hint svg { width: 16px; height: 16px; }
.vd.touched .vd-hint { opacity: 0; }
.vd-side { display: grid; gap: 22px; }
.vd-list { display: grid; gap: 10px; }
.vd-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.vd-row img { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.vd-name { color: #fff; font-weight: 700; font-size: 14px; }
.vd-name small { margin-left: 8px; color: rgba(255, 255, 255, .55); font-weight: 500; font-family: var(--latin); font-variant-numeric: tabular-nums; }
.vd-meter { margin-top: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.vd-meter span { display: block; height: 100%; width: 100%; border-radius: 3px; background: linear-gradient(90deg, #22c55e, #86efac); transform-origin: left; transform: scaleX(0); }
.vd-pct { font-family: var(--latin); font-weight: 600; color: #fff; font-size: 18px; font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: right; }
.vd-pct.mute { color: rgba(255, 255, 255, .4); font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.vd-pct.wall { color: #fdba74; }
.vd-curve { padding: 18px 18px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.vd-curve svg { width: 100%; height: auto; }
.vd-curve .c-area { fill: rgba(14, 165, 233, .16); }
.vd-curve .c-line { fill: none; stroke: #38bdf8; stroke-width: 2.5; }
.vd-curve .c-axis { stroke: rgba(255, 255, 255, .25); }
.vd-curve text { font: 500 10px var(--latin); fill: rgba(255, 255, 255, .6); }
.vd-curve figcaption { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* =========================================================
   会議室
   ========================================================= */
.meeting { padding: clamp(110px, 13vw, 170px) 0; background: linear-gradient(180deg, #fff 0%, #fff7ef 100%); }
.split-2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-2 .h2, .pricing-grid .h2 { font-size: clamp(32px, 3.9vw, 54px); }
.facts-list { margin-top: 32px; display: grid; gap: 14px; }
.facts-list li { padding: 16px 0 0; border-top: 1px solid rgba(11, 21, 38, .1); font-size: 15px; }
.facts-list b { display: block; color: var(--ink); font-size: 16px; }
.md { position: relative; container-type: inline-size; }
.md-map { width: 100%; height: auto; border-radius: 18px; background: #f7f9fc; box-shadow: var(--shadow); }
.md-map { --plan-px: 15px; }
.md-waves circle { fill: none; stroke: #fb923c; stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
html:not([data-motion="reduce"]) .md-waves circle { animation: wave 3s linear infinite; }
html:not([data-motion="reduce"]) .md-waves circle:nth-child(2) { animation-delay: 1s; }
html:not([data-motion="reduce"]) .md-waves circle:nth-child(3) { animation-delay: 2s; }
html[data-motion="reduce"] .md-waves circle { opacity: .5; }
html[data-motion="reduce"] .md-waves circle:nth-child(2) { transform: scale(4); opacity: .3; }
html[data-motion="reduce"] .md-waves circle:nth-child(3) { transform: scale(8); opacity: .15; }
@keyframes wave { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(13); opacity: 0; } }
.md-wall { fill: none; stroke: #38bdf8; stroke-width: 3; transition: stroke .5s var(--ease); }
.md-door { fill: none; stroke: #38bdf8; stroke-width: 3; stroke-dasharray: 18; stroke-dashoffset: 18; transition: stroke-dashoffset .6s var(--ease), stroke .5s var(--ease); }
.md.locked .md-wall, .md.locked .md-door { stroke: #f87171; }
.md.locked .md-door { stroke-dashoffset: 0; }
/* 図の上に重ねる人・札 (文字の大きさは図の拡大率に関係なく一定) */
.md-layer { position: absolute; inset: 0; pointer-events: none; --face: clamp(26px, 6.6cqw, 46px); --fs: clamp(11px, 2.05cqw, 14px); }
.md-p { position: absolute; display: flex; align-items: center; gap: 6px; }
.md-p img { width: var(--face); height: var(--face); border-radius: 50%; background: #fff; border: 2px solid #fb923c; box-shadow: 0 6px 14px -8px rgba(11, 33, 64, .55); }
.md-p b { padding: 1px 7px; border-radius: 7px; background: rgba(255, 255, 255, .88); color: var(--ink); font-size: var(--fs); font-weight: 700; line-height: 1.6; white-space: nowrap; }
.md-l { flex-direction: row-reverse; transform: translate(calc(-100% + var(--face) / 2), -50%); }
.md-r { transform: translate(calc(var(--face) / -2), -50%); }
.md-outside img { border-color: #94a3b8; }
.md-out { position: absolute; transform: translate(0, -50%); padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(11, 21, 38, .12); color: var(--muted); font-size: var(--fs); font-weight: 700; white-space: nowrap; box-shadow: 0 6px 14px -10px rgba(11, 33, 64, .5); }
.md-lock { position: absolute; transform: translate(-100%, -50%) scale(.9); display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 9px; border-radius: 999px; background: #ef4444; color: #fff; font-size: var(--fs); font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.md-lock svg { width: 1.15em; height: 1.15em; }
.md.locked .md-lock { opacity: 1; transform: translate(-100%, -50%); }
.md-toggle { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid rgba(11, 21, 38, .12); background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px -14px rgba(11, 33, 64, .5); transition: background-color .3s; }
.md-toggle svg { width: 18px; height: 18px; }
.md-toggle:hover { background: var(--ice); }
.md.locked .md-toggle { background: #fee2e2; border-color: #fecaca; }

/* =========================================================
   画面共有 + ペン
   ========================================================= */
.share { padding: clamp(110px, 13vw, 170px) 0; background: #fff; }
.share-head { max-width: 900px; }
.share-stage { position: relative; margin-top: 60px; padding-bottom: 12%; }
.share-main { width: 72%; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.share-zoom { position: absolute; right: 0; bottom: 0; width: 56%; }
.share-zoom img { border-radius: 14px; box-shadow: 0 2px 4px rgba(11, 21, 38, .1), 0 30px 60px -24px rgba(11, 33, 64, .55); }
.share-zoom figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: right; }
.pen { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1600 / 1000; pointer-events: none; }
.pen path { fill: none; stroke: #2563eb; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

/* =========================================================
   できること
   ========================================================= */
.features { padding: clamp(110px, 13vw, 170px) 0; background: var(--ice); }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(80px, 10vw, 130px); }
.feat-att { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feat-att .feat-text { order: 2; }
.feat-text p { margin-top: 18px; font-size: 16px; max-width: 32em; }
.feat-visual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.ui-card img { border-radius: 16px; box-shadow: var(--shadow); }

.stt { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; background: linear-gradient(180deg, #dcebfa, #f1f7fd); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 0 18px; }
.stt-avatar { width: 30%; margin-bottom: 14px; filter: drop-shadow(0 18px 18px rgba(11, 33, 64, .18)); }
.stt-bubble { position: absolute; left: 8%; right: 8%; top: 8%; min-height: 4.6em; padding: 12px 16px; border-radius: 16px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.6; box-shadow: 0 12px 28px -16px rgba(11, 33, 64, .5); }
.stt-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: var(--blue); }
html:not([data-motion="reduce"]) .caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.stt-bar { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; }
.stt-mic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #22c55e; }
.stt-mic svg { width: 16px; height: 16px; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: #86efac; }
.stt.speaking .wave i { animation: eq .9s ease-in-out infinite; }
.stt .wave i:nth-child(2) { animation-delay: -.2s; } .stt .wave i:nth-child(3) { animation-delay: -.5s; }
.stt .wave i:nth-child(4) { animation-delay: -.1s; } .stt .wave i:nth-child(5) { animation-delay: -.7s; }
.stt .wave i:nth-child(6) { animation-delay: -.35s; } .stt .wave i:nth-child(7) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
html[data-motion="reduce"] .stt.speaking .wave i { animation: none; height: 60%; }

.att { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; background: linear-gradient(180deg, #fdf3c7, #fffaf0); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 18px; }
.att-avatar { width: 30%; margin-bottom: 14px; filter: drop-shadow(0 18px 18px rgba(64, 44, 11, .18)); }
.att-badge { display: grid; place-items: center; height: 34px; margin-bottom: 6px; }
.att-badge span { grid-area: 1 / 1; padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.b-on { background: #dcfce7; color: #166534; }
.b-break { background: #fef3c7; color: #92400e; }
.att[data-state="on"] .b-on, .att[data-state="break"] .b-break { opacity: 1; transform: none; }
.att-buttons { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: 0 8px 20px -14px rgba(11, 33, 64, .45); }
.att-buttons span { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); transition: background-color .3s, color .3s; }
.att-buttons span.on { background: var(--ink); color: #fff; }
.att-visual { display: block; position: relative; padding-bottom: 16%; }
.att-visual .ui-month { width: 84%; margin-left: auto; }
.att-visual .ui-month img { border-radius: 16px; box-shadow: var(--shadow); }
.att-visual .att { position: absolute; left: 0; bottom: 0; width: 36%; }

.feat-custom { grid-template-columns: minmax(0, 1fr); }
.feat-custom .feat-text { max-width: 760px; }
.crew { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 1.2vw, 18px); padding: 26px 0 0; border-bottom: 1px solid var(--line-2); }
.crew img { width: clamp(30px, 10.5%, 120px); min-width: 0; filter: drop-shadow(0 14px 12px rgba(11, 33, 64, .16)); transition: transform .4s var(--ease); }
.crew img:hover { transform: translateY(-10px); }
html[data-motion="full"] .crew.in img { animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--d) * -.4s); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.custom-shots { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; margin-top: 40px; align-items: start; }
.custom-shots img { border-radius: 16px; box-shadow: var(--shadow); }
.custom-shots figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* =========================================================
   くらべる
   ========================================================= */
.compare { padding: clamp(110px, 13vw, 170px) 0; background: #fff; }
.cmp { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.cmp-col { border-radius: 22px; padding: clamp(22px, 3vw, 36px); background: #f4f6f9; display: flex; flex-direction: column; }
.cmp-new { background: linear-gradient(180deg, #e0f2fe, #f0f9ff); }
.cmp-label { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.cmp-new .cmp-label { color: var(--sky-ink); }
.thread { margin-top: 22px; display: grid; gap: 12px; flex: 1; align-content: start; }
.thread li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.thread li.me { align-items: flex-end; }
.thread time { font-family: var(--latin); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.thread span { max-width: 88%; padding: 10px 14px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.6; box-shadow: 0 6px 16px -12px rgba(11, 33, 64, .35); }
.thread li.me span { background: var(--ink); color: #fff; }
.thread li.sys { align-items: center; }
.thread li.sys span { background: transparent; box-shadow: none; padding: 2px 0; color: var(--muted); font-weight: 700; font-size: 13px; }
.js .thread li { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.js .cmp.in .thread li { opacity: 1; transform: none; }
.cmp-total { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(11, 21, 38, .1); display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 700; color: var(--muted); }
.cmp-total b { font-size: clamp(28px, 3vw, 40px); color: var(--ink); font-feature-settings: "palt"; }
.cmp-new .cmp-total b { color: var(--blue); }

/* =========================================================
   料金・よくある質問
   ========================================================= */
.pricing { padding: clamp(110px, 13vw, 170px) 0; background: var(--ice); }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pricing .btn { margin-top: 34px; }
/* ふくまれる機能: 箱に入れず、線で区切った一覧にする */
.incl { padding-top: 18px; border-top: 2px solid var(--ink); }
.incl-title { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: .06em; }
.incl ul { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.incl li { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font-weight: 500; font-size: 15px; }
.incl li svg { width: 18px; height: 18px; color: var(--sky); flex: none; }
.faq { padding: clamp(110px, 13vw, 170px) 0; background: #fff; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list details:first-child { border-top: 1px solid var(--ink); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; color: var(--ink); font-weight: 700; font-size: 17px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 20px; height: 20px; flex: none; transition: transform .3s var(--ease); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-a { overflow: hidden; }
.faq-list details p { padding: 0 40px 24px 0; font-size: 15.5px; }
.faq-list details.closing summary svg { transform: none; }

/* =========================================================
   最後
   ========================================================= */
.final { position: relative; overflow: hidden; padding: clamp(110px, 13vw, 170px) 0 0; background: linear-gradient(180deg, #0b4f7c 0%, #0369a1 48%, #0ea5e9 100%); color: #fff; }
.final-inner { position: relative; z-index: 2; text-align: center; }
.final-title { color: #fff; font-size: clamp(36px, 6vw, 84px); line-height: 1.18; letter-spacing: -.01em; }
.final .btn { margin-top: 40px; }
.final-scene { position: relative; z-index: 1; margin-top: clamp(40px, 6vw, 80px); height: clamp(260px, 34vw, 480px); }
.final-office { position: absolute; left: 50%; bottom: -14%; width: min(1100px, 120%); transform: translateX(-50%); transform-origin: 50% 100%; filter: drop-shadow(0 -10px 40px rgba(0, 0, 0, .15)); will-change: transform; }
.final-a1, .final-a2 { position: absolute; bottom: 8%; width: clamp(70px, 9vw, 130px); filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .2)); }
.final-a1 { left: 8%; }
.final-a2 { right: 9%; }
html[data-motion="full"] .final.in .final-a1, html[data-motion="full"] .final.in .final-a2 { animation: bob 3.6s ease-in-out infinite; }
html[data-motion="full"] .final.in .final-a2 { animation-delay: -1.4s; }
.final-scene { order: 2; }
.final { display: flex; flex-direction: column; }

/* ---------- 画面の写真を拡大して見る ---------- */
.zoom-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 16px; cursor: zoom-in; }
.zoom-btn::after { content: "拡大"; position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 21, 38, .78); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; }
.zoom-btn:hover::after, .zoom-btn:focus-visible::after { opacity: 1; transform: none; }
.zoom { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); background: rgba(8, 15, 28, .86); opacity: 0; transition: opacity .25s ease; cursor: zoom-out; }
.zoom.open { opacity: 1; }
.zoom[hidden] { display: none; }
.zoom img { max-width: min(1320px, 100%); max-height: calc(100vh - 2 * clamp(16px, 4vw, 56px)); max-height: calc(100dvh - 2 * clamp(16px, 4vw, 56px)); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); transform: scale(.96); transition: transform .35s var(--ease); cursor: default; }
.zoom.open img { transform: none; }
.zoom-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.zoom-close svg { width: 22px; height: 22px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .62); font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 40px var(--gut) 44px; }
.site-footer .brand { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-note { width: 100%; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; color: rgba(255, 255, 255, .5); }

/* ---------- 表示アニメーション ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0s); }
.js .rv.in { opacity: 1; transform: none; }
html[data-motion="reduce"] .rv { transform: none; }
/* 見出しは句ごとに下から */
.js .split.rv { opacity: 1; transform: none; }
.js .split.rv .ph { opacity: 0; transform: translateY(.5em); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .split.rv.in .ph { opacity: 1; transform: none; }
.js .split.rv .ph:nth-child(2), .js .split.rv .ph:nth-of-type(2) { transition-delay: .09s; }
.js .split.rv .ph:nth-of-type(3) { transition-delay: .18s; }
html[data-motion="reduce"] .split.rv .ph { transform: none; }
.js .hero-copy .split .ph { opacity: 0; transform: translateY(.45em); animation: rise 1s var(--ease) forwards; }
.js .hero-copy .split .ph:nth-of-type(2) { animation-delay: .12s; }
.js .hero-copy .hero-lead, .js .hero-copy .btn { opacity: 0; animation: rise 1s var(--ease) .3s forwards; }
html[data-motion="reduce"] .hero-copy .split .ph, html[data-motion="reduce"] .hero-copy .hero-lead, html[data-motion="reduce"] .hero-copy .btn { animation-name: fade; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- レスポンシブ ---------- */

@media (max-width: 1080px) {
  .nav ul { gap: 18px; }
  .vd { grid-template-columns: minmax(0, 1fr); }
  .vd-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 8px var(--gut) 24px; flex-direction: column; align-items: stretch; gap: 14px; box-shadow: 0 12px 24px -16px rgba(11, 33, 64, .3); }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { align-self: flex-start; }
  .nav-toggle { display: inline-flex; }

  .hero { height: 340vh; }
  .hero-copy { top: 92px; }
  .hero-end { top: 84px; }

  .day-track { height: auto; }
  .day-pin { position: relative; height: auto; display: block; background: #fff !important; }
  .day-grid { display: block; padding-top: 24px; padding-bottom: 40px; }
  .day-map { max-width: 360px; margin: 0 auto 40px; }
  .steps { min-height: 0; display: grid; gap: 56px; }
  .step { position: relative; inset: auto; visibility: visible; transition: none; }
  .step .step-fig, .step .step-text { opacity: 1; transform: none !important; transition: none; }
  .day-ticks-wrap, .day-clock { display: none; }

  .split-2, .feat, .feat-att, .pricing-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .feat-att .feat-text { order: 0; }
  .vd-side { grid-template-columns: minmax(0, 1fr); }
  .share-stage { padding-bottom: 30%; }
  .share-main { width: 100%; }
  .share-zoom { width: 78%; right: -4%; }
  .custom-shots { grid-template-columns: minmax(0, 1fr); }
  .cmp { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  /* 狭い幅では句の途中でも折り返す (句ごとの動きは透明度だけ) */
  .split .ph { display: inline; }
  .intro-title { font-size: clamp(26px, 7.6vw, 34px); }
  .chip { padding: 5px 9px 5px 7px; font-size: 11px; gap: 6px; }
  .chip b { display: none; }
  .chip i { width: 7px; height: 7px; box-shadow: none; }
  .ring-note { font-size: 11px; }
  .md-toggle { position: static; margin-top: 14px; height: 44px; }
  .lead { font-size: 15.5px; }
  .hero-copy h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-beats { bottom: 10vh; }
  .beat { font-size: clamp(22px, 6.4vw, 30px); max-width: 12.5em; }
  .hero-fade-beat { width: 100%; height: 52%; background: linear-gradient(0deg, rgba(238, 245, 251, .96) 0%, rgba(238, 245, 251, .82) 45%, rgba(238, 245, 251, 0) 100%); }
  .hero-lead { font-size: 15px; }
  .hero-copy .btn { height: 54px; }
  .intro-text { font-size: 15.5px; }
  .feat-visual { grid-template-columns: minmax(0, 1fr); }
  .att-visual { padding-bottom: 0; display: grid; gap: 16px; }
  .att-visual .ui-month { width: 100%; }
  .att-visual .att { position: relative; width: 100%; }
  .stt, .att { aspect-ratio: 5 / 5; max-width: 380px; width: 100%; margin: 0 auto; }
  .incl ul { grid-template-columns: minmax(0, 1fr); }
  .faq-list summary { font-size: 15.5px; padding: 20px 0; }
  .final-a1 { left: 2%; } .final-a2 { right: 2%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
/* スマホの横向きなど、背の低い画面: 見出しを縮め、最後の一言は下に出す (上の吹き出しと重ならないように) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-copy { top: 72px; }
  .hero-copy h1 { font-size: clamp(28px, 8.6vh, 48px); }
  .hero-lead { margin-top: 10px; max-width: 22em; font-size: 13.5px; line-height: 1.75; }
  .hero-copy .btn { margin-top: 16px; height: 46px; }
  .scroll-cue { display: none; }
  .hero-beats { bottom: 7vh; }
  .beat { font-size: clamp(20px, 6.4vh, 30px); }
  .hero-end { top: auto; bottom: 7vh; }
  .hero-end-title { font-size: clamp(22px, 7vh, 34px); }
}
/* 背の低い縦長の画面 (iPhone SE など): 「スクロールして」の案内は模型と重なるので出さない */
@media (max-height: 700px) and (orientation: portrait) {
  .scroll-cue { display: none; }
}
