/* 14_SubsidyNavigator 公式スタイルシート (モバイルファースト & 2段ボタン明確区分) */
:root {
  --bg-page: #f4f7fb;
  --bg-card: #ffffff;
  --text-main: #1a2433;
  --text-muted: #526075;
  --primary-navy: #0f3d7a;
  --primary-blue: #1a66cc;
  --official-blue: #0d47a1;
  --official-blue-hover: #08306b;
  --pr-emerald: #0b7a53;
  --pr-emerald-hover: #07593c;
  --pr-bg-tint: #f0fdf7;
  --pr-border: #86efac;
  --badge-high-bg: #dcfce7;
  --badge-high-text: #14532d;
  --badge-pos-bg: #fef9c3;
  --badge-pos-text: #713f12;
  --border-light: #dce3ee;
  --shadow-sm: 0 2px 8px rgba(15, 61, 122, 0.07);
  --shadow-md: 0 6px 20px rgba(15, 61, 122, 0.11);
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", "Noto Sans JP", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ステマ規制明示バー */
.pr-disclosure-bar {
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.82rem;
  padding: 7px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

.privacy-pill {
  background: rgba(255, 255, 255, 0.14);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}

/* ヘッダー */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-navy);
}

.brand-icon {
  font-size: 1.9rem;
}

.brand-title {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.header-nav a {
  text-decoration: none;
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 8px;
}

.header-nav a:hover {
  background: #eef4ff;
}

/* ヒーローセクション */
.hero-section {
  background: linear-gradient(135deg, #0f3d7a 0%, #1658a8 100%);
  color: #ffffff;
  padding: 38px 0 46px;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-heading {
  font-size: 1.85rem;
  margin: 0 0 14px;
  line-height: 1.38;
}

.accent-highlight {
  color: #fde047;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero-lead {
  max-width: 780px;
  margin: 0 auto;
  font-size: 0.98rem;
  opacity: 0.95;
}

/* 診断カード */
.diagnosis-section {
  margin-top: -26px;
  padding-bottom: 36px;
}

.calculator-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  padding: 26px 24px;
}

.calculator-header h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: var(--primary-navy);
}

.calculator-header p {
  margin: 0 0 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-field select {
  padding: 12px 14px;
  font-size: 1rem;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
}

.form-field select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(26, 102, 204, 0.18);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.dynamic-note {
  background: #f8fafc;
  border-left: 4px solid var(--primary-blue);
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
}

.calc-action-row {
  margin-top: 22px;
  text-align: center;
}

.btn-primary-diagnose {
  display: inline-block;
  background: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 15px 34px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.32);
  transition: transform 0.15s ease;
}

.btn-primary-diagnose:hover {
  transform: translateY(-2px);
}

.conversion-summary-bar {
  margin-top: 18px;
  padding: 12px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1e3a8a;
  font-weight: 600;
}

/* 診断結果カード */
.results-container {
  margin-top: 26px;
}

.results-header-banner {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.result-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 18px;
}

.result-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.match-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.match-high {
  background: var(--badge-high-bg);
  color: var(--badge-high-text);
  border: 1px solid #86efac;
}

.match-possible {
  background: var(--badge-pos-bg);
  color: var(--badge-pos-text);
  border: 1px solid #fde047;
}

.category-badge {
  display: inline-block;
  background: #e2e8f0;
  color: #334155;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.verified-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.result-title {
  margin: 6px 0 10px;
  font-size: 1.25rem;
}

.result-title a {
  color: var(--primary-navy);
  text-decoration: none;
}

.result-title a:hover {
  text-decoration: underline;
}

.benefit-pill-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.benefit-amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: #b91c1c;
}

.reason-note-box {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* 2段ボタン構造（公式導線 vs PR収益導線の明確な視覚分離） */
.cta-dual-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
}

.cta-official-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-official {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--official-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 13px 18px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}

.btn-official:hover {
  background: var(--official-blue-hover);
}

.btn-details-sub {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #eff6ff;
  color: var(--official-blue);
  border: 1px solid #bfdbfe;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 4px;
}

.cta-pr-wrap {
  background: var(--pr-bg-tint);
  border: 1px solid var(--pr-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.btn-affiliate-pr {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--pr-emerald);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.96rem;
  padding: 13px 18px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}

.btn-affiliate-pr:hover {
  background: var(--pr-emerald-hover);
}

.cta-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* カタログ・個別記事 */
.catalog-section {
  padding: 28px 0 48px;
}

.section-heading-box {
  margin-bottom: 20px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.catalog-card h3 {
  font-size: 1.04rem;
  margin: 8px 0;
}

.catalog-card h3 a {
  color: var(--primary-navy);
  text-decoration: none;
}

.catalog-card h3 a:hover {
  text-decoration: underline;
}

.detail-article, .legal-page {
  padding: 24px 0 48px;
}

.breadcrumb {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--primary-blue);
  text-decoration: none;
}

.breadcrumb-sep {
  margin: 0 6px;
}

.article-header, .summary-panel, .article-section, .legal-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.article-title, .legal-main-title {
  font-size: 1.5rem;
  color: var(--primary-navy);
  margin: 10px 0 12px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.spec-table th, .spec-table td {
  border: 1px solid var(--border-light);
  padding: 12px 14px;
  text-align: left;
  font-size: 0.93rem;
}

.spec-table th {
  width: 28%;
  background: #f8fafc;
  font-weight: 700;
}

.spec-highlight {
  font-weight: 800;
  color: #b91c1c;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.faq-a {
  margin: 0;
  font-size: 0.94rem;
}

.back-to-diagnosis-banner {
  background: linear-gradient(135deg, #0f3d7a 0%, #1e40af 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 22px;
}

/* 免責フッター */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 34px 0 28px;
  margin-top: 40px;
}

.disclaimer-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.disclaimer-title {
  margin: 0 0 6px;
  font-weight: 800;
  color: #fde047;
  font-size: 0.9rem;
}

.disclaimer-body {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #e2e8f0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-links a {
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero-heading {
    font-size: 1.42rem;
  }
  .spec-table th, .spec-table td {
    display: block;
    width: 100%;
  }
}
