/* ============================================================
   クルマ コンシェルジュ — LP styles
   設計方針：明朝の見出し／余白／細い罫線／抑えた配色＋実写で
   「手で組んだ編集デザイン」に寄せ、量産的な印象を避ける。
   ============================================================ */

:root {
  --ink:        #17140f;   /* 墨に近い黒（温かみ） */
  --ink-soft:   #2b2620;
  --paper:      #f5f1e8;   /* 生成りの白 */
  --paper-2:    #efe8d9;
  --paper-3:    #e7dfcd;
  --brass:      #b08d57;   /* 真鍮の金 = 唯一のアクセント */
  --brass-deep: #8a6c3f;
  --muted:      #6c6354;   /* 副次テキスト */
  --muted-l:    #b9b1a1;   /* 暗背景上の副次 */
  --line:       rgba(23, 20, 15, 0.14);
  --line-l:     rgba(245, 241, 232, 0.18);

  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans:  "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --latin: "Cormorant Garamond", serif;

  --container: 1160px;
  --gut: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.4; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sp-only { display: none; }
@media (max-width: 720px) { .sp-only { display: inline; } }

/* ---------- 共通：キッカー・見出し・ボタン ---------- */
.kicker {
  font-family: var(--latin);
  font-size: 0.82rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9em;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.kicker-light { color: var(--brass); }

.section { padding-block: clamp(74px, 11vw, 148px); scroll-margin-top: 1.5rem; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 5.4vw, 3.2rem);
  letter-spacing: 0.04em;
  line-height: 1.34;
}
.section-sub {
  margin-top: 1.5rem;
  max-width: 40em;
  color: var(--muted);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.95em 1.9em;
  border: 1px solid transparent;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .35s ease;
  cursor: pointer;
}
.btn-lg { padding: 1.15em 2.3em; font-size: 1rem; }
.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-solid:hover { background: var(--brass-deep); border-color: var(--brass-deep); }
.btn-ghost {
  border-color: currentColor;
  color: var(--ink);
  flex-direction: column;
  gap: 0.1em;
  line-height: 1.3;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { color: var(--paper); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn-tel-num { font-family: var(--latin); font-size: 1.35em; font-weight: 600; letter-spacing: 0.04em; }
.btn-tel-sub { font-size: 0.72rem; letter-spacing: 0.08em; font-weight: 400; opacity: 0.85; }

/* ============================================================
   ヒーロー（実写背景・最上部から見出し）
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: #0f0c08 url("img/hero.jpg") center 30% / cover no-repeat;
  transform: scale(1.04);
}
.hero::after {  /* 可読性のための階調オーバーレイ（左を濃く、右に車を覗かせる） */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(95deg, rgba(13,10,7,0.94) 0%, rgba(13,10,7,0.82) 36%, rgba(13,10,7,0.40) 72%, rgba(13,10,7,0.66) 100%),
    radial-gradient(120% 80% at 80% 0%, rgba(176,141,87,0.18), transparent 60%);
}

.hero-inner { position: relative; z-index: 2; padding-block: clamp(6rem, 14vh, 9rem); }
.hero-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.3rem, 7vw, 5rem);
  line-height: 1.42;
  letter-spacing: 0.045em;
  margin-bottom: 1.8rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.45);
}
.hero-title .accent { color: var(--brass); }
.hero-lead {
  font-size: clamp(0.98rem, 2.1vw, 1.18rem);
  color: #e8e2d6;
  line-height: 2.1;
  max-width: 38em;
  margin-bottom: 2.8rem;
  text-shadow: 0 1px 16px rgba(0,0,0,0.5);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; margin-bottom: 3rem; }
.hero-actions .btn-solid { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.hero-actions .btn-solid:hover { background: var(--paper); border-color: var(--paper); }
.hero-actions .btn-ghost { color: var(--paper); }

.hero-marks {
  list-style: none; margin: 0; padding: 1.8rem 0 0;
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem;
  border-top: 1px solid var(--line-l);
}
.hero-marks li {
  position: relative;
  padding-left: 1.4em;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--paper);
}
.hero-marks li::before {
  content: "";
  position: absolute; left: 0; top: 0.72em;
  width: 7px; height: 7px;
  background: var(--brass);
  transform: rotate(45deg);
}

