/* =========================================================
   Forval Automotive Aftermarket LP — Styles
   ========================================================= */

:root {
  --navy-900: #06122b;
  --navy-800: #0a1f4a;
  --navy-700: #0a3d8f;
  --navy-600: #1556c8;
  --blue-500: #2e7be9;
  --blue-300: #5fb3ff;
  --blue-100: #e7f1ff;
  --yellow:   #ffd23b;
  --yellow-soft: #fff3b0;
  --gray-50:  #f6f8fc;
  --gray-100: #eef2f8;
  --gray-200: #dde4ee;
  --gray-500: #6a7385;
  --gray-700: #3a4156;
  --gray-900: #0f1424;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(10, 30, 70, 0.08);
  --shadow-md: 0 12px 32px rgba(10, 30, 70, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 30, 70, 0.20);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sp { display: none; }
.nobr { white-space: nowrap; } /* 「東京証券取引所」等を語中改行させない（budouxの誤分割対策） */
@media (max-width: 720px) { .sp { display: inline; } }

/* ============ Header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(10, 30, 70, 0.06);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(255,255,255,0.95); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1; align-items: flex-start; }
/* ロゴはレギュレーション上、白背景の上で使用する（box-sizing:border-box前提で内容23px+上下padding） */
.brand-logo { height: 33px; width: auto; display: block; background: #fff; padding: 5px 8px; border-radius: 6px; }
.brand-sub { font-size: 11px; color: var(--gray-500); margin-top: 6px; letter-spacing: .04em; }
.gnav { display: flex; gap: 28px; }
.gnav a { font-size: 14px; font-weight: 500; color: var(--gray-700); position: relative; transition: color .2s; }
.gnav a:hover { color: var(--navy-700); }
.gnav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--navy-700); transition: width .3s var(--ease); }
.gnav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); color: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.header-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.hc-icon { display: inline-flex; align-items: center; }
.hc-text { display: flex; flex-direction: column; line-height: 1.1; }
.hc-tel { font-weight: 800; font-size: 16px; font-family: "Montserrat", sans-serif; }
.hc-time { font-size: 10px; opacity: .85; }

/* shared inline icon wrappers */
.btn-ic, .cl-ic { display: inline-flex; align-items: center; justify-content: center; }

/* ---- Hamburger toggle ---- */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  transition: background .2s var(--ease);
}
.nav-toggle:hover { background: rgba(10, 30, 70, 0.06); }
.nav-toggle-bar { display: block; width: 24px; height: 2px; margin: 0 auto; background: var(--navy-700); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--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); }

/* ---- Mobile nav drawer ---- */
.mobile-nav { position: fixed; inset: 0; z-index: 99; visibility: hidden; }
.mobile-nav.open { visibility: visible; }
.mobile-nav-backdrop {
  position: absolute; inset: 0; background: rgba(6, 18, 43, 0.5);
  opacity: 0; transition: opacity .3s var(--ease); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(78vw, 320px);
  background: var(--white);
  box-shadow: -20px 0 60px rgba(6, 18, 43, 0.25);
  padding: 96px 28px 32px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform .32s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-panel > a:not(.mobile-nav-tel) {
  font-size: 16px; font-weight: 700; color: var(--gray-900);
  padding: 16px 8px; border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-panel > a:not(.mobile-nav-tel):active { color: var(--navy-700); }
.mobile-nav-ext span { margin-left: 6px; color: var(--blue-500); font-size: 13px; }
.mobile-nav-cta { margin-top: 24px; width: 100%; }
.mobile-nav-tel {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 12px; padding: 12px;
  border: 2px solid var(--navy-700); border-radius: 16px;
  color: var(--navy-700);
}
.mobile-nav-tel .mnt-icon { display: inline-flex; }
.mnt-text { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.mnt-num { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 19px; }
.mnt-time { font-size: 11px; font-weight: 600; color: var(--gray-500); margin-top: 3px; }

@media (max-width: 980px) {
  .gnav { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  /* モバイルでも受付時間は表示し、「／ 相談無料」だけ省略 */
  .hc-free { display: none; }
  .header-cta { padding: 8px 12px; }
}
@media (max-width: 360px) {
  /* 極小幅では時間を省略し電話番号のみ */
  .hc-time { display: none; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--yellow) 0%, #ffb700 100%);
  color: var(--navy-900);
  box-shadow: 0 12px 28px rgba(255, 178, 0, 0.35), 0 2px 4px rgba(0,0,0,.08);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255, 178, 0, 0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(255,255,255,.1); color: var(--white); border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-lg { padding: 20px 36px; font-size: 17px; }
.btn-ic { font-size: 18px; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--blue-500) 100%);
  color: var(--white);
  padding: 140px 0 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .2; }
.hero-glow-1 { width: 480px; height: 480px; background: var(--blue-300); top: -120px; right: -80px; animation: floatA 16s ease-in-out infinite; }
.hero-glow-2 { width: 360px; height: 360px; background: var(--yellow); bottom: -100px; left: -80px; animation: floatB 18s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 40px); } }
@keyframes floatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -30px); } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  font-size: 12px; letter-spacing: .08em; font-weight: 500;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }

