/* ============================================================
   FROM DOWNTOWN LLC. — style.css
   Light / Bright theme + Full-screen snap + Panel switch
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink:    #15171C;          /* near-black text */
  --ink-2:  #0B0C10;
  --ink-soft: rgba(21, 23, 28, .72);
  --paper:  #F7F5F0;          /* warm off-white base */
  --paper-2:#FFFFFF;          /* pure white panel */
  --muted:  #8A8F99;
  --line:   rgba(21, 23, 28, .12);
  --line-soft: rgba(21, 23, 28, .07);
  --ember:  #FF5028;
  --ember-dim: rgba(255, 80, 40, .5);
  --ember-tint: rgba(255, 80, 40, .07);

  --font-display: "Clash Display", "General Sans", system-ui, sans-serif;
  --font-en: "General Sans", system-ui, -apple-system, sans-serif;
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 96px);
  --maxw: 1320px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}
/* フルスクリーン切替: 行き過ぎを防ぎつつ操作性を確保。
   ロード完了後に JS で .snap-on を付与して有効化する。
   (ロード時から有効だと、ハッシュ付き URL のジャンプや初期スクロール位置の
    復元と競合し、意図しない位置にスナップされることがあるため)
   mandatory は使わない: ページ内リンクの長距離スムーススクロールを途中で
   止めてしまい、目的セクションに到達できない不具合の原因になる。 */
html.snap-on { scroll-snap-type: y proximity; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp);
  font-feature-settings: "palt";
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
.ember { color: var(--ember); }

::selection { background: var(--ember); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 2px;
}

.sp-only { display: none; }

/* ---------- Grain overlay(白地ではごく薄く) ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 200;
  opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- スクロール進捗バー ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 250;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ---------- Loader(3ポイントシュート演出) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: #0b0c10;               /* ブランドのダーク背景 */
  transition: opacity .7s var(--ease-out), visibility 0s .7s;
}
body.is-loaded .loader { opacity: 0; visibility: hidden; }
/* 同一セッション2回目以降はローダー自体を出さない(JS で付与) */
body.no-loader .loader { display: none; }

.loader-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 4vh, 36px);
}
.shot { width: min(72vw, 440px); height: auto; overflow: visible; }

/* リム(ゴール) */
.shot .rim { stroke: var(--paper); stroke-width: 3; stroke-linecap: round; opacity: .85; }
.shot .net {
  stroke: rgba(237, 234, 226, .5);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0;
  animation: netSwish .6s var(--ease-out) 1.2s both;
}
/* 軌道(放物線)— ボールの飛行に合わせて描かれる */
.shot .arc {
  fill: none;
  stroke: var(--ember);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgba(255, 80, 40, .6));
  animation: arcDraw 1.2s cubic-bezier(.4, 0, .2, 1) forwards;
}
/* ボール */
.shot .ball { fill: var(--paper); filter: drop-shadow(0 0 8px rgba(255, 80, 40, .7)); }
/* ゴール成功のフラッシュ */
.shot .flash {
  fill: var(--ember);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: flashPop .55s var(--ease-out) 1.15s both;
}

.loader-word {
  font-family: var(--font-en);
  font-size: clamp(13px, 3.4vw, 17px);
  font-weight: 600;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--paper);
  opacity: 0;
  transform: translateY(10px);
  animation: wordIn .7s var(--ease-out) 1.5s forwards;
}

@keyframes arcDraw { to { stroke-dashoffset: 0; } }
@keyframes netSwish { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: .55; } }
@keyframes flashPop {
  0%   { opacity: 0; transform: scale(.2); }
  45%  { opacity: .9; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.7); }
}
@keyframes wordIn { to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s, box-shadow .4s;
}
.header.is-scrolled {
  padding: 14px var(--gutter);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(21, 23, 28, .05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { width: 26px; height: 26px; color: var(--ink); }
.brand-name {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
}
.brand-name sup { font-size: 8px; color: var(--muted); margin-left: 2px; }

.nav-list {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}
.nav-list a {
  position: relative;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color .3s;
}
.nav-list a i {
  font-style: normal;
  font-size: 9px;
  color: var(--ember);
  margin-right: 6px;
  vertical-align: super;
  letter-spacing: 0;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--ink); }
.nav-list a:hover::after,
.nav-list a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .35s var(--ease-out), top .35s var(--ease-out), background .35s;
}
.nav-toggle span:nth-child(1) { top: 20px; }
.nav-toggle span:nth-child(2) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* ============================================================
   Full-screen panels(スナップ + 画面切替)
   ============================================================ */
