/* =========================================================
   ロードサービス受付センター — Redesign
   Trust Blue base × Emergency Red CTA
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Trust blue */
  --blue:        #1565C0;
  --blue-dark:   #0D47A1;
  --blue-deep:   #0A337A;
  --blue-mid:    #1E88E5;
  --blue-soft:   #E8F1FC;
  --blue-tint:   #F3F8FE;

  /* Emergency red (CTA / phone) */
  --red:         #E53935;
  --red-dark:    #C62828;
  --red-deep:    #B71C1C;
  --red-soft:    #FFEBEE;

  /* Support */
  --green:       #2E9E5B;
  --green-soft:  #E4F6EC;
  --yellow:      #FBC02D;
  --cyan:        #26A9C4;

  /* Neutrals */
  --text:        #0F1B2D;
  --text-soft:   #475569;
  --text-muted:  #6B7B8F;
  --border:      #E3E9F0;
  --border-soft: #EEF2F7;
  --bg:          #FFFFFF;
  --bg-soft:     #F4F8FC;
  --bg-tint:     #F8FAFD;

  --shadow-sm:  0 1px 2px rgba(15, 27, 45, 0.06);
  --shadow-md:  0 8px 20px rgba(15, 27, 45, 0.08);
  --shadow-lg:  0 18px 44px rgba(15, 27, 45, 0.12);
  --shadow-red: 0 12px 26px rgba(229, 57, 53, 0.34);

  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 999px;

  --font-base:    "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Meiryo", "メイリオ", sans-serif;
  --font-display: "M PLUS Rounded 1c", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;

  --container-max: 1120px;
  --container-padding: 1.5rem;
  --header-height: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.32; font-weight: 800; }
h1, h2 { font-family: var(--font-display); letter-spacing: 0.005em; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
table { border-collapse: collapse; width: 100%; }
/* インラインSVGアイコンの既定スタイル。
   <use> はシンボルのみを複製し親要素は複製しないため、
   継承プロパティ（fill/stroke）をアイコン svg 側に置く。
   塗り系アイコン（#i-logo 等）は symbol 側の presentation 属性で上書き。 */
svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Emergency red CTA */
.btn-call {
  background: linear-gradient(135deg, #FB5751, var(--red-dark));
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(229, 57, 53, 0.42);
}

/* Trust blue button (search / find) */
.btn-find {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
  color: #fff;
  box-shadow: 0 12px 26px rgba(21, 101, 192, 0.30);
}
.btn-find:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(21, 101, 192, 0.4);
}

.btn-light {
  background: #fff;
  color: var(--red-dark);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}
.btn-light:hover { background: var(--red-soft); transform: translateY(-2px); }
/* find系（青帯）では文字色を青に寄せる */
.cta-find .btn-light { color: var(--blue-dark); }
.cta-find .btn-light:hover { background: var(--blue-soft); }

.btn-ghost {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.24); }

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.92rem; }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.12rem; }
.btn-sub {
  font-size: 0.68rem;
  background: rgba(255,255,255,0.25);
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow 0.18s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(15, 27, 45, 0.08); }
.nav-container { display: flex; align-items: center; gap: 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand-mark { display: inline-flex; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-org { font-size: 0.62rem; font-weight: 800; color: var(--blue); letter-spacing: 0.01em; white-space: nowrap; }
.brand-name { font-size: 1.06rem; font-weight: 900; color: var(--text); white-space: nowrap; }
.header-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
}
.header-trust .ck { color: var(--green); display: inline-flex; }

.primary-nav { margin-left: auto; margin-right: 0.75rem; }
.primary-menu { display: flex; gap: 1.3rem; }
.primary-menu a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-soft);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.primary-menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-menu a:hover { color: var(--blue); }
.primary-menu a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 0.5rem;
  border-radius: 8px;
}
.nav-toggle-bar {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) 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(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, rgba(30, 136, 229, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(229, 57, 53, 0.06), transparent 60%),
    var(--bg-soft);
  overflow: hidden;
  padding: 3.2rem 0 4rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(21, 101, 192, 0.10) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.8rem;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--red-soft);
  color: var(--red-dark);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(229,57,53,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229,57,53,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(229,57,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,57,53,0); }
}
.hero-title {
  font-size: clamp(2rem, 3.4vw + 1rem, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.hero-title .accent {
  position: relative;
  display: inline-block;
  color: var(--blue);
}
.hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4%;
  height: 16%;
  background: rgba(251, 192, 45, 0.5);
  z-index: -1;
  border-radius: 4px;
}
.hero-lead {
  font-size: 1.04rem;
  color: var(--text-soft);
  margin: 0 0 1.5rem;
}
.trust-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.7rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.pill .pi { display: inline-flex; color: var(--blue); }
.pill-green .pi { color: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; }
.hero-secondary { font-weight: 700; color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; font-size: 0.92rem; }
.hero-secondary:hover { color: var(--blue); }
.hero-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.9rem; }

