/* =====================================================================
   style.css  ──  株式会社PARAMOUNT カーコーティング 改善提案デモ
   世界観：漆黒の高級感 × コーティングのツヤ・鏡面 × ゴールド。
   色・余白は tokens.css の var(--xx) を使用（ベタ書きしない）。
   ===================================================================== */

/* --- 基本 ----------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: var(--fz-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px; /* 固定CTAバー分 */
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  line-height: 1.28;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: .02em;
}
h1 { font-size: var(--fz-h1); }
h2 { font-size: var(--fz-h2); }
h3 { font-size: var(--fz-h3); }
p { max-width: 40em; }

a { color: var(--c-main); text-decoration: none; transition: opacity .2s ease, color .2s ease; }
a:hover { opacity: .8; }
strong { color: var(--c-main-2); font-weight: 700; }

/* --- レイアウト ----------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-3); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(var(--sp-12), 11vw, var(--sp-16)); }
.section--alt { background: var(--c-bg-alt); }
section[id] { scroll-margin-top: 72px; }

.section__head { max-width: 42em; margin: 0 auto clamp(var(--sp-6), 6vw, var(--sp-12)); text-align: center; }
.section__head p { max-width: none; margin-top: var(--sp-3); color: var(--c-text-dim); }

/* eyebrow：金の細線＋欧文トラッキング */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--ff-en); font-size: var(--fz-small);
  letter-spacing: .34em; text-transform: uppercase; color: var(--c-main);
  margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 2.4em; height: 1px; background: currentColor; }
.section__head .eyebrow { justify-content: center; }

/* --- ヘッダー（黒・sticky・ブラー）-------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 15, 17, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--c-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.logo {
  display: inline-flex; align-items: baseline; gap: .5em;
  font-family: var(--ff-en); font-size: 1.35rem; font-weight: 500;
  color: var(--c-text); letter-spacing: .22em; text-transform: uppercase;
}
.logo b { color: var(--c-main); font-weight: 600; }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; margin-left: auto; padding: 9px;
  background: none; border: 0; cursor: pointer; color: var(--c-text);
}
.nav__toggle-bar { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .3s ease, opacity .3s ease; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: stretch;
  background: var(--c-surface); padding: var(--sp-1) var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--c-line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__list { display: flex; flex-direction: column; gap: 0; list-style: none; }
.nav__list li { border-bottom: 1px solid var(--c-line); }
.nav__list a { display: block; padding: var(--sp-3) var(--sp-1); color: var(--c-text); font-size: .95rem; letter-spacing: .06em; }
.nav__list a:hover { color: var(--c-main); opacity: 1; }

@media (min-width: 768px) {
  .nav__toggle { display: none; }
  .nav__menu { position: static; flex-direction: row; align-items: center; gap: var(--sp-4); background: none; padding: 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: row; gap: var(--sp-4); }
  .nav__list li { border-bottom: 0; }
  .nav__list a { display: inline; padding: 0; }
}

/* --- ヒーロー（コーティングのツヤ＝CSSで鏡面・光のスジを表現）-------- */
.hero { position: relative; background: var(--c-bg); }

/* スクロール連動ヒーロー（tatuki式・4シーン）*/
.hero-scroll { position: relative; height: 380vh; background: #0E0F11; }
.hero-stage { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; display: grid; align-items: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: 0; opacity: 0; will-change: opacity; }
.hero-bg:first-child { opacity: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: relative; z-index: 2; text-shadow: 0 2px 16px rgba(0, 0, 0, .65); }
.hero-headings { position: relative; min-height: calc(var(--fz-h1) * 2.5); margin-bottom: var(--sp-6); }
.hero-scene { position: absolute; inset: 0; opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.hero-scene.is-active { opacity: 1; transform: none; }
.hero-scene .eyebrow { margin-bottom: var(--sp-2); }
.hero-fixed { opacity: 1; }
.hero-dots { position: absolute; left: 50%; bottom: clamp(112px, 16vh, 156px); transform: translateX(-50%); z-index: 95; display: flex; flex-direction: row; gap: 11px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--c-main); background: transparent; transition: background .3s ease; }
.hero-dot.is-active { background: var(--c-main); }
/* JS無効時・reduced-motion時の安全フォールバック（1画面・シーン0のみ）*/
.no-js .hero-scroll, .hero-scroll.is-static { height: auto; }
.no-js .hero-stage, .hero-stage.is-static { position: relative; height: auto; min-height: 86svh; padding-block: var(--sp-12); }
.no-js .hero-scene:not(:first-child) { display: none; }
.no-js .hero-headings { min-height: 0; }
.no-js .hero-scene { position: relative; inset: auto; opacity: 1; transform: none; }
.no-js .hero-fixed { opacity: 1; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 84svh; padding-block: var(--sp-12); }
  .hero-headings { min-height: 0; }
  .hero-scene { position: relative; inset: auto; opacity: 1; transform: none; }
  .hero-scene:not(:first-child) { display: none; }
  .hero-fixed { opacity: 1; animation: none; }
}
.hero__media {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(115% 70% at 72% 24%, rgba(200, 169, 106, .12), transparent 52%),
    radial-gradient(90% 120% at 16% 96%, rgba(120, 142, 170, .14), transparent 56%),
    linear-gradient(160deg, #1A1D22 0%, #0E0F11 62%);
}
/* 鏡面に光が走る＝磨かれたボディの照り */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(104deg,
    transparent 28%, rgba(255,255,255,.05) 42%, rgba(255,255,255,.16) 47%,
    rgba(255,255,255,.05) 52%, transparent 66%);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,15,17,.40) 0%, rgba(14,15,17,.55) 45%, rgba(14,15,17,.82) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: var(--sp-12); }