.snap {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  min-height: 100svh;
  position: relative;
}

/* 各パネルの背景を交互にして「切り替わった」感を出す */
/* パネル背景: 単色＋ごく淡いラジアルグラデで平面に奥行きを出す */
.hero       { background: var(--paper-2); }
.philosophy {
  background:
    radial-gradient(75% 60% at 100% 50%, rgba(255, 80, 40, .05), transparent 62%),
    var(--paper);
}
.services {
  background:
    radial-gradient(62% 55% at 2% 0%, rgba(21, 23, 28, .03), transparent 60%),
    var(--paper-2);
}
.company {
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(255, 80, 40, .045), transparent 62%),
    var(--paper);
}
.contact {
  background:
    radial-gradient(56% 56% at 50% 42%, rgba(255, 80, 40, .06), transparent 66%),
    var(--paper-2);
}

/* セクション内の共通レイアウト */
.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(96px, 14vh, 140px) var(--gutter) clamp(64px, 10vh, 96px);
}
.sec-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* パネル境界の細線 */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line-soft);
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(40px, 7vh, 72px);
}
.sec-index {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--ember);
  letter-spacing: .1em;
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.sec-jp {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .18em;
}
.sec-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
  line-height: 2.1;
  color: var(--ink);
  margin-bottom: clamp(40px, 6vh, 64px);
}

/* ---------- 画面切替アニメーション(アクティブパネルで再生) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.snap.is-active .reveal { opacity: 1; transform: none; }
/* パネル内の要素を順番にせり上げる(切替の「めくれ」感) */
.snap.is-active .reveal:nth-child(1) { transition-delay: .05s; }
.snap.is-active .reveal:nth-child(2) { transition-delay: .14s; }
.snap.is-active .reveal:nth-child(3) { transition-delay: .22s; }
.snap.is-active .reveal:nth-child(4) { transition-delay: .30s; }
.snap.is-active .reveal:nth-child(5) { transition-delay: .38s; }

/* ---------- 01 Philosophy ---------- */
.philosophy { overflow: clip; }

.bg-numeral {
  position: absolute;
  top: 50%;
  right: -4%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20rem, 46vw, 44rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(21, 23, 28, .05);
  user-select: none;
  pointer-events: none;
}

.phil-body p {
  max-width: 38em;
  margin-bottom: 1.4em;
  color: var(--ink-soft);
}
.phil-body em { font-family: var(--font-en); font-weight: 600; letter-spacing: .02em; }

/* ---------- 02 Services ---------- */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 20px);
}
.svc-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 48px;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 3.2vh, 34px) clamp(20px, 3vw, 36px);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(21, 23, 28, .04), 0 14px 34px rgba(21, 23, 28, .06);
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.svc-item:hover {
  transform: translateY(-4px);
  border-color: var(--ember-dim);
  box-shadow: 0 2px 6px rgba(21, 23, 28, .06), 0 26px 52px rgba(255, 80, 40, .14);
}

.svc-no {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--ember);
  letter-spacing: .08em;
}
.svc-main h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: .005em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}
.svc-jp {
  font-family: var(--font-jp);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .16em;
}
.svc-main p {
  margin-top: 8px;
  max-width: 44em;
  font-size: 14px;
  color: var(--ink-soft);
}

.svc-arrow {
  font-family: var(--font-en);
  font-size: 22px;
  color: var(--muted);
  transform: translateX(-8px);
  opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s, color .4s;
}
.svc-item:hover .svc-arrow {
  transform: translateX(0);
  opacity: 1;
  color: var(--ember);
}

/* メディア事業: カード全体を別サイトへのリンクにする(最前面に敷く透明リンク) */
.svc-link { position: absolute; inset: 0; border-radius: inherit; }