.hero-visual { position: relative; }
.hero-slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--blue-soft);
  position: relative;
}
.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}
.hero-slide {
  min-width: 100%;
  height: 100%;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.hero-slider-dot.is-active { background: #fff; }
.hero-badge {
  position: absolute;
  left: -1.1rem; bottom: -1.1rem;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-badge .hb-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.hero-badge .hb-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--red-dark); line-height: 1; }
.hero-badge .hb-num small { font-size: 0.85rem; }
.hero-badge .hb-text { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }

/* ---------- Section base ---------- */
.section { padding: 4.2rem 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-tag {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}
.section-title {
  font-size: clamp(1.55rem, 2.2vw + 0.8rem, 2.1rem);
  font-weight: 900;
  color: var(--text);
}
.section-title em { color: var(--blue); font-style: normal; }
.section-sub { color: var(--text-soft); font-size: 0.98rem; margin-top: 0.6rem; }

/* ---------- Trouble grid ---------- */
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.trouble-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.7rem 1.4rem;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.trouble-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-soft);
  box-shadow: var(--shadow-md);
}
.trouble-ico {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.trouble-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 0.4rem; }
.trouble-card p { font-size: 0.88rem; color: var(--text-soft); margin: 0; }

/* ---------- Pricing ---------- */
.pricing {
  position: relative;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-deep));
  color: #fff;
  overflow: hidden;
}
.pricing::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 90% 10%, rgba(255,255,255,0.10), transparent 60%);
  pointer-events: none;
}
.pricing .section-head { position: relative; }
.pricing .section-tag { background: rgba(255,255,255,0.16); color: #fff; }
.pricing .section-title { color: #fff; }
.pricing .section-title em { color: var(--yellow); }
.pricing .section-sub { color: rgba(255,255,255,0.85); }
.price-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto;
}
.price-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.1rem;
  text-align: center;
  backdrop-filter: blur(2px);
}
.price-card .pc-icon { color: rgba(255,255,255,0.9); margin-bottom: 0.5rem; display: flex; justify-content: center; }
.price-card .type { font-size: 0.85rem; font-weight: 700; opacity: 0.9; margin-bottom: 0.35rem; }
.price-card .amount { font-family: var(--font-display); font-size: 1.55rem; font-weight: 900; color: var(--yellow); line-height: 1; }
.price-card .amount small { font-size: 0.8rem; color: #fff; font-weight: 600; }
.price-note { position: relative; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.78); margin-top: 1.5rem; }

/* ---------- Flow ---------- */
.flow {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.flow-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  position: relative;
  padding-bottom: 1.7rem;
}
.flow-item:last-child { padding-bottom: 0; }
.flow-item::before {
  content: "";
  position: absolute;
  left: 27px; top: 56px; bottom: -4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-soft), var(--border-soft));
}
.flow-item:last-child::before { display: none; }
.flow-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 900;
  box-shadow: 0 8px 18px rgba(21,101,192,0.28);
  position: relative; z-index: 1;
}
.flow-body {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.flow-body h3 { font-size: 1.05rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 0.2rem; }
.flow-body p { font-size: 0.9rem; color: var(--text-soft); margin: 0; }
.flow-body .tel-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.55rem;
  background: var(--red-soft); color: var(--red-dark);
  font-size: 0.78rem; font-weight: 800;
  padding: 0.25rem 0.7rem; border-radius: var(--radius-pill);
}
.flow-notice {
  display: flex; gap: 0.8rem; align-items: flex-start;
  max-width: 720px; margin: 0 auto 1.8rem;
  background: var(--red-soft);
  border: 1.5px solid #F3C2C0;
  border-left: 4px solid var(--red);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
}
.flow-notice .fn-icon { color: var(--red); flex-shrink: 0; margin-top: 0.1rem; }
.fn-list { margin: 0; padding-left: 1.15rem; list-style: disc; }
.fn-list li { font-size: 0.9rem; color: var(--text); line-height: 1.65; }
.fn-list li::marker { color: var(--red); }
.fn-list li + li { margin-top: 0.3rem; }
.flow-notice strong { color: var(--red-dark); }

