@property --run { syntax: "<angle>"; inherits: false; initial-value: 0deg; }   /* ボタンのふちを一周する光 */
@keyframes btnRun { to { --run: 360deg; } }
@charset "UTF-8";
/* ==========================================================================
   home.css — トップページ固有
   FVの進み具合は home.js が .fv に入れる（0〜1。なめらかにする計算は JS 側）
     --c：幕が上がる量（0：下りている → 1：上がりきった）
     --k：ロゴとキャッチが集まる量（0：バラバラ → 1：そろった）
   ========================================================================== */

.fv {
  position: relative;
  height: 360vh;   /* 本文が上がり始めるのは 1.6 画面ぶん進んでから（集まりきって、少し見せてから） */
}
.fv__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--c-bg);
}

/* ---------- 背景動画 ---------- */
.fv-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--c-bg) url("../img/home/fv-pc-poster.webp") center / cover no-repeat;
}
@media (max-aspect-ratio: 1/1) {
  .fv-video { background-image: url("../img/home/fv-sp-poster.webp"); }
}
.fv-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.fv-video.is-playing .fv-video__media { opacity: 1; }
/* ロゴと文字が読めるよう、集まるのに合わせて動画を暗くする */
.fv-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 50%, rgba(5, 6, 10, .55), rgba(5, 6, 10, .25));
  opacity: var(--k, 0);
  will-change: opacity;
}

/* ---------- 集まってくるロゴとキャッチ ---------- */
/* ロゴマークとキャッチ：PC は左にマーク・右にキャッチ（左揃え）。縦長の画面は上にマーク・下にキャッチ */
.fv__brand {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  place-content: center;
  align-items: center;
  column-gap: clamp(32px, 4.5vw, 80px);
  padding: var(--header-h) var(--m) 40px;
  pointer-events: none;
}
.fv__logo { grid-row: 1 / 3; grid-column: 1; width: clamp(140px, 17vw, 280px); height: auto; overflow: visible; filter: drop-shadow(0 10px 40px rgba(47, 69, 255, calc(var(--k, 0) * .45))); }
.fv__brand::before {                      /* マークとキャッチの間の縦線（集まりきると伸びる） */
  content: "";
  grid-row: 1 / 3;
  grid-column: 1;
  justify-self: end;
  margin-right: calc(-1 * clamp(16px, 2.25vw, 40px));
  width: 1px;
  height: calc(clamp(140px, 17vw, 280px) * 1.1 * clamp(0, calc((var(--k, 0) - .7) * 3.4), 1));
  background: linear-gradient(transparent, rgba(159, 176, 255, .8), transparent);
}
.fv__title { grid-column: 2; text-align: left; }
/* 集まりきったら、かけら（三角の継ぎ目が細く見える）をやめて、1枚のマークに差し替える */
.fv__whole { opacity: clamp(0, calc((var(--k, 0) - .97) * 40), 1); }
.fv.is-gathered .fv__logo .fv__piece { visibility: hidden; }   /* .is-gathered：home.js */
.fv__tag {
  grid-column: 2;
  align-self: start;
  margin-top: 16px;
  font-family: var(--font-en);
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: .3em;
  color: #9fb0ff;
  opacity: clamp(0, calc((var(--k, 0) - .8) * 5), 1);
}
.fv__title { align-self: end; }
@media (max-aspect-ratio: 1/1) {
  .fv__brand { grid-template-columns: auto; grid-template-rows: auto auto auto; justify-items: start; row-gap: 22px; padding-inline: calc(var(--m) + 4px); place-content: center start; }
  .fv__brand::before { display: none; }
  .fv__logo { grid-row: auto; grid-column: 1; width: clamp(96px, 28vw, 170px); }
  .fv__title, .fv__tag { grid-column: 1; }
  .fv__tag { margin-top: -6px; }
}
/* かけら1つずつ：--d（0〜.3）だけ遅れて動き出し、バラバラの位置（--dx・--dy・--r）から元の位置へ */
.fv__piece {
  --kk: clamp(0, calc((var(--k, 0) - var(--d)) / .7), 1);
  transform: translate(calc(var(--dx) * (1 - var(--kk))), calc(var(--dy) * (1 - var(--kk)))) rotate(calc(var(--r) * (1 - var(--kk))));
  opacity: clamp(0, calc(var(--kk) * 3), 1);
}
.fv__title { font-weight: 900; }
.fv__catch {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 76px);
  line-height: 1.35;
  letter-spacing: .08em;
  text-align: left;
  text-shadow: 0 2px 6px rgba(2, 3, 9, .5), 0 6px 28px rgba(2, 3, 9, .6);
}
/* 1文字ずつ（home.js が span に分ける）：ロゴと同じ考え方で集まる */
.fv__catch span {
  --kk: clamp(0, calc((var(--k, 0) - var(--d)) / .7), 1);
  display: inline-block;
  transform: translate(calc(var(--dx) * (1 - var(--kk))), calc(var(--dy) * (1 - var(--kk)))) rotate(calc(var(--r) * (1 - var(--kk))));
  opacity: clamp(0, calc(var(--kk) * 2.5), 1);
}
.fv__sub {
  display: block;
  margin-top: 14px;
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-sub);
  opacity: clamp(0, calc((var(--k, 0) - .75) * 4), 1);
}
@media (max-width: 480px) {
  .fv__sub { font-size: 11px; }
}

