/* =============================================
   上尾市 害虫・害獣トラブル相談室
   style.css — Mobile First / Vanilla CSS
   配色: White / Navy #1a2a40 / Orange #ff8c00
   ============================================= */

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

/* ── CSS変数 ── */
:root {
  --navy:      #1a2a40;
  --navy-dark: #0f1a28;
  --navy-mid:  #243652;
  --orange:    #ff8c00;
  --orange-lt: #ffa733;
  --orange-bg: #fff5e6;
  --white:     #ffffff;
  --gray-50:   #f8f9fa;
  --gray-100:  #f0f2f5;
  --gray-200:  #e2e6ea;
  --gray-400:  #6a7a90;
  --gray-600:  #4a5568;
  --gray-800:  #2d3748;
  --red:       #e53e3e;
  --green:     #2d7d46;

  --ff-sans:  'Noto Sans JP', sans-serif;
  --ff-serif: 'Noto Serif JP', serif;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(26,42,64,.10);
  --shadow:    0 4px 20px rgba(26,42,64,.14);
  --shadow-lg: 0 8px 40px rgba(26,42,64,.18);

  --max-w: 960px;
  --px:    16px;
}

/* ── リセット ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .3em; }

/* ── ユーティリティ ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-navy   { color: var(--navy); }
.text-red    { color: var(--red); }
.fw-bold     { font-weight: 700; }
.fw-black    { font-weight: 900; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.hidden-sp  { display: none; }

/* ── アフィリエイト告知帯（ステマ規制対応・全ページ共通） ── */
.affiliate-notice-bar {
  background: #fffbe6;
  border-bottom: 1px solid #f0d060;
  text-align: center;
  padding: 5px 16px;
  font-size: .70rem;
  color: #5a4500;
  line-height: 1.5;
  letter-spacing: .01em;
  width: 100%;
}
.affiliate-notice-bar a {
  color: #7a5c00;
  text-decoration: underline;
}
.affiliate-notice-bar strong {
  font-weight: 700;
}