/* ---------- Trust stats / reasons ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 2.4rem;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.6rem 1.2rem;
  text-align: center;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stat-card .st-icon {
  width: 48px; height: 48px; margin: 0 auto 0.7rem;
  border-radius: 14px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.stat-card .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 900; color: var(--blue); line-height: 1.1; }
.stat-card .num small { font-size: 1rem; }
.stat-card p { font-size: 0.85rem; color: var(--text-soft); margin: 0.3rem 0 0; }

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.reason-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--blue);
}
.reason-card .rc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
}
.reason-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 0.4rem; }
.reason-card p { font-size: 0.9rem; color: var(--text-soft); margin: 0; }

/* ---------- Prefecture finder ---------- */
.region-block { margin-bottom: 2rem; }
.region-block:last-child { margin-bottom: 0; }
.region-head {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-soft);
}
.region-head .rh-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--blue); color: #fff;
}
.pref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.65rem;
}
.pref-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.3rem;
  background: #fff;
  color: var(--blue-dark);
  font-size: 0.92rem; font-weight: 700;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.pref-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-1px);
}

/* ---------- CTA bands ---------- */
.cta-band {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 3.6rem 0;
  overflow: hidden;
}
.cta-find { background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep)); }
.cta-call { background: linear-gradient(135deg, var(--red), var(--red-deep)); }
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 85% 0%, rgba(255,255,255,0.14), transparent 60%);
  pointer-events: none;
}
.cta-band .cta-inner { position: relative; }
.cta-band h2 { font-size: clamp(1.45rem, 2.2vw + 0.7rem, 2rem); font-weight: 900; margin-bottom: 0.6rem; }
.cta-band p { font-size: 0.98rem; opacity: 0.92; margin: 0 auto 1.5rem; max-width: 540px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.7);
  padding: 2.6rem 0 1.6rem;
}
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.4rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand { display: flex; align-items: center; gap: 0.55rem; color: #fff; font-weight: 900; font-size: 1.05rem; }
.footer-note { font-size: 0.82rem; max-width: 460px; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.78); }
.footer-links a:hover { color: #fff; }
.footer-copy { text-align: center; font-size: 0.78rem; padding-top: 1.4rem; color: rgba(255,255,255,0.55); }

/* =========================================================
   Page header / breadcrumb (prefecture + detail)
   ========================================================= */
.page-header {
  position: relative;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color: #fff;
  padding: 3rem 0 2.6rem;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.12) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.6;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}
.page-header .ph-inner { position: relative; }
.page-header .ph-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.16);
  padding: 0.3rem 0.85rem; border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 800; margin-bottom: 0.8rem;
}
.page-header h1 { font-size: clamp(1.5rem, 2.4vw + 0.8rem, 2.1rem); font-weight: 900; }
.page-header p { opacity: 0.9; font-size: 0.95rem; margin-top: 0.5rem; }

.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