/* ---------- 幕：文字の形にくり抜き。--c に合わせて上へ ---------- */
.fv__curtain {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: translateY(calc(var(--c, 0) * -100%));
  will-change: transform;
}
.fv__curtain-svg { display: block; width: 100%; height: 100%; }
.fv__curtain-fill { fill: #f4f6fb; }
.fv__curtain-words text { font-family: var(--font-en); fill: #000; }
.fv__curtain-words .w1 { font-size: 270px; letter-spacing: 6px; }
.fv__curtain-words .w2 { font-size: 104px; letter-spacing: 6px; }
/* 幕のすそ：上がるときに青い光の線と影 */
.fv__curtain::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-brand-l) 30%, #9fb0ff 50%, var(--c-brand-l) 70%, transparent);
  box-shadow: 0 0 24px 4px rgba(47, 69, 255, .6), 0 18px 50px rgba(0, 0, 0, .6);
}
.fv__curtain-note {
  position: absolute;
  left: 0;
  right: 0;
  top: 3.5%;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #5a6385;
}
/* 青黒い幕（比較用：?curtain=dark）。くり抜いた所の動画は明るくして見えるようにする */
.is-curtain-dark .fv__curtain-fill { fill: #0b1230; }
.is-curtain-dark .fv__curtain-note { color: var(--c-sub); }
.is-curtain-dark .fv-video__media { filter: brightness(calc(1 + (1 - var(--c, 0)) * 1.2)); }

/* ---------- 施工実績へのボタン：幕が上がったら、動画の上の右下に出る ----------
   実績の写真を小窓で見せる「ファインダー」風。四隅の角マーク・上のふちのライト。
   乗せると角が外へ開き、写真が寄り、ふちを光が一周、矢印が走る */
.fv__works {
  --cb: rgba(238, 242, 255, .85);
  position: absolute;
  right: var(--m);
  bottom: clamp(24px, 6vh, 56px);
  z-index: 3;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px 10px 10px;
  color: #fff;
  background: linear-gradient(120deg, rgba(11, 13, 20, .78), rgba(16, 24, 70, .62));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(159, 176, 255, .22), 0 20px 50px rgba(0, 0, 0, .5);
  opacity: clamp(0, calc((var(--c, 0) - .85) * 7), 1);
  translate: 0 calc((1 - clamp(0, calc((var(--c, 0) - .85) * 7), 1)) * 16px);
  pointer-events: none;
  transition: box-shadow .4s, background-color .4s;
}
/* 上のふちのライト（施工実績のカードと同じ） */
.fv__works > .fv__works-body::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #9fb0ff, #fff, #9fb0ff, transparent);
  box-shadow: 0 0 14px 2px rgba(159, 176, 255, .7);
}
/* 四隅の角マーク */
.fv__works::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  --l: 14px;
  background:
    linear-gradient(var(--cb) 0 0) 0 0 / var(--l) 1px, linear-gradient(var(--cb) 0 0) 0 0 / 1px var(--l),
    linear-gradient(var(--cb) 0 0) 100% 0 / var(--l) 1px, linear-gradient(var(--cb) 0 0) 100% 0 / 1px var(--l),
    linear-gradient(var(--cb) 0 0) 0 100% / var(--l) 1px, linear-gradient(var(--cb) 0 0) 0 100% / 1px var(--l),
    linear-gradient(var(--cb) 0 0) 100% 100% / var(--l) 1px, linear-gradient(var(--cb) 0 0) 100% 100% / 1px var(--l);
  background-repeat: no-repeat;
  transition: inset .45s var(--ease-io);
  pointer-events: none;
}
/* ふちを一周する光（乗せたとき） */
.fv__works::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  background: conic-gradient(from var(--run), transparent 0deg, transparent 290deg, #9fb0ff 330deg, #fff 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 6px rgba(159, 176, 255, .9));
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.fv__works-thumb { position: relative; flex: none; width: 96px; aspect-ratio: 3 / 2; overflow: hidden; background: #0b0d14; }
.fv__works-thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-io), filter .6s; filter: saturate(.7) brightness(.85); }
.fv__works-body { display: grid; gap: 4px; }
.fv__works-en { font-family: var(--font-en); font-size: 26px; line-height: 1; letter-spacing: .12em; }
.fv__works-ja { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #c9d0e6; }
.fv__works-arrow { position: relative; flex: none; width: 44px; height: 44px; margin-left: 6px; overflow: hidden; border-radius: 50%; background: var(--c-brand-l); box-shadow: 0 0 18px rgba(47, 69, 255, .6); }
.fv__works-arrow i { position: absolute; inset: 0; }
.fv__works-arrow i::before,
.fv__works-arrow i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  translate: -65% -50%;
  rotate: 45deg;
  transition: translate .45s var(--ease-io);
}
.fv__works-arrow i::after { translate: calc(-65% - 34px) -50%; }   /* 次の矢印が左から入ってくる */
.fv.is-open .fv__works { pointer-events: auto; }      /* 幕が上がってから押せる（home.js） */
@media (hover: hover) {
  .fv__works:hover { background-color: rgba(5, 6, 10, .9); box-shadow: 0 0 0 1px rgba(159, 176, 255, .45), 0 0 50px rgba(47, 69, 255, .45), 0 20px 50px rgba(0, 0, 0, .5); }
  .fv__works:hover::after { inset: -12px; }
  .fv__works:hover::before { opacity: 1; animation: btnRun 1.6s linear infinite; }
  .fv__works:hover .fv__works-thumb img { scale: 1.12; filter: none; }
  .fv__works:hover .fv__works-arrow i::before { translate: calc(-65% + 34px) -50%; }
  .fv__works:hover .fv__works-arrow i::after { translate: -65% -50%; }
}
@media (max-aspect-ratio: 1/1) {
  .fv__works { left: var(--m); right: var(--m); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .fv__works-arrow { margin-left: auto; }
  .fv__works-thumb { width: 84px; }
  .fv__works-en { font-size: 22px; }
}
@media (max-height: 520px) {                        /* 横向きのスマホなど、高さが低い画面 */
  .fv__works { bottom: 14px; gap: 12px; padding: 6px 10px 6px 6px; }
  .fv__works-thumb { width: 64px; }
  .fv__works-en { font-size: 18px; }
  .fv__works-arrow { width: 34px; height: 34px; }
  .fv__scrollbtn-text { display: none; }
  .fv__scrollbtn-arrow { width: 36px; height: 36px; }
  .fv__scrollbtn { left: auto; right: var(--m); bottom: 14px; translate: none; }   /* 文字と重ならないよう右下へ */
}

/* ---------- SCROLL ボタン：押すとロゴがそろう所まで一気にスクロール ---------- */
.fv__scrollbtn {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 40px);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 8px;
  translate: -50% 0;
  color: #0b1230;
  opacity: clamp(0, calc(1 - var(--c, 0) * 4), 1);
  transition: color .3s;
}
.is-curtain-dark .fv__scrollbtn { color: var(--c-text); }
.fv__scrollbtn-text { font-family: var(--font-en); font-size: 13px; letter-spacing: .3em; padding-left: .3em; }
.fv__scrollbtn-arrow {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.fv__scrollbtn-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  translate: -50% -50%;
  rotate: 45deg;
  animation: scrollArrow 1.8s var(--ease-io) infinite;
}
@keyframes scrollArrow {
  0%, 100% { top: 40%; opacity: 1; }
  60% { top: 58%; opacity: .2; }
}
@media (hover: hover) {
  .fv__scrollbtn:hover { color: var(--c-brand-l); }
}

