/* 中川車検クリニック デザイン層（2026-09-30 採用の A4b 案）。style.css の上に重ねる
   トップ: 写真4枚のディゾルブ＋文字組みと動き／面: 明るい面は青みのない白、濃い面は紺（外壁の実測 #181830）／各セクションに大きな英語見出し
   経緯と比較: drafts/look-compare.html。案ごとの元ファイルは drafts/ に残してある */

/* ===== drafts/hero-a.css から ===== */
/* A案: 工場の全面写真（factory_02）＋紺の重ね。見出しは写真の上
   写真ファイルは縮小のみ。暗くしているのは CSS の重ね（::before）で、写真そのものは無加工 */

/* PC では電話番号と受付時間をヘッダーの1回だけにする */
@media (min-width: 960px) { .hero .tel-block { display: none; } }

.hero-a {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(calc(100svh - 56px), 640px);
  background: var(--navy); color: #fff; overflow: hidden;
}
.hero-a::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(12, 16, 58, .35) 0%, rgba(12, 16, 58, .40) 34%, rgba(12, 16, 58, .88) 62%, rgba(12, 16, 58, .94) 100%);
}
.hero-a__inner { position: relative; z-index: 2; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px 28px; }
.hero-a .hero__en { font-size: 13px; letter-spacing: .16em; opacity: .9; }
.hero-a .hero__catch { margin-top: 8px; font-size: clamp(30px, 8.6vw, 36px); line-height: 1.28; }
.hero-a .hero__name { font-size: 15px; }
.hero-a .hero__name::before {
  content: ""; display: block; width: 48px; height: 4px; margin: 16px 0 12px; background: var(--red);
}
.hero-a .hero__city { display: inline; margin-left: .8em; }
.hero-a__badge {
  display: inline-block; margin-top: 12px; padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .75); font-size: 14px; font-weight: 700; line-height: 1.5;
}
.hero-a .tel-block { margin-top: 18px; }
.hero-a .btn-tel { border: 0; border-radius: 2px; }

@media (min-width: 768px) {
  .hero-a__inner { padding: 0 24px 40px; }
}

@media (min-width: 960px) {
  .hero-a { min-height: min(calc(100svh - 72px), 760px); }
  .hero-a::before {
    background:
      linear-gradient(90deg, rgba(12, 16, 58, .72) 0%, rgba(12, 16, 58, .35) 45%, rgba(12, 16, 58, 0) 75%),
      linear-gradient(180deg, rgba(12, 16, 58, .10) 0%, rgba(12, 16, 58, .20) 45%, rgba(12, 16, 58, .85) 100%);
  }
  .hero-a__inner { padding: 0 24px 72px; }
  .hero-a .hero__en { font-size: 16px; }
  .hero-a .hero__catch { margin-top: 10px; font-size: 60px; line-height: 1.2; }
  .hero-a .hero__name { font-size: 18px; }
  .hero-a .hero__name::before { width: 56px; margin: 22px 0 16px; }
  .hero-a .hero__city { font-size: 15px; }
  .hero-a__badge { margin-top: 16px; padding: 7px 16px; font-size: 16px; }
}

/* ===== drafts/hero-a2.css から ===== */
/* A2案: A案の写真を4枚、ディゾルブで切り替える（6秒ごと・切り替えは1.5秒。動かすのは hero-a2 の script）
   写真ファイルは縮小のみ。切り抜きは object-position、暗くしているのは hero-a.css の重ね（::before） */

/* 写真の層。z-index: 0 で囲い、切り替えで上げる z-index が文字の重ねより上に出ないようにする */
.hero-s__slides { position: absolute; inset: 0; z-index: 0; }
.hero-s__slide {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
}
/* 出てくる写真だけゆっくり出す。消える写真は上の写真に隠れているので一瞬で消す（見えない重ね合わせの計算を省く） */
.hero-s__slide.is-in { opacity: 1; transition: opacity 1.5s ease-in-out; }

