:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --safe-green: #10b981;
  --safe-bg: #ecfdf5;
  --warn-orange: #f59e0b;
  --warn-bg: #fffbeb;
  --danger-red: #ef4444;
  --danger-bg: #fef2f2;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

.page-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* アクセシビリティ用スクリーンリーダー隠し */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ヘッダー */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.logo-icon {
  font-size: 1.6rem;
  color: var(--primary);
  flex-shrink: 0;
}

.logo-title {
  font-size: clamp(0.95rem, 3.6vw, 1.2rem);
  font-weight: 800;
  color: var(--text-main);
  display: block;
  white-space: nowrap;
}

.logo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
  white-space: nowrap;
}

/* パンくずリスト */
.breadcrumb-nav {
  margin-bottom: 18px;
  font-size: 0.82rem;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 6px;
  color: var(--text-muted);
}
.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}
.breadcrumb-separator {
  color: #94a3b8;
}

/* ヒーロー */
.hero-section {
  text-align: center;
  padding: 16px 8px 26px;
}

.hero-section h1 {
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  line-height: 1.35;
  margin-bottom: 12px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero-desc {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

/* カード共通 */
.calc-card, .results-card, .affiliate-section, .seo-faq-section, .basis-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.card-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-share {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-share:hover {
  background: #dbeafe;
  color: var(--primary-hover);
}

.btn-reset {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-reset:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* トースト通知 */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* フォーム */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.form-group label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.input-sync-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.number-input-field {
  width: 90px;
  padding: 6px 8px;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--primary);
  background-color: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.number-input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background-color: #ffffff;
}

.input-unit {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.input-error-msg {
  font-size: 0.75rem;
  color: #dc2626;
  display: none;
  margin-top: 2px;
}

/* スライダー */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #cbd5e1;
  outline: none;
  margin: 6px 0;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
  transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ラジオカード */
.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.radio-card.selected {
  border-color: var(--primary);
  background-color: #eff6ff;
}

.radio-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.radio-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 住民税による勤務先通知リスクの目安バナー */
.risk-banner {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: all 0.3s;
}

.risk-banner.safe {
  background-color: var(--safe-bg);
  border: 1px solid var(--safe-green);
}

.risk-banner.warn {
  background-color: var(--warn-bg);
  border: 1px solid var(--warn-orange);
}

.risk-banner.danger {
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-red);
}

.risk-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.risk-banner.safe .risk-header h3 { color: #047857; }
.risk-banner.warn .risk-header h3 { color: #b45309; }
.risk-banner.danger .risk-header h3 { color: #b91c1c; }

.risk-desc {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
}

.risk-action-box {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* 確定申告バナー */
.declaration-banner {
  background-color: #f1f5f9;
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.dec-status-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dec-sub-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 数値サマリーカード */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.stat-card.highlight-takehome {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #10b981;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
}

.stat-number {
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 800;
  color: var(--text-main);
  margin: 4px 0;
}

.stat-card.highlight-takehome .stat-number {
  color: #047857;
}

.stat-number .unit {
  font-size: 1rem;
  font-weight: 600;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 結果直下の注意事項ボックス（要件2） */
.result-disclaimer-box {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.result-disclaimer-icon {
  font-size: 1.15rem;
  color: #0284c7;
  flex-shrink: 0;
  margin-top: 2px;
}
.result-disclaimer-text {
  font-size: 0.88rem;
  color: #1e293b;
  line-height: 1.65;
}

/* グラフエリア */
.chart-wrapper {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.chart-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-table-alt {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.82rem;
}
.chart-table-alt th, .chart-table-alt td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}
.chart-table-alt th {
  background: #f8fafc;
  font-weight: 700;
}

/* 計算根拠・更新情報アコーディオン（要件3） */
.basis-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}
.basis-summary {
  padding: 16px 20px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  list-style: none;
}
.basis-summary::-webkit-details-marker {
  display: none;
}
.basis-summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
details[open] .basis-summary::after {
  transform: rotate(180deg);
}

.basis-content {
  padding: 22px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.75;
}
.basis-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 18px 0 8px;
  padding-left: 8px;
  border-left: 3px solid var(--primary);
}
.basis-content h4:first-of-type {
  margin-top: 0;
}
.basis-content ul, .basis-content ol {
  margin: 6px 0 14px 20px;
}
.basis-content li {
  margin-bottom: 4px;
}
.basis-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 0.85rem;
}
.basis-content th, .basis-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
}
.basis-content th {
  background: #f8fafc;
  width: 25%;
  font-weight: 700;
}

/* アフィリエイトセクション (要件5) */
.affiliate-section {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  position: relative;
}

.pr-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.aff-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aff-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 4px 0 20px;
  line-height: 1.5;
}

.aff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.aff-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.aff-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.aff-card.featured {
  border-color: #93c5fd;
  background: #fbfdff;
}

.aff-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.aff-brand {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aff-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.aff-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.aff-points {
  list-style: none;
  font-size: 0.78rem;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}

.aff-points i {
  color: #10b981;
  margin-right: 4px;
}

.aff-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}

.aff-btn:hover {
  background-color: var(--primary-hover);
}

.aff-btn.btn-secondary {
  background-color: #0f172a;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.25);
}
.aff-btn.btn-secondary:hover {
  background-color: #1e293b;
}

/* FAQ */
.seo-faq-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.faq-a {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.65;
}

/* フッター */
.site-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.footer-subnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.8rem;
}
.footer-subnav a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-subnav a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.copy { margin-bottom: 6px; }
.disclaimer {
  font-size: 0.75rem;
  margin-top: 6px;
  color: #94a3b8;
  line-height: 1.6;
}

/* レスポンシブ (320px〜640px) */
@media (max-width: 640px) {
  .hero-section h1 { font-size: 1.35rem; }
  .calc-card, .results-card, .affiliate-section, .seo-faq-section, .basis-card { padding: 18px 14px; }
  .radio-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .basis-content th { width: 35%; }
}
@media (max-width: 400px) {
  .page-wrapper { padding: 0 10px 30px; }
  .site-header { padding: 14px 0; }
  .header-inner { gap: 6px; }
  .logo-icon { font-size: 1.4rem; }
  .logo-title { font-size: 1rem; }
}

/* ============================================================
   SNSシェアボタン
============================================================ */
.share-section {
  margin: 0 0 20px;
}
.share-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.82; }
.share-btn-x {
  background: #000;
  color: #fff;
}
.share-btn-copy {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   SEO解説記事セクション
============================================================ */
.seo-article-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.article-block {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.article-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.article-h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.article-lead {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* 比較テーブル */
.article-comparison-table {
  overflow-x: auto;
  margin-bottom: 8px;
}
.article-comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.article-comparison-table th {
  background: #f1f5f9;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  border: 1px solid var(--border);
}
.article-comparison-table td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  vertical-align: middle;
}
.risk-high { color: var(--danger-red); font-weight: 700; }
.risk-low  { color: var(--safe-green); font-weight: 700; }

.article-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.55;
}

/* Calloutボックス */
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  line-height: 1.65;
  margin-bottom: 16px;
}
.callout-warn {
  background: var(--warn-bg);
  border: 1px solid #fde68a;
  color: #92400e;
}
.callout-warn > i { color: var(--warn-orange); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.callout-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.callout-info > i { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

/* アイコンリスト */
.article-icon-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.87rem;
  color: #334155;
  line-height: 1.65;
}
.article-icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.article-icon-list i {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ステップフロー */
.steps-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-num {
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 2px;
}
.step-body {
  font-size: 0.87rem;
  color: #334155;
  line-height: 1.65;
}

/* 経費グリッド */
.expense-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
.expense-box {
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.83rem;
  line-height: 1.6;
}
.expense-ok { background: var(--safe-bg); border: 1px solid #a7f3d0; }
.expense-ng { background: var(--danger-bg); border: 1px solid #fca5a5; }
.expense-box-title {
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.expense-ok .expense-box-title { color: #047857; }
.expense-ng .expense-box-title { color: #b91c1c; }
.expense-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #334155;
}
.expense-box ul li::before {
  content: '・';
  color: #94a3b8;
  margin-right: 2px;
}

/* ============================================================
   アコーディオンFAQ
============================================================ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item-acc {
  border-bottom: 1px solid var(--border);
}
.faq-item-acc:last-child { border-bottom: none; }

.faq-q-acc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  list-style: none;
  background: #fafafa;
  user-select: none;
  transition: background 0.15s;
}
.faq-q-acc::-webkit-details-marker { display: none; }
.faq-q-acc:hover { background: #f1f5f9; }

.faq-q-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}

.faq-q-acc > span:not(.faq-q-icon) {
  flex: 1;
  line-height: 1.5;
}

.faq-chevron {
  color: var(--text-muted);
  font-size: 0.78rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item-acc[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-a-acc {
  padding: 12px 16px 16px 52px;
  font-size: 0.87rem;
  color: #475569;
  line-height: 1.7;
  background: #fff;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .expense-grid { grid-template-columns: 1fr; }
  .faq-a-acc { padding-left: 16px; }
  .seo-article-section { padding: 20px 14px; }
}