/* ---------- 03 Company ---------- */
.co-table {
  max-width: 880px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(21, 23, 28, .04), 0 16px 40px rgba(21, 23, 28, .06);
  padding: clamp(6px, 1vh, 14px) clamp(20px, 3vw, 40px);
  overflow: hidden;
}
.co-table > div {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.co-table > div:last-child { border-bottom: none; }
.co-table dt {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .14em;
}
.co-table dd {
  font-size: 15px;
  font-weight: 500;
}
.co-en {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .22em;
  margin-top: 4px;
}

/* ---------- 04 Contact ---------- */
.contact { text-align: center; }
.contact .sec-inner { display: flex; flex-direction: column; flex: 1; justify-content: center; }
.contact .sec-head { justify-content: center; }

.contact-jp {
  margin: clamp(8px, 2vh, 20px) auto 0;
  max-width: 28em;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 2;
  color: var(--ink);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(28px, 4vh, 48px);
  padding: 18px 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  background: var(--ink);
  color: var(--paper-2);
  transition: border-color .4s, background .4s, color .4s, transform .4s var(--ease-out), box-shadow .4s;
}
.contact-btn svg { width: 44px; color: var(--ember); overflow: visible; transition: transform .4s var(--ease-out); }
.contact-btn:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
  box-shadow: 0 14px 40px rgba(255, 80, 40, .3);
}
.contact-btn:hover svg { transform: translateX(4px); color: #fff; }

/* ---------- お問い合わせフォーム(Formspree) ---------- */
/* フォーム全体は中央寄せ(送信ボタン用)、入力欄は左寄せ */
.contact-form {
  width: 100%;
  max-width: 640px;
  margin: clamp(24px, 4vh, 40px) auto 0;
  text-align: center;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(20px, 3vw, 32px);
}
.cf-field {
  display: block;
  margin-bottom: clamp(16px, 2.4vh, 24px);
}
.cf-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--muted);
}
.cf-label em { color: var(--ember); }
.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 10px 2px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: border-color .3s;
}
.cf-field textarea { resize: vertical; min-height: 96px; line-height: 1.8; }
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-bottom-color: var(--ember);
}
/* ボット用ハニーポット: 視覚・支援技術の両方から隠す */
.cf-gotcha {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cf-status {
  min-height: 1.6em;
  margin-bottom: 4px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}
.cf-status.is-success { color: var(--ink); font-weight: 500; }
.cf-status.is-error { color: var(--ember); }
.contact-form .cf-row,
.contact-form > .cf-field { text-align: left; }
.contact-form .cf-submit {
  display: inline-flex;
  margin-top: 4px;
  cursor: pointer;
}
.cf-submit[disabled] { opacity: .55; pointer-events: none; }

@media (max-width: 560px) {
  .cf-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Footer(Contact パネル下部に固定) ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--gutter) 8px;
  border-top: 1px solid var(--line);
}
.footer-copy {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}
.footer-note {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .26em;
  color: rgba(21, 23, 28, .28);
}
.footer-top {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  transition: color .3s;
}
.footer-top:hover { color: var(--ember); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  overflow: hidden;
}
.hero::before { display: none; }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 72% 38%, transparent 38%, rgba(255, 255, 255, .55) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, .4), transparent 26%, transparent 72%, var(--paper-2) 100%);
  pointer-events: none;
}

/* カーソル追従スポットライト */
.hero-spot {
  position: absolute;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 80, 40, .12) 0%, rgba(255, 80, 40, .04) 38%, transparent 68%);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
  will-change: transform;
}
body.cursor-on .hero:hover .hero-spot { opacity: 1; }

.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .42em;
  color: var(--muted);
  margin-bottom: clamp(16px, 3vh, 32px);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 13.5vw, 12.5rem);
  line-height: .92;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--ink);
}
.ht-line {
  display: block;
  overflow: hidden;
  padding-block: .04em;
}
.ht-word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease-out);
}
body.is-loaded .ht-word { transform: translateY(0); }
body.is-loaded .ht-line:nth-child(2) .ht-word { transition-delay: .12s; }