.hero-title {
  font-size: clamp(32px, 5vw, 56px); font-weight: 900;
  line-height: 1.3; letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.hero-title .line { display: block; opacity: 0; transform: translateY(20px); animation: lineIn .8s var(--ease) forwards; }
.hero-title .line:nth-child(1) { animation-delay: .05s; }
.hero-title .line:nth-child(2) { animation-delay: .15s; }
.hero-title .line:nth-child(3) { animation-delay: .25s; }
.hero-title .line:nth-child(4) { animation-delay: .35s; }
.hero-title .line:nth-child(5) { animation-delay: .45s; }
.hero-title em {
  font-style: normal;
  white-space: nowrap; /* 「信頼ネットワーク」等が単語の途中で改行されるのを防止 */
  color: var(--yellow); /* べた塗りでクリアに（グラデ＋シャドウのにじみを解消） */
}
.hero-title .cross { color: var(--yellow); font-size: 1.2em; line-height: 0.5; margin: 8px 0; }
@keyframes lineIn { to { opacity: 1; transform: translateY(0); } }

.hero-lead { font-size: 16px; line-height: 1.9; opacity: .92; margin: 0 0 28px; }
.hero-badges { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li span {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 210, 59, 0.18); border: 1.5px solid var(--yellow);
  color: var(--yellow); font-weight: 700; font-size: 13px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 12px; opacity: .7; margin: 0; }
.cta-assure { font-size: 13px; font-weight: 700; color: var(--yellow); margin: 0 0 8px; line-height: 1.7; }
.cta-assure::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); color: var(--navy-900); font-size: 12px; font-weight: 800; margin-right: 6px; vertical-align: -4px; }
.cta-assure span { white-space: nowrap; } /* 各フレーズは語中で改行しない */

.hero-visual { position: relative; height: 480px; }
/* 全面背景写真（シネマティック・ゆっくりズーム） */
.hero-photo-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 66% 42%;
  transform-origin: 62% 50%;
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.18); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  /* 左（コピー側）はしっかり暗くして可読性を確保、中央〜右は早めに抜いて写真をより見せる */
  background: linear-gradient(90deg,
    rgba(6,18,43,.92) 0%, rgba(6,18,43,.84) 24%, rgba(6,18,43,.42) 42%,
    rgba(6,18,43,.12) 56%, rgba(6,18,43,0) 70%);
}