.hero__title {
  font-size: var(--fz-h1); line-height: 1.12; letter-spacing: .02em;
  margin-bottom: var(--sp-4); text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.hero__title .accent { color: var(--c-main); }
.hero__lead { color: #ECEBE6; font-size: 1.18rem; font-weight: 500; max-width: 32em; margin-bottom: var(--sp-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }

/* 信頼バッジ（認定店・SNS） */
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: center; }
.trust-badge {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .875rem; color: #DEDDD8; letter-spacing: .04em; font-weight: 500;
}
.trust-badge b { color: var(--c-main-2); font-family: var(--ff-en); font-weight: 600; }
.trust-badge::before { content: "\2605"; color: var(--c-main); font-size: .9em; line-height: 1; }

/* 写真プレースホルダ注記 */
.hero__photonote {
  position: absolute; right: var(--sp-3); bottom: var(--sp-3); z-index: 2;
  font-size: .72rem; color: var(--c-text-dim); letter-spacing: .03em;
  border: 1px dashed var(--c-line); padding: .4em .8em; border-radius: var(--radius);
  background: rgba(14,15,17,.5); max-width: 60vw;
}

/* --- ビフォーアフター --------------------------------------------- */
.ba__grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 700px) { .ba__grid { grid-template-columns: 1fr 1fr; } }
.ba__item { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--c-line); overflow: hidden; }
.ba__item--before { background: linear-gradient(160deg, #34373B, #232527); }
/* くすみ＝マットでフラットに */
.ba__item--before::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 40%, rgba(255,255,255,.04), transparent 60%);
}
.ba__item--after { background: linear-gradient(160deg, #1B1E22 0%, #0C0D0F 70%); }
/* ツヤ＝鏡面ハイライト */
.ba__item--after::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(110deg, transparent 36%, rgba(255,255,255,.20) 48%, transparent 60%),
    radial-gradient(70% 60% at 70% 24%, rgba(200,169,106,.16), transparent 55%);
}
.ba__label {
  position: absolute; left: var(--sp-2); top: var(--sp-2); z-index: 2;
  font-family: var(--ff-en); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .3em .9em; border-radius: var(--radius-pill);
}
.ba__label--before { background: rgba(255,255,255,.1); color: var(--c-text); }
.ba__label--after { background: var(--c-main); color: var(--c-on-gold); }

/* --- サービス / 料金 ----------------------------------------------- */
.service__grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .service__grid { grid-template-columns: repeat(3, 1fr); } }
.service__card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-top: 2px solid var(--c-main); padding: var(--sp-6) var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.service__name { font-size: var(--fz-h3); margin: 0; }
.service__price { font-family: var(--ff-en); font-size: 1.6rem; color: var(--c-main-2); font-weight: 500; }
.service__price small { font-size: .8rem; color: var(--c-text-dim); }
.service__desc { color: var(--c-text-dim); margin: 0; max-width: none; font-size: .95rem; }

/* --- 3つのこだわり ------------------------------------------------- */
.feature__grid { display: grid; gap: var(--sp-6) var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature__grid { grid-template-columns: repeat(3, 1fr); } }
.feature__card { display: flex; flex-direction: column; gap: var(--sp-2); }
.feature__num {
  font-family: var(--ff-en); font-size: 2.2rem; font-weight: 300;
  color: var(--c-main); line-height: 1; letter-spacing: .04em;
}
.feature__card .feature__num::after { content: ""; display: block; width: 2.2em; height: 1px; background: var(--c-line); margin-top: var(--sp-2); }
.feature__title { font-size: var(--fz-h3); margin: 0; }
.feature__desc { color: var(--c-text-dim); margin: 0; max-width: none; font-size: .95rem; }

/* --- ボタン -------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; gap: .6em;
  padding: var(--sp-2) var(--sp-6);
  border-radius: var(--radius); border: 1px solid var(--c-main);
  font-family: var(--ff-body); font-weight: 700; letter-spacing: .06em; font-size: .95rem;
  text-shadow: none;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.button--gold { background: var(--c-main); color: var(--c-on-gold); }
.button--gold:hover { opacity: 1; transform: translateY(-2px); background: var(--c-main-2); }
.button--ghost { background: transparent; color: var(--c-main); }
.button--ghost:hover { background: rgba(200,169,106,.1); transform: translateY(-2px); }
.button--line { background: #06C755; border-color: #06C755; color: #fff; }
.button--line:hover { background: #05B34D; opacity: 1; transform: translateY(-2px); }
.button--line .line-ico { width: 1.1em; height: 1.1em; fill: currentColor; }

/* --- CTA ----------------------------------------------------------- */
.cta { text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 120% at 50% -10%, rgba(200,169,106,.16), transparent 60%);
}
.cta p { color: var(--c-text-dim); margin-inline: auto; }
.cta__actions { margin-top: var(--sp-6); display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-3); }