/* ---------- Operator list (prefecture.html) ---------- */
.list-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem; margin-bottom: 1.6rem;
}
.list-count { font-size: 0.92rem; color: var(--text-soft); font-weight: 600; }
.list-count b { color: var(--blue-dark); font-size: 1.1rem; font-family: var(--font-display); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.8rem; font-weight: 700;
  padding: 0.35rem 0.8rem; border-radius: var(--radius-pill);
  background: #fff; border: 1.5px solid var(--border); color: var(--text-soft);
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.operator-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.operator-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.op-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.area-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: 0.74rem; font-weight: 800;
  padding: 0.22rem 0.7rem; border-radius: var(--radius-pill);
}
.hours-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--green-soft); color: #1F7A45;
  font-size: 0.74rem; font-weight: 800;
  padding: 0.22rem 0.7rem; border-radius: var(--radius-pill);
}
.operator-card h3 { font-size: 1.12rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 0.4rem; }
.operator-card .op-desc { font-size: 0.88rem; color: var(--text-soft); margin: 0 0 0.85rem; }
.op-services { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.1rem; }
.svc-chip {
  display: inline-flex; align-items: center; gap: 0.28rem;
  background: var(--bg-soft); color: var(--text-soft);
  font-size: 0.74rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
}
.svc-chip .sc-ico { color: var(--blue); display: inline-flex; }
.operator-card .op-action { margin-top: auto; }

/* ---------- Detail (detail.html) ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.8rem;
  align-items: start;
}
.detail-main {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.detail-block { margin-bottom: 1.8rem; }
.detail-block:last-child { margin-bottom: 0; }
.block-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.02rem; font-weight: 800; color: var(--blue-dark);
  margin-bottom: 0.9rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--blue);
}
.info-table th, .info-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.92rem;
  vertical-align: top;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th { background: var(--blue-tint); color: var(--blue-dark); font-weight: 700; width: 38%; }
.info-table .price-val { font-weight: 800; color: var(--blue-dark); }
.detail-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.8rem; line-height: 1.7; }
.svc-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.svc-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: 0.85rem; font-weight: 700;
  padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
}
.svc-tag .st-ico { display: inline-flex; color: var(--blue); }

/* Sticky call card (detail sidebar) */
.call-card {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  background: linear-gradient(135deg, #FB5751, var(--red-deep));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-red);
}
.call-card .cc-label { font-size: 0.85rem; font-weight: 700; opacity: 0.95; display: inline-flex; align-items: center; gap: 0.4rem; }
.call-card .cc-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0.5rem 0;
  color: #fff;
}
.call-card .cc-num:hover { text-decoration: underline; }
.call-card .cc-hours { font-size: 0.8rem; opacity: 0.9; }
.call-card .cc-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  background: #fff; color: var(--red-dark);
  font-weight: 900; font-size: 1.05rem;
  padding: 0.9rem; border-radius: var(--radius-pill);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  transition: transform 0.15s ease;
}
.call-card .cc-btn:hover { transform: translateY(-2px); }
.call-card .cc-free {
  margin-top: 0.85rem;
  font-size: 0.75rem; opacity: 0.92;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 0.7rem;
}