.kpi {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  animation: kpiFloat 4s ease-in-out infinite;
}
/* 人物の顔（中央〜右の上部）に重ならないよう、上端と下側に配置 */
.kpi-1 { top: 0; right: 0; animation-delay: 0s; }
.kpi-2 { bottom: 0; left: -10px; animation-delay: -1.5s; }
.kpi-3 { bottom: 104px; right: 0; animation-delay: -3s; }
@keyframes kpiFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.kpi-num { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 36px; color: var(--yellow); line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.kpi-num.kpi-text { font-size: 26px; letter-spacing: .02em; }
.kpi-num small { font-size: 14px; opacity: .9; }
.kpi-label { font-size: 12px; margin-top: 6px; opacity: .9; }

.hero-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.4); border-radius: 12px; z-index: 2; }
.hero-scroll span { display: block; width: 4px; height: 8px; background: var(--white); border-radius: 2px; margin: 6px auto 0; animation: scrollDot 2s ease-in-out infinite; }
@keyframes scrollDot { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(14px); opacity: .3; } }

@media (max-width: 980px) {
  .hero { padding: 110px 0 80px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 360px; max-width: 480px; margin: 0 auto; }
  .hero-scroll { display: none; }
}
@media (max-width: 600px) {
  /* KPIは全幅で縦に積み、横並び（数字＋ラベル）で窮屈な改行を防ぐ */
  .hero-visual { position: static; height: auto; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
  .kpi { position: static; animation: none; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 18px; }
  .kpi-num { font-size: 22px; white-space: nowrap; flex-shrink: 0; justify-content: flex-start; }
  .kpi-num.kpi-text { font-size: 20px; }
  .kpi-num small { font-size: 12px; }
  .kpi-label { font-size: 13px; margin-top: 0; line-height: 1.45; }
}
/* スマホは全幅にコピーが乗るため、オーバーレイを均一に濃くして可読性を確保 */
@media (max-width: 720px) {
  .hero-overlay { background: linear-gradient(180deg, rgba(6,18,43,.92) 0%, rgba(6,18,43,.84) 55%, rgba(6,18,43,.9) 100%); }
  /* ヒーローのコピーを中央寄せ（バランス重視） */
  .hero-copy { text-align: center; }
  .hero-badges, .hero-ctas { justify-content: center; }
}

/* ============ Section common ============ */
.section { padding: 100px 0; position: relative; }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-eyebrow { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--blue-500); margin: 0 0 12px; }
.sec-head.light .sec-eyebrow { color: var(--yellow); }
.sec-title { font-size: clamp(28px, 4vw, 42px); font-weight: 900; line-height: 1.4; margin: 0 0 16px; letter-spacing: -0.01em; }
.sec-title em { font-style: normal; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sec-head.light .sec-title { color: var(--white); }
.sec-head.light .sec-title em { background: linear-gradient(135deg, var(--yellow), #ffe879); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sec-lead { font-size: 16px; color: var(--gray-500); margin: 0; }
.sec-note { font-size: 12px; color: var(--gray-500); margin: 24px 0 0; text-align: center; line-height: 1.7; }
.sec-head.light .sec-lead { color: rgba(255,255,255,.85); }

/* Reveal animation only applies when JS is active (.js on <html>).
   JS無効・JSエラー時は no-js のまま → 本文は常に表示される。 */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* ============ Focus visibility (keyboard) ============ */
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .header-cta:focus-visible, .chat-launcher:focus-visible,
.mobile-nav-tel:focus-visible, .tel-block:focus-visible { outline-color: var(--yellow); outline-offset: 3px; }
.service-tabs button:focus-visible, .choice-btn:focus-visible { outline-offset: -2px; }

/* ============ Problems ============ */
.problems { background: var(--gray-50); }
.problems-list { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: pn; }
.problems-list > li:nth-child(4) { grid-column: 1 / span 2; }
.problem-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; gap: 16px;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.problem-card.highlight { background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); color: var(--white); }
.problem-card.highlight .pc-num { color: var(--yellow); }
.problem-card.highlight strong { color: var(--yellow); }
.pc-num {
  font-family: "Montserrat", sans-serif; font-weight: 800;
  font-size: 36px; color: var(--blue-300); line-height: 1;
  flex-shrink: 0;
}
.pc-body { flex: 1; }
.pc-body h3 { font-size: 19px; font-weight: 800; margin: 0 0 10px; line-height: 1.45; }
.pc-body p { font-size: 15px; margin: 0; line-height: 1.85; }
.pc-ic { width: 56px; height: 56px; flex-shrink: 0; }
.pc-ic svg { width: 100%; height: 100%; }

.problems-cta {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--yellow);
}
.problems-cta p { margin: 0; font-size: 17px; font-weight: 700; }
.problems-cta strong { color: var(--navy-700); }

@media (max-width: 980px) {
  .problems-list { grid-template-columns: repeat(2, 1fr); }
  .problems-list > li:nth-child(4) { grid-column: auto; }
}
@media (max-width: 640px) {
  .problems-list { grid-template-columns: 1fr; }
  .problems-cta { flex-direction: column; text-align: center; padding: 24px; }
}

/* ============ Strength ============ */
.strength {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.strength::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(95,179,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,210,59,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.strength .container { position: relative; z-index: 1; }
.strength-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.strength-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.strength-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.1); border-color: var(--yellow); }
.sc-num { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 14px; color: var(--yellow); letter-spacing: .15em; margin-bottom: 16px; }
.strength-card h3 { font-size: 19px; font-weight: 800; line-height: 1.45; margin: 0 0 14px; }
.strength-card p { font-size: 15px; line-height: 1.85; opacity: .92; margin: 0; }
.strength-card strong { color: var(--yellow); }

@media (max-width: 980px) { .strength-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .strength-grid { grid-template-columns: 1fr; } }

/* ============ Partners (logo marquee) ============ */
.partners { background: var(--gray-50); overflow: hidden; }
.partners .sec-head { margin-bottom: 40px; }
.marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-row { display: flex; align-items: center; flex-wrap: nowrap; margin: 0; padding: 0; list-style: none; }
.marquee-track { display: flex; width: max-content; }
.js .marquee-track { animation: marqueeScroll 40s linear infinite; will-change: transform; }
.js .marquee-track.is-reverse { animation-direction: reverse; } /* 2段目を逆方向に */
.marquee-track + .marquee-track { margin-top: 12px; } /* 2段スクロール時の段間 */
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner-logo {
  flex: 0 0 auto; height: 80px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 20px; padding: 0 32px;
  background: #fff; border: 1px solid var(--gray-100);
  border-radius: 14px; box-shadow: var(--shadow-sm);
}
.partner-logo img { height: 40px; width: auto; display: block; }
/* JS無効時・動き抑制時のフォールバック：自動スクロールせず中央寄せ／横スクロールで閲覧 */
.no-js .marquee, .marquee.is-static { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.no-js .marquee-row, .marquee.is-static .marquee-row { justify-content: center; flex-wrap: wrap; gap: 16px 0; padding: 0 24px; }
@media (prefers-reduced-motion: reduce) { .js .marquee-track { animation: none; } }
@media (max-width: 600px) {
  .partner-logo { height: 64px; padding: 0 22px; margin-right: 14px; }
  .partner-logo img { height: 32px; }
}

/* ============ Services ============ */
.services { background: var(--white); }
.service-tabs {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 32px;
  background: var(--gray-100); padding: 6px; border-radius: 999px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.service-tabs button {
  flex: 1; padding: 14px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--gray-500);
  transition: all .25s var(--ease);
}
.service-tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500));
  color: var(--white);
  box-shadow: 0 6px 16px rgba(10, 61, 143, 0.3);
}
.service-panels { position: relative; }
.service-panel {
  display: none;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 56px;
  border: 1px solid var(--gray-100);
}
.service-panel.active { display: block; animation: panelIn .4s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.sp-head { margin-bottom: 32px; }
.sp-tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--navy-700); color: var(--yellow); font-weight: 700; font-size: 13px;
  letter-spacing: .04em; margin-bottom: 16px;
}
.service-panel h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.4; margin: 0 0 16px; }
.service-panel p { font-size: 16px; line-height: 1.9; color: var(--gray-700); margin: 0; }
.service-panel strong { color: var(--navy-700); background: linear-gradient(transparent 60%, var(--yellow-soft) 60%); padding: 0 2px; }
.sp-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sp-features li {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); padding: 16px 20px; border-radius: 12px;
  font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.sp-features li::before {
  content: "✓"; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow); color: var(--navy-900); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}