/* ── ヘッダー ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 12px;
}
.site-logo {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
}
.site-logo span {
  display: block;
  font-size: .65rem;
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: .05em;
}
.header-cta-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.header-cta-btn:hover {
  background: var(--orange-lt);
  transform: translateY(-1px);
  text-decoration: none;
}
.header-cta-micro{display:block;font-size:.58rem;color:var(--gray-400);margin-top:2px;text-align:center;font-weight:400;letter-spacing:.02em}

/* ── ナビゲーション ── */
.site-nav {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-nav .container {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav .container::-webkit-scrollbar { display: none; }
.site-nav a {
  color: rgba(255,255,255,.80);
  font-size: .75rem;
  font-weight: 500;
  padding: 8px 12px;
  white-space: nowrap;
  transition: color .2s, background .2s;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--orange);
  background: rgba(255,140,0,.10);
}

/* ── ヒーローセクション ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e3a5f 100%);
  color: var(--white);
  padding: 32px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 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.03'%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");
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,140,0,.20);
  border: 1px solid rgba(255,140,0,.40);
  color: var(--orange-lt);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: .05em;
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
.hero h1 {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-lead {
  font-size: .88rem;
  color: rgba(255,255,255,.80);
  margin-bottom: 24px;
  line-height: 1.8;
}
.hero-points {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .83rem;
  color: rgba(255,255,255,.90);
  margin: 0;
}
.hero-points li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── CTA ボタン（メイン） ── */
.cta-btn {
  display: block;
  background: var(--orange);
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  padding: 16px 20px;
  border-radius: var(--radius);
  line-height: 1.4;
  box-shadow: 0 4px 20px rgba(255,140,0,.40);
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.cta-btn::after {
  content: '›';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: .7;
}
.cta-btn:hover {
  background: var(--orange-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,140,0,.50);
  text-decoration: none;
  color: var(--white);
}
.cta-btn-sm {
  font-size: .8rem;
  color: rgba(255,255,255,.70);
  text-align: center;
  display: block;
  margin-top: 8px;
}

/* ── セクション共通 ── */
.section {
  padding: 40px 0;
}
.section-alt {
  background: var(--gray-50);
}
.section-navy {
  background: var(--navy);
  color: var(--white);
}
.section-title {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.section-title.white { color: var(--white); }
.section-subtitle {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--orange);
}
.section-lead {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.8;
}
.section-lead.white { color: rgba(255,255,255,.80); }
.section-divider {
  width: 40px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 16px;
}

/* ── カード ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  border: 1px solid var(--gray-200);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.card-title {
  font-weight: 700;
  color: var(--navy);
  font-size: .95rem;
  margin-bottom: 8px;
}
.card-body {
  font-size: .83rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* カードグリッド */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ── 警告ボックス ── */
.alert {
  padding: 16px 18px;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin-bottom: 16px;
  font-size: .85rem;
  line-height: 1.75;
}
.alert-danger {
  background: #fff5f5;
  border-color: var(--red);
  color: #742a2a;
}
.alert-warning {
  background: var(--orange-bg);
  border-color: var(--orange);
  color: #7b3f00;
}
.alert-info {
  background: #ebf8ff;
  border-color: #3182ce;
  color: #1a365d;
}
.alert-success {
  background: #f0fff4;
  border-color: var(--green);
  color: #1c4532;
}
.alert-title {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 6px;
}

/* ── 市役所情報ブロック ── */
.city-info-block {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.city-info-block h3 {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}
.city-info-block h3::before {
  content: '🏛️';
  font-size: 1.1rem;
}
.city-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}
.city-info-table tr {
  border-bottom: 1px solid var(--gray-100);
}
.city-info-table tr:last-child { border-bottom: none; }
.city-info-table th {
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  padding: 8px 0;
  width: 36%;
  vertical-align: top;
}
.city-info-table td {
  padding: 8px 0 8px 8px;
  color: var(--gray-600);
  vertical-align: top;
}

/* ── 料金テーブル ── */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table thead {
  background: var(--navy);
  color: var(--white);
}
.price-table th {
  padding: 12px 10px;
  text-align: left;
  font-weight: 700;
}
.price-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: var(--gray-50); }
.price-range {
  color: var(--orange);
  font-weight: 700;
}

/* ── ステップ ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .85rem;
}
.step-content { flex: 1; }
.step-title {
  font-weight: 700;
  color: var(--navy);
  font-size: .9rem;
  margin-bottom: 4px;
}
.step-body {
  font-size: .83rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ── タグリスト（キーワード） ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.tag-list li {
  margin: 0;
}
.tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .75rem;
  padding: 4px 10px;
  border-radius: 100px;
}
.tag-orange {
  background: var(--orange-bg);
  color: #7b3f00;
}

/* ── リスクカウントダウン ── */
.risk-box {
  background: linear-gradient(135deg, #2d1010 0%, #4a1818 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.risk-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffc8c8;
}
.risk-box ul {
  list-style: none;
  padding: 0;
  text-align: left;
  font-size: .85rem;
  line-height: 1.9;
}
.risk-box li {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: .3em;
}
.risk-box li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  color: var(--orange);
}

/* ── CTA ブロック（ミドル・ボトム） ── */
.cta-block {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  color: var(--white);
  margin: 32px 0;
}
.cta-block h2, .cta-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
}
.cta-block p {
  font-size: .83rem;
  color: rgba(255,255,255,.80);
  margin-bottom: 20px;
  line-height: 1.8;
}
.cta-block .cta-btn {
  max-width: 480px;
  margin: 0 auto;
}

/* ── 広告・PR ラベル（ステマ規制対応） ── */
.ad-label {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.45);
  color: rgba(255,255,255,.92);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 6px;
  line-height: 1.6;
}
/* 白地上のADラベル */
.ad-label-dark {
  display: inline-block;
  background: #e8f0fe;
  border: 1px solid #b3c6f0;
  color: #1a3a6b;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 6px;
  line-height: 1.6;
}
/* CTAブロック上部の広告表示バー */
.ad-disclosure-bar {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  margin-bottom: 16px;
  font-size: .72rem;
  color: rgba(255,255,255,.78);
  text-align: center;
  line-height: 1.6;
}
.ad-disclosure-bar a {
  color: rgba(255,255,255,.65);
  text-decoration: underline;
}
/* ヒーロー内CTAの広告バー（白地想定） */
.ad-disclosure-bar-light {
  background: #fff8e6;
  border: 1px solid #f0d080;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  margin-bottom: 12px;
  font-size: .72rem;
  color: #6b5000;
  text-align: center;
  line-height: 1.6;
}
.ad-disclosure-bar-light a {
  color: #8b6200;
}

/* ── パンくず ── */
.breadcrumb {
  font-size: .75rem;
  color: var(--gray-400);
  padding: 10px 0;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--gray-400);
  text-decoration: underline;
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--gray-400); }