/* ---------- 動きを減らす設定：幕は上げた状態、ロゴはそろった状態で表示 ---------- */
@media (prefers-reduced-motion: reduce) {
  .fv { height: auto; --c: 1; --k: 1; }
  .fv__curtain, .fv__scrollbtn { display: none; }
  .fv__scrollbtn-arrow::before { animation: none; }
}

/* ==========================================================================
   本文（LP）：FVの最後の1画面ぶんに重なり、ひねりながらせり上がる
   --q（0→1）は home.js：本文の上端が画面の下 → 上に来るまで
   ========================================================================== */
main { overflow-x: clip; }
/* 本文：FVの最後の1画面に重なって上がってくる（スクロールそのもので上がる。変形はしない）
   一番上の写真（.lp__hero）だけ、--q（0→1）に合わせて演出する
     ・上端が斜めに切れていて、上がるにつれて水平になる（切り口に青い光の線。FVの幕のすそと同じ線）
     ・写真は寄った状態から引いていき、暗がりが晴れる */
.lp {
  --q: 1;
  position: relative;
  z-index: 2;
  margin-top: -100vh;
  margin-top: -100svh;
  color: #0b1230;
}
.lp__hero {
  position: relative;
  margin: 0;
  height: 58vh;
  height: 58svh;
  min-height: 360px;
  overflow: hidden;
  background: #05060a;
}
.lp__hero picture { display: block; height: 100%; }
.lp__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 88%;                       /* 上を多めに切る（研磨している手元は残る） */
  transform: translateY(calc((1 - var(--q)) * -14%)) scale(calc(1.18 - var(--q) * .08));   /* 枠より遅れて動く＋少し引く */
  transform-origin: 30% 60%;
  will-change: transform;
}
.lp__hero::before {                              /* 暗がり：上がりきると晴れる */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #05060a;
  opacity: calc((1 - var(--q)) * .55);
  pointer-events: none;
}
@media (max-aspect-ratio: 1/1) {
  .lp__hero { height: 46svh; min-height: 300px; }
  .lp__hero img { object-position: 35% 80%; }
}
@media (prefers-reduced-motion: reduce) {
  .lp { margin-top: 0; }
  .lp__hero img { transform: none; }
  .lp__hero::before { display: none; }
}

/* ---------- ① 出張洗車・コーティング ----------
   .mc__bg：黒い画面と流れる英字。sticky で止め、margin-bottom をマイナスにして中身をその上に重ねる
   --w（白くなる）・--f（薄くなる）は home.js */
.mc {
  --w: 0; --f: 0;
  position: relative;
  background: #05060a;
  color: var(--c-text);
  overflow: clip;                    /* 流れる英字を、このセクションの外（料金メニューの上）に出さない。sticky は保てる */
}
.mc__bg {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  display: grid;
  align-content: center;
  overflow: hidden;
  pointer-events: none;
}
.mc__marquee { width: 100vw; overflow: hidden; }
.mc__track {
  display: flex;
  width: max-content;
  margin: 0;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(110px, 22vw, 380px);
  line-height: 1;
  letter-spacing: .14em;
  white-space: nowrap;
  color: rgba(238, 242, 255, calc(var(--w) * (1 - var(--f) * .86)));   /* 黒 → 白 → 薄く */
  animation: mcFlow 48s linear infinite;
}
.mc__track span { padding-right: .6em; }
@keyframes mcFlow { to { translate: -50% 0; } }

/* 英字が白くなって読める間（1画面ぶん）。見出しは英字の下に */
.mc__intro {
  position: relative;
  height: 130vh;
  height: 130svh;
}
.mc__title-sub { display: block; margin-top: 10px; font-size: .8em; letter-spacing: .3em; opacity: .75; }
.mc__text strong { color: #fff; font-weight: 700; border-bottom: 1px solid var(--c-brand-l); }
.mc__title {
  position: sticky;
  top: calc(50% + clamp(70px, 13vw, 210px));
  margin: 0;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 20px);
  letter-spacing: .4em;
  color: rgba(174, 184, 214, calc(var(--w) * (1 - var(--f))));
}

/* 写真と説明の段：写真は画面のふちにくっつき、スクロール中は止まる（sticky） */
.mc__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  min-height: 160vh;
}
.mc__row + .mc__row { margin-top: 10vh; }
/* 最後の2画面：英字は真ん中に止まったまま、料金メニューの写真が上に重なって広がる。
   （padding だと sticky がその手前で止まってしまうので、中身の要素で高さを取る） */
.mc__tail { height: 200vh; height: 200svh; }
.mc__photo {
  position: sticky;
  top: 50%;
  translate: 0 -50%;
  height: 64vh;
  height: 64svh;
  margin-top: 50vh;
  overflow: hidden;
  background: #0b0c10;
}
.mc__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 横向きの U：くっついている側はまっすぐ、反対側が丸い */
.mc__row--left .mc__photo  { grid-column: 1; border-radius: 0 999px 999px 0; }
.mc__row--right .mc__photo { grid-column: 2; border-radius: 999px 0 0 999px; }
.mc__row--left .mc__photo img  { object-position: 40% 50%; }
.mc__row--right .mc__photo img { object-position: 55% 45%; }
.mc__row--right .mc__text { grid-column: 1; grid-row: 1; }

.mc__text {
  align-self: start;
  margin-top: 95vh;                  /* 写真が止まってから、横に上がってくる */
  padding: 0 clamp(28px, 6vw, 110px);
  max-width: 760px;
  font-size: 15px;
  line-height: 2;
}
.mc__row--left .mc__text  { justify-self: start; }
.mc__row--right .mc__text { justify-self: end; }
.mc__text p { margin: 0; color: #c9d0e6; }
.mc__text p + p { margin-top: .8em; }
.mc__en { font-family: var(--font-en); font-size: 15px; letter-spacing: .2em; color: var(--c-brand-l) !important; }
.mc__h3 { margin: 6px 0 18px; font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 2.6vw, 44px); letter-spacing: .08em; color: var(--c-text); white-space: nowrap; }

/* 浮かび上がる（home.js が .is-in を付ける） */
.js .js-reveal { opacity: 0; translate: 0 40px; transition: opacity .9s var(--ease-out), translate 1s var(--ease-out); }
.js .js-reveal.is-in { opacity: 1; translate: 0 0; }

