/* ========================================
   北海道屋根修理ガイド - style.css
   モダン・信頼感・モバイル最適化
======================================== */

/* フォント読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600;700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* CSS変数 */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2440;
  --accent: #b84600;
  --accent-hover: #a03c00;
  --danger: #c0392b;
  --warning: #b7580a;
  --success: #1e8449;
  --bg: #f5f7fa;
  --bg-white: #ffffff;
  --bg-gray: #eef1f5;
  --text: #1a1a2e;
  --text-muted: #5a6a7e;
  --border: #d0dae6;
  --shadow: 0 4px 24px rgba(26,58,92,0.10);
  --shadow-lg: 0 8px 40px rgba(26,58,92,0.16);
  --radius: 10px;
  --radius-lg: 18px;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --max-w: 1100px;
}

/* リセット */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

/* PR表記（全ページ最上部） */
.pr-banner {
  background: #fff3cd;
  border-bottom: 2px solid #ffc107;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.78rem;
  color: #7a5a00;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.pr-banner strong { color: #5a4000; }

/* ヘッダー */
.site-header {
  background: var(--primary-dark);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 36px;
  z-index: 900;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.site-logo small {
  display: block;
  font-size: 0.68rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}
.header-cta a {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}
.header-cta a:hover { background: var(--accent-hover); color: #fff; }

/* ==============================
   ハンバーガーメニュー（PC非表示）
============================== */
.hamburger { display: none; }
.nav-drawer { display: none; }
.nav-overlay { display: none; }

/* パンくず */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

/* コンテナ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* セクション共通 */
.section { padding: 56px 0; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 36px;
}
.section-divider {
  width: 50px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px 0 32px;
}

/* ==============================
   ファーストビュー (index)
============================== */
.hero {
  background: linear-gradient(135deg, #0f2440 0%, #1a3a5c 50%, #0f2440 100%);
  color: #fff;
  padding: 80px 20px 60px;
  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") repeat;
  opacity: 1;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-title em {
  color: #ffcc44;
  font-style: normal;
}
.hero-lead {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.8;
  opacity: 0.92;
  max-width: 680px;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}
.hero-stat {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.hero-stat .num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffcc44;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .label {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ==============================
   CTAボタン共通
============================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(232,93,4,0.4);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,93,4,0.5);
  color: #fff;
}
.btn-primary::after,
.btn-secondary::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  flex-shrink: 0;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid var(--primary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}
.btn-lg {
  font-size: 1.1rem;
  padding: 20px 48px;
  border-radius: 10px;
}
.btn-block {
  width: 100%;
  text-align: center;
}
.micro-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}
.micro-copy-white {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin-top: 8px;
  text-align: center;
}

/* CTA群 */
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* ダーク背景専用アウトラインボタン */
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.85);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.btn-hero-outline::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  flex-shrink: 0;
}

/* ==============================
   価格比較表
============================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
}
thead { background: var(--primary); color: #fff; }
thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
thead th:first-child { border-radius: var(--radius) 0 0 0; }
thead th:last-child { border-radius: 0 var(--radius) 0 0; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f0f5ff; }
tbody td { padding: 13px 16px; vertical-align: middle; }
tbody td:first-child { font-weight: 600; color: var(--primary-dark); }
.price-range { font-weight: 700; color: var(--accent); font-size: 1rem; }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}
.tag-red { background: #fde8e8; color: var(--danger); }
.tag-orange { background: #fef0e0; color: var(--warning); }
.tag-green { background: #e6f9f0; color: var(--success); }
.tag-blue { background: #e8f0fd; color: var(--primary); }

/* ==============================
   料金図解（フロー）
============================== */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  position: relative;
}
/* フローラッパー：PCは3列×2行グリッド */
.flow-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 8px 0;
}
/* グリッド内のarrowは非表示（数字バッジで順番を示す） */
.flow-arrow { display: none; }

.flow-item {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  position: relative;
}
.flow-step {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto 14px;
}
.flow-title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: var(--primary-dark); line-height: 1.5; }
.flow-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; text-align: left; }
.flow-body { flex: 1; }

/* ==============================
   料金内訳グラフ（CSS）
============================== */
.cost-bar-chart {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.cost-bar-chart h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--primary-dark);
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.bar-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  width: 130px;
  flex-shrink: 0;
  text-align: right;
}
.bar-track {
  flex: 1;
  background: var(--bg-gray);
  border-radius: 4px;
  height: 26px;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  transition: width 0.8s ease;
  white-space: nowrap;
  overflow: visible;
  position: relative;
  min-width: 2em;
}
.bar-fill.blue { background: var(--primary); }
.bar-fill.orange { background: var(--accent); }
.bar-fill.green { background: var(--success); }
.bar-fill.red { background: var(--danger); }
.bar-amount {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  width: 100px;
  flex-shrink: 0;
}
.bar-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  width: 90px;
  flex-shrink: 0;
  line-height: 1.4;
}
.bar-value strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.88rem;
}
.bar-value span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==============================
   トラブル注意喚起BOX