/* ── テーブルofdコンテンツ ── */
.toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: .83rem;
}
.toc-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  font-size: .88rem;
}
.toc ol {
  padding-left: 1.3em;
  margin: 0;
}
.toc li { margin-bottom: .4em; }
.toc a { color: var(--navy); }
.toc a:hover { color: var(--orange); }

/* ── フッター ── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.70);
  padding: 32px 0 20px;
  font-size: .8rem;
  line-height: 1.8;
}
.footer-logo {
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 12px;
}
.footer-desc {
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: .78rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
}
.footer-nav a {
  color: rgba(255,255,255,.65);
  font-size: .78rem;
  text-decoration: none;
  padding: 10px 12px;
  line-height: 1.6;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--orange); }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: 16px 0;
}
.footer-copy {
  color: rgba(255,255,255,.35);
  font-size: .72rem;
}
.footer-disclaimer {
  font-size: .72rem;
  color: rgba(255,255,255,.40);
  line-height: 1.8;
  margin-top: 10px;
}

/* ── 季節バッジ ── */
.season-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 4px;
}
.season-spring { background: #e8f8f0; color: #276749; }
.season-summer { background: #fff5e6; color: #7b3f00; }
.season-autumn { background: #fef3cd; color: #7b5e00; }
.season-winter { background: #ebf8ff; color: #1a365d; }

/* ── 害虫カテゴリリンク ── */
.pest-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.pest-link-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: block;
}
.pest-link-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.pest-link-card .icon { font-size: 2rem; margin-bottom: 6px; }
.pest-link-card .name {
  font-weight: 700;
  color: var(--navy);
  font-size: .85rem;
  line-height: 1.3;
}
.pest-link-card .note {
  font-size: .72rem;
  color: var(--gray-400);
  margin-top: 3px;
}

/* ── ハイライトボックス ── */
.highlight-box {
  background: var(--orange-bg);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 20px;
}
.highlight-box h3 {
  color: var(--navy);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.highlight-box p, .highlight-box ul {
  font-size: .85rem;
  color: var(--gray-800);
  line-height: 1.8;
}

/* ── プログレスインジケーター ── */
.urgency-bar {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: .83rem;
}
.urgency-bar .label {
  font-weight: 700;
  color: var(--navy);
  min-width: 80px;
  flex-shrink: 0;
}
.urgency-bar .bar-wrap {
  flex: 1;
  background: var(--gray-200);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}
.urgency-bar .bar-fill {
  height: 100%;
  border-radius: 100px;
}
.bar-high   { background: var(--red); width: 92%; }
.bar-mid    { background: var(--orange); width: 65%; }
.bar-low    { background: #3182ce; width: 40%; }
.urgency-bar .val {
  font-weight: 700;
  font-size: .78rem;
  min-width: 40px;
  text-align: right;
  color: var(--gray-600);
}

/* ── 表紙装飾 ── */
.hero-stat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-stat {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
}
.hero-stat .num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1.1;
  display: block;
}
.hero-stat .unit {
  font-size: .65rem;
  color: rgba(255,255,255,.55);
}

/* ── レスポンシブ（768px〜） ── */
@media (min-width: 768px) {
  :root { --px: 24px; }
  .hidden-sp { display: block; }

  .site-logo { font-size: 1rem; }
  .header-cta-btn { font-size: .8rem; padding: 10px 16px; }

  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-lead { font-size: 1rem; }
  .hero-points { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
  .hero-points li { font-size: .88rem; }

  .section { padding: 56px 0; }
  .section-title { font-size: 1.5rem; }

  .card-grid-2 { grid-template-columns: 1fr 1fr; }
  .card-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

  .pest-links { grid-template-columns: repeat(4, 1fr); }

  .cta-btn { font-size: 1rem; padding: 18px 24px; }
  .cta-block { padding: 40px 32px; }
  .cta-block h2, .cta-block h3 { font-size: 1.3rem; }

  .hero-stat-row { gap: 16px; }
  .hero-stat .num { font-size: 1.8rem; }
  .hero-stat .unit { font-size: .72rem; }

  .steps { gap: 20px; }
}

/* ── アニメーション ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp .5s ease both;
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ── スキップリンク（アクセシビリティ） ── */
.skip-link {
  position: absolute;
  top: -999px;
  left: 4px;
  background: var(--orange);
  color: var(--white);
  padding: 8px 12px;
  font-size: .85rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── 印刷 ── */
@media print {
  .site-header, .site-nav, .site-footer, .cta-btn, .cta-block { display: none !important; }
  body { font-size: 12pt; color: #000; }
}

/* =============================================
   FAQ アコーディオン
   ============================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item.is-open {
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 52px 16px 16px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  line-height: 1.5;
  font-family: var(--ff-sans);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.faq-question:hover { background: var(--gray-50); }
.faq-q-badge {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.faq-q-text { flex: 1; }
.faq-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1;
  transition: background .2s, transform .25s;
  flex-shrink: 0;
}
.faq-item.is-open .faq-toggle {
  transform: translateY(-50%) rotate(45deg);
  background: var(--orange);
  color: var(--white);
}
.faq-answer {
  display: none;
  padding: 12px 16px 16px 50px;
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.85;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.faq-item.is-open .faq-answer { display: block; }

/* =============================================
   社会的証明 (実績・口コミ)
   ============================================= */
.social-proof-block {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 0;
}
.social-proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.social-proof-stat {
  text-align: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 14px 8px;
}
.social-proof-stat .sp-num {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1.1;
  margin-bottom: 4px;
}
.social-proof-stat .sp-label {
  font-size: .68rem;
  color: rgba(255,255,255,.60);
  line-height: 1.4;
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.review-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.review-stars {
  color: #fbbf24;
  font-size: .85rem;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.review-body {
  font-size: .82rem;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
  margin-bottom: 8px;
}
.review-meta {
  font-size: .72rem;
  color: rgba(255,255,255,.38);
}
.social-proof-note {
  font-size: .70rem;
  color: rgba(255,255,255,.30);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .social-proof-block { padding: 32px 32px; }
  .social-proof-stats { gap: 16px; }
  .social-proof-stat .sp-num { font-size: 1.7rem; }
  .reviews-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* =============================================
   依頼後フロー
   ============================================= */
.flow-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 0;
}
.flow-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flow-title::before {
  content: '📋';
}
.flow-steps-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.flow-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--gray-200);
  position: relative;
}
.flow-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.flow-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 900;
}
.flow-step:last-child .flow-num {
  background: var(--green);
}
.flow-content { flex: 1; }
.flow-step-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.flow-step-note {
  font-size: .78rem;
  color: var(--gray-600);
}
@media (min-width: 768px) {
  .flow-steps-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
  .flow-step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: none;
    border-right: 1px dashed var(--gray-200);
    padding: 0 12px;
  }
  .flow-step:last-child { border-right: none; }
  .flow-num { margin-bottom: 8px; }
  .flow-step-note { font-size: .75rem; }
}

/* =============================================
   キャンペーン期限バッジ
   ============================================= */
.campaign-expiry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(229,62,62,.12);
  border: 1px solid rgba(229,62,62,.35);
  color: #fc8181;
  font-size: .70rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-top: 6px;
  letter-spacing: .02em;
}
.campaign-expiry::before { content: '⏰'; }


/* =============================================
   ハンバーガーメニュー（SVG版 .hbg）
   ============================================= */
.hbg {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255,255,255,.10);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}
.hbg svg { display: block; width: 100%; height: 100%; }

.site-header { position: relative; }
.site-header .container { position: relative; }
.hero-points li strong { display: inline; font-weight: 700; }

@media (max-width: 767px) {
  .hbg { display: block; }
  .header-cta-btn { display: none; }

  #site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,.40);
  }
  #site-nav.open { display: block; animation: navSlideDown .25s ease both; }
  #site-nav .container {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-x: visible;
    padding: 0;
    max-width: 100%;
  }
  #site-nav a {
    display: block;
    padding: 14px 20px;
    font-size: .9rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: normal;
  }
  #site-nav a:last-child { border-bottom: none; }
}