@media (max-width: 720px) {
  .service-panel { padding: 32px 24px; }
  .sp-features { grid-template-columns: 1fr; }
  .service-tabs button { padding: 12px 12px; font-size: 13px; }
}

/* ============ Cases ============ */
.cases {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--white);
}
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: var(--white);
  color: var(--gray-900);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease);
}
.case-card:hover { transform: translateY(-6px); }
.cc-tag {
  display: inline-block; align-self: flex-start;
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500));
  color: var(--white); font-weight: 700; font-size: 12px;
  margin-bottom: 16px;
}
.case-card h3 { font-size: 20px; font-weight: 800; line-height: 1.5; margin: 0 0 16px; }
.cc-body { font-size: 15px; line-height: 1.9; color: var(--gray-700); margin: 0 0 20px; }
.cc-body strong { color: var(--navy-700); background: linear-gradient(transparent 60%, var(--yellow-soft) 60%); padding: 0 2px; }
.cc-voice {
  margin: 0; padding: 20px;
  background: var(--gray-50);
  border-left: 3px solid var(--yellow);
  border-radius: 8px;
}
.cc-voice p { font-size: 14px; line-height: 1.85; margin: 0 0 10px; color: var(--gray-700); }
.cc-voice cite { font-size: 13px; color: var(--gray-500); font-style: normal; font-weight: 600; }