/* スマホの見せる範囲。工場は縦に大きく敷いて上の空を枠の外に逃がす */
.hero-s__slide--factory { height: 118%; object-position: 22% 50%; }
.hero-s__slide--work { object-position: 62% 50%; }
.hero-s__slide--front { object-position: 50% 50%; }

@media (min-width: 960px) {
  .hero-s__slide--factory { height: 100%; object-position: 50% 82%; }
  .hero-s__slide--work { object-position: 50% 22%; }
  .hero-s__slide--front { object-position: 50% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-s__slide, .hero-s__slide.is-in { transition: none; }
}

/* 写真の切り替えを止める／再開するボタン。写真の上の右上に小さく置く */
.hero-s__toggle {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%;
  background: rgba(12, 16, 58, .35); color: #fff; cursor: pointer;
}
.hero-s__toggle[hidden] { display: none; }
.hero-s__toggle:hover { background: rgba(12, 16, 58, .6); }
.hero-s__toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-s__icon-play, .hero-s__toggle.is-paused .hero-s__icon-pause { display: none; }
.hero-s__toggle.is-paused .hero-s__icon-play { display: block; }
@media (min-width: 960px) { .hero-s__toggle { top: 24px; right: 24px; } }

/* ===== drafts/hero-a3.css から ===== */
/* A3案: A2案（写真のディゾルブ）＋見本（松尾自動車工業）に寄せた文字組み＋文字と数字の動き
   動きは anim.js が html に js-anim を付けたときだけ効く。JS が動かない・動きを減らす設定の端末では、最初から全部見える */

/* ---------- 文字組み ---------- */
/* 英語と数字: 見本は横に広い細身の aktiv-grotesk-extended（Adobe の有料フォント）。無料で形の近い Archivo を横幅125%で使う */
.hero__en, .points__num, .menu__num { font-family: "Archivo", sans-serif; font-stretch: 125%; }
.hero__en { font-weight: 500; letter-spacing: .12em; }
.points__num { font-weight: 500; font-size: 28px; }
.menu__num { font-weight: 600; letter-spacing: .08em; }
.head-tel__num, .btn-tel__num, .text-tel { font-family: "Archivo", sans-serif; font-stretch: 112.5%; font-weight: 600; letter-spacing: .02em; }

/* 見出し: 見本と同じ Noto Sans JP の中太（500）で字の間を広く取る（見本の実測は 41px に字間 0.14em） */
.hero__catch { font-weight: 500; letter-spacing: .12em; }
@media (min-width: 960px) {
  .hero-a .hero__catch { font-size: 58px; }
  .hero-a .hero__en { font-size: 17px; }
}


/* 文字を1字ずつ出すときの入れ物（anim.js が作る）。文節ごとにまとめて、改行位置は今までどおり文節の切れ目だけ */
.hero__catch .phrase { display: inline-block; white-space: nowrap; }
.hero__catch .ch { display: inline-block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 動き（js-anim のときだけ） ---------- */
/* トップ: 英語 -> 見出しを1字ずつ -> 赤い線が伸びる -> 社名 -> 札 -> 電話 */
html.js-anim .hero-a__inner > .hero__en,
html.js-anim .hero__name,
html.js-anim .hero-a__badge,
html.js-anim .hero-a .tel-block { opacity: 0; transform: translateY(14px); }
html.js-anim .hero__catch .ch { opacity: 0; transform: translateY(.45em); }
html.js-anim .hero-a .hero__name::before { transform: scaleX(0); transform-origin: left center; }

html.js-anim .hero.is-shown .hero-a__inner > .hero__en,
html.js-anim .hero.is-shown .hero__name,
html.js-anim .hero.is-shown .hero-a__badge,
html.js-anim .hero.is-shown .tel-block {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
html.js-anim .hero.is-shown .hero-a__inner > .hero__en { transition-delay: .05s; }
html.js-anim .hero.is-shown .hero__catch .ch {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
html.js-anim .hero.is-shown .hero__name::before { transform: scaleX(1); transition: transform .6s cubic-bezier(.6, 0, .2, 1) .95s; }
html.js-anim .hero.is-shown .hero__name { transition-delay: 1.1s; }
html.js-anim .hero.is-shown .hero-a__badge { transition-delay: 1.2s; }
html.js-anim .hero.is-shown .tel-block { transition-delay: .7s; }

/* スクロールで下からふわっと出る（見本の fadein と同じ考え方）。--i は同じ並びの中での順番 */
html.js-anim .reveal { opacity: 0; transform: translateY(24px); }
html.js-anim .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 110ms);
}

/* 番号 01〜06 が下からせり上がって出る */
html.js-anim .points__num, html.js-anim .menu__num { overflow: hidden; }
html.js-anim .num-in { display: inline-block; transform: translateY(105%); }
html.js-anim .is-in .num-in { transform: none; transition: transform .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 110ms + .15s); }

/* 対応車種のチップが1つずつ出る */
html.js-anim .chips > li { opacity: 0; transform: scale(.9); }
html.js-anim .chips.is-in > li { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--c, 0) * 60ms); }