/* 2列が取れない幅：写真は左にくっつけて画面の85%幅、下に説明 */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .mc__intro { height: 130svh; }
  .mc__row { display: block; min-height: 0; }
  .mc__row + .mc__row { margin-top: 18vh; }
  .mc__photo {
    position: relative;
    top: auto;
    translate: none;
    width: 88vw;
    height: min(66vw, 72svh);                    /* 横向きのスマホでも画面に収まる高さ */
    margin-top: 0;
    border-radius: 0 999px 999px 0 !important;
  }
  .mc__row--right .mc__photo { margin-left: auto; border-radius: 999px 0 0 999px !important; }
  .mc__row--right .mc__photo.js-reveal-photo { clip-path: inset(0 0 0 100%); }
  .mc__row--right .mc__photo.js-reveal-photo.is-in { clip-path: inset(0 0 0 0); }
  .mc__text { margin-top: 40px; padding: 0 var(--m); max-width: none; font-size: 14px; line-height: 1.9; }
  .mc__h3 { white-space: normal; font-size: clamp(22px, 6.4vw, 34px); word-break: keep-all; }   /* 1列のときは「・」の所でだけ折り返す */
  .mc__photo.js-reveal-photo { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-io); }
  .mc__photo.js-reveal-photo.is-in { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .mc { --w: 1; --f: .7; }
  .mc__track { animation: none; }
  .js .js-reveal { opacity: 1; translate: none; }
}

/* ---------- 本文のセクション共通 ---------- */
.sec { padding: clamp(80px, 10vw, 140px) var(--m); background-color: #f4f6fb; }
.sec__head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec__en {
  font-family: var(--font-en);
  font-size: clamp(56px, 9vw, 128px);
  line-height: .95;
  letter-spacing: .01em;
  color: #0b1230;
}
.sec__title {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--c-brand);
}

/* 暗いセクション共通（料金・お問い合わせ・フッター） */
.price, .contact, .footer { background: var(--c-bg); color: var(--c-text); }
.price .sec__en, .contact .sec__en { color: var(--c-text); }
.price .sec__title, .contact .sec__title { color: var(--c-brand-l); }
.sec__inner { max-width: 1200px; margin-inline: auto; }

/* ---------- ① 出張洗車・コーティング ---------- */
.service__lead {
  max-width: 40em;
  margin-bottom: clamp(32px, 4vw, 56px);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  line-height: 2;
}
.service__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
}
.service__card {
  position: relative;
  padding: clamp(28px, 3.4vw, 48px);
  background: #fff;
  box-shadow: 0 10px 40px rgba(11, 18, 48, .06);
  overflow: hidden;
}
.service__card::after {                           /* 右上に青い光のにじみ */
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(rgba(47, 69, 255, .16), transparent 70%);
  pointer-events: none;
}
.service__card-en { font-family: var(--font-en); font-size: 15px; letter-spacing: .14em; color: var(--c-brand-l); }
.service__card-title { margin: 6px 0 14px; font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 2.4vw, 32px); }
.service__card p:last-child { color: #3d4566; }
.service__points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid rgba(11, 18, 48, .12);
}
.service__points li {
  display: grid;
  gap: 4px;
  padding: 24px 24px 0 0;
}
.service__points b { font-family: var(--font-en); font-weight: 400; font-size: 28px; line-height: 1; color: var(--c-brand-l); }
.service__points span { font-family: var(--font-head); font-weight: 900; font-size: 17px; }
.service__points small { font-size: 13px; color: #5a6385; line-height: 1.7; }
@media (max-width: 1024px) {
  .service__points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .service__cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .service__points { grid-template-columns: 1fr; }
  .service__points li { grid-template-columns: 44px 1fr; align-items: baseline; padding-top: 18px; }
  .service__points small { grid-column: 2; }
}

/* ---------- ② 料金メニュー ---------- */
/* ---------- ② 料金メニュー：楕円の小窓から広がる写真（sticky）＋その上を料金が流れる ----------
   --e：楕円が広がる（0：小窓 → 1：画面いっぱい）／--b：ぼかした写真に切り替わる（home.js） */
.price {
  --e: 0; --b: 0;
  position: relative;
  z-index: 1;
  margin-top: -200vh;                /* 上の流れる英字（最後の2画面ぶん）に重ねる。背景は透明で、広がる写真が英字を覆って消していく */
  margin-top: -200svh;
  padding: 0;
  overflow: clip;
  background: transparent !important;
}
.price__bg {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  overflow: hidden;
  pointer-events: none;
  /* 3段階で開く（--e を3つに分ける）
     --la：光の線が真ん中から左右に伸びる（0〜.3）／--lv：線が上下に開いて角丸の小窓になる（.3〜.55）／--lg：画面いっぱいへ（.55〜1） */
  --la: clamp(0, calc(var(--e) / .3), 1);
  --lv: clamp(0, calc((var(--e) - .3) / .25), 1);
  --lg: clamp(0, calc((var(--e) - .55) / .45), 1);
  clip-path: inset(
    calc((50% - var(--lv) * 12vh) * (1 - var(--lg)))
    calc((50% - var(--la) * 17vw) * (1 - var(--lg)))
    round calc(var(--lv) * 12vh * (1 - var(--lg))));
}
/* 光の線：小窓が開く前に、真ん中から左右へ伸びる。開くと消える（止まった画面の真ん中に固定） */
.price__line {
  --lw: 34vw;
  position: sticky;
  top: 50%;
  z-index: 2;
  display: block;
  height: 0;
  margin: 0 auto;
  width: calc(var(--lw) * clamp(0, calc(var(--e) / .3), 1));
  pointer-events: none;
}
.price__line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #9fb0ff 20%, #fff 50%, #9fb0ff 80%, transparent);
  box-shadow: 0 0 18px 3px rgba(159, 176, 255, .9), 0 0 60px 12px rgba(47, 69, 255, .6);
  opacity: calc(clamp(0, calc(var(--e) * 20), 1) * (1 - clamp(0, calc((var(--e) - .32) / .2), 1)));
}
.price__photo { position: absolute; inset: 0; display: block; }
.price__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.price__photo:first-child img { transform: scale(calc(1.25 - var(--e) * .25)); }
.price__photo--blur { opacity: var(--b); }
.price__photo--blur img { transform: scale(1.06); }      /* ぼかしのふちの白みを隠す */
.price__bg::after {                                        /* 文字を読みやすくする暗がり */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, .62);
  opacity: var(--b);
}
/* 見出し：写真が広がりきる頃に、画面の真ん中に出る */
.price__intro { position: relative; height: 240vh; height: 240svh; }
.price__head {
  position: sticky;
  top: 50%;
  translate: 0 -50%;
  margin: 0;
  text-align: center;
  opacity: clamp(0, calc((var(--e) - .8) * 5), 1);
}
.price .price__head .sec__en { font-size: clamp(72px, 13vw, 200px); text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }
.price .price__head .sec__title { color: #fff; letter-spacing: .3em; }
.price__body { position: relative; padding: 0 var(--m) clamp(80px, 12vh, 160px); max-width: 1200px; margin-inline: auto; }
.price__item { backdrop-filter: none; background: rgba(5, 6, 10, .55) !important; }
.price__item.is-reco { background: rgba(20, 30, 90, .55) !important; }
.price__foot { background: rgba(5, 6, 10, .55) !important; }
@media (max-aspect-ratio: 1/1) {
  .price__bg { clip-path: inset(
    calc((50% - var(--lv) * 14vh) * (1 - var(--lg)))
    calc((50% - var(--la) * 36vw) * (1 - var(--lg)))
    round calc(var(--lv) * 8vh * (1 - var(--lg)))); }
  .price__line { --lw: 72vw; }
}
@media (prefers-reduced-motion: reduce) {
  .price { --e: 1; --b: 1; }
}

.price__group + .price__group { margin-top: clamp(40px, 5vw, 72px); }
.price__from b.price__ask { font-family: var(--font-head); font-weight: 900; font-size: 30px; letter-spacing: .1em; }
.price .sec__title small { margin-left: .4em; font-size: .7em; letter-spacing: .1em; }
.price__foot p + p { margin-top: .6em; }
.price__foot b { color: #fff; }
.price__cat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(238, 242, 255, .14);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
}
.price__cat span { font-family: var(--font-en); font-weight: 400; font-size: 26px; letter-spacing: .04em; color: var(--c-brand-l); }
.price__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.price__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid rgba(238, 242, 255, .12);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
}
.price__item.is-reco { border-color: rgba(47, 69, 255, .55); background: linear-gradient(160deg, rgba(47, 69, 255, .16), rgba(255, 255, 255, .01)); }
.price__reco {
  position: absolute;
  top: -11px;
  left: 22px;
  padding: 2px 12px;
  background: var(--c-brand-l);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}