@media (max-width: 980px) { .case-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ============ Leader ============ */
.leader { background: var(--gray-50); }
.leader-inner { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.leader-photo { display: flex; justify-content: center; }
.lp-circle { width: 240px; height: 240px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--white); margin: 0; background: var(--gray-100); }
.lp-img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.lp-fallback { display: none; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--blue-300) 0%, var(--navy-700) 100%); color: var(--white); }
.lp-fallback:not([hidden]) { display: flex; }
.lp-initial { font-size: 44px; font-weight: 900; letter-spacing: .04em; }
.lp-fallback-note { font-family: "Montserrat", sans-serif; font-size: 11px; letter-spacing: .25em; opacity: .75; }
.leader-eyebrow { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--blue-500); margin: 0 0 12px; }
.leader-msg h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 900; line-height: 1.5; margin: 0 0 20px; }
.leader-msg > p { font-size: 16px; line-height: 1.9; color: var(--gray-700); margin: 0 0 24px; }
.leader-sign { font-size: 14px; line-height: 1.6; color: var(--gray-500); margin: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.leader-sign strong { font-size: 22px; color: var(--gray-900); margin-top: 4px; letter-spacing: .04em; }

@media (max-width: 720px) {
  .leader-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .leader-sign { align-items: center; }
}

/* ============ Contact ============ */
.contact {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  position: relative; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,210,59,0.08) 0%, transparent 60%);
}
.contact-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), transparent);
  opacity: .15; pointer-events: none;
}
.cc-eyebrow { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--blue-500); margin: 0 0 12px; }
.cc-left h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 900; line-height: 1.4; margin: 0 0 16px; }
.cc-left h2 em { font-style: normal; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cc-lead { font-size: 15px; color: var(--gray-700); line-height: 1.9; margin: 0 0 24px; }
.cc-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cc-points li { padding: 6px 14px; background: var(--blue-100); color: var(--navy-700); border-radius: 999px; font-size: 13px; font-weight: 700; }
.cc-right { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.or { text-align: center; color: var(--gray-500); font-size: 13px; margin: 4px 0; position: relative; }
.or::before, .or::after { content: ""; position: absolute; top: 50%; width: 30%; height: 1px; background: var(--gray-200); }
.or::before { left: 0; }
.or::after { right: 0; }
.tel-block {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px; border: 2px solid var(--navy-700); border-radius: var(--radius);
  text-align: center; transition: background .2s;
}
.tel-block:hover { background: var(--blue-100); }
.tb-label { font-size: 12px; color: var(--gray-500); font-weight: 600; }
.tb-num { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 32px; color: var(--navy-700); letter-spacing: .02em; }
.tb-time { font-size: 11px; color: var(--gray-500); margin-top: 4px; }

@media (max-width: 720px) {
  .contact-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
}

/* ============ Mid CTA band ============ */
.cta-band { background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); color: #fff; padding: 48px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band-copy h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 900; line-height: 1.45; margin: 0 0 8px; }
.cta-band-copy p { margin: 0; font-size: 14px; opacity: .92; line-height: 1.8; }
.cta-band-action { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.cta-band-tel { display: inline-flex; align-items: center; gap: 6px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; color: #fff; opacity: .95; }
.cta-band-tel span { display: inline-flex; }
.cta-band-tel:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 720px) {
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-action { width: 100%; }
  .cta-band-action .btn { width: 100%; }
}

/* ============ Flow (ご相談の流れ) ============ */
.flow { background: var(--white); }
.flow-steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flow-step {
  position: relative; background: var(--gray-50);
  border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 32px 24px 28px; text-align: center;
}
/* ステップ間の矢印（PC） */
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -16px; z-index: 1;
  width: 12px; height: 12px;
  border-top: 3px solid var(--blue-300); border-right: 3px solid var(--blue-300);
  transform: translateY(-50%) rotate(45deg);
}
.fs-num {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 22px;
  color: var(--white); border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500));
  box-shadow: 0 8px 18px rgba(10, 61, 143, 0.25);
}
.flow-step h3 { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.flow-step p { font-size: 15px; line-height: 1.85; color: var(--gray-700); margin: 0; text-align: left; }
.flow-step strong { color: var(--navy-700); }
.flow-cta { text-align: center; }
.flow-cta-note { margin: 14px 0 0; font-size: 14px; color: var(--gray-500); }
.flow-cta-note a { font-weight: 800; color: var(--navy-700); font-family: "Montserrat", sans-serif; }
@media (max-width: 900px) { .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .flow-steps { grid-template-columns: 1fr; }
  .flow-step::after { display: none !important; } }

/* ============ FAQ ============ */
.faq { background: var(--gray-50); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--gray-100); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-size: 17px; font-weight: 700; color: var(--gray-900); position: relative; transition: background .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 12px; border-radius: 50%; background: var(--navy-700); color: var(--yellow); font-family: "Montserrat", sans-serif; font-size: 13px; font-weight: 800; vertical-align: middle; }
.faq-item summary:hover { background: var(--gray-50); }
.faq-item summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--gray-500); border-bottom: 2px solid var(--gray-500); transform: translateY(-65%) rotate(45deg); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-35%) rotate(225deg); }
.faq-a { padding: 0 24px 20px 60px; }
.faq-a p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--gray-700); }
.faq-a strong { color: var(--navy-700); background: linear-gradient(transparent 60%, var(--yellow-soft) 60%); padding: 0 2px; }
@media (max-width: 600px) { .faq-item summary { padding: 16px 46px 16px 18px; font-size: 15px; } .faq-a { padding: 0 18px 16px 18px; } }

