/* ─────────────────────────────────────────────
   revinavi — 事業サイト（ホームページ制作・保守運用・口コミ集客）
   夜の街と、灯りのついた店先。青は画面の光、金はお店の灯り。
   主役はヒーローの4K映像と縦書きの見出し。他は静かに。
   ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

:root {
  --night:   #050a14;
  --indigo:  #0d1a2e;
  --indigo2: #13233c;
  --light:   #4d9de0;
  --light2:  #7ab8f5;
  --lamp:    #d9b877;
  --white:   #eaf2ff;
  --mist:    #9db2c8;   /* night 上で 8.6:1 */
  --mist2:   #7f96ad;   /* 補足文字 5.9:1 */
  --rule:    rgba(122,184,245,.14);
  --rule2:   rgba(122,184,245,.08);

  --f-head: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --f-body: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --f-en:   'Cormorant Garamond', 'Times New Roman', serif;

  --nav-h: 64px;
  --gutter: 22px;               /* .wrap の左右余白（画面幅で変わる） */
  --edge: var(--gutter);        /* 本文の左端の線。ナビ・ヒーローもこれに揃える */
  --ease: cubic-bezier(.2,.7,.2,1);
}

body.home {
  background: var(--night);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--light); color: #fff; }
:focus-visible { outline: 2px solid var(--light2); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); color: var(--night); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-left)); }

h1, h2, h3 { font-family: var(--f-head); font-weight: 600; text-wrap: balance; word-break: auto-phrase; }
p, li, dd { text-wrap: pretty; }