============================== */
.alert-box {
  border-radius: var(--radius-lg);
  padding: 28px 28px 28px 24px;
  margin: 24px 0;
  border-left: 6px solid;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.alert-box.danger {
  background: #fff8f8;
  border-color: var(--danger);
}
.alert-box.warning {
  background: #fffaf2;
  border-color: var(--warning);
}
.alert-box.info {
  background: #f0f5ff;
  border-color: var(--primary);
}
.alert-box.success {
  background: #f0faf5;
  border-color: var(--success);
}
.alert-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.alert-content h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}
.alert-content p, .alert-content ul {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.alert-content ul { padding-left: 18px; }
.alert-content ul li { margin-bottom: 4px; }
.alert-amount {
  font-weight: 700;
  color: var(--danger);
  font-size: 1.1rem;
}

/* ==============================
   カード
============================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon { font-size: 2.2rem; margin-bottom: 14px; }
.card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}
.card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ==============================
   チェックリスト
============================== */
.checklist {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.checklist-item:last-child { border-bottom: none; }
.check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-text {
  font-size: 0.9rem;
  line-height: 1.6;
}
.check-text strong { color: var(--primary-dark); }

/* ==============================
   FAQ
============================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-q {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
  color: var(--primary-dark);
}
.faq-q:hover { background: #f5f8ff; }
.faq-q::before {
  content: 'Q';
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
}
.faq-q span:not(.faq-toggle) { flex: 1; min-width: 0; }
.faq-toggle {
  font-size: 1.2rem;
  color: var(--accent);
  flex: 0 0 auto;
  transition: transform 0.2s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 0px solid var(--border);
}
/* JS方式（display:block切替）のFAQではmax-heightを解除 */
.faq-a[style*="display:block"],
.faq-a[style*="display: block"] {
  max-height: none;
  overflow: visible;
}
.faq-a::before {
  content: 'A';
  display: inline-block;
  background: var(--accent);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  line-height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--border);
}

/* ==============================
   補助金セクション
============================== */
.subsidy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.subsidy-card {
  background: linear-gradient(135deg, #e8f0fd 0%, #dceeff 100%);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.subsidy-card::before {
  content: '¥';
  position: absolute;
  right: 16px;
  top: 8px;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.06;
  font-weight: 900;
  line-height: 1;
}
.subsidy-city {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}
.subsidy-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}
.subsidy-amount {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.subsidy-amount small { font-size: 1rem; }
.subsidy-cond { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

/* ==============================
   業者選びチェック表（視覚化）
============================== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table thead th {
  background: var(--primary-dark);
  color: #fff;
  padding: 14px 16px;
  text-align: center;
}
.compare-table thead th:first-child { text-align: left; }
.compare-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.compare-table tbody td:first-child { text-align: left; font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.circle { color: var(--success); font-size: 1.2rem; }
.cross { color: var(--danger); font-size: 1.2rem; }
.triangle { color: var(--warning); font-size: 1.1rem; }

/* ==============================
   E-E-A-T 運営者情報
============================== */
.author-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.author-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--primary-dark);
}
.author-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.author-bio { font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; }
.author-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: #e8f0fd;
  color: var(--primary);
  font-weight: 700;
}

/* ==============================
   CTA セクション
============================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 64px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(232,93,4,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}
.cta-desc { font-size: 0.95rem; opacity: 0.88; margin-bottom: 36px; line-height: 1.8; }
.cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

/* ==============================
   フッター
============================== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 20px 24px;
  font-size: 0.82rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
}
.footer-nav a:hover { color: #fff; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.footer-disclaimer { margin-top: 10px; font-size: 0.72rem; color: rgba(255,255,255,0.4); line-height: 1.7; }

/* ==============================
   コンタクトページ
============================== */
.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--primary-dark);
}
.form-label .required {
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: #fafbfd;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
  background: #fff;
}
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }

/* 保証バッジ */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.guarantee-item {
  background: #fff;
  border: 2px solid var(--success);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.guarantee-icon { font-size: 2rem; margin-bottom: 8px; }
.guarantee-title { font-weight: 700; font-size: 0.85rem; color: var(--primary-dark); }
.guarantee-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ==============================
   レスポンシブ
============================== */
@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .hero { padding: 50px 16px 44px; }

  /* PRバナー：スマホで1行に収まるよう調整 */
  .pr-banner { font-size: 0.8rem; padding: 8px 16px; line-height: 1.5; text-align: center; }

  /* hero-stats：スマホで2列グリッド */
  .hero-stats { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
  }
  .hero-stat { padding: 12px 10px; }
  .hero-stat .num { font-size: 1.4rem; }

  /* ---- ハンバーガーメニュー ---- */

  /* CTAボタンはハンバーガー内に移すのでPC用は非表示 */
  .header-cta { display: none; }

  /* ハンバーガーボタン・ドロワーをモバイルで有効化 */
  .hamburger { display: flex; }
  .nav-drawer { display: flex; }
  .nav-overlay { display: block; opacity: 0; }

  /* ハンバーガーボタン */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.2s ease, width 0.28s ease;
    transform-origin: center;
  }
  /* 開いた状態：× に変形 */
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ドロワー本体 */
  .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: var(--primary-dark);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-drawer.open { transform: translateX(0); }

  /* オーバーレイ */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1190;
    opacity: 0;
    transition: opacity 0.32s ease;
  }
  .nav-overlay.show {
    display: block;
    opacity: 1;
  }

  /* ドロワーヘッダー */
  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
  }
  .drawer-header .drawer-title {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-serif);
  }
  .drawer-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    -webkit-tap-highlight-color: transparent;
  }

  /* ドロワーCTAボタン */
  .drawer-cta {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
  }
  .drawer-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 13px 20px;
    border-radius: 8px;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
  }
  .drawer-cta a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
  }

  /* ドロワーナビ */
  .drawer-nav {
    flex: 1;
    padding: 8px 0;
  }
  .drawer-nav .nav-section-label {
    display: block;
    color: rgba(255,255,255,0.4);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 18px 6px;
  }
  .drawer-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: rgba(255,255,255,0.88);
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.15s;
    border-left: 3px solid transparent;
  }
  .drawer-nav a:hover,
  .drawer-nav a:active {
    background: rgba(255,255,255,0.07);
    border-left-color: var(--accent);
    color: #fff;
  }
  .drawer-nav a .nav-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
  }
  .drawer-nav .nav-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 6px 0;
  }

  /* header-inner のレイアウト調整 */
  .header-inner { flex-wrap: nowrap; gap: 8px; padding: 12px 16px; }

  /* ヒーローCTAボタンをモバイルで縦並び・幅100% */
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .cta-buttons .btn-primary,
  .cta-buttons .btn-hero-outline {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 16px 20px;
  }
  .cta-group { align-items: stretch; width: 100%; }

  /* フロー：スマホで縦並び、横スクロール廃止 */
  /* スマホ：1列縦並び */
  .flow-wrapper {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
  }
  .flow-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 4px 14px;
    padding: 16px 18px;
    text-align: left;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
  }
  .flow-step { margin: 0; flex-shrink: 0; width: 32px; height: 32px; font-size: 0.85rem; grid-row: 1 / 3; }
  .flow-title { font-size: 0.95rem; margin-bottom: 2px; grid-column: 2; }
  .flow-desc { font-size: 0.82rem; text-align: left; grid-column: 2; }
  .flow-body { grid-column: 2; grid-row: 1 / 3; }
  .flow-arrow { display: none; }

  .author-card { flex-direction: column; }
  .author-avatar { width: 60px; height: 60px; font-size: 1.5rem; }
  .cost-bar-chart { padding: 20px 16px; }
  .bar-row {
    flex-wrap: wrap !important;
    gap: 4px 8px;
    margin-bottom: 14px;
  }
  .bar-label {
    width: 100% !important;
    flex-shrink: 1 !important;
    text-align: left !important;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-dark);
  }
  .bar-track { flex: 1; min-width: 0; height: 22px; }
  .bar-fill { font-size: 0.72rem; padding-right: 6px; }
  .bar-amount { width: auto; font-size: 0.8rem; flex-shrink: 0; }
  .contact-form-wrap { padding: 24px 18px; }
  .cta-section { padding: 48px 16px; }
  .subsidy-amount { font-size: 1.5rem; }
  .checklist { padding: 20px 16px; }
  .faq-q { font-size: 0.88rem; padding: 14px 16px !important; gap: 8px; line-height: 1.5; flex-wrap: nowrap; }
  .faq-q::before { width: 24px; height: 24px; min-width: 24px; font-size: 0.78rem; flex-shrink: 0; }
  .faq-q span:not(.faq-toggle) { min-width: 0; word-break: break-word; flex: 1 1 0% !important; }
  .faq-toggle { flex: 0 0 auto !important; min-width: 24px; width: 24px; text-align: center; margin-left: 8px !important; }
  .faq-a { padding: 0 16px; font-size: 0.85rem; }
  thead th, tbody td { padding: 10px 12px; font-size: 0.82rem; }
  .btn-lg { font-size: 1rem; padding: 16px 28px; }

  /* compare-table：スマホでカード形式（data-label付きテーブルに card-mobile クラスを使用） */
  .compare-table.card-mobile thead { display: none; }
  .compare-table.card-mobile tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  .compare-table.card-mobile tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    text-align: left;
  }
  .compare-table.card-mobile tbody td:first-child {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 4px;
    display: block;
  }
  .compare-table.card-mobile tbody td:last-child { border-bottom: none; }
  .compare-table.card-mobile tbody td[data-label]::before {
    content: attr(data-label);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
    min-width: 80px;
  }
  /* 3都市比較表：スマホでも横スクロール維持（カード化しない） */
  .table-wrap.subsidy-compare {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap.subsidy-compare table {
    min-width: 420px;
  }
  .table-wrap.subsidy-compare table thead { display: table-header-group; }
  .table-wrap.subsidy-compare table tbody tr {
    display: table-row;
    background: unset;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    padding: 0;
    box-shadow: none;
  }
  .table-wrap.subsidy-compare table tbody td {
    display: table-cell;
    padding: 10px 8px;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }
  .table-wrap.subsidy-compare table tbody td:first-child {
    text-align: left;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 0;
    display: table-cell;
  }
  .table-wrap.subsidy-compare table tbody td:last-child { border-bottom: 1px solid var(--border); }

  /* 費用テーブル：スマホではデフォルト横スクロール */
  .table-wrap:not(.subsidy-compare) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap:not(.subsidy-compare) table {
    min-width: 480px;
  }

  /* data-label付きテーブルのみカード形式に上書き */
  .table-wrap:not(.subsidy-compare) table.card-mobile { min-width: 0; }
  .table-wrap:not(.subsidy-compare) table.card-mobile thead { display: none; }
  .table-wrap:not(.subsidy-compare) table.card-mobile tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  .table-wrap:not(.subsidy-compare) table.card-mobile tbody td {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.5;
  }
  .table-wrap:not(.subsidy-compare) table.card-mobile tbody td:first-child {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 4px;
    display: block;
  }
  .table-wrap:not(.subsidy-compare) table.card-mobile tbody td:last-child { border-bottom: none; }
  .table-wrap:not(.subsidy-compare) table.card-mobile tbody td[data-label]::before {
    content: attr(data-label);
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
    min-width: 72px;
    padding-top: 2px;
  }

  /* インラインスタイルのテーブル（table-wrap外）も横スクロール */
  div[style*="overflow-x"] table {
    min-width: 420px;
  }
}