/* ============ Mobile sticky CTA bar ============ */
.mobile-cta-bar { display: none; }
@media (max-width: 720px) {
  .mobile-cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 -6px 20px rgba(6,18,43,.12);
  }
  .mcb-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 8px; border-radius: 12px; font-size: 14px; font-weight: 800; }
  .mcb-tel { background: var(--white); color: var(--navy-700); border: 1.5px solid var(--navy-700); }
  .mcb-chat { background: linear-gradient(135deg, var(--yellow), #ffb700); color: var(--navy-900); }
  .chat-launcher { display: none; } /* 追従バーと重複するため非表示 */
  body { padding-bottom: 72px; } /* 追従バー分の余白 */
}

/* ============ Footer ============ */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 48px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
/* ロゴはレギュレーション上、白背景の上で使用する */
.f-logo { margin: 0; display: inline-block; background: #fff; padding: 9px 14px; border-radius: 8px; line-height: 0; }
.f-logo a { display: block; line-height: 0; }
.f-logo img { height: 31px; width: auto; display: block; }
.f-name { font-size: 14px; margin: 12px 0 0; color: #fff; font-weight: 700; }
.f-tag { font-size: 12px; opacity: .7; margin: 2px 0 0; }
.f-tel { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 22px; color: #fff; }
.f-tel svg { color: var(--yellow); }
.f-tel-time { font-size: 11px; opacity: .7; margin: 4px 0 0; }
.f-info { margin: 0; display: grid; gap: 12px; max-width: 520px; }
.f-info > div { display: flex; gap: 14px; font-size: 13px; line-height: 1.6; }
.f-info dt { flex: 0 0 88px; color: rgba(255,255,255,.55); font-weight: 600; }
.f-info dd { margin: 0; color: rgba(255,255,255,.88); }
.f-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.f-copy { font-size: 11px; margin: 0; letter-spacing: .04em; }
@media (max-width: 720px) { .footer-inner { gap: 28px; } .f-info { max-width: none; width: 100%; } }

/* ============ Chat Launcher ============ */
.chat-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow) 0%, #ffb700 100%);
  color: var(--navy-900); font-weight: 800; font-size: 15px;
  box-shadow: 0 16px 36px rgba(255, 178, 0, 0.45), 0 4px 8px rgba(0,0,0,.12);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.chat-launcher:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 20px 40px rgba(255, 178, 0, 0.55); }
.cl-pulse {
  position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid var(--yellow); opacity: 0;
  animation: clPulse 2s ease-out infinite;
}
@keyframes clPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }
.cl-ic { font-size: 20px; }
.chat-launcher.hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }

/* ============ Chat Window ============ */
.chat-window {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  width: 380px; max-width: calc(100vw - 32px);
  height: 600px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(0.95); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.chat-window.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cw-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--blue-500) 100%);
  color: var(--white);
}
.cw-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: #fff url("assets/forval-mark.png") center / 68% no-repeat;
}
.cw-title { flex: 1; min-width: 0; }
.cw-name { font-size: 13px; font-weight: 700; margin: 0; line-height: 1.3; }
.cw-status { font-size: 11px; opacity: .9; margin: 4px 0 0; display: flex; align-items: center; gap: 6px; }
.cw-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.cw-close { color: var(--white); font-size: 24px; opacity: .8; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.cw-close:hover { background: rgba(255,255,255,.15); opacity: 1; }

.cw-body {
  flex: 1; overflow-y: auto;
  padding: 20px;
  background: var(--gray-50);
  scroll-behavior: smooth;
}
.cw-body::-webkit-scrollbar { width: 6px; }
.cw-body::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }

.msg { display: flex; gap: 10px; margin-bottom: 14px; opacity: 0; transform: translateY(8px); animation: msgIn .35s var(--ease) forwards; }
@keyframes msgIn { to { opacity: 1; transform: translateY(0); } }
.msg-bot .msg-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: #fff url("assets/forval-mark.png") center / 70% no-repeat; border: 1px solid var(--gray-100); }
.msg-bot .msg-bubble {
  background: var(--white); color: var(--gray-900);
  padding: 12px 16px; border-radius: 4px 16px 16px 16px;
  font-size: 14px; line-height: 1.6; max-width: 80%;
  box-shadow: var(--shadow-sm);
}
.msg-user { justify-content: flex-end; }
.msg-user .msg-bubble {
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500));
  color: var(--white);
  padding: 12px 16px; border-radius: 16px 4px 16px 16px;
  font-size: 14px; line-height: 1.6; max-width: 80%;
}