/* ━━ ボタン ━━ */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 58px; padding: 0 9px 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-body); font-weight: 700; font-size: .95rem; letter-spacing: .08em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .16s ease-out, background-color .16s ease-out, border-color .16s ease-out, box-shadow .16s ease-out;
}
.btn:active { transform: translateY(1px); }
.btn__ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; transition: transform .16s ease-out; }
.btn:hover .btn__ico { transform: translateX(3px); }
.btn--light { background: var(--white); color: var(--night); }
.btn--light .btn__ico { background: var(--night); color: var(--white); }
.btn--light:hover { background: #fff; box-shadow: 0 10px 40px -12px rgba(234,242,255,.5); }
.btn--line { color: var(--white); border-color: rgba(234,242,255,.35); padding-right: 26px; justify-content: center; }
.btn--line:hover { border-color: var(--white); background: rgba(234,242,255,.06); }
.btn--blue {
  background: linear-gradient(180deg, #3b7cf0, #2357d4); color: #fff;
  border-color: rgba(147,197,253,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 36px -16px rgba(37,99,235,.95);
}
.btn--blue .btn__ico { background: rgba(255,255,255,.16); }
.btn--blue:hover { transform: translateY(-1px); }
.btn--block { display: flex; width: 100%; }
.link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  color: var(--light2); font-weight: 700; font-size: .92rem; text-decoration: none;
  border-bottom: 1px solid rgba(122,184,245,.4); padding-bottom: 4px;
  transition: border-color .15s ease-out, color .15s ease-out;
}
.link:hover { color: #fff; border-color: #fff; }

/* ━━ ナビ ━━ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--edge), env(safe-area-inset-right)) 0 max(var(--edge), env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(180deg, rgba(5,10,20,.65), rgba(5,10,20,0));
  transition: background-color .25s ease-out, box-shadow .25s ease-out;
}
.nav.is-solid { background: rgba(5,10,20,.9); box-shadow: 0 1px 0 var(--rule2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav__logo { font-family: var(--f-en); font-style: italic; font-size: 1.6rem; letter-spacing: .02em; color: var(--white); text-decoration: none; line-height: 1; }
.nav__logo span { color: var(--light2); }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link { color: rgba(234,242,255,.82); text-decoration: none; font-size: .84rem; padding: 10px 11px; border-radius: 6px; transition: color .15s ease-out; }
.nav__link:hover { color: #fff; }
.nav__link--wide { display: none; }
.nav__cta {
  margin-left: 6px; padding: 9px 18px; border-radius: 999px;
  background: var(--white); color: var(--night); font-weight: 700; font-size: .84rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease-out;
}
.nav__cta:hover { transform: translateY(-1px); }

/* ━━ ヒーロー ━━ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 620px;
  background: var(--night) url('/video/hero-poster-sm.jpg') 30% center / cover no-repeat;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% center;
  transform: scale(calc(1.04 + var(--hp, 0) * .06)) translateY(calc(var(--hp, 0) * 4%));
  transform-origin: 50% 40%;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(5,10,20,.96) 0%, rgba(5,10,20,.7) 30%, rgba(5,10,20,.12) 60%, rgba(5,10,20,.4) 100%),
    radial-gradient(70% 80% at 100% 20%, rgba(5,10,20,.55), transparent 70%);
}
.hero__grain {
  position: absolute; inset: -50%; opacity: .07; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 縦書きの見出し：映画のタイトルのように右上から */
.hero__title {
  position: absolute; z-index: 2;
  top: calc(var(--nav-h) + env(safe-area-inset-top) + 4vh);
  right: max(18px, 5vw);
  display: flex; flex-direction: row-reverse; gap: .45em;
  font-size: min(2.15rem, 4.6svh);
  font-weight: 700; line-height: 1.05; letter-spacing: .2em;
  text-shadow: 0 2px 24px rgba(5,10,20,.55);
}
.hero__col { writing-mode: vertical-rl; text-orientation: mixed; display: block; }
.hero__col:nth-child(2) { margin-top: 1.2em; }
.hero__col:nth-child(3) { margin-top: 2.4em; color: var(--lamp); }
.hero__ink { display: block; }

.hero__base {
  position: absolute; z-index: 2; left: 0; right: 0;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 24px));
  padding: 0 max(var(--edge), env(safe-area-inset-left));
}
.hero__services { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin-bottom: 16px; }
.hero__services li + li::before { content: ''; display: inline-block; width: 1px; height: .9em; background: rgba(234,242,255,.35); margin: 0 12px; vertical-align: -1px; }
.hero__services a { color: rgba(234,242,255,.92); text-decoration: none; font-size: .84rem; font-weight: 500; letter-spacing: .1em; }
.hero__services a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.hero__lead { font-size: .95rem; line-height: 1.95; color: rgba(234,242,255,.84); max-width: 27em; margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px 12px; }

.hero__scroll { display: none; }
.hero__pause {
  position: absolute; z-index: 3; left: max(var(--edge), env(safe-area-inset-left)); top: calc(var(--nav-h) + env(safe-area-inset-top) + 10px);
  background: rgba(5,10,20,.45); color: rgba(234,242,255,.85); border: 1px solid rgba(234,242,255,.22);
  font-size: .72rem; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  transition: background-color .15s ease-out;
}
.hero__pause:hover { background: rgba(5,10,20,.75); }

/* 一度だけの演出：縦書きが上から書かれていく（JS が表示中と判断したときだけ） */
@media (prefers-reduced-motion: no-preference) {
  .js .hero.is-intro .hero__ink { animation: ink 1.3s var(--ease) both; }
  .js .hero.is-intro .hero__col:nth-child(2) .hero__ink { animation-delay: .28s; }
  .js .hero.is-intro .hero__col:nth-child(3) .hero__ink { animation-delay: .56s; }
  .js .hero.is-intro .hero__base { animation: rise .9s .9s var(--ease) both; }
  @keyframes ink { from { clip-path: inset(0 0 100% 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ━━ セクション共通 ━━ */
.sec-title { font-size: clamp(1.7rem, 6.6vw, 2.6rem); line-height: 1.45; letter-spacing: .06em; margin-bottom: 18px; }
.sec-lead { color: var(--mist); font-size: .98rem; max-width: 34em; }

/* 問題提起 */
.intro { padding: 112px 0 96px; position: relative; }
.intro__grid { display: grid; gap: 32px; }
.intro__film {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--indigo) url('/video/diner-poster-sm.jpg') center / cover;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
}
.intro__film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,10,20,0) 55%, rgba(5,10,20,.45)); pointer-events: none; }
.intro__video { width: 100%; height: 100%; object-fit: cover; }
.intro__title { font-size: clamp(2rem, 8.4vw, 3.6rem); line-height: 1.4; letter-spacing: .08em; }
.intro__body p { color: var(--mist); font-size: 1rem; line-height: 2.1; max-width: 32em; }
.intro__body p + p { margin-top: 1.2em; }
.intro__body p:last-child { color: var(--white); }

/* ━━ サービス ━━ */
.services { padding: 40px 0 40px; }
.services > .wrap:first-child { margin-bottom: 56px; }
.svc { padding: 64px 0; position: relative; }
.svc + .svc::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(1180px, 88%); height: 1px; background: linear-gradient(90deg, transparent, var(--rule), transparent); }
.svc__grid { display: grid; gap: 44px; align-items: center; }
.svc__kicker { font-family: var(--f-en); font-style: italic; font-size: 1.15rem; color: var(--lamp); margin-bottom: 6px; letter-spacing: .04em; }
.svc__title { font-size: clamp(1.7rem, 6vw, 2.4rem); letter-spacing: .08em; line-height: 1.4; margin-bottom: 14px; }
.svc__lead { font-family: var(--f-head); font-size: 1.12rem; line-height: 1.8; margin-bottom: 18px; color: var(--white); }
.svc__body { color: var(--mist); font-size: .96rem; line-height: 2; max-width: 30em; }
.svc__list { list-style: none; margin-top: 22px; border-top: 1px solid var(--rule); max-width: 30em; }
.svc__list li { position: relative; padding: 13px 0 13px 22px; border-bottom: 1px solid var(--rule2); color: var(--mist); font-size: .94rem; line-height: 1.7; }
.svc__list li::before { content: ''; position: absolute; left: 0; top: 1.45em; width: 10px; height: 1px; background: var(--light); }
.svc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.svc__price { color: var(--mist); font-size: .88rem; }