@media (min-width: 768px) {
  .hbg { display: none; }
  #site-nav { display: block !important; position: static !important; box-shadow: none; }
  #site-nav .container { flex-direction: row !important; overflow-x: auto !important; padding: 0 var(--px) !important; }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   スマホ追従CTA（スクロール検知対応）
   ============================================= */
.sp-sticky-cta { display: none; }

@media (max-width: 767px) {
  body { padding-bottom: 86px; } /* CTA分の余白を常に確保（レイアウトシフト防止） */

  .sp-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--navy-dark);
    border-top: 3px solid var(--orange);
    padding: 10px 16px 14px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.35);
    /* 初期状態：画面外（下）に隠す */
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
  }
  /* JS が .is-visible を付与したときだけ表示 */
  .sp-sticky-cta.is-visible {
    transform: translateY(0);
  }
  .sp-sticky-cta a.sp-cta-btn {
    display: block;
    background: var(--orange);
    color: var(--white);
    text-align: center;
    font-size: .84rem;
    font-weight: 700;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    line-height: 1.4;
    transition: background .2s;
  }
  .sp-sticky-cta a.sp-cta-btn:hover { background: var(--orange-lt); }
  .sp-sticky-cta .sp-cta-note {
    font-size: .62rem;
    color: rgba(255,255,255,.45);
    text-align: center;
    margin-top: 5px;
    display: block;
  }
}

