/* ===================================================
   越谷市 外壁塗装・屋根修理 情報サイト - 共通CSS
   役所資料・白書風デザイン / モバイルファースト
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@400;700&display=swap');

/* ===== CSS変数 ===== */
:root {
  --navy: #1a2e4a;
  --navy-dark: #0f1e33;
  --navy-mid: #243c5a;
  --blue-accent: #2563eb;
  --blue-light: #3b82f6;
  --teal: #0e7490;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --success: #059669;
  --font-main: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.18);
  --border-radius: 6px;
  --border-radius-lg: 12px;
  --max-width: 1100px;
  --section-pad: clamp(40px, 8vw, 80px);
}

/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5em; }

/* ===== タイポグラフィ ===== */
h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 900; line-height: 1.3; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.25rem, 3.2vw, 1.9rem); font-weight: 700; line-height: 1.35; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.35rem); font-weight: 700; }
h4 { font-size: clamp(0.95rem, 2vw, 1.1rem); font-weight: 700; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ===== レイアウト ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--gray-100); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

/* ===== ヘッダー ===== */
#site-header {
  background: var(--navy-dark);
  border-bottom: 3px solid var(--blue-accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 32px);
  max-width: var(--max-width);
  margin: 0 auto;
  min-width: 0;
}
.site-logo {
  flex: 1;
  min-width: 0;
}
.site-logo a {
  display: block;
  color: var(--white);
  text-decoration: none;
}
.logo-main {
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-sub {
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  color: var(--gray-300);
  margin-top: 2px;
}
.header-nav { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.header-nav a {
  color: var(--gray-300);
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: var(--border-radius);
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.header-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-cta {
  background: var(--blue-accent) !important;
  color: var(--white) !important;
  font-weight: 700;
  padding: 8px 14px !important;
}
.nav-cta:hover { background: var(--blue-light) !important; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ===== 透明性ステートメント ===== */
.transparency-bar {
  background: #fff9e6;
  border-bottom: 1px solid #f0e68c;
  border-left: 4px solid var(--warning);
  padding: 10px clamp(16px, 4vw, 32px);
  font-size: clamp(0.7rem, 1.5vw, 0.78rem);
  color: #6b5300;
  line-height: 1.5;
}
.transparency-bar strong { color: var(--warning); }
.transparency-inner { max-width: var(--max-width); margin: 0 auto; }

/* ===== スマホ追従CTA ===== */
#sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--navy-dark);
  border-top: 2px solid var(--blue-accent);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.sticky-cta-text {
  color: var(--gray-300);
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.3;
}
.sticky-cta-btn {
  background: linear-gradient(135deg, #2563eb, #0e7490);
  color: var(--white);
  font-weight: 900;
  font-size: clamp(0.82rem, 2.5vw, 0.95rem);
  padding: 12px 20px;
  border-radius: 50px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37,99,235,0.5);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sticky-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.6); text-decoration: none; }
body { padding-bottom: 70px; }

/* ===== ヒーローセクション ===== */
.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-mid) 60%, #1e3a5f 100%);
  color: var(--white);
  padding: clamp(40px, 8vw, 80px) 0 clamp(50px, 10vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,0.3);
  border: 1px solid rgba(59,130,246,0.5);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero-lead {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 600px;
}
.hero-warning {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217,119,6,0.15);
  border: 1px solid rgba(217,119,6,0.4);
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0e7490);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.5); text-decoration: none; color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); text-decoration: none; color: var(--white); }
.btn-warning {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(217,119,6,0.4);
}
.btn-lg { padding: 16px 36px; font-size: clamp(1rem, 3vw, 1.15rem); }
.btn-block { width: 100%; display: flex; }