/* ── 組み上がるサイトのイラスト ── */
.build { position: relative; width: min(540px, 100%); justify-self: center; }
.build__window {
  border-radius: 14px; overflow: hidden;
  background: #0a1526; border: 1px solid rgba(122,184,245,.2);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(5,10,20,.6);
}
.build__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #0f1d33; border-bottom: 1px solid var(--rule2); }
.build__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(234,242,255,.18); }
.build__url { margin-left: 10px; flex: 1; font-size: .7rem; color: var(--mist2); background: rgba(5,10,20,.6); border-radius: 6px; padding: 3px 10px; letter-spacing: .04em; }
.build__page { padding: 14px; display: grid; gap: 10px; }
.b { transform-origin: left center; }
.b--nav { display: flex; gap: 8px; align-items: center; height: 14px; }
.b--nav span { height: 6px; border-radius: 3px; background: rgba(234,242,255,.22); width: 34px; }
.b--nav span:first-child { width: 60px; height: 9px; background: var(--lamp); opacity: .85; margin-right: auto; }
.b--hero { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 8 / 3; }
.b--hero svg { width: 100%; height: 100%; }
.b--hero-t, .b--hero-s { position: absolute; left: 7%; height: 9px; border-radius: 4px; background: rgba(234,242,255,.9); }
.b--hero-t { top: 30%; width: 38%; height: 12px; }
.b--hero-s { top: 50%; width: 26%; background: rgba(234,242,255,.45); }
.b--cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.b--cols span { aspect-ratio: 4 / 3; border-radius: 6px; background: linear-gradient(160deg, #183256, #0f2140); border: 1px solid var(--rule2); }
.b--lines { display: grid; gap: 6px; }
.b--lines span { height: 6px; border-radius: 3px; background: rgba(234,242,255,.14); }
.b--lines span:nth-child(2) { width: 86%; } .b--lines span:nth-child(3) { width: 60%; }
.b--btn { width: 32%; height: 22px; border-radius: 999px; background: var(--light); }
.build__cursor { position: absolute; width: 26px; height: 26px; left: 30%; bottom: 6%; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }

@media (prefers-reduced-motion: no-preference) {
  .js .build .b { opacity: 0; transform: scaleX(.6) translateY(6px); }
  .js .build   .js .build .build__cursor { opacity: 0; transform: translate(140px, 60px); }
  .js .build.is-on .b { animation: build-in .55s var(--ease) both; }
  .js .build.is-on .b--nav   { animation-delay: .05s; }
  .js .build.is-on .b--hero  { animation-delay: .25s; }
  .js .build.is-on .b--cols  { animation-delay: .5s; }
  .js .build.is-on .b--lines { animation-delay: .7s; }
  .js .build.is-on .b--btn   { animation-delay: .9s; }
  .js .build.is-on .build__cursor { animation: cursor-in 1.1s .9s var(--ease) both; }
  @keyframes build-in { from { opacity: 0; transform: scaleX(.6) translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes cursor-in { 0% { opacity: 0; transform: translate(140px, 60px); } 70% { opacity: 1; transform: translate(0, 0); } 85% { transform: scale(.85); } 100% { opacity: 1; transform: none; } }
}

/* ── 保守運用：4K映像＋毎月の作業 ── */
.care { position: relative; width: min(560px, 100%); justify-self: center; border-radius: 16px; overflow: hidden; border: 1px solid rgba(122,184,245,.2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.care__sheet {
  position: relative;
  background: #0a1526;
  padding: 26px 28px 18px;
}
.care__sheet-head { font-family: var(--f-head); font-size: .98rem; font-weight: 600; margin-bottom: 8px; }
.care__checks { list-style: none; }
.care__checks li { position: relative; padding: 8px 0 8px 28px; font-size: .86rem; line-height: 1.6; color: var(--mist); border-top: 1px solid var(--rule2); }
.care__checks li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(122,184,245,.5);
}
.care__checks li::after {
  content: ''; position: absolute; left: 5px; top: 14px; width: 6px; height: 3px;
  border-left: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: rotate(-45deg);
}
.care__checks li::before { background: var(--light); border-color: var(--light); }
@media (prefers-reduced-motion: no-preference) {
  .js .care__sheet:not(.is-on) .care__checks li::before { background: transparent; border-color: rgba(122,184,245,.5); }
  .js .care__sheet:not(.is-on) .care__checks li::after { opacity: 0; }
  .js .care__sheet.is-on .care__checks li::before { animation: tick-bg .3s ease-out both; }
  .js .care__sheet.is-on .care__checks li::after  { animation: tick .3s ease-out both; }
  .js .care__sheet.is-on .care__checks li:nth-child(2)::before, .js .care__sheet.is-on .care__checks li:nth-child(2)::after { animation-delay: .25s; }
  .js .care__sheet.is-on .care__checks li:nth-child(3)::before, .js .care__sheet.is-on .care__checks li:nth-child(3)::after { animation-delay: .5s; }
  .js .care__sheet.is-on .care__checks li:nth-child(4)::before, .js .care__sheet.is-on .care__checks li:nth-child(4)::after { animation-delay: .75s; }
  .js .care__sheet.is-on .care__checks li:nth-child(5)::before, .js .care__sheet.is-on .care__checks li:nth-child(5)::after { animation-delay: 1s; }
  @keyframes tick-bg { from { background: transparent; border-color: rgba(122,184,245,.5); transform: scale(.7); } to { background: var(--light); border-color: var(--light); transform: none; } }
  @keyframes tick { from { opacity: 0; } to { opacity: 1; } }
}

/* ── 口コミ集客：スマホ ── */
.phone { position: relative; justify-self: center; width: min(310px, 100%); }
.phone__body { background: linear-gradient(160deg, #1b2a44, #0b1424); border-radius: 42px; padding: 11px; border: 1px solid rgba(122,184,245,.25); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 80px -20px rgba(37,99,235,.35); }
.phone__screen { background: #060b16; border-radius: 32px; padding: 26px 16px 20px; min-height: 560px; position: relative; overflow: hidden; }
.phone__screen::before { content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 70px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); }
.ph-genre { font-family: var(--f-en); font-style: italic; font-size: .78rem; color: var(--light); text-align: center; margin-top: 6px; }
.ph-name { font-family: var(--f-head); font-size: 1.1rem; font-weight: 600; letter-spacing: .08em; text-align: center; margin: 2px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.ph-q { font-size: .74rem; font-weight: 700; margin-bottom: 8px; }
.ph-q b { font-family: var(--f-en); font-style: italic; color: var(--light); font-size: .9rem; margin-right: 6px; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.ph-chips span { font-size: .66rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--rule); color: var(--mist2); }
.ph-chips .on { background: rgba(77,157,224,.14); border-color: rgba(77,157,224,.4); color: var(--light2); }
.ph-draft { border: 1px solid rgba(77,157,224,.32); border-radius: 12px; padding: 12px; background: #0d1a2e; margin-bottom: 10px; min-height: 150px; }
.ph-draft__label { font-size: .64rem; font-weight: 700; color: var(--light2); margin-bottom: 6px; letter-spacing: .08em; }
.ph-draft__text { font-size: .72rem; line-height: 1.9; color: var(--white); }
.ph-draft__text.is-typing::after { content: ''; display: inline-block; width: 1px; height: 1em; background: var(--light2); margin-left: 2px; vertical-align: -2px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ph-btn { display: block; text-align: center; font-size: .7rem; font-weight: 700; color: #fff; padding: 11px; border-radius: 10px; background: linear-gradient(135deg, #1a73e8, #0d5bba); }

/* ━━ 循環図 ━━ */
.loop { padding: 88px 0; position: relative; background: radial-gradient(60% 50% at 70% 50%, rgba(37,99,235,.12), transparent 70%); }
.loop__grid { display: grid; gap: 48px; align-items: center; }
.loop__text p { color: var(--mist); max-width: 30em; line-height: 2.05; }
.loop__text p + p { margin-top: 1em; }
.cycle { position: relative; width: min(440px, calc(100% - 48px)); aspect-ratio: 1; justify-self: center; }
.cycle__svg { width: 100%; height: 100%; overflow: visible; }
.cycle__nodes { list-style: none; }
.cycle__nodes li {
  position: absolute; transform: translate(-50%, -50%);
  background: var(--indigo); border: 1px solid rgba(122,184,245,.3); border-radius: 12px;
  padding: 8px 12px; text-align: center; white-space: nowrap;
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.9);
}
.cycle__nodes b { display: block; font-family: var(--f-head); font-size: .86rem; font-weight: 600; letter-spacing: .04em; }
.cycle__nodes span { display: block; font-size: .66rem; color: var(--mist2); letter-spacing: .06em; }
.cycle__nodes .n1 { left: 50%; top: 12.5%; }
.cycle__nodes .n2 { left: 87.5%; top: 50%; }
.cycle__nodes .n3 { left: 50%; top: 87.5%; }
.cycle__nodes .n4 { left: 12.5%; top: 50%; }
.cycle__nodes .n3 { border-color: rgba(217,184,119,.45); }
.cycle__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.cycle__core b { display: block; font-family: var(--f-head); font-size: 1.05rem; color: var(--lamp); letter-spacing: .1em; }
.cycle__core span { display: block; font-size: .7rem; color: var(--mist2); margin-top: 2px; }

/* ━━ 進め方 ━━ */
.flow { padding: 88px 0; }
.steps { list-style: none; margin-top: 48px; position: relative; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 34px 64px; }
.steps li::before { content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px; background: linear-gradient(var(--rule), var(--rule2)); }
.steps li:last-child::before { display: none; }
.steps__no {
  position: absolute; left: 0; top: 0; width: 43px; height: 43px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-en); font-style: italic; font-size: 1.35rem; color: var(--lamp);
  border: 1px solid rgba(217,184,119,.45); background: var(--night);
}
.steps h3 { font-size: 1.12rem; letter-spacing: .06em; margin: 6px 0 6px; }
.steps p { color: var(--mist); font-size: .92rem; line-height: 1.9; max-width: 28em; }

/* ━━ 料金 ━━ */
.price { padding: 104px 0; background: linear-gradient(180deg, transparent, rgba(13,26,46,.6) 30%, rgba(13,26,46,.6) 70%, transparent); }
.plans { display: grid; gap: 16px; margin-top: 48px; }
.plan { position: relative; padding: 30px 26px 28px; border-radius: 18px; border: 1px solid var(--rule); background: rgba(5,10,20,.5); display: flex; flex-direction: column; }
.plan__name { font-size: 1.12rem; letter-spacing: .06em; margin-bottom: 14px; }
.plan__price { font-family: var(--f-head); font-size: 1.6rem; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.plan__price .num { font-size: 2.4rem; letter-spacing: .02em; }
.plan__price small { font-family: var(--f-body); font-size: .8rem; font-weight: 400; color: var(--mist); margin-left: 4px; }
.plan__note { color: var(--mist); font-size: .88rem; line-height: 1.85; margin-bottom: 24px; flex: 1; }
.plan--main { border-color: rgba(77,157,224,.5); background: linear-gradient(180deg, rgba(37,99,235,.14), rgba(5,10,20,.5) 60%); }
.plan--main::before { content: ''; position: absolute; left: 26px; right: 26px; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--light2), transparent); }
.plan__legal { display: block; text-align: center; margin-top: 14px; font-size: .74rem; color: var(--mist2); }

/* 料金：サービスごとの明細 */
.rates { display: grid; gap: 18px; margin-top: 48px; }
.rate { position: relative; display: flex; flex-direction: column; padding: 30px 26px 28px; border-radius: 18px; border: 1px solid var(--rule); background: rgba(5,10,20,.55); }
.rate__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.rate__name { font-size: 1.15rem; letter-spacing: .06em; }
.rate__unit { font-size: .76rem; color: var(--mist2); white-space: nowrap; }
.rate__rows { flex: 1; }
.rate__rows > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule2); }
.rate__rows dt { font-weight: 700; font-size: .95rem; align-self: baseline; }
.rate__price { font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; text-align: right; align-self: baseline; white-space: nowrap; }
.rate__price .num { font-size: 1.55rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.rate__price small { font-family: var(--f-body); font-size: .76rem; font-weight: 400; color: var(--mist); margin-left: 2px; }
.rate__desc { grid-column: 1 / -1; color: var(--mist); font-size: .84rem; line-height: 1.8; }
.rate__note { font-size: .78rem; color: var(--mist2); line-height: 1.8; margin: 16px 0 22px; }
.rate__note a { color: var(--mist); margin-left: .4em; text-underline-offset: 3px; white-space: nowrap; }
.rate--main { border-color: rgba(77,157,224,.5); background: linear-gradient(180deg, rgba(37,99,235,.14), rgba(5,10,20,.55) 55%); }
.rate--main::before { content: ''; position: absolute; left: 26px; right: 26px; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--light2), transparent); }
.svc__actions--quiet { margin-top: 28px; }
.svc__actions--quiet .link { margin-top: 0; }

/* ━━ よくある質問 ━━ */
.faq { padding: 104px 0; }
.faq__list { margin-top: 36px; border-top: 1px solid var(--rule); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  padding: 22px 2px; font-family: var(--f-head); font-weight: 600; font-size: 1.02rem; line-height: 1.7;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex-shrink: 0; width: 14px; height: 14px; margin-top: 7px;
  background: linear-gradient(var(--light2), var(--light2)) center / 100% 1.5px no-repeat, linear-gradient(var(--light2), var(--light2)) center / 1.5px 100% no-repeat;
  transition: transform .18s ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mist); font-size: .94rem; line-height: 2; padding: 0 2px 24px; max-width: 40em; }

/* ━━ 相談 ━━ */
.closing { position: relative; isolation: isolate; padding: 140px 0 132px; overflow: hidden; }
.closing__media {
  position: absolute; inset: 0; z-index: -1;
  background: url('/video/street-poster-sm.jpg') 60% center / cover no-repeat;
  opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
}
.closing__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.closing__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,10,20,.94) 0%, rgba(5,10,20,.7) 45%, rgba(5,10,20,.35) 100%); }
.closing__title { font-size: clamp(1.9rem, 7.4vw, 3.2rem); line-height: 1.45; letter-spacing: .06em; margin-bottom: 22px; }
.closing__inner > p { color: var(--mist); max-width: 30em; margin-bottom: 34px; }
.closing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.closing__mail { color: var(--mist); font-size: .92rem; text-underline-offset: 5px; }
.closing__mail:hover { color: #fff; }

/* ━━ フッター ━━ */
.foot { border-top: 1px solid var(--rule2); padding: 44px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot__inner { display: grid; gap: 26px; }
.foot__logo { font-size: 1.5rem; }
.foot__desc { color: var(--mist2); font-size: .78rem; margin-top: 8px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__nav a { color: var(--mist); font-size: .82rem; text-decoration: none; }
.foot__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot__copy { color: var(--mist2); font-size: .72rem; margin-top: 30px; }

/* ━━ 600px〜 ━━ */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan--main { grid-column: 1 / -1; }
  .rates { grid-template-columns: 1fr 1fr; }
  .rate--main { grid-column: 1 / -1; }
  .hero__title { font-size: min(2.8rem, 5.2svh); }
}

/* ━━ 960px〜：横組み ━━ */
@media (min-width: 960px) {
  :root { --edge: max(var(--gutter), calc((100vw - var(--sbw, 0px) - 1180px) / 2 + var(--gutter))); }
  .nav__link--wide { display: inline-block; }
  .hero { background-image: url('/video/hero-poster.jpg'); background-position: center; }
  .hero__video { object-position: center; }
  /* 見出しは二人の会話のあいだに置く（顔に重ねない） */
  .hero__veil {
    background:
      radial-gradient(20% 48% at 51% 40%, rgba(5,10,20,.62), rgba(5,10,20,0) 100%),
      linear-gradient(90deg, rgba(5,10,20,.8) 0%, rgba(5,10,20,.3) 30%, rgba(5,10,20,0) 50%),
      linear-gradient(0deg, rgba(5,10,20,.88) 0%, rgba(5,10,20,0) 40%),
      linear-gradient(180deg, rgba(5,10,20,.5) 0%, rgba(5,10,20,0) 18%);
  }
  .hero { --tf: min(4.4rem, 7svh, 4.6vw); }
  .hero__title { font-size: var(--tf); right: auto; left: 51%; transform: translateX(-50%); top: calc(var(--nav-h) + 7vh); }
  /* 本文の右端が縦書き見出しの左端より 40px 手前で止まるように幅を決める（見出し幅 ≒ 3.9em） */
  .hero__base { left: var(--edge); right: auto; bottom: max(64px, 9vh); padding: 0;
    width: max(300px, min(560px, calc(51% - 1.95 * var(--tf) - 40px - var(--edge)))); }
  .hero__lead { font-size: 1.04rem; }
  .hero__scroll { display: block; position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 1px; height: 56px; background: rgba(234,242,255,.18); overflow: hidden; }
  .hero__scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: var(--white); }
  .hero__pause { top: auto; left: auto; bottom: 30px; right: var(--edge); }
  .intro { padding: 160px 0 140px; }

  .services > .wrap:first-child { margin-bottom: 40px; }
  .svc { padding: 104px 0; }
  .svc__grid { grid-template-columns: 1fr 1.1fr; gap: 88px; }
  .svc__grid--rev .svc__text { order: 2; }
  .intro__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 80px; row-gap: 40px; align-items: start; }
  .intro__title { grid-column: 1; grid-row: 1; }
  .intro__body  { grid-column: 1; grid-row: 2; }
  .intro__film  { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 4 / 5; align-self: stretch; background-image: url('/video/diner-poster.jpg'); }
  .closing__media { background-image: url('/video/street-poster.jpg'); }
  .loop { padding: 150px 0; }
  .loop__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; }
  .flow, .price, .faq { padding: 140px 0; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps li { padding: 64px 0 0; }
  .steps h3 { min-height: calc(2 * 1.7em); line-height: 1.7; }  /* 1行・2行の見出しで本文の開始位置を揃える */
  .steps li::before { left: 44px; right: -24px; top: 21px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--rule), var(--rule2)); }
  .plans { grid-template-columns: 1fr 1fr 1.2fr; align-items: stretch; }
  .rates { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
  .rate { padding: 34px 30px 30px; }
  .rate--main { grid-column: auto; }
  .plan--main { grid-column: auto; padding: 36px 32px 30px; }
  .closing { padding: 190px 0 180px; }
  .foot__inner { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .hero__scroll span { animation: scroll-cue 2.4s var(--ease) infinite; }
  @keyframes scroll-cue { 0% { transform: translateY(-18px); } 100% { transform: translateY(56px); } }
}
@media (max-width: 380px) {
  .nav__logo { font-size: 1.4rem; }
  .nav__link { padding: 10px 7px; font-size: .8rem; }
  .nav__cta { padding: 8px 13px; }
  .btn { height: 54px; padding-left: 22px; font-size: .9rem; }
  .cycle__nodes li { padding: 6px 9px; }
  .cycle__nodes b { font-size: .76rem; }
}
/* 縦に短い画面：見出しと本文が重ならないように */
@media (max-height: 700px) and (max-width: 959px) {
  .hero__lead { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video { transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