@media (prefers-reduced-motion: reduce) {
  html.js-anim * { transition: none !important; }
}

/* ===== drafts/look.css から ===== */
/* A4案: A3案＋「単色に見える」の直し（2026-09-30）
   原因: 背景・文字・線・濃い面がすべて青系で、明るい面が7割。トップより下に大きな文字がなく、写真も小さい
   直し: 面は色のないチャコールと白で交互に（松尾の実測グレー 45/255 に近い）。紺と赤は点で置く（ヘッダー・フッター・見出しの線・番号・電話）
         各セクションに大きな英語見出し（build.py が h2 の後ろに入れる）。メニューは写真を大きくした左右交互の行 */

:root {
  --char: #1d1e21;    /* 濃い面 */
  --char-2: #28292d;  /* 濃い面の上の箱 */
  --paper: #f4f4f1;   /* 明るい面（青みを入れない） */
  --paper-2: #fbfbf9;
  --paper-line: #d6d6d0;
  /* 粒。明るい面は色のない粒、濃い面は白い粒 */
  --grain-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .1  0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- 面の色 ---------- */
main .section { background-color: var(--paper); background-image: var(--grain-light); color: var(--text); }
section[aria-labelledby="h-cars"] { background-color: var(--paper-2); }
section[aria-labelledby="h-menu"],
section[aria-labelledby="h-factory"],
section[aria-labelledby="h-access"] { background-color: var(--char); background-image: var(--grain-dark); color: rgba(255, 255, 255, .86); }
section[aria-labelledby="h-menu"] a,
section[aria-labelledby="h-factory"] a,
section[aria-labelledby="h-access"] a { color: #fff; }
/* メニューと工場の様子は続けて濃い面にする。間の余白を詰めて1つの面に見せる */
section[aria-labelledby="h-factory"] { padding-top: 16px; }

.site-footer { background-image: var(--grain-dark); border-top: 4px solid var(--red); }

/* トップの写真の重ねも紺から色のない黒へ（写真ファイルは無加工のまま） */
.hero-a { background: var(--char); }
.hero-a::before {
  background: linear-gradient(180deg, rgba(16, 16, 18, .30) 0%, rgba(16, 16, 18, .36) 34%, rgba(16, 16, 18, .86) 62%, rgba(16, 16, 18, .94) 100%);
}
/* トップの写真の上にはざらざらを重ねない。SVG のノイズは iPhone の Safari で重く、切り替わる写真の上に置くとスクロールがカクつく */

/* ---------- 見出し: 赤い線つきの小さな日本語＋大きな英語 ---------- */
.section__title {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; letter-spacing: .1em; color: var(--char);
}
.section__title::before { content: ""; flex: none; width: 24px; height: 3px; background: var(--red); }
.sec-en {
  margin-top: 8px;
  font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 500;
  font-size: clamp(30px, 9.2vw, 44px); line-height: 1.05; letter-spacing: .04em;
  color: var(--char);
}
section[aria-labelledby="h-menu"] .section__title, section[aria-labelledby="h-menu"] .sec-en,
section[aria-labelledby="h-factory"] .section__title, section[aria-labelledby="h-factory"] .sec-en,
section[aria-labelledby="h-access"] .section__title, section[aria-labelledby="h-access"] .sec-en { color: #fff; }

/* ---------- いいところ（明るい面）: 番号を赤で大きく ---------- */
.lead { margin-top: 24px; color: var(--char); font-size: 18px; }
.points { border-top-color: var(--paper-line); }
.points__item { grid-template-columns: 64px 1fr; border-bottom-color: var(--paper-line); }
.points__num { color: var(--red); font-size: 34px; }
.points__head { color: var(--char); }

/* ---------- 対応車種 ---------- */
.chips li { border-color: var(--char); color: var(--char); background: transparent; }
.cars__label { color: var(--char); }

/* ---------- メニュー（濃い面）: 番号は線だけの大きな数字 ---------- */
.menu__item, .menu-text__item { background: var(--char-2); }
.menu__head { color: #fff; }
/* 線だけの数字は大きいときだけ。スマホ・タブレットの 26px では線が細くかすれるので塗りにする */
.menu__num { color: rgba(255, 255, 255, .78); font-size: 26px; letter-spacing: .04em; }
.menu-text__item { border-top: 2px solid var(--red); }
.menu-text__item .menu__num { color: rgba(255, 255, 255, .75); -webkit-text-stroke: 0; font-size: 15px; }

/* ---------- 工場の様子・アクセス（濃い面） ---------- */
.gallery__item figcaption { color: rgba(255, 255, 255, .86); }
.access__addr { color: #fff; }

/* ---------- 会社情報（明るい面） ---------- */
.company { background: transparent; }
.company th, .company td { border-color: var(--paper-line); }
.company th { color: var(--char); background: rgba(29, 30, 33, .05); }
@media (max-width: 600px) { .company tr { border-bottom-color: var(--paper-line); } .company { border-color: var(--paper-line); } .company th { background: none; } }

/* タブレット（768〜959px）でも工場の様子は2列。style.css の4列のままだと写真が幅170px前後まで小さくなる */
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; } }

/* ---------- PC ---------- */
@media (min-width: 960px) {
  .hero-a::before {
    background:
      linear-gradient(90deg, rgba(16, 16, 18, .70) 0%, rgba(16, 16, 18, .32) 45%, rgba(16, 16, 18, 0) 75%),
      linear-gradient(180deg, rgba(16, 16, 18, .08) 0%, rgba(16, 16, 18, .18) 45%, rgba(16, 16, 18, .85) 100%);
  }

  .section { padding: 112px 0; }
  section[aria-labelledby="h-factory"] { padding-top: 24px; }
  .section__title { font-size: 17px; }
  .sec-en { margin-top: 12px; font-size: 68px; }
  .lead { margin-top: 36px; font-size: 22px; }

  /* いいところは3列。番号を 72px に */
  .points { grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 40px; border-top: 0; }
  .points__item { display: block; padding: 24px 0 0; border-top: 1px solid var(--char); border-bottom: 0; }
  .points__num { display: block; font-size: 72px; line-height: 1; }
  .points__head { margin-top: 20px; font-size: 21px; }
  .points__item p { margin-top: 8px; }

  .cars { grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 20px; }

  /* メニューは写真を大きくした左右交互の行 */
  .menu { grid-template-columns: 1fr; gap: 64px; margin-top: 56px; }
  .menu__item { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; background: none; }
  .menu__item:nth-child(even) .menu__photo { order: 2; }
  .menu__photo { aspect-ratio: 3 / 2; }
  .menu__body { padding: 0; }
  .menu__num { font-size: 96px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .75); padding-bottom: 4px; }
  .menu__head { margin-top: 18px; font-size: 28px; letter-spacing: .06em; }
  .menu__body p { margin-top: 12px; font-size: 17px; }
  .menu-text { margin-top: 72px; gap: 28px; }
  .menu-text__item { grid-template-columns: 76px 1fr; padding: 24px 28px; align-items: center; }
  .menu-text__item .menu__num { font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .75); }

  /* 工場の様子は2列にして写真を大きく */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; margin-top: 48px; }
  .gallery__item figcaption { margin-top: 10px; font-size: 15px; }

  .company { margin-top: 48px; }
  .access__addr { margin-top: 40px; }
  .access__map { height: 380px; }

  .recruit { grid-template-columns: 1fr 1fr; gap: 72px; }
  .recruit__photo { aspect-ratio: 4 / 5; }
  .recruit__body .sec-en { margin-bottom: 8px; }
}