/* ==============================
   アニメーション
============================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease both; }
.fade-in-2 { animation: fadeInUp 0.6s ease 0.15s both; }
.fade-in-3 { animation: fadeInUp 0.6s ease 0.3s both; }

/* ==============================
   ハイライト・その他補助
============================== */
.highlight { background: #fff3cd; padding: 2px 6px; border-radius: 3px; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.bg-primary { background: var(--primary); }
.bg-white { background: #fff; }
.bg-gray { background: var(--bg-gray); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow); }

/* スクロールアップボタン */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 800;
  border: none;
  text-decoration: none;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--accent); }

/* 緊急バナー */
.urgent-banner {
  background: linear-gradient(90deg, var(--danger), #a93226);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 700;
}
.urgent-banner em { font-style: normal; background: rgba(255,255,255,0.2); padding: 2px 10px; border-radius: 4px; margin: 0 6px; }

/* 地域バッジ */
.city-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.city-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* 区切り線 */
hr.section-hr {
  border: none;
  border-top: 2px dashed var(--border);
  margin: 40px 0;
}

/* ==============================
   スマホ追従CTA（固定フッター）
============================== */
.sticky-cta {
  display: none;
}
@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--primary-dark);
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.28);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    gap: 8px;
    flex-wrap: wrap;
  }
  .sticky-cta.show {
    transform: translateY(0);
  }
  .sticky-cta-text {
    flex: 1;
    min-width: 0;
  }
  .sticky-cta-text strong {
    display: block;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .sticky-cta-text span {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 0.68rem;
    line-height: 1.3;
    margin-top: 2px;
  }
  .sticky-cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .sticky-cta-btn::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
  }
  .sticky-cta-btn:active {
    background: var(--accent-hover);
  }
  /* 追従CTAが出たときscroll-topを上げる */
  .scroll-top {
    transition: all 0.35s;
  }
  body.sticky-cta-visible .scroll-top {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

: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;
}