.price__name { font-family: var(--font-head); font-weight: 900; font-size: 19px; line-height: 1.4; }
.price__name small { font-size: 13px; color: var(--c-sub); }
.price__from { font-weight: 700; color: var(--c-sub); }
.price__from b { margin-right: 2px; font-family: var(--font-en); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: .02em; color: var(--c-text); }
.price__from small { font-size: 12px; }
.price__desc { font-size: 14px; color: var(--c-sub); line-height: 1.8; }
.price__table {
  width: 100%;
  margin-top: auto;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.price__table th {
  padding: 6px 0;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--c-brand-l);
  border-bottom: 1px solid rgba(238, 242, 255, .14);
}
.price__table td { padding: 8px 0 2px; font-size: 14px; font-weight: 700; }
.price__note { font-size: 12px; color: var(--c-sub); }
.price__foot {
  margin-top: clamp(32px, 4vw, 48px);
  padding: 20px 24px;
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  color: var(--c-sub);
}
@media (max-width: 768px) {
  .price__list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .price__table td { font-size: 12px; }
  .price__from b { font-size: 34px; }
}

/* ---------- ③ 施工実績：道の奥から走ってくるカード ----------
   --n：カードの枚数（home.js）。止まっている長さは枚数で決まる
   各カードの --x・--y・--z・--ry・--o・--zi（home.js が --t から計算） */