.scroll-hint {
  position: absolute; right: var(--gut); bottom: 2.2rem; z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--latin);
  font-size: 0.72rem; letter-spacing: 0.4em;
  color: var(--muted-l);
}
.scroll-hint span { position: relative; }
.scroll-hint span::after {
  content: ""; position: absolute; left: 50%; bottom: -42px;
  width: 1px; height: 34px; background: var(--brass);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{ transform: scaleY(0.3); opacity:.3; transform-origin: top; } 50%{ transform: scaleY(1); opacity:1; transform-origin: top; } }

/* ============================================================
   01 来店不要という選択（写真と対比）
   ============================================================ */
.concept-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 84px);
}
.concept-figure { margin: 0; position: relative; overflow: hidden; }
.concept-figure img {
  width: 100%; height: clamp(320px, 42vw, 540px);
  object-fit: cover;
}
.concept-figure::after {  /* 細い真鍮の枠 */
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(245,241,232,0.55);
  pointer-events: none;
}
.concept-figure figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: var(--paper);
  font-size: 0.8rem; letter-spacing: 0.12em;
  padding: 0.7em 1.3em;
}
.concept-lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  line-height: 1.95;
  font-weight: 600;
  margin-bottom: 2.4rem;
}
.compare { display: grid; gap: 1rem; }
.compare-row { padding: 1.3rem 1.5rem; border: 1px solid var(--line); }
.compare-old { opacity: 0.72; }
.compare-new { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.compare-tag {
  display: inline-block;
  font-family: var(--latin); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: 0.5rem;
}
.compare-new .compare-tag { color: var(--brass); }
.compare-row p { font-size: 0.98rem; }

.visit-list {
  list-style: none; margin: 0 0 1.2rem; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.6rem 0.4rem;
}
.visit-list li { display: flex; align-items: center; }
.visit-list li:not(:last-child)::after {
  content: ""; width: 26px; height: 1px; background: var(--line);
  margin-inline: 0.4rem;
}
.vn {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.32rem);
  letter-spacing: 0.04em;
  padding: 0.3em 0;
  border-bottom: 2px solid var(--brass);
}
.visit-caption { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   02 お悩み
   ============================================================ */
.worries { background: var(--paper-2); }
.worry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.worry-item {
  background: var(--paper);
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
  padding-left: clamp(2.8rem, 4.5vw, 3.8rem);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.75;
  position: relative;
}
.worry-item::before {
  content: "\201C";
  font-family: var(--latin);
  font-size: 2.6rem; line-height: 0;
  color: var(--brass);
  position: absolute; left: clamp(1.1rem, 2vw, 1.6rem); top: 1.9rem;
  opacity: 0.6;
}
.worries-bridge {
  margin-top: clamp(40px, 6vw, 64px);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.7;
}

/* ============================================================
   帯（シネマティックな写真バンド）
   ============================================================ */
.band {
  position: relative;
  color: var(--paper);
  padding-block: clamp(90px, 16vw, 180px);
  background-color: #0f0c08;
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
}
.band-quality { background-image: linear-gradient(90deg, rgba(13,10,7,0.78), rgba(13,10,7,0.42)), url("img/detail.jpg"); }
.band-copy {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1.55;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

/* ============================================================
   03 選ばれる理由
   ============================================================ */
.reason-rows { border-top: 1px solid var(--line); }
.reason-row {
  display: grid;
  grid-template-columns: minmax(80px, 0.7fr) 3fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: baseline;
  padding-block: clamp(2.2rem, 4vw, 3.4rem);
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s ease;
}
.reason-row:hover { padding-left: 0.6rem; }
.reason-no {
  font-family: var(--latin);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 500;
  color: var(--brass);
  line-height: 1;
}
.reason-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.2vw, 1.95rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
}
.reason-body p { color: var(--muted); max-width: 42em; font-size: clamp(0.94rem, 2vw, 1.02rem); }

/* ============================================================
   04 ご利用の流れ（暗背景）
   ============================================================ */
.flow { background: var(--ink); color: var(--paper); }
.section-head-light .section-title { color: var(--paper); }
.flow-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.flow-step {
  position: relative;
  padding: clamp(1.6rem, 2.6vw, 2.4rem) clamp(1.2rem, 2vw, 1.8rem);
  border-left: 1px solid var(--line-l);
}
.flow-step:first-child { border-left: none; }
.flow-no {
  font-family: var(--latin);
  font-size: 1rem; letter-spacing: 0.2em;
  color: var(--brass);
  display: inline-block;
  padding-bottom: 1.2rem;
  position: relative;
}
.flow-no::after {
  content: ""; position: absolute; left: 0; bottom: 0.4rem;
  width: 28px; height: 1px; background: var(--brass);
}
.flow-step h3 {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  margin-bottom: 0.8rem;
}
.flow-step p { color: var(--muted-l); font-size: 0.92rem; line-height: 1.95; }

/* ============================================================
   05 在庫を見る
   ============================================================ */
.stock-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.stock-card {
  display: flex; flex-direction: column;
  padding: clamp(2rem, 3.6vw, 3rem);
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: background-color .4s ease, transform .4s ease, box-shadow .4s ease;
}
.stock-card:hover {
  background: var(--paper);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(23,20,15,0.5);
}
.stock-name {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.stock-desc { color: var(--muted); font-size: 0.96rem; margin-bottom: 2rem; flex: 1; }
.stock-link {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: 700; letter-spacing: 0.08em; color: var(--brass-deep);
}
.stock-link i { transition: transform .3s ease; font-style: normal; }
.stock-card:hover .stock-link i { transform: translateX(6px); }

/* ============================================================
   06 お客様の声（写真と引用）
   ============================================================ */
.voices { background: var(--paper-2); }
.voice-split { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.voice-figure { margin: 0; position: relative; overflow: hidden; }
.voice-figure img { width: 100%; height: clamp(360px, 48vw, 560px); object-fit: cover; }
.voice-figure::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(176,141,87,0.6); pointer-events: none; }
.voice-list { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
.voice {
  margin: 0;
  padding: clamp(1.8rem, 3.2vw, 2.6rem);
  background: var(--paper);
  border-top: 2px solid var(--brass);
}
.voice blockquote {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.95;
}
.voice figcaption {
  font-size: 0.82rem; letter-spacing: 0.1em; color: var(--muted);
  padding-top: 1rem; border-top: 1px solid var(--line);
}

/* ============================================================
   お問い合わせ（CTA）
   ============================================================ */
.contact {
  background: radial-gradient(120% 120% at 50% -10%, #241e15 0%, var(--ink) 55%, #100d09 100%);
  color: var(--paper);
  text-align: center;
}
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact .kicker { justify-content: center; }
.contact-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
}
.contact-lead { color: var(--muted-l); margin-bottom: 3rem; font-size: 1.05rem; }
.contact-tel { display: inline-flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.8rem; }
.contact-tel-label { font-size: 0.78rem; letter-spacing: 0.3em; color: var(--brass); }
.contact-tel-num {
  font-family: var(--latin); font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  letter-spacing: 0.04em; line-height: 1.1;
}
.contact-hours { color: var(--muted-l); font-size: 0.9rem; margin-bottom: 2.6rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact-actions .btn-solid { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.contact-actions .btn-solid:hover { background: var(--paper); border-color: var(--paper); }

/* ============================================================
   フッター（ロゴの枠は無し）
   ============================================================ */
.site-footer { background: #0f0c08; color: var(--muted-l); padding-block: clamp(48px, 7vw, 80px) 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; padding-bottom: 2.8rem; border-bottom: 1px solid var(--line-l); }
.footer-brand { display: flex; align-items: baseline; gap: 0.7rem; }
.brand-mark { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--brass); line-height: 1; }
.footer-brand strong { font-family: var(--serif); color: var(--paper); font-size: 1.1rem; letter-spacing: 0.08em; display: block; }
.footer-brand p { font-size: 0.84rem; margin-top: 0.3rem; }
.footer-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.6rem; margin: 0; font-size: 0.86rem; }
.footer-meta dt { color: var(--brass); letter-spacing: 0.08em; }
.footer-meta dd { margin: 0; color: var(--muted-l); }
.copyright { text-align: center; font-family: var(--latin); font-size: 0.78rem; letter-spacing: 0.18em; padding-top: 2rem; color: rgba(185,177,161,0.6); }

/* ============================================================
   スクロール演出（JS有効時のみ。無効でも全表示）
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* スタッガー（同じグループ内で時間差をつけて連続表示） */
.js .worry-item.reveal:nth-child(2) { transition-delay: .10s; }
.js .worry-item.reveal:nth-child(3) { transition-delay: .20s; }
.js .worry-item.reveal:nth-child(4) { transition-delay: .30s; }
.js .reason-row.reveal:nth-child(2) { transition-delay: .08s; }
.js .reason-row.reveal:nth-child(3) { transition-delay: .16s; }
.js .reason-row.reveal:nth-child(4) { transition-delay: .24s; }
.js .flow-step.reveal:nth-child(2) { transition-delay: .12s; }
.js .flow-step.reveal:nth-child(3) { transition-delay: .24s; }
.js .flow-step.reveal:nth-child(4) { transition-delay: .36s; }
.js .stock-card.reveal:nth-child(2) { transition-delay: .14s; }
.js .voice.reveal:nth-child(2) { transition-delay: .14s; }

/* 見出し横の罫線が伸びる */
.js .reveal .kicker::before { width: 0; transition: width .85s cubic-bezier(.2,.7,.2,1) .25s; }
.js .reveal.in .kicker::before { width: 34px; }

/* 写真はゆっくりズームインしながら現れる（枠内でクリップ） */
.js .concept-figure img, .js .voice-figure img { transform: scale(1.14); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.js .concept-figure.in img, .js .voice-figure.in img { transform: scale(1); }

/* ===== 読み込み時のヒーロー演出（視差軽減OFFのときのみ） ===== */
@keyframes riseIn { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.16); } to { transform: scale(1.03); } }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-media   { animation: kenburns 20s cubic-bezier(.2,.6,.2,1) both; }
  .js .hero-title   { opacity: 0; animation: riseIn 1.1s cubic-bezier(.2,.7,.2,1) .15s both; }
  .js .hero-lead    { opacity: 0; animation: riseIn 1.1s cubic-bezier(.2,.7,.2,1) .35s both; }
  .js .hero-actions { opacity: 0; animation: riseIn 1.1s cubic-bezier(.2,.7,.2,1) .55s both; }
  .js .hero-marks   { opacity: 0; animation: riseIn 1.1s cubic-bezier(.2,.7,.2,1) .75s both; }
  .js .scroll-hint  { opacity: 0; animation: riseIn 1s ease 1.15s both; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .concept-figure img, .js .voice-figure img { transform: none; transition: none; }
  .js .reveal .kicker::before { width: 34px; transition: none; }
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 980px) {
  .concept-split { grid-template-columns: 1fr; gap: 2.4rem; }
  .voice-split { grid-template-columns: 1fr; gap: 2.4rem; }
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(3) { border-left: none; }
  .flow-step:nth-child(n+3) { border-top: 1px solid var(--line-l); }
}

@media (max-width: 720px) {
  body { line-height: 1.9; }
  .worry-grid { grid-template-columns: 1fr; }
  .reason-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .reason-no { font-size: 2.4rem; }
  .stock-cards { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-step { border-left: none; border-top: 1px solid var(--line-l); }
  .flow-step:first-child { border-top: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .scroll-hint { display: none; }
  .footer-inner { flex-direction: column; }
}

/* ============================================================
   見出しの改行最適化（プログレッシブエンハンスメント）
   土台 = 全ブラウザ安全 ／ text-wrap = 効けば改善・未対応は無害
   間（ま）は全角スペースではなく HTML 側の <wbr> で担保
   ============================================================ */

/* 1) 全見出し共通の土台：禁則とはみ出し対策（全ブラウザ対応） */
.hero-title,
.section-title,
.contact-title,
.band-copy,
.concept-lead,
.worries-bridge,
.reason-body h3 {
  line-break: strict;        /* 約物・小書き仮名・長音の禁則を厳格に */
  overflow-wrap: anywhere;   /* 長い英数字トークンだけ保険で折る */
  word-break: normal;        /* 日本語を不自然に途中で割らない */
}

/* 2) 短め見出し：各行の文字数を均す（未対応は通常折り返しに退化） */
.hero-title,
.section-title,
.contact-title,
.band-copy,
.reason-body h3 {
  text-wrap: balance;
}

/* 3) 長めリード：泣き別れ・孤立文字を抑える（balance と同一要素併用不可のため分離） */
.concept-lead,
.worries-bridge {
  text-wrap: pretty;
}

/* 4) 文節改行 auto-phrase は Chromium 限定。@supports で隔離して安全適用 */
@supports (word-break: auto-phrase) {
  .hero-title,
  .section-title,
  .contact-title,
  .band-copy,
  .concept-lead,
  .worries-bridge,
  .reason-body h3 {
    word-break: auto-phrase;
  }
}

/* 5) 手動 <br> の PC/SP 出し分け（.pc-only を追加。.sp-only は既存・720px） */
.pc-only { display: inline; }
@media (max-width: 720px) {
  .pc-only { display: none; }
}

/* ============================================================
   モバイル最適化（スマホ閲覧を主とした調整）
   ・画面下に固定の問い合わせバー（電話／無料相談）
   ・ヒーローの可読性を縦グラデで担保
   ・主要ボタンを全幅化してタップしやすく
   ・iPhone のホームバー（safe-area）を考慮
   ============================================================ */

/* 固定CTAバー：既定は非表示。モバイルでのみ表示する */
.mobile-cta { display: none; }
.mobile-cta a { text-decoration: none; }

@media (max-width: 720px) {
  /* 固定バーに最下部が隠れないよう余白を確保（env 非対応環境向けに保険行を先置き） */
  body { padding-bottom: 74px; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }

  .mobile-cta {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0.6rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    padding: 0.62rem 0.8rem;
    padding: 0.62rem 0.8rem calc(0.62rem + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 12, 8, 0.93);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-l);
  }
  .mcta-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5em;
    min-height: 50px;
    font-family: var(--sans); font-weight: 700;
    font-size: 0.98rem; letter-spacing: 0.06em; line-height: 1;
    border: 1px solid transparent;
    transition: background-color .3s ease, color .3s ease;
  }
  .mcta-tel  { background: var(--brass); color: var(--ink); border-color: var(--brass); }
  .mcta-tel:active  { background: var(--paper); }
  .mcta-sub  { color: var(--paper); border-color: rgba(245, 241, 232, 0.5); }
  .mcta-sub:active  { background: rgba(245, 241, 232, 0.12); }
  .mcta-ico  { font-size: 1.15em; line-height: 0; }

  /* JS有効時は初期非表示にし、ヒーローを過ぎてから現す（チラつき防止） */
  .js .mobile-cta {
    transform: translateY(115%);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
  }
  .js .mobile-cta.is-visible {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  /* ヒーロー：縦グラデで文字の可読性を担保（PC向けの横長グラデを上書き） */
  .hero::after {
    background:
      linear-gradient(180deg, rgba(13,10,7,0.52) 0%, rgba(13,10,7,0.64) 50%, rgba(13,10,7,0.86) 100%),
      radial-gradient(130% 60% at 50% 0%, rgba(176,141,87,0.16), transparent 60%);
  }
  .hero-lead { line-height: 1.95; }

  /* 問い合わせ：ボタンを全幅にして親指で押しやすく */
  .contact-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .contact-actions .btn { width: 100%; }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .js .mobile-cta { transition: none; }
}