/* ===== カード ===== */
.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.95rem;
}
.card-body { padding: 20px; }
.card-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ===== テーブル ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; }
table { width: 100%; border-collapse: collapse; font-size: clamp(0.8rem, 2vw, 0.9rem); }
th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
td { padding: 10px 14px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--gray-100); }
.table-highlight td { background: #eff6ff !important; font-weight: 700; color: var(--navy); }

/* ===== 信号機パネル（劣化チェック） ===== */
.signal-panel {
  display: grid;
  gap: 12px;
}
.signal-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--border-radius);
  border: 1px solid;
}
.signal-red { background: #fff5f5; border-color: #fca5a5; }
.signal-yellow { background: #fffbeb; border-color: #fcd34d; }
.signal-green { background: #f0fdf4; border-color: #86efac; }
.signal-label { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.signal-red .signal-label { color: var(--danger); }
.signal-yellow .signal-label { color: #92400e; }
.signal-green .signal-label { color: #065f46; }
.signal-text { font-size: 0.85rem; color: var(--gray-700); }

/* ===== 相場ダッシュボード ===== */
.price-dashboard {
  background: var(--navy-dark);
  border-radius: var(--border-radius-lg);
  padding: clamp(20px, 4vw, 32px);
  color: var(--white);
}
.price-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.price-tab {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--gray-300);
  transition: all 0.2s;
}
.price-tab.active { background: var(--blue-accent); color: var(--white); }
.price-grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--border-radius);
  padding: 16px;
  text-align: center;
}
.price-card-label { font-size: 0.75rem; color: #94a3b8; margin-bottom: 8px; letter-spacing: 0.05em; }
.price-card-value {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, #93c5fd, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 4px;
}
.price-card-sub { font-size: 0.72rem; color: #94a3b8; }

/* ===== 3ステップCTA ===== */
.cta-section {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: clamp(36px, 6vw, 64px) 0;
  text-align: center;
}
.steps-row {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 20px);
  margin: 24px 0;
  flex-wrap: nowrap;
}
.step-item {
  flex: 1;
  min-width: 0;
  max-width: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  padding: clamp(10px, 2vw, 16px);
  position: relative;
  border: 1px solid rgba(255,255,255,0.15);
}
.step-num {
  width: 28px;
  height: 28px;
  background: var(--blue-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  margin: 0 auto 8px;
}
.step-label { font-size: clamp(0.72rem, 1.8vw, 0.82rem); font-weight: 700; line-height: 1.3; }
.step-arrow {
  display: flex;
  align-items: center;
  color: var(--blue-light);
  font-size: 1.1rem;
  flex-shrink: 0;
  align-self: center;
}

/* ===== 診断UI ===== */
.diagnosis-form {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 4vw, 36px);
  max-width: 680px;
  margin: 0 auto;
}
.diag-step { display: none; }
.diag-step.active { display: block; }
.diag-question { font-size: clamp(1rem, 2.5vw, 1.2rem); font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.diag-options { display: grid; gap: 10px; }
.diag-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.diag-option:hover { border-color: var(--blue-accent); background: #eff6ff; }
.diag-option.selected { border-color: var(--blue-accent); background: #eff6ff; }
.diag-option input { accent-color: var(--blue-accent); width: 18px; height: 18px; flex-shrink: 0; }
.diag-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.diag-progress-dot {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  background: var(--gray-200);
  transition: background 0.3s;
}
.diag-progress-dot.done { background: var(--blue-accent); }
.diag-progress-dot.active { background: var(--blue-light); }
.diag-result {
  display: none;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border: 2px solid var(--blue-accent);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  text-align: center;
  margin-top: 16px;
}
.diag-result.show { display: block; }
.result-urgency { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 8px; }
.result-urgency.high { color: var(--danger); }
.result-urgency.medium { color: var(--warning); }
.result-urgency.low { color: var(--success); }
.result-title { font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 900; color: var(--navy); margin-bottom: 12px; }
.result-safe { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.result-safe-item { font-size: 0.82rem; color: var(--gray-700); display: flex; align-items: center; gap: 4px; }
.result-safe-item::before { content: '✓'; color: var(--success); font-weight: 900; }

/* ===== 見積赤ペン ===== */
.redpen-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.redpen-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.redpen-body { padding: 16px 20px; }
.redpen-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--gray-200);
}
.redpen-item:last-child { border-bottom: none; }
.redpen-flag {
  flex-shrink: 0;
  background: #fff5f5;
  color: var(--danger);
  border: 1px solid #fca5a5;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  margin-top: 2px;
}
.redpen-item-title { font-weight: 700; font-size: 0.9rem; color: var(--gray-900); margin-bottom: 4px; }
.redpen-item-desc { font-size: 0.82rem; color: var(--gray-700); }

/* ===== パンくず ===== */
.breadcrumb {
  padding: 10px 0;
  font-size: 0.78rem;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 0;
}
.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-accent); }
.breadcrumb span { margin: 0 6px; }

/* ===== フッター ===== */
#site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: clamp(40px, 6vw, 60px) 0 clamp(20px, 3vw, 30px);
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand { }
.footer-logo-text { font-size: 1rem; font-weight: 900; color: var(--white); margin-bottom: 8px; }
.footer-tagline { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 12px; }
.footer-neutral-decl {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  padding: 12px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.footer-h { font-size: 0.82rem; font-weight: 700; color: var(--gray-300); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.82rem; color: var(--gray-500); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gray-300); }
.footer-consult-info { margin-top: 8px; }
.footer-consult-info a {
  color: var(--gray-400);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.72rem;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.8;
}
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--gray-500);
  margin-top: 8px;
  line-height: 1.7;
}
.affiliate-notice {
  background: rgba(217,119,6,0.1);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: var(--border-radius);
  padding: 10px 14px;
  font-size: 0.72rem;
  color: #d97706;
  margin-top: 12px;
}

/* ===== 消費者相談CTA ===== */
.consumer-help-bar {
  background: var(--warning-bg);
  border: 1px solid #fde68a;
  border-radius: var(--border-radius);
  padding: 14px 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.consumer-help-bar .icon { font-size: 1.3rem; flex-shrink: 0; }

/* ===== インフォグラフィック ===== */
.infographic-title {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag-blue { background: var(--blue-accent); }
.tag-teal { background: var(--teal); }
.tag-warning { background: var(--warning); }
.tag-danger { background: var(--danger); }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: var(--gray-900);
  font-family: var(--font-main);
}
.faq-question::after { content: '＋'; color: var(--blue-accent); font-size: 1.2rem; flex-shrink: 0; }
.faq-question.open::after { content: '－'; }
.faq-answer { display: none; padding: 0 0 16px; font-size: 0.9rem; color: var(--gray-700); }
.faq-answer.open { display: block; }

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .header-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 999;
  }
  .header-nav.open { display: flex; }
  .header-nav a { font-size: 1.1rem; padding: 12px 24px; }
  .nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
  }
}
@media (min-width: 769px) { .nav-close { display: none; } }