/* =============================================
   ページトップへ戻るボタン
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 96px; /* スマホ追従CTAの上に配置 */
  right: 16px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(26,42,64,.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .2s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--navy-mid); }
.back-to-top svg { display: block; }

@media (min-width: 768px) {
  .back-to-top { bottom: 32px; right: 24px; }
}

/* ── アクセシビリティ：フォーカス表示 ── */
: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;
  }
}

/* ── タップターゲット改善（WCAG 2.1 Level AAA） ── */
nav a, .nav-link, .footer-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ── ありがとうページ（contact_thanks） ── */
.thanks-next-steps{background:var(--gray-50);border-radius:var(--radius);padding:24px 20px;margin:24px auto;max-width:560px;text-align:left}
.thanks-next-title{font-size:1.1rem;color:var(--navy);margin:0 0 16px;font-weight:700}
.thanks-steps-list{margin:0;padding:0 0 0 20px;line-height:1.8}
.thanks-steps-list li{margin-bottom:8px;font-size:.88rem;color:var(--gray-700)}
.thanks-steps-list li strong{color:var(--navy)}
.thanks-note{font-size:.82rem;color:var(--gray-500);margin:16px 0 0;text-align:center}
.thanks-related{max-width:560px;margin:20px auto;text-align:left}
.thanks-related-title{font-size:.95rem;color:var(--navy);margin:0 0 12px;font-weight:700}
.thanks-related-list{list-style:none;padding:0;margin:0}
.thanks-related-list li{margin-bottom:8px}
.thanks-related-list li a{color:var(--orange);text-decoration:none;font-size:.88rem}
.thanks-related-list li a:hover{text-decoration:underline}

/* Scroll-triggered CTA banner (desktop) */
#scroll-cta-banner{position:fixed;bottom:20px;right:20px;z-index:9998;opacity:0;transform:translateY(20px);transition:opacity .4s,transform .4s;pointer-events:none}
#scroll-cta-banner.is-visible{opacity:1;transform:translateY(0);pointer-events:auto}
.scroll-cta-inner{display:flex;align-items:center;gap:12px;background:var(--navy);color:#fff;padding:14px 20px;border-radius:var(--radius);box-shadow:0 8px 32px rgba(0,0,0,.25)}
.scroll-cta-text{font-size:.85rem;font-weight:500}
.scroll-cta-btn{background:var(--orange);color:#fff;padding:10px 20px;border-radius:var(--radius-sm);font-size:.82rem;font-weight:700;text-decoration:none;white-space:nowrap;transition:background .2s}
.scroll-cta-btn:hover{background:var(--orange-lt)}
.scroll-cta-close{background:none;border:none;color:rgba(255,255,255,.6);font-size:1.3rem;cursor:pointer;padding:0 0 0 4px;line-height:1}
.scroll-cta-close:hover{color:#fff}
@media(max-width:767px){#scroll-cta-banner{display:none}}

/* 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:var(--gray-400);cursor:pointer}
.exit-popup-close:hover{color:var(--gray-700)}
.exit-popup-icon{font-size:2.5rem;margin-bottom:12px}
.exit-popup-title{font-size:1.2rem;color:var(--navy);margin:0 0 12px;font-weight:700}
.exit-popup-text{font-size:.88rem;color:var(--gray-600);line-height:1.7;margin:0 0 20px}
.exit-popup-btn{display:inline-block;background:var(--orange);color:#fff;padding:14px 32px;border-radius:var(--radius);font-size:.95rem;font-weight:700;text-decoration:none;box-shadow:0 4px 16px rgba(255,140,0,.35);transition:background .2s,transform .15s}
.exit-popup-btn:hover{background:var(--orange-lt);transform:translateY(-1px)}
.exit-popup-note{display:block;font-size:.72rem;color:var(--gray-400);margin-top:12px}
@media(max-width:767px){#exit-popup-overlay{display:none!important}}