.ht-stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 40px;
  margin-top: clamp(24px, 5vh, 56px);
}
.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink);
}
.hero-sub {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* テキストのリビール(行単位) */
.reveal-line { overflow: hidden; }
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out) .35s;
}
body.is-loaded .reveal-line > span { transform: translateY(0); }
body.is-loaded .hero-sub > span { transition-delay: .5s; }

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 36px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hs-label {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hs-bar {
  position: relative;
  width: 56px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.hs-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ember);
  animation: scrollBar 2.2s var(--ease-out) infinite;
}
@keyframes scrollBar {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .sp-only { display: inline; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    /* 背景は常に不透明。フェードさせず、開いた瞬間から全画面を覆う
       （opacity でフェードすると開く間ずっと背景が透けてしまうため使わない） */
    background: var(--paper);
    visibility: hidden;
    transition: visibility 0s .45s;
  }
  /* モバイルではヘッダーに backdrop-filter を使わない。
     backdrop-filter が効いていると .header が fixed の .nav の包含ブロックになり、
     inset:0 がヘッダー帯に縮小されて全画面を覆えず透けてしまう。
     しかも transition で .4s かけて消えるため、開く瞬間に縮む不具合が出る。
     → モバイルは半透明の単色背景にして包含ブロックを根本的に作らない。 */
  .header.is-scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(247, 245, 240, .94);
  }
  /* メニュー展開中はヘッダー背景も消す（即時・transition なし） */
  body.nav-open .header {
    background: transparent;
    box-shadow: none;
    transition: none;
  }
  body.nav-open .nav {
    visibility: visible;
    transition: visibility 0s;
  }
  .nav-list {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .nav-list a {
    display: block;
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--ink);
    padding: 10px 20px;
    transform: translateY(24px);
    opacity: 0;
    transition: transform .6s var(--ease-out), opacity .6s;
  }
  body.nav-open .nav-list a { transform: none; opacity: 1; }
  body.nav-open .nav-list li:nth-child(2) a { transition-delay: .06s; }
  body.nav-open .nav-list li:nth-child(3) a { transition-delay: .12s; }
  body.nav-open .nav-list li:nth-child(4) a { transition-delay: .18s; }
  .nav-list a::after { display: none; }

  .nav-toggle { display: block; }

  .bg-numeral { right: -18%; opacity: .8; }

  .svc-item {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: clamp(18px, 3vh, 26px) clamp(16px, 4vw, 24px);
  }
  .svc-arrow { display: none; }
  /* タッチ端末では hover が貼り付くため、浮き上がりは無効化（カードの体裁は維持） */
  .svc-item:hover { transform: none; }

  .co-table > div { grid-template-columns: 1fr; gap: 6px; }

  .footer { flex-direction: column; gap: 10px; padding-bottom: 20px; }
}

@media (max-width: 560px) {
  .section { padding-top: clamp(86px, 12vh, 110px); }
  /* DOWNTOWN(8文字)の実測幅はフォントサイズの約6.5倍。
     ガター(左右各5vw)を引いた 90vw に収めるには 13vw 以下が必要
     (17.5vw だと折り返して3行になる) */
  .hero-title { font-size: clamp(2.6rem, 13vw, 5rem); }
  .hero-foot { margin-top: 28px; }
  .sec-head { margin-bottom: 28px; flex-wrap: wrap; gap: 8px 14px; }
}

/* ============================================================
   Custom cursor(照準レティクル)— ライト用に調整
   ============================================================ */
body.cursor-on,
body.cursor-on a,
body.cursor-on button,
body.cursor-on [data-magnetic] { cursor: none; }

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
body.cursor-on .cursor.is-visible { opacity: 1; }

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--ember);
  transition: width .25s var(--ease-out), height .25s var(--ease-out),
              margin .25s var(--ease-out), background .25s;
}

.cursor-ring {
  position: relative;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(21, 23, 28, .35);
  border-radius: 50%;
  transition: width .3s var(--ease-out), height .3s var(--ease-out),
              margin .3s var(--ease-out), border-color .3s, opacity .3s;
}
.cursor-ring::before,
.cursor-ring::after {
  content: "";
  position: absolute;
  background: var(--ember);
  opacity: 0;
  transition: opacity .3s;
}
.cursor-ring::before { top: 50%; left: -6px; right: -6px; height: 1px; margin-top: -.5px; }
.cursor-ring::after  { left: 50%; top: -6px; bottom: -6px; width: 1px; margin-left: -.5px; }

body.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-color: var(--ember);
}
body.cursor-hover .cursor-ring::before,
body.cursor-hover .cursor-ring::after { opacity: .9; }
body.cursor-hover .cursor-dot {
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
}

body.cursor-down .cursor-ring {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
}

[data-magnetic] { transition: transform .35s var(--ease-out); will-change: transform; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .reveal-line > span, .ht-word { opacity: 1; transform: none; }
}