/* ---------- 動き（js-anim のときだけ） ---------- */
/* 見出しの赤い線が伸びる */
html.js-anim .section__title.reveal::before { transform: scaleX(0); transform-origin: left center; }
html.js-anim .section__title.reveal.is-in::before { transform: scaleX(1); transition: transform .6s cubic-bezier(.6, 0, .2, 1) .3s; }
/* 英語見出しは左から拭き取るように出る。隠すのは中の文字（外側を隠すとスクロールの検知が働かない） */
.sec-en > span { display: inline-block; }
html.js-anim .sec-en.reveal { opacity: 1; transform: none; }
html.js-anim .sec-en.reveal > span { clip-path: inset(-10% 100% -10% 0); }
html.js-anim .sec-en.reveal.is-in > span { clip-path: inset(-10% 0 -10% 0); transition: clip-path 1.1s cubic-bezier(.6, 0, .2, 1) .15s; }

/* ---------- ?tone=navy: 濃い面を先方の色（紺）にした版 ----------
   ヒアリング No.43「会社の色＝紺色・ブルー系」（9/15）に合わせる。濃い面は社屋の外壁の実測 #181830（仕様書 v2）で、新しい色は足さない
   チャコール版との違いは濃い面の色と、明るい面の英語見出しを紺にすることだけ。明るい面は青みを入れない白のまま */