/* ---------- Geolocation finder ---------- */
.geo {
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(30,136,229,0.10), transparent 60%),
    var(--bg);
}
.geo-panel {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.9rem 1.7rem;
  max-width: 780px;
  margin: 0 auto;
}
.geo-prompt { text-align: center; }
.geo-prompt .geo-ico {
  width: 66px; height: 66px; margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.geo-prompt h3 { font-size: 1.22rem; font-weight: 900; color: var(--blue-dark); margin-bottom: 0.4rem; }
.geo-prompt p { font-size: 0.92rem; color: var(--text-soft); margin: 0 0 1.3rem; }
.geo-prompt .geo-permnote { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.9rem; }

/* state machine: prompt / loading / error / results */
.geo-loading, .geo-error, .geo-results-wrap { display: none; }
.geo-panel[data-state="loading"] .geo-prompt,
.geo-panel[data-state="error"] .geo-prompt,
.geo-panel[data-state="results"] .geo-prompt { display: none; }
.geo-panel[data-state="loading"] .geo-loading { display: block; }
.geo-panel[data-state="error"] .geo-error { display: block; }
.geo-panel[data-state="results"] .geo-results-wrap { display: block; }

.geo-loading, .geo-error { text-align: center; padding: 1rem; }
.spinner {
  width: 36px; height: 36px; margin: 0 auto 0.9rem;
  border: 3px solid var(--blue-soft);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.geo-loading p, .geo-error p { font-size: 0.98rem; font-weight: 700; color: var(--text); margin: 0 0 0.3rem; }
.geo-error .geo-error-ico {
  width: 52px; height: 52px; margin: 0 auto 0.8rem;
  border-radius: 50%; background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.geo-sub { font-size: 0.84rem; color: var(--text-muted); }
.geo-error-actions { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

.geo-results-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.6rem; margin-bottom: 1.1rem;
}
.geo-results-head .grh-title { font-weight: 800; color: var(--blue-dark); font-size: 0.98rem; }
.geo-results-head .grh-title b { font-family: var(--font-display); color: var(--blue); font-size: 1.2rem; }
/* プレーンな「再検索」リンク用。.btn と併用する「もう一度試す」ボタンには適用しない */
.geo-retry:not(.btn) { font-size: 0.85rem; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 0.35rem; }
.geo-retry:not(.btn):hover { text-decoration: underline; }
.geo-results { display: flex; flex-direction: column; gap: 0.9rem; }
.geo-disclaimer { font-size: 0.76rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }

/* compact operator row used in geo results */
.op-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.op-row:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.op-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-dark);
  font-weight: 900; font-size: 1rem; font-family: var(--font-display);
}
.op-row-main { min-width: 0; }
.op-row-name { font-size: 1rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 0.25rem; }
.op-row-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.dist-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--red); color: #fff;
  font-size: 0.8rem; font-weight: 800;
  padding: 0.2rem 0.65rem; border-radius: var(--radius-pill);
}
.op-row-svcs { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
.op-row-action .btn { white-space: nowrap; }

.geo-fallback { text-align: center; margin-top: 1.3rem; font-size: 0.86rem; color: var(--text-muted); }
.geo-fallback a { color: var(--blue); font-weight: 700; }
.geo-fallback a:hover { text-decoration: underline; }

/* compact variant (prefecture page) */
.geo-compact .geo-panel { padding: 1.4rem 1.3rem; }
.geo-compact .geo-prompt .geo-ico { width: 52px; height: 52px; margin-bottom: 0.7rem; }
.geo-compact .geo-prompt h3 { font-size: 1.08rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .trouble-grid { grid-template-columns: repeat(2, 1fr); }
  .price-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid aside { order: -1; }   /* スマホ：電話カードを本文より上に */
  .call-card { position: static; }
}

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-trust { display: none; }
  .primary-nav.is-open {
    display: block;
    position: absolute;
    top: var(--header-height); left: 0; right: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
  }
  .primary-nav.is-open .primary-menu { flex-direction: column; gap: 0; padding: 0 1.5rem; }
  .primary-nav.is-open .primary-menu li { border-bottom: 1px solid var(--border-soft); }
  .primary-nav.is-open .primary-menu li:last-child { border-bottom: none; }
  .primary-nav.is-open .primary-menu a { display: block; padding: 0.85rem 0; }
  .header-cta { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 3rem 0; }
  .trouble-grid { grid-template-columns: 1fr; }
  .price-cards { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-badge { left: 0.5rem; right: auto; }
  .flow-item { grid-template-columns: 46px 1fr; gap: 0.9rem; }
  .flow-num { width: 46px; height: 46px; font-size: 1.2rem; }
  .flow-item::before { left: 22px; top: 46px; }
  .footer-top { flex-direction: column; }
  .op-row { grid-template-columns: 36px 1fr; row-gap: 0.7rem; }
  .op-rank { width: 36px; height: 36px; }
  .op-row-action { grid-column: 1 / -1; }
  .op-row-action .btn { width: 100%; }
}

/* ---------- Static pages (privacy / terms) ---------- */
.static-page {
  padding: 3rem 0 4rem;
  background: var(--bg-soft);
}
.static-page-inner {
  max-width: 800px;
  margin: 0 auto;
}
.static-page-title {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  font-weight: 900;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--blue);
}
.static-page-body {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
  line-height: 1.9;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.static-page-body h2 {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text);
  margin: 2rem 0 0.6rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--blue);
}
.static-page-body h2:first-child { margin-top: 0; }
.static-page-body p { margin: 0 0 1rem; }
.static-page-body ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}
.static-page-body ul li { margin-bottom: 0.4rem; }
.static-page-date {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}
@media (max-width: 600px) {
  .static-page-body { padding: 1.5rem 1.2rem; }
}