/* ===== ローディング演出 ===== */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,30,51,0.95);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.loading-overlay.show { display: flex; }
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--blue-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.loading-sub { font-size: 0.82rem; color: var(--gray-400); }
.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* ===== アコーディオン ===== */
details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '▶'; font-size: 0.7rem; transition: transform 0.3s; }
details[open] summary::after { transform: rotate(90deg); }

/* ===== ユーティリティ ===== */
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.text-gray { color: var(--gray-500); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.highlight-box {
  background: #eff6ff;
  border-left: 4px solid var(--blue-accent);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
}
.warning-box {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
}
.danger-box {
  background: #fff5f5;
  border-left: 4px solid var(--danger);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
}

/* ===== Print ===== */
@media print {
  #sticky-cta, #site-header nav, .menu-toggle { display: none; }
  body { padding-bottom: 0; }
}

:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

nav a, .footer a, .footer-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer a {
  padding: 12px 8px;
}

/* Exit-intent popup */
#exit-popup-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:10000;align-items:center;justify-content:center}
#exit-popup-overlay.is-visible{display:flex}
.exit-popup-modal{background:#fff;border-radius:16px;padding:40px 32px;max-width:420px;width:90%;text-align:center;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.3);animation:exitPopIn .3s ease}
@keyframes exitPopIn{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
.exit-popup-close{position:absolute;top:12px;right:16px;background:none;border:none;font-size:1.5rem;color:#999;cursor:pointer}.exit-popup-close:hover{color:#333}
.exit-popup-icon{font-size:2.5rem;margin-bottom:12px}
.exit-popup-title{font-size:1.2rem;color:#1a2a40;margin:0 0 12px;font-weight:700}
.exit-popup-text{font-size:.88rem;color:#555;line-height:1.7;margin:0 0 20px}
.exit-popup-btn{display:inline-block;background:#b91c1c;color:#fff;padding:14px 32px;border-radius:8px;font-size:.95rem;font-weight:700;text-decoration:none;box-shadow:0 4px 16px rgba(185,28,28,.3)}
.exit-popup-btn:hover{transform:translateY(-1px)}
.exit-popup-note{display:block;font-size:.72rem;color:#999;margin-top:12px}
@media(max-width:768px){#exit-popup-overlay{display:none!important}}