.typing { display: flex; gap: 4px; padding: 14px 16px; background: var(--white); border-radius: 4px 16px 16px 16px; width: fit-content; box-shadow: var(--shadow-sm); }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200); animation: typing 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,80%,100% { transform: scale(.7); background: var(--gray-200); } 40% { transform: scale(1); background: var(--blue-500); } }

.cw-input-area {
  border-top: 1px solid var(--gray-100);
  padding: 14px;
  background: var(--white);
}
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice-btn {
  text-align: left; padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--gray-900);
  transition: all .2s var(--ease);
}
.choice-btn:hover { border-color: var(--navy-700); background: var(--blue-100); color: var(--navy-700); transform: translateX(2px); }

/* チャット：スキップ・進捗表示 */
.skip-btn { display: block; margin: 8px auto 0; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--gray-500); background: none; border-radius: 8px; }
.skip-btn:hover { color: var(--navy-700); background: var(--gray-100); }
.cw-progress { display: inline-block; margin-top: 6px; padding: 2px 10px; font-size: 11px; font-weight: 700; color: var(--navy-700); background: var(--blue-100); border-radius: 999px; }

.text-input-row { display: flex; gap: 8px; }
.text-input-row input, .text-input-row textarea {
  flex: 1; padding: 12px 14px;
  border: 1.5px solid var(--gray-200); border-radius: 12px;
  font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .2s;
}
.text-input-row input:focus, .text-input-row textarea:focus { border-color: var(--navy-700); }
.text-input-row textarea { resize: none; min-height: 60px; line-height: 1.6; }
.send-btn {
  flex-shrink: 0; width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500));
  color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: transform .2s;
  align-self: flex-end;
}
.send-btn:hover:not(:disabled) { transform: scale(1.06); }
.send-btn:disabled { opacity: .4; cursor: not-allowed; }

.cw-foot { padding: 8px 16px 12px; font-size: 10px; color: var(--gray-500); text-align: center; background: var(--white); border-top: 1px solid var(--gray-100); margin: 0; }

@media (max-width: 480px) {
  .chat-window { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: none; border-radius: 16px; }
  /* チャット展開中は背面ページのスクロールを固定（全画面チャットのちらつき防止） */
  body.chat-open { overflow: hidden; }
  .chat-launcher { right: 16px; bottom: 16px; padding: 14px 18px; font-size: 14px; }
}

/* ============ 動き抑制（perf / アクセシビリティ） ============ */
@media (prefers-reduced-motion: reduce) {
  .hero-glow, .hero-photo-bg img, .kpi, .cl-pulse, .hero-scroll span { animation: none !important; }
  .hero-title .line { opacity: 1; transform: none; animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ 日本語の折り返し品質・余白の最適化（PC/SP） ============ */
/* 見出し：行を均等化し、対応ブラウザでは自然なフレーズ位置で改行（不自然な中途改行を防止） */
.hero-title, .sec-title, .leader-msg h2, .cc-left h2, .cta-band-copy h2,
.problem-card h3, .strength-card h3, .case-card h3, .flow-step h3,
.faq-item summary, .sp-head h3, .leader-msg h2 {
  text-wrap: balance;
  word-break: auto-phrase;
}
/* 本文：行末の孤立を防ぎ（pretty）、フレーズ単位で折り返し */
.hero-lead, .sec-lead, .pc-body p, .strength-card p, .cc-body, .cc-voice p,
.service-panel p, .flow-step p, .faq-a p, .leader-msg > p, .sp-features li,
.kpi-label, .hero-eyebrow, .problems-cta p, .cta-band-copy p, .cc-lead, .f-info dd {
  text-wrap: pretty;
  word-break: auto-phrase;
}
/* 長い本文の1行が長くなりすぎないように（可読性） */
.leader-msg > p { max-width: 46em; }

/* モバイルの縦リズムを詰めてスクロール量を軽減 */
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 36px; }
}