html[data-tone="navy"] { --char-dark: #181830; --char-2: #242448; }
html[data-tone="navy"] section[aria-labelledby="h-menu"],
html[data-tone="navy"] section[aria-labelledby="h-factory"],
html[data-tone="navy"] section[aria-labelledby="h-access"] { background-color: var(--char-dark); }
html[data-tone="navy"] .sec-en { color: var(--navy); }
html[data-tone="navy"] section[aria-labelledby="h-menu"] .sec-en,
html[data-tone="navy"] section[aria-labelledby="h-factory"] .sec-en,
html[data-tone="navy"] section[aria-labelledby="h-access"] .sec-en { color: #fff; }
html[data-tone="navy"] .points__item { border-top-color: var(--navy); }
html[data-tone="navy"] .chips li { border-color: var(--navy); color: var(--navy); }
/* トップの写真の重ねも A案のときの紺に戻す */
html[data-tone="navy"] .hero-a { background: var(--navy); }
html[data-tone="navy"] .hero-a::before {
  background: linear-gradient(180deg, rgba(12, 16, 58, .35) 0%, rgba(12, 16, 58, .40) 34%, rgba(12, 16, 58, .88) 62%, rgba(12, 16, 58, .94) 100%);
}
@media (min-width: 960px) {
  html[data-tone="navy"] .hero-a::before {
    background:
      linear-gradient(90deg, rgba(12, 16, 58, .72) 0%, rgba(12, 16, 58, .35) 45%, rgba(12, 16, 58, 0) 75%),
      linear-gradient(180deg, rgba(12, 16, 58, .10) 0%, rgba(12, 16, 58, .20) 45%, rgba(12, 16, 58, .85) 100%);
  }
  html[data-tone="navy"] .points__item { border-top-color: var(--navy); }
}

/* A4b のトップに足した全景（exterior_02）の見せる位置。社屋が右寄りにあるので右へ寄せる */
.hero-s__slide--whole { object-position: 64% 50%; }
@media (min-width: 960px) { .hero-s__slide--whole { object-position: 50% 58%; } }
/* A4b の募集の写真（work_05）は人が右下にいるので、スマホの横長の枠では下を見せる */
.recruit__photo[src*="work_05"] { object-position: 50% 78%; }