.works {
  --n: 2; --wp: 0;
  position: relative;
  height: calc((var(--n) + .55) * 100vh);
  height: calc((var(--n) + .55) * 100svh);
  background: #05060a;
  color: var(--c-text);
}
.works__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  perspective: 1100px;
  perspective-origin: 50% 38%;
}
/* 道：奥へ続く床と、流れる白い破線（スクロールで手前へ流れる） */
.works__road {
  position: absolute;
  left: -50%;
  right: -50%;
  top: 46%;
  height: 120%;
  transform: rotateX(78deg);
  transform-origin: 50% 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 3px), rgba(238, 242, 255, .55) calc(50% - 3px), rgba(238, 242, 255, .55) calc(50% + 3px), transparent calc(50% + 3px)) 0 calc(var(--wp) * 900px) / 100% 260px,
    linear-gradient(90deg, transparent 18%, rgba(159, 176, 255, .35) 18%, rgba(159, 176, 255, .35) calc(18% + 2px), transparent calc(18% + 2px), transparent calc(82% - 2px), rgba(159, 176, 255, .35) calc(82% - 2px), rgba(159, 176, 255, .35) 82%, transparent 82%),
    radial-gradient(60% 50% at 50% 0%, rgba(47, 69, 255, .25), transparent 70%);
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 60%, transparent);
  mask-image: linear-gradient(transparent, #000 25%, #000 60%, transparent);
}
/* 破線の「点」部分：260px のうち上 130px だけ見せる */
.works__road::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, #05060a 50%) 0 calc(var(--wp) * 900px) / 100% 260px;
  -webkit-mask-image: linear-gradient(90deg, transparent calc(50% - 5px), #000 calc(50% - 5px), #000 calc(50% + 5px), transparent calc(50% + 5px));
  mask-image: linear-gradient(90deg, transparent calc(50% - 5px), #000 calc(50% - 5px), #000 calc(50% + 5px), transparent calc(50% + 5px));
}
.works__head { position: absolute; left: var(--m); top: calc(var(--header-h) + 12px); z-index: 300; margin: 0; }
.works__en { font-family: var(--font-en); font-size: clamp(48px, 7vw, 110px); line-height: .95; letter-spacing: .04em; }
.works__title { margin-top: 8px; font-family: var(--font-head); font-weight: 700; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .3em; color: #9fb0ff; }

.works__list { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; }
.works {
  --wk-top: calc(var(--header-h) + clamp(96px, 13vh, 150px));   /* 上：見出し */
  --wk-bot: 120px;                                                 /* 下：カテゴリと一覧へ */
  --wk-meta: 120px;                                                /* カード：ラベル・日付・タイトルの分 */
}
.works__card {
  --x: 0px; --y: 0px; --z: -2400px; --ry: 0deg; --o: 0; --zi: 0;
  position: absolute;
  width: max-content;            /* left:50% のままだと幅が画面の半分までに縮むので、写真の幅に合わせる */
  left: 50%;
  top: calc(var(--wk-top) + (100svh - var(--wk-top) - var(--wk-bot)) / 2);   /* 見出しと下の帯の間の真ん中 */
  z-index: var(--zi);
  transform: translate(-50%, -50%) translate3d(var(--x), var(--y), var(--z)) rotateY(var(--ry));
  opacity: var(--o);
  will-change: transform, opacity;
}
.works__card.is-off { visibility: hidden; }
.works__link {
  display: block;
  background: #0b0d14;
  border: 1px solid rgba(238, 242, 255, .14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(47, 69, 255, .15), 0 0 50px rgba(47, 69, 255, .18);
}
/* 写真：縦横比はそのまま。最大の幅・高さに収まる大きさで表示（切らない） */
.works__media { display: block; line-height: 0; }
.works__media img {
  display: block;
  width: min(64vw, 620px, max(150px, (100svh - var(--wk-top) - var(--wk-bot) - var(--wk-meta-m, var(--wk-meta))) * 1.5));   /* 日付・タイトルの分を引いて、必ず画面に収まる幅 */
  height: auto;
  aspect-ratio: 3 / 2;          /* 写真の比率がばらばらでも、横長 3:2 にそろえて切り抜く */
  object-fit: cover;
}
.works__meta { container-type: inline-size; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 16px; }
.works__meta time { font-family: var(--font-en); font-size: 14px; letter-spacing: .12em; color: #9fb0ff; }
.works__name { font-weight: 700; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@container (max-width: 180px) {
  .c-label { padding: 3px 7px; letter-spacing: .02em; }      /* 狭いカード：まずは余白と字間を詰めて1行に */
}
@container (max-width: 150px) {
  .c-label { padding: 3px 6px; font-size: 10px; letter-spacing: 0; }
}
@container (max-width: 126px) {
  .c-label { white-space: normal; word-break: keep-all; }   /* それでも入らない幅のときだけ、「・」の後で改行 */
}
/* 車のライトのように、カードの上のふちに光 */
.works__link::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #9fb0ff, #fff, #9fb0ff, transparent);
  box-shadow: 0 0 16px 2px rgba(159, 176, 255, .8);
}
.works__link { position: relative; transition: border-color .3s; }
@media (hover: hover) {
  .works__link:hover { border-color: #9fb0ff; }
}
.works__count { position: absolute; right: var(--m); top: calc(var(--header-h) + 20px); z-index: 300; font-family: var(--font-en); font-size: 15px; letter-spacing: .14em; color: var(--c-sub); }
.works__now { font-weight: 400; font-size: 40px; color: var(--c-text); margin-right: 4px; }
.works__nav {
  position: absolute;
  left: var(--m);
  right: var(--m);
  bottom: clamp(20px, 5vh, 48px);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap-reverse;
}
.works__cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
/* 一覧へ：白いふちのボタン。乗せるとふちを光が一周 */
.works__more {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 22px;
  padding: 12px 14px 12px 22px;
  background: rgba(5, 6, 10, .6);
  box-shadow: inset 0 0 0 1px rgba(238, 242, 255, .45);
  transition: background-color .3s, box-shadow .3s;
}
.works__more-en { font-family: var(--font-en); font-size: 20px; line-height: 1; letter-spacing: .14em; }
.works__more-ja { grid-row: 2; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--c-sub); }
.works__more i { grid-row: 1 / 3; grid-column: 2; position: relative; width: 38px; height: 38px; border-radius: 50%; background: #fff; transition: background-color .3s; }
.works__more i::before { content: ""; position: absolute; left: 44%; top: 50%; width: 7px; height: 7px; border-top: 2px solid #05060a; border-right: 2px solid #05060a; translate: -50% -50%; rotate: 45deg; transition: translate .3s var(--ease-io); }
.works__more::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: conic-gradient(from var(--run), transparent 0deg, transparent 290deg, #9fb0ff 330deg, #fff 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 6px rgba(159, 176, 255, .9));
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
@media (hover: hover) {
  .works__more:hover { background: #05060a; box-shadow: inset 0 0 0 1px rgba(159, 176, 255, .3), 0 0 36px rgba(47, 69, 255, .35); }
  .works__more:hover::before { opacity: 1; animation: btnRun 1.6s linear infinite; }
  .works__more:hover i { background: var(--c-brand-l); }
  .works__more:hover i::before { border-color: #fff; translate: -20% -50%; }
}
@media (max-aspect-ratio: 1/1), (max-width: 768px) {
  .works { --wk-bot: 236px; --wk-meta: 88px; }
  .works__meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px 14px; }   /* ラベルと日付を1行に */
  .works__name { width: 100%; font-size: 14px; }
  .works__nav { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }   /* 下の LINE・電話バーの上に出す */
  .works__media img { width: min(84vw, max(160px, (100svh - var(--wk-top) - var(--wk-bot) - var(--wk-meta-m, var(--wk-meta))) * 1.5)); }
  .works__nav { flex-direction: column-reverse; align-items: flex-start; flex-wrap: nowrap; gap: 14px; }
  .works__cats .c-cat { padding: 8px 10px 8px 13px; gap: 10px; font-size: 12px; }
  .works__more { padding: 8px 10px 8px 16px; }
  .works__more i { width: 32px; height: 32px; }
}
@media (max-width: 420px) {                  /* 幅の狭いスマホ：カテゴリボタンを詰めて行数を減らし、写真を大きく */
  .works__cats { gap: 6px; }
  .works__cats .c-cat { padding: 6px 8px 6px 11px; gap: 7px; font-size: 11px; letter-spacing: .02em; }
  .works__more { padding: 6px 8px 6px 14px; }
  .works__more-en { font-size: 16px; }
  .works__more i { width: 28px; height: 28px; }
}
@media (max-width: 768px) and (max-height: 700px) {   /* 高さの低いスマホ（iPhone SE など）：見出しを詰める */
  .works { --wk-top: calc(var(--header-h) + 64px); }
  .works__en { font-size: 40px; }
}
@media (max-height: 560px) {                 /* 横向きのスマホなど：見出しを小さく、下の帯を1行に */
  .works { --wk-top: calc(var(--header-h) + 52px); --wk-bot: 64px; --wk-meta: 64px; }
  .works__nav { bottom: 14px; }
  .works__meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 8px 12px 10px; }
  .works__name { font-size: 12px; width: 100%; }
  /* 高さが足りないので、写真の右に日付・タイトルを並べる */
  .works__link { display: flex; }
  .works__meta { width: 180px; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 12px 14px; }
  .works__media img { width: min(48vw, max(180px, (100svh - var(--wk-top) - var(--wk-bot)) * 1.5)); }
  .works__meta time { font-size: 12px; }
  .works__en { font-size: 34px; }
  .works__title { font-size: 11px; }
  .works__nav { flex-direction: row; align-items: center; flex-wrap: nowrap; }
  .works__cats .c-cat { padding: 6px 9px 6px 12px; gap: 8px; font-size: 11px; }
  .works__more { padding: 5px 8px 5px 12px; column-gap: 10px; }
  .works__more-en { font-size: 14px; }
  .works__more-ja { display: none; }
  .works__more i { width: 26px; height: 26px; }
  .works__count { top: calc(var(--header-h) + 6px); }
  .works__now { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .works { height: auto; }
  .works__stage { position: relative; height: auto; padding: calc(var(--header-h) + 140px) var(--m) 100px; perspective: none; }
  .works__road { display: none; }
  .works__list { position: static; display: grid; gap: 32px; justify-items: center; }
  .works__card { position: static; transform: none !important; opacity: 1 !important; visibility: visible !important; }
  .works__count { display: none; }
  .works__nav { position: static; margin-top: 40px; }
}

/* ---------- ③ 自動車販売：ヘッドライトが点いて、光の先にボタン ----------
   .is-on（home.js）：点灯。2回ちらついてから点く／光の筋が伸びる／文字とボタンが照らし出される */
.sales {
  --lx: 34.1%; --ly: 33.2%; --rx: 63.8%; --ry: 32.4%;   /* ヘッドライトの位置（画像に対する%） */
  position: relative;
  height: 180vh;
  height: 180svh;
  background: #020305;
  color: var(--c-text);
}
.sales__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* 画像は画面いっぱい（16:9 を基準に、はみ出す分は上下左右で切る）。ライトの位置がずれないよう、入れ物ごと cover の計算 */
.sales__car {
  position: absolute;
  left: 51%;                          /* 2つのライトの真ん中を画面の真ん中に */
  top: 50%;
  width: max(118.5svh, min(100vw, 140svh));  /* 縦は画面いっぱい（下に隙間を作らない）。足りない左右は黒にぼかしてなじませる */
  aspect-ratio: 1600 / 1350;
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 26%, #000 74%, transparent 98%), linear-gradient(transparent, #000 18%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 2%, #000 26%, #000 74%, transparent 98%), linear-gradient(transparent, #000 18%);
  mask-composite: intersect;
  translate: -50% -50%;
}
.sales__layer, .sales__layer img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sales__layer--on { opacity: 0; }
.sales.is-on .sales__layer--on { animation: salesOn 1.1s steps(1, end) forwards; }
@keyframes salesOn {                     /* カチッ、カチッ、点灯 */
  0% { opacity: 0; } 12% { opacity: .9; } 20% { opacity: .1; } 34% { opacity: 1; } 40% { opacity: .35; } 52%, 100% { opacity: 1; }
}
.sales__glow {
  position: absolute;
  width: 20%;
  aspect-ratio: 1.2;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(200, 220, 255, .3) 40%, rgba(47, 69, 255, .12) 70%, transparent);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.sales__glow--l { left: var(--lx); top: var(--ly); }
.sales__glow--r { left: var(--rx); top: var(--ry); }
.sales.is-on .sales__glow { animation: salesOn 1.1s steps(1, end) forwards; }
/* 光：2つのライトから下（文字の方）へ広がる */
.sales__beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(220, 235, 255, .3), rgba(120, 160, 255, .1) 45%, transparent 85%);
  clip-path: polygon(calc(var(--lx) - 6%) calc(var(--ly) + 6%), calc(var(--rx) + 6%) calc(var(--ry) + 6%), 92% 100%, 8% 100%);
  mix-blend-mode: screen;
  transform-origin: 50% var(--ly);
  scale: 1 0;
  opacity: 0;
  transition: none;                   /* ライトが消えるときは光も一瞬で消す */
  pointer-events: none;
}
.sales.is-on .sales__beam { scale: 1 1; opacity: 1; transition: scale 1.2s .9s var(--ease-out), opacity .6s .9s; }   /* 点くときだけ、ゆっくり伸びる */
.sales__text { max-width: 30em; margin-inline: auto; }

.sales__copy {
  position: absolute;
  left: var(--m);
  right: var(--m);
  bottom: clamp(32px, 7vh, 90px);
  z-index: 1;
  text-align: center;
}
.sales__copy > * { opacity: 0; translate: 0 24px; transition: opacity .15s, translate 0s .15s; }   /* 消えるときは素早く */
.sales.is-on .sales__copy > * { opacity: 1; translate: 0 0; transition: opacity .8s, translate .9s var(--ease-out); transition-delay: calc(1.3s + var(--k, 0) * .12s); }
.sales__copy > :nth-child(2) { --k: 1; } .sales__copy > :nth-child(3) { --k: 2; } .sales__copy > :nth-child(4) { --k: 3; } .sales__copy > :nth-child(5) { --k: 4; }
.sales__en { font-family: var(--font-en); font-size: clamp(56px, 8vw, 120px); line-height: .95; letter-spacing: .04em; text-shadow: 0 0 40px rgba(159, 176, 255, .35); }
.sales__title { margin: 8px 0 18px; font-family: var(--font-head); font-weight: 700; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: .3em; color: #9fb0ff; }
.sales__text { margin-bottom: 24px; line-height: 2; color: #c9d0e6; }
.sales__btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 30px;
  background: #fff;
  color: #05060a;
  font-weight: 700;
  box-shadow: 0 0 40px rgba(159, 176, 255, .35);
  transition: opacity .15s, translate 0s .15s, background-color .3s, color .3s;
}
/* 出てくるときの遅れは opacity と位置だけに。色・背景・影は遅れなし（マウスを離したらすぐ白に戻る） */
.sales.is-on .sales__copy > .sales__btn {
  transition:
    opacity .8s calc(1.3s + var(--k, 0) * .12s),
    translate .9s var(--ease-out) calc(1.3s + var(--k, 0) * .12s),
    background-color .3s 0s, color .3s 0s, box-shadow .3s 0s;
}
.sales__btn-en { font-family: var(--font-en); font-weight: 400; letter-spacing: .12em; color: var(--c-brand-l); transition: color .3s; }
/* マウスを乗せたとき：ボタンが暗くなり、ふちを光が一周し続ける（車がコースを走るイメージ） */
.sales__btn { position: relative; isolation: isolate; }
.sales__btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  padding: 2px;
  background: conic-gradient(from var(--run), transparent 0deg, transparent 290deg, #9fb0ff 330deg, #fff 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 6px rgba(159, 176, 255, .9));
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
@media (hover: hover) {
  .sales__btn:hover { background: #05060a; color: #fff; box-shadow: 0 0 0 1px rgba(159, 176, 255, .25), 0 0 40px rgba(47, 69, 255, .35); }
  .sales__btn:hover .sales__btn-en { color: #9fb0ff; }
  .sales__btn:hover::before { opacity: 1; animation: btnRun 1.6s linear infinite; }
}
.sales__btn:focus-visible { outline: 2px solid #9fb0ff; outline-offset: 4px; }
/* 出てくるときの遅れ（transition-delay）が、マウスを乗せたときの色の変化にも効いてしまうので、乗せたら遅れなし */
.sales.is-on .sales__copy > .sales__btn:hover,
.sales.is-on .sales__copy > .sales__btn:focus-visible { transition-delay: 0s; }
.sales__addr { margin-top: 18px; font-size: 12px; color: var(--c-sub); }

/* 縦長の画面：縦に切り抜いた画像。光は下へ、文字は下に */
@media (max-aspect-ratio: 1/1) {
  .sales { --lx: 34.1%; --ly: 40.4%; --rx: 63.8%; --ry: 40%; }
  .sales__car { left: 51%; width: max(100vw, 70svh); aspect-ratio: 900 / 1349; top: 50%; -webkit-mask-image: none; mask-image: none; }   /* 高さが画面より少し大きくなるように（下に隙間を作らない） */
  .sales__glow { width: 26%; }
  .sales__copy { bottom: 32px; }
  .sales__text { font-size: 14px; }
}
@media (max-width: 480px) {
  .sales__btn-en { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sales { height: auto; }
  .sales__stage { position: relative; min-height: 100svh; }
  .sales__layer--on, .sales__glow, .sales__beam, .sales__copy > * { animation: none !important; opacity: 1; translate: none; scale: 1 1; transition: none; }
}

/* ---------- ⑤ お知らせ：ロゴの青の面 ---------- */
.news {
  position: relative;
  overflow: clip;
  padding: clamp(90px, 13vw, 180px) var(--m);
  background: linear-gradient(135deg, #1f33ff 0%, #0b17c9 55%, #070f8a 100%);
  color: #fff;
}
/* 背景の大きな NEWS（縁取りだけ）：スクロールで少し横に動く */
.news__bg {
  position: absolute;
  left: 0;
  bottom: -3vw;
  display: flex;
  width: max-content;
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(180px, 30vw, 500px);
  line-height: .8;
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
  pointer-events: none;
  white-space: nowrap;
  animation: newsFlow 60s linear infinite;      /* 右から左へ流れ続ける */
}
.news__bg span { padding-right: .35em; }
@keyframes newsFlow { to { translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) {
  .news__bg { animation: none; }
}
.news__inner {
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2.4fr;
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 6vw, 96px);
}
.news__head { margin: 0; }
.news__en { font-family: var(--font-en); font-size: clamp(56px, 8vw, 120px); line-height: .9; letter-spacing: .03em; }
.news__title { margin-top: 10px; font-family: var(--font-head); font-weight: 700; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .3em; color: rgba(255, 255, 255, .75); }
.news__list { grid-row: 1 / 3; grid-column: 2; margin: 0; padding: 0; list-style: none; }
.news__row { position: relative; }
/* 行の下の線：左から光が走って引かれる */
.news__row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, .45);
  transform-origin: left;
  scale: 0 1;
  transition: scale 1s var(--ease-io) calc(var(--k, 0) * .12s);
}
.news__row:first-child::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .45); transform-origin: left; scale: 0 1; transition: scale 1s var(--ease-io); }
.news__row:nth-child(2) { --k: 1; } .news__row:nth-child(3) { --k: 2; } .news__row:nth-child(4) { --k: 3; } .news__row:nth-child(5) { --k: 4; }
.news__row a {
  position: relative;
  display: grid;
  grid-template-columns: 7.5em 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 2.6vw, 34px) 8px;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  translate: 0 18px;
  transition: opacity .7s calc(.3s + var(--k, 0) * .12s), translate .8s var(--ease-out) calc(.3s + var(--k, 0) * .12s), color .35s;
}
.news.is-in .news__row::after, .news.is-in .news__row:first-child::before { scale: 1 1; }
.news.is-in .news__row a { opacity: 1; translate: 0 0; }
.news__row time { display: grid; font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; color: rgba(255, 255, 255, .7); }
.news__row time b { font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); letter-spacing: .04em; line-height: 1; color: #fff; transition: color .35s; }
.news__name { font-weight: 700; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.7; }
.news__arrow {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  transition: background-color .35s, border-color .35s;
}
.news__arrow::before { content: ""; position: absolute; left: 44%; top: 50%; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; translate: -50% -50%; rotate: 45deg; }
/* マウスを乗せたとき：ヘッドライトが横切るように光が走り、行が白く反転 */
.news__row a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  transform-origin: left;
  scale: 0 1;
  transition: scale .55s var(--ease-io);
}
.news__row a::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 30%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
  pointer-events: none;
}
@media (hover: hover) {
  .news__row a:hover { color: #0b17c9; }
  .news__row a:hover time, .news__row a:hover time b { color: #0b17c9; }
  .news__row a:hover::before { scale: 1 1; }
  .news__row a:hover::after { animation: newsSweep .55s var(--ease-io); }
  .news__row a:hover .news__arrow { background: #0b17c9; border-color: #0b17c9; color: #fff; }
}
@keyframes newsSweep { to { left: 100%; } }
.news__more {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  justify-self: start;
  display: grid;
  gap: 2px;
  padding: 16px 26px;
  border: 1px solid #fff;
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: .16em;
  transition: background-color .3s, color .3s;
}
.news__more small { font-family: var(--font-ja); font-size: 11px; font-weight: 700; letter-spacing: .1em; opacity: .8; }
@media (hover: hover) {
  .news__more:hover { background: #fff; color: #0b17c9; }
}
@media (max-width: 768px) {
  .news__inner { grid-template-columns: 1fr; }
  .news__head { margin-bottom: 32px; }
  .news__list { grid-row: auto; grid-column: 1; }
  .news__row a { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .news__row time { grid-column: 1; display: flex; align-items: baseline; gap: 10px; }
  .news__name { grid-column: 1; }
  .news__arrow { grid-column: 2; grid-row: 1 / 3; width: 38px; height: 38px; }
  .news__more { grid-column: 1; grid-row: auto; margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .news__row::after, .news__row:first-child::before { scale: 1 1; transition: none; }
  .news__row a { opacity: 1; translate: none; }
}


/* 記事がまだないとき（WordPress） */
.news__empty { grid-column: 2; margin: 0; padding: 24px 0; color: rgba(255, 255, 255, .8); }
.works__empty { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; color: var(--c-sub); }