/* --- フッター（店舗情報）------------------------------------------ */
.site-footer { background: #0A0B0C; border-top: 1px solid var(--c-line); padding-block: var(--sp-12) var(--sp-6); }
.footer__grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; margin-bottom: var(--sp-8); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__brand .logo { font-size: 1.5rem; }
.footer__brand p { color: var(--c-text-dim); margin-top: var(--sp-3); font-size: .9rem; }
.footer__col h3 { font-size: 1rem; margin-bottom: var(--sp-3); color: var(--c-text); }
.footer__col dl { display: grid; grid-template-columns: 5.5em 1fr; gap: var(--sp-1) var(--sp-2); font-size: .88rem; color: var(--c-text-dim); }
.footer__col dt { color: var(--c-main); }
.footer__col dd { margin: 0; }
.footer__bottom { border-top: 1px solid var(--c-line); padding-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); justify-content: space-between; font-size: var(--fz-small); color: var(--c-text-dim); }

/* --- SAMPLE バー --------------------------------------------------- */
.sample-bar {
  background: var(--c-main); color: var(--c-on-gold);
  text-align: center; font-size: var(--fz-small); font-weight: 700;
  letter-spacing: .03em; padding: var(--sp-1) var(--sp-3);
}

/* --- フォーカス / スキップ ----------------------------------------- */
:focus-visible { outline: 2px solid var(--c-main); outline-offset: 3px; }
.skip-link { position: absolute; left: var(--sp-2); top: -4rem; z-index: 200; background: var(--c-main); color: var(--c-on-gold); padding: var(--sp-1) var(--sp-2); border-radius: var(--radius); transition: top .2s ease; }
.skip-link:focus { top: var(--sp-2); }

/* --- reveal -------------------------------------------------------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --- 画像（Midjourney生成・JPEG最適化済）-------------------------- */
/* ヒーロー：3枚フェード切替（FVは1枚目を初期表示＝消えない・PART 2-8）*/
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero__slide:first-child { opacity: 1; }
.js .hero__media .hero__slide { animation: heroFade 18s infinite; }
.js .hero__media .hero__slide:nth-child(2) { animation-delay: 6s; }
.js .hero__media .hero__slide:nth-child(3) { animation-delay: 12s; }
@keyframes heroFade { 0%, 28% { opacity: 1; } 34%, 94% { opacity: 0; } 100% { opacity: 1; } }
/* こだわり画像 */
.feature__media { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: var(--sp-3); border: 1px solid var(--c-line); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature__card:hover .feature__media img { transform: scale(1.04); }
/* 施工前後 画像（実画像をCSS表現の上に重ねる）*/
.ba__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ba__label { z-index: 2; }
/* 料金画像（カード上部いっぱい）*/
.service__media { aspect-ratio: 16 / 10; overflow: hidden; margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-4)) var(--sp-4); border-bottom: 1px solid var(--c-line); }
.service__media img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- 固定CTAバー（全ページ下部・特別感ある装飾）------------------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: var(--sp-3);
  padding-bottom: calc(var(--sp-2) + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(14,15,17,0), rgba(8,9,10,.94) 42%);
  pointer-events: none;
}
.cta-bar__inner { display: flex; gap: var(--sp-2); max-width: 600px; margin-inline: auto; pointer-events: auto; }
.cta-bar__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius); font-weight: 700; letter-spacing: .1em; font-size: 1.02rem;
  text-decoration: none; text-shadow: none; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.cta-bar__btn span { position: relative; z-index: 1; }
.cta-bar__btn:hover { transform: translateY(-2px); opacity: 1; }
.cta-bar__btn--quote {
  background: linear-gradient(135deg, #EAD49B 0%, #C8A96A 46%, #A8884C 100%);
  color: #1A1206; border: 1px solid rgba(234,212,155,.9);
  box-shadow: 0 10px 28px rgba(200,169,106,.45), inset 0 1px 0 rgba(255,255,255,.6);
}
.cta-bar__btn--quote::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; z-index: 0;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); animation: ctaShine 5.5s ease-in-out infinite;
}
@keyframes ctaShine { 0%, 62% { left: -70%; } 82%, 100% { left: 140%; } }
.cta-bar__btn--line {
  background: #06C755; color: #fff; border: 1px solid #06C755;
  box-shadow: 0 10px 28px rgba(6,199,85,.38);
}
@media (min-width: 768px) {
  .cta-bar__inner { max-width: var(--container); justify-content: flex-end; }
  .cta-bar__btn { flex: 0 0 auto; min-width: 230px; }
}
@media (prefers-reduced-motion: reduce) { .cta-bar__btn--quote::after { display: none; } }
