/* ========== Tax Tools v3 — Industrial Precision (Dark) ========== */
:root {
  --navy: #0f1219;
  --navy-light: #1c2333;
  --navy-dark: #0a0d14;
  --accent: #5eead4;
  --accent-hover: #2dd4bf;
  --accent-light: rgba(94,234,212,0.1);
  --green: #00e68a;
  --green-light: rgba(0,230,138,0.1);
  --red: #ff4757;
  --red-light: rgba(255,71,87,0.1);
  --orange: #ff9f43;
  --orange-light: rgba(255,159,67,0.1);
  --gray-50: #0f1219;
  --gray-100: #161b26;
  --gray-200: #1c2333;
  --gray-300: #8892a6;
  --gray-400: #6b7589;
  --gray-500: #5a6478;
  --gray-600: #8892a6;
  --gray-700: #c4c9d4;
  --gray-800: #e4e8f1;
  --gray-900: #f0f2f7;
  --white: #e4e8f1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -4px rgba(0,0,0,0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.3), 0 8px 10px -6px rgba(0,0,0,0.2);
  --radius: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  --text-xl: clamp(1.15rem, 1rem + 0.75vw, 1.4rem);
  --text-2xl: clamp(1.4rem, 1.1rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.7rem, 1.3rem + 2vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img, svg { max-width: 100%; height: auto; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.fade-in { animation: fadeInUp 0.6s ease-out both; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

.card-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.card-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.card-animate:nth-child(2) { transition-delay: 0.08s; }
.card-animate:nth-child(3) { transition-delay: 0.16s; }
.card-animate:nth-child(4) { transition-delay: 0.24s; }
.card-animate:nth-child(5) { transition-delay: 0.32s; }

.result-pop { animation: pop 0.3s ease; }

/* ===== Header ===== */
.site-header {
  background: rgba(15,18,25,0.85);
  backdrop-filter: blur(20px);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.site-logo {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--gray-200); text-decoration: none; }
.site-logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.site-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: var(--gray-300);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  padding: 6px 12px;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); text-decoration: none; }

/* ===== Container ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ===== HERO with Calculator ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #141a24 100%);
  color: var(--white);
  padding: 2.5rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("hero.webp") center/cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
}
.hero-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  position: relative;
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--gray-300);
  margin-bottom: 1.5rem;
  position: relative;
}

/* Hero Calculator */
.hero-calc {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  max-width: 520px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
  text-align: left;
}
.calc-inputs {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.slider-group {
  flex: 1;
}
.slider-group label {
  display: block;
  font-size: var(--text-sm);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}
.slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  outline: none;
}
.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.slider-row input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.slider-value {
  font-size: var(--text-lg);
  font-weight: 700;
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

/* Toggle */
.toggle-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.toggle-label {
  font-size: var(--text-xs);
  opacity: 0.8;
}
.toggle-btn {
  width: 52px;
  height: 28px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  position: relative;
  transition: background 0.25s;
  padding: 0;
}
.toggle-btn.active {
  background: var(--accent);
}
.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-100);
  transition: transform 0.25s;
}
.toggle-btn.active .toggle-knob {
  transform: translateX(24px);
}

/* Calculator Result */
.calc-result {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.result-main {
  margin-bottom: 0.75rem;
}
.result-label {
  display: block;
  font-size: var(--text-sm);
  opacity: 0.7;
  margin-bottom: 0.25rem;
}
.result-amount {
  font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #5eead4;
}
.result-sub-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.75rem;
}
.result-sub {
  text-align: center;
}
.result-sub span {
  display: block;
  font-size: var(--text-xs);
  opacity: 0.6;
}
.result-sub strong {
  font-size: var(--text-base);
  font-weight: 700;
}
.result-cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all 0.2s;
}
.result-cta:hover {
  background: var(--accent-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Hero Trust Badges */
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  opacity: 0.7;
  background: rgba(255,255,255,0.06);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
}
.trust-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ===== Tools Section ===== */
.tools-section { padding: 2rem 0 1rem; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 1rem;
}
.tool-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  color: inherit;
}
.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: white;
}
.card-icon.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}
.tool-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

/* Card Preview */
.card-preview {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
}
.preview-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-bottom: 0.15rem;
}
.preview-result {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
}

.badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.badge.accent {
  background: var(--accent);
  color: white;
}

/* ===== Calculator Form (sub-pages) ===== */
.calc-section { padding: 48px 0; }
.calc-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 32px;
}
.calc-card h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-100);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group .hint { font-size: var(--text-xs); color: var(--gray-400); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

input[type="number"], input[type="text"], input[type="date"], input[type="email"], textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 48px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13,148,136,0.15); }
input::placeholder, textarea::placeholder { color: var(--gray-400); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 32px; border: none; border-radius: var(--radius);
  font-size: var(--text-base); font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  min-height: 48px; text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(13,148,136,0.3);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-hover), #0a6d64); box-shadow: 0 4px 12px rgba(13,148,136,0.4); color: var(--white); text-decoration: none; }
.btn-lg { padding: 16px 40px; font-size: var(--text-lg); }
.btn-block { width: 100%; }

/* ===== Results (sub-pages) ===== */
.results-area { display: none; margin-top: 32px; }
.results-area.show { display: block; }
.result-summary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}
.result-summary h3 { font-size: var(--text-sm); font-weight: 500; opacity: 0.8; margin-bottom: 8px; }
.result-summary .amount { font-size: var(--text-3xl); font-weight: 800; }
.result-summary .sub { font-size: var(--text-sm); opacity: 0.7; margin-top: 4px; }

.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.result-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 480px; }
.result-table th, .result-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--gray-100); }
.result-table th { text-align: left; font-weight: 600; color: var(--gray-600); background: var(--gray-50); position: sticky; top: 0; z-index: 1; }
.result-table td:first-child, .result-table th:first-child { text-align: left; }
.result-table tbody tr:nth-child(even) { background: var(--gray-50); }
.result-table tbody tr:hover { background: rgba(13,148,136,0.04); }
.result-table tr:last-child td { border-bottom: none; }
.result-table .total td { font-weight: 700; font-size: var(--text-base); border-top: 2px solid var(--gray-200); color: var(--navy); }
.result-table .highlight td { background: var(--accent-light); color: var(--accent); font-weight: 600; }

.comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-bottom: 24px; }
.comparison-card { background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--radius-xl); padding: 24px; text-align: center; position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.comparison-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.comparison-card.recommended { border-color: var(--accent); background: var(--accent-light); }
.comparison-card.recommended::after { content: 'おすすめ'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--white); font-size: var(--text-xs); font-weight: 700; padding: 4px 16px; border-radius: 999px; }
.comparison-card h4 { font-size: var(--text-sm); color: var(--gray-500); margin-bottom: 8px; }
.comparison-card .tax-amount { font-size: var(--text-2xl); font-weight: 800; color: var(--navy); }
.comparison-card .diff { font-size: var(--text-sm); margin-top: 6px; }
.diff-positive { color: var(--accent); }
.diff-negative { color: var(--red); }

.recommendation { background: var(--gray-50); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin-top: 24px; }
.recommendation h4 { font-size: var(--text-base); font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.recommendation p { font-size: var(--text-sm); color: var(--gray-600); line-height: 1.6; }

.risk-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px; font-size: var(--text-sm); font-weight: 600; min-height: 44px; }
.risk-low { background: var(--green-light); color: #065f46; }
.risk-medium { background: var(--orange-light); color: #92400e; }
.risk-high { background: var(--red-light); color: #991b1b; }

.breakdown-bar { display: flex; height: 32px; border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.breakdown-bar > div { display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 600; color: var(--white); min-width: 2%; transition: width 0.5s ease; }

/* ===== Affiliate ===== */
.affiliate-section {
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
  border: 1px solid #99f6e4;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.affiliate-section h3 { font-size: var(--text-xl); font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.affiliate-section p { font-size: var(--text-sm); color: var(--gray-600); margin-bottom: 20px; }
.affiliate-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.affiliate-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: var(--white); border: 1.5px solid var(--gray-300);
  border-radius: var(--radius); font-size: var(--text-sm); font-weight: 600;
  color: var(--navy); text-decoration: none; transition: all 0.2s; min-height: 48px;
}
.affiliate-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); text-decoration: none; box-shadow: var(--shadow-md); }

/* ===== Related Tools ===== */
.related-tools { margin: 2.5rem 0; }
.related-tools h2 { font-size: var(--text-xl); font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.related-card {
  display: block;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray-800);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--gray-800);
}
.related-card strong { color: var(--accent); font-size: var(--text-sm); }
.related-card p { font-size: var(--text-xs); color: var(--gray-500); margin-top: 4px; }

/* ===== FAQ ===== */
.faq-section { padding: 2.5rem 0 3rem; }
.faq-section h2 { font-size: var(--text-2xl); font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; text-align: center; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.2s; }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 18px 24px; font-weight: 600; font-size: var(--text-base); cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  color: var(--navy); min-height: 56px; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; font-weight: 400; color: var(--gray-500); transition: transform 0.2s; flex-shrink: 0; width: 24px; text-align: center; }
.faq-item[open] summary::after { content: '-'; }
.faq-item .faq-answer { padding: 0 24px 18px; font-size: var(--text-sm); color: #3a4255; line-height: 1.7; }

/* ===== Disclaimer ===== */
.disclaimer { background: var(--orange-light); border: 1px solid #fbbf24; border-radius: var(--radius); padding: 16px 20px; font-size: var(--text-xs); color: #92400e; line-height: 1.6; margin: 2rem 0; }

/* ===== Premium CTA ===== */
.premium-cta {
  background: linear-gradient(135deg, rgba(255,159,67,0.08), rgba(255,159,67,0.02));
  border: 2px solid var(--orange);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  margin: 28px 0;
  text-align: center;
  position: relative;
}
.premium-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), #ff7f3f);
  color: white;
  font-weight: 800;
  font-size: var(--text-xs);
  padding: 4px 18px;
  border-radius: 20px;
  letter-spacing: 2px;
}
.premium-cta h3 {
  color: var(--orange);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 8px 0 12px;
}
.premium-cta p {
  color: var(--gray-600);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 16px;
}
.premium-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  text-align: left;
  max-width: 400px;
  margin: 0 auto 20px;
  font-size: var(--text-sm);
  color: var(--gray-700);
}
.premium-features li::before {
  content: "\2713 ";
  color: var(--orange);
  font-weight: 700;
}
.premium-price {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.premium-price-note {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--gray-400);
  margin-left: 4px;
}
.btn-premium {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), #ff7f3f);
  color: white !important;
  padding: 14px 36px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: var(--text-base);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(255,159,67,0.3);
}
.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,159,67,0.4);
}
.premium-secure {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: 12px;
}
@media (max-width: 480px) {
  .premium-features { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: var(--gray-400); padding: 48px 0 32px; font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand h4 { color: var(--white); font-size: var(--text-lg); margin-bottom: 8px; }
.footer-brand p { font-size: var(--text-sm); line-height: 1.6; }
.footer-links h5 { color: var(--white); font-size: var(--text-sm); margin-bottom: 12px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--gray-400); font-size: var(--text-sm); min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: var(--text-xs); color: var(--gray-500); }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 14px 0; font-size: var(--text-sm); color: var(--gray-400); }
.breadcrumb a { color: var(--gray-500); min-height: 44px; display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; color: var(--gray-300); }

/* ===== Ads ===== */

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .hero { padding: 2rem 0 1.5rem; }
  .hero-title { font-size: var(--text-2xl); }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .calc-card { padding: 24px; }
  .result-summary .amount { font-size: var(--text-2xl); }
  .site-nav { display: none; }
  .affiliate-links { flex-direction: column; align-items: stretch; }
  .affiliate-btn { justify-content: center; }
  .container { padding: 0 20px; }
  .calc-inputs { flex-direction: column; gap: 1rem; align-items: stretch; }
  .toggle-group { flex-direction: row; gap: 0.75rem; justify-content: flex-start; }
  .hero-calc { padding: 1.25rem; }
  .result-sub-row { gap: 1rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 1.5rem 0 1.25rem; }
  .hero-calc { padding: 1rem; }
  .result-amount { font-size: 1.6rem !important; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { flex-direction: row; align-items: center; gap: 1rem; }
  .card-icon { margin-bottom: 0; flex-shrink: 0; }
  .tool-card h3 { margin-bottom: 0.25rem; }
  .card-preview { margin-bottom: 0.5rem; }
  .calc-card { padding: 20px 16px; }
  .result-table th, .result-table td { padding: 10px 12px; }
  .affiliate-section { padding: 1.5rem 1rem; }
  .faq-item summary { padding: 16px; }
  .faq-item .faq-answer { padding: 0 16px 16px; }
  .result-summary { padding: 20px; }
  .comparison-card { padding: 20px; }
  .hero-trust { flex-direction: column; gap: 0.5rem; align-items: center; }
}
@media (max-width: 320px) {
  .container { padding: 0 12px; }
  .hero { padding: 1.25rem 0 1rem; }
  .calc-card { padding: 16px 12px; }
  .tool-card { padding: 16px; }
  .site-logo { font-size: 1rem; }
  .site-logo svg { width: 22px; height: 22px; }
}

/* ===== 2026 Tax Reform Badge ===== */
.reform-badge-hero {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
  animation: fadeInUp 0.6s ease-out both;
}

/* ===== Reform Summary Section ===== */
.reform-summary {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  margin: 2rem 0;
}
.reform-summary h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  text-align: center;
}
.reform-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1.25rem;
}
.reform-point {
  text-align: center;
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}
.reform-point-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.reform-point h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.reform-point p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Reform Reminder ===== */
.reform-reminder {
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
  border: 1px solid #fbbf24;
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.reform-reminder h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: #92400e;
  margin-bottom: 1rem;
}
.reminder-dates {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.reminder-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reminder-label {
  font-size: var(--text-xs);
  color: #92400e;
  opacity: 0.8;
}
.reminder-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #92400e;
}

/* ===== Print ===== */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header, .site-footer, .ad-slot, .affiliate-section, .breadcrumb, .btn, .site-nav, .hero-trust { display: none !important; }
  .hero { background: none !important; color: #000; padding: 20px 0 10px; }
  .hero h1, .hero-title { color: #000; font-size: 18pt; }
  .hero p, .hero-sub { color: #333; }
  .hero-calc { background: #f0f0f0; border: 1px solid #ccc; color: #000; }
  .result-amount { color: #000 !important; }
  .calc-card, .result-summary, .comparison-card, .recommendation { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .result-summary { background: #f0f0f0 !important; color: #000; }
  a { color: #000; }
  .results-area.show { display: block; }
}

/* =================================================================
   Home 2026 — Editorial Ledger
   A light, precise visual system scoped to the top page.
   ================================================================= */
.home-page {
  --navy: #173a56;
  --navy-light: #285875;
  --navy-dark: #102f49;
  --accent: #0868bd;
  --accent-hover: #07579d;
  --accent-light: #e4f3fa;
  --green: #15997f;
  --green-light: #e4f7f1;
  --gray-50: #f4f9fa;
  --gray-100: #edf5f6;
  --gray-200: #d5e5e8;
  --gray-300: #b6ccd2;
  --gray-400: #748f99;
  --gray-500: #5f7882;
  --gray-600: #49636e;
  --gray-700: #304d5a;
  --gray-800: #1a3b4a;
  --gray-900: #102f40;
  --white: #ffffff;
  --home-paper: #f7fbfa;
  --home-mint: #b9eadf;
  --home-sky: #d7eef7;
  --home-cobalt: #0868bd;
  --home-coral: #ef705b;
  --home-rule: rgba(23, 58, 86, 0.14);
  --shadow-sm: 0 3px 14px rgba(34, 78, 91, 0.06);
  --shadow: 0 12px 30px rgba(34, 78, 91, 0.08);
  --shadow-md: 0 18px 44px rgba(34, 78, 91, 0.1);
  --shadow-lg: 0 26px 64px rgba(34, 78, 91, 0.12);
  --shadow-xl: 0 32px 80px rgba(34, 78, 91, 0.15);
  font-family: "Noto Sans JP", sans-serif;
  color: var(--gray-800);
  background:
    linear-gradient(90deg, transparent calc(50% - 580px), rgba(8, 104, 189, 0.08) calc(50% - 580px), rgba(8, 104, 189, 0.08) calc(50% - 579px), transparent calc(50% - 579px)),
    var(--home-paper);
}

.home-page::selection {
  color: #0b3850;
  background: var(--home-mint);
}

.home-page .container {
  max-width: 1180px;
  padding-inline: clamp(20px, 4vw, 44px);
}

.home-page a:focus-visible,
.home-page button:focus-visible,
.home-page input:focus-visible,
.home-page summary:focus-visible {
  outline: 3px solid rgba(8, 104, 189, 0.34);
  outline-offset: 4px;
}

/* Header */
.home-page .site-header {
  color: var(--navy);
  background: rgba(247, 251, 250, 0.88);
  border-bottom: 1px solid var(--home-rule);
  backdrop-filter: blur(18px) saturate(140%);
}

.home-page .site-header .container {
  min-height: 72px;
  padding-block: 10px;
}

.home-page .site-logo {
  gap: 11px;
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-size: 1rem;
  line-height: 1;
}

.home-page .site-logo:hover {
  color: var(--home-cobalt);
}

.home-page .site-logo svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  color: #fff;
  background: var(--home-cobalt);
  border-radius: 50%;
}

.home-page .site-logo span {
  display: grid;
  gap: 5px;
}

.home-page .site-logo small {
  color: var(--gray-500);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.home-page .site-nav {
  gap: 2px;
}

.home-page .site-nav a {
  position: relative;
  color: var(--gray-600);
  padding-inline: 10px;
  border-radius: 0;
  font-size: 0.77rem;
}

.home-page .site-nav a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 7px;
  left: 10px;
  height: 1px;
  background: var(--home-cobalt);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-page .site-nav a:hover {
  color: var(--navy);
  background: transparent;
}

.home-page .site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.home-page .site-nav .nav-featured {
  color: var(--home-cobalt);
  font-weight: 700;
}

/* Hero */
.home-page .hero {
  min-height: 700px;
  padding: clamp(70px, 8vw, 116px) 0 clamp(76px, 9vw, 124px);
  color: var(--navy);
  text-align: left;
  background:
    radial-gradient(circle at 86% 18%, rgba(185, 234, 223, 0.72), transparent 27%),
    linear-gradient(120deg, #f7fbfa 0 61%, #eaf6f7 61%);
  isolation: isolate;
}

.home-page .hero::before {
  z-index: -2;
  opacity: 1;
  background:
    linear-gradient(rgba(8, 104, 189, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 104, 189, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent 4%, #000 46%, #000 100%);
}

.home-page .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: clamp(-170px, -8vw, -70px);
  width: clamp(360px, 44vw, 650px);
  aspect-ratio: 1;
  border: clamp(60px, 7vw, 108px) solid rgba(8, 104, 189, 0.08);
  border-radius: 50%;
  transform: translateY(-49%);
  pointer-events: none;
}

.home-page .hero-index {
  position: absolute;
  top: 22px;
  right: clamp(20px, 4vw, 64px);
  color: rgba(23, 58, 86, 0.36);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.home-page .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.82fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.home-page .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.home-page .reform-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 30px;
  padding: 0;
  color: var(--home-cobalt);
  background: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-page .reform-badge-hero span {
  width: 9px;
  height: 9px;
  background: var(--home-coral);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(239, 112, 91, 0.12);
}

.home-page .hero-kicker,
.home-page .section-kicker {
  color: var(--home-cobalt);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.home-page .hero-kicker {
  margin-bottom: 14px;
}

.home-page .hero-title {
  max-width: 660px;
  margin-bottom: 26px;
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(3rem, 5.2vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.22;
}

.home-page .hero-title em {
  position: relative;
  color: var(--home-cobalt);
  font-style: normal;
}

.home-page .hero-title em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.13em;
  left: 0.08em;
  height: 0.1em;
  min-height: 6px;
  background: var(--home-mint);
  clip-path: polygon(0 35%, 100% 0, 97% 100%, 2% 76%);
  z-index: -1;
}

.home-page .hero-sub {
  max-width: 570px;
  margin-bottom: 29px;
  color: var(--gray-600);
  font-size: clamp(0.94rem, 1.4vw, 1.05rem);
  line-height: 1.95;
}

.home-page .hero-trust {
  justify-content: flex-start;
  gap: 10px 20px;
  margin-top: 0;
}

.home-page .trust-badge {
  min-height: auto;
  padding: 0;
  color: var(--gray-600);
  background: transparent;
  border-radius: 0;
  font-size: 0.72rem;
  opacity: 1;
}

.home-page .trust-badge svg {
  width: 15px;
  height: 15px;
  color: var(--home-cobalt);
}

/* Hero calculator */
.home-page .hero-calc {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin: 0;
  padding: clamp(24px, 3vw, 38px);
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 58, 86, 0.16);
  border-radius: 4px 38px 4px 38px;
  box-shadow: 18px 22px 0 rgba(8, 104, 189, 0.08), 0 28px 70px rgba(31, 78, 92, 0.12);
  backdrop-filter: blur(14px);
}

.home-page .hero-calc::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 7px;
  height: 7px;
  background: var(--home-coral);
  border-radius: 50%;
}

.home-page .calc-heading {
  display: grid;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--home-rule);
}

.home-page .calc-heading span {
  margin-bottom: 5px;
  color: var(--home-cobalt);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.home-page .calc-heading strong {
  margin-bottom: 5px;
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.home-page .calc-heading small {
  color: var(--gray-500);
  font-size: 0.7rem;
}

.home-page .slider-group label {
  color: var(--gray-600);
  opacity: 1;
}

.home-page .slider-row input[type="range"] {
  height: 3px;
  background: linear-gradient(90deg, var(--home-cobalt), var(--home-mint));
}

.home-page .slider-row input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border: 5px solid var(--home-cobalt);
  box-shadow: 0 4px 14px rgba(8, 104, 189, 0.22);
}

.home-page .slider-row input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  background: #fff;
  border: 5px solid var(--home-cobalt);
  box-shadow: 0 4px 14px rgba(8, 104, 189, 0.22);
}

.home-page .slider-value {
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
}

.home-page .toggle-label {
  color: var(--gray-600);
  opacity: 1;
}

.home-page .toggle-btn {
  background: var(--gray-200);
}

.home-page .toggle-btn.active {
  background: var(--home-cobalt);
}

.home-page .toggle-knob {
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 58, 86, 0.2);
}

.home-page .calc-result {
  padding: 23px;
  background: linear-gradient(135deg, #eef8f7, #e8f4fa);
  border: 1px solid rgba(8, 104, 189, 0.09);
  border-radius: 2px 20px 2px 20px;
}

.home-page .result-label,
.home-page .result-sub span {
  color: var(--gray-600);
  opacity: 1;
}

.home-page .result-amount {
  color: var(--home-cobalt);
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.home-page .result-sub strong {
  color: var(--navy);
}

.home-page .result-cta,
.home-page .support-mail {
  border-radius: 2px;
  background: var(--home-cobalt);
  color: #fff;
  box-shadow: none;
}

.home-page .result-cta {
  display: flex;
  justify-content: center;
  margin-top: 5px;
  padding: 12px 18px;
  transition: background 0.2s, transform 0.2s;
}

.home-page .result-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* Section headings */
.home-page .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  column-gap: clamp(38px, 8vw, 120px);
  align-items: end;
  margin-bottom: 46px;
}

.home-page .section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}

.home-page .section-heading h2,
.home-page .faq-section h2,
.home-page .related-tools h2,
.home-page .support-copy h2 {
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.home-page .section-heading h2 {
  font-size: clamp(2.35rem, 4.5vw, 4.2rem);
  line-height: 1.24;
}

.home-page .section-heading > p:last-child {
  padding: 0 0 8px 28px;
  color: var(--gray-600);
  border-left: 1px solid var(--home-rule);
  font-size: 0.92rem;
  line-height: 1.9;
}

/* Tool bento */
.home-page main {
  position: relative;
  overflow: hidden;
}

.home-page .tools-section {
  padding: clamp(82px, 10vw, 136px) 0 clamp(70px, 8vw, 112px);
}

.home-page .tools-grid {
  counter-reset: tool-card;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-page .tool-card {
  counter-increment: tool-card;
  position: relative;
  flex-direction: column;
  align-items: stretch;
  min-height: 250px;
  padding: 28px;
  overflow: hidden;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--home-rule);
  border-radius: 2px;
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.35s;
}

.home-page .tool-card::before {
  content: counter(tool-card, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--gray-400);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-page .tool-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(8, 104, 189, 0.13);
  border-radius: 50%;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.home-page .tool-card:hover {
  z-index: 1;
  color: inherit;
  border-color: rgba(8, 104, 189, 0.42);
  box-shadow: 0 22px 50px rgba(34, 78, 91, 0.11);
  transform: translateY(-7px);
}

.home-page .tool-card:hover::after {
  background: rgba(185, 234, 223, 0.32);
  transform: scale(1.24);
}

.home-page .tool-card-featured {
  grid-column: span 2;
  min-height: 286px;
  padding-right: 35%;
  background:
    radial-gradient(circle at 88% 64%, rgba(185, 234, 223, 0.9) 0 15%, transparent 15.3%),
    radial-gradient(circle at 88% 64%, transparent 0 25%, rgba(8, 104, 189, 0.11) 25.3% 25.8%, transparent 26%),
    linear-gradient(135deg, #e9f7f4, #edf6fb);
  border-color: rgba(8, 104, 189, 0.24);
}

.home-page .card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  color: var(--home-cobalt);
  background: var(--accent-light);
  border-radius: 50%;
}

.home-page .card-icon.highlight {
  color: #fff;
  background: var(--home-cobalt);
}

.home-page .card-icon svg {
  width: 23px;
  height: 23px;
}

.home-page .tool-card h3 {
  max-width: 250px;
  margin-bottom: 17px;
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.65;
}

.home-page .card-preview {
  margin-top: auto;
  margin-bottom: 15px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.home-page .preview-label {
  color: var(--gray-500);
  font-size: 0.64rem;
}

.home-page .preview-result {
  color: var(--gray-700);
  font-size: 0.76rem;
  line-height: 1.55;
}

.home-page .badge {
  position: relative;
  z-index: 1;
  color: var(--home-cobalt);
  background: transparent;
  border: 1px solid rgba(8, 104, 189, 0.22);
  border-radius: 99px;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
}

.home-page .badge.accent {
  color: #fff;
  background: var(--home-cobalt);
  border-color: var(--home-cobalt);
}

/* Recommendation / affiliate block */
.home-page .affiliate-section {
  position: relative;
  margin: 0 0 clamp(80px, 10vw, 130px);
  padding: clamp(40px, 6vw, 68px);
  overflow: hidden;
  text-align: left;
  background: var(--navy);
  border: 0;
  border-radius: 2px 58px 2px 2px;
}

.home-page .affiliate-section::after {
  content: "会計";
  position: absolute;
  right: -0.05em;
  bottom: -0.25em;
  color: rgba(255, 255, 255, 0.05);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(8rem, 18vw, 15rem);
  line-height: 1;
}

.home-page .affiliate-section .section-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 11px;
  color: var(--home-mint);
}

.home-page .affiliate-section h3 {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  font-weight: 600;
}

.home-page .affiliate-section p {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: #d1e1e7;
  line-height: 1.9;
}

.home-page .affiliate-links {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
}

.home-page .affiliate-btn {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.home-page .affiliate-btn:hover {
  color: var(--navy);
  background: var(--home-mint);
  border-color: var(--home-mint);
  box-shadow: none;
}

/* FAQ */
.home-page .faq-section {
  position: relative;
  padding: clamp(80px, 10vw, 132px) 0;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(23, 58, 86, 0.08) 50%, transparent 50.1%),
    #eaf4f5;
}

.home-page .faq-section::before {
  content: "?";
  position: absolute;
  top: 20px;
  left: max(20px, calc(50% - 580px));
  color: rgba(8, 104, 189, 0.07);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(9rem, 21vw, 19rem);
  line-height: 1;
}

.home-page .faq-section .section-kicker {
  position: relative;
  margin-bottom: 10px;
  text-align: center;
}

.home-page .faq-section h2 {
  position: relative;
  margin-bottom: 40px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.home-page .faq-item {
  max-width: 860px;
  margin: 0 auto 10px;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(23, 58, 86, 0.12);
  border-radius: 2px;
  box-shadow: none;
}

.home-page .faq-item:hover {
  box-shadow: none;
  border-color: rgba(8, 104, 189, 0.36);
}

.home-page .faq-item summary {
  padding: 22px 26px;
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
}

.home-page .faq-item summary::after {
  content: "＋";
  color: var(--home-cobalt);
}

.home-page .faq-item[open] summary::after {
  content: "－";
}

.home-page .faq-item .faq-answer {
  padding: 0 26px 24px;
  color: var(--gray-600);
  line-height: 1.9;
}

/* Related tools */
.home-page .related-tools {
  margin: clamp(80px, 9vw, 120px) 0 52px;
}

.home-page .related-tools .section-kicker {
  margin-bottom: 9px;
}

.home-page .related-tools h2 {
  margin-bottom: 30px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.home-page .related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--home-rule);
  border: 1px solid var(--home-rule);
}

.home-page .related-card {
  min-height: 154px;
  padding: 24px;
  background: var(--home-paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-page .related-card:hover {
  color: inherit;
  background: #fff;
  box-shadow: none;
  transform: none;
}

.home-page .related-card strong {
  display: block;
  margin-bottom: 16px;
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-size: 0.9rem;
  line-height: 1.6;
}

.home-page .related-card p {
  color: var(--gray-500);
  line-height: 1.65;
}

.home-page .disclaimer {
  margin: 0 0 clamp(72px, 8vw, 104px);
  padding: 18px 20px;
  color: #665739;
  background: #fff8e9;
  border-color: #e7d7ad;
  border-radius: 2px;
}

/* Support */
.home-page .support-section {
  position: relative;
  padding: clamp(80px, 10vw, 130px) 0;
  background:
    radial-gradient(circle at 0 100%, rgba(185, 234, 223, 0.5), transparent 31%),
    #fff;
  border-top: 1px solid var(--home-rule);
}

.home-page .support-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(390px, 1fr);
  gap: clamp(50px, 9vw, 130px);
  align-items: start;
}

.home-page .support-copy .section-kicker {
  margin-bottom: 12px;
}

.home-page .support-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.35;
}

.home-page .support-copy > p:not(.section-kicker) {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.95;
}

.home-page .support-mail {
  display: inline-flex;
  margin-top: 28px;
  padding: 13px 23px;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-page .support-mail:hover {
  color: #fff;
  background: var(--accent-hover);
}

.home-page .support-links {
  border-top: 1px solid var(--home-rule);
}

.home-page .support-links a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  color: var(--navy);
  border-bottom: 1px solid var(--home-rule);
}

.home-page .support-links a:hover {
  color: var(--home-cobalt);
}

.home-page .support-links span {
  color: var(--gray-400);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.home-page .support-links strong {
  font-family: "Noto Serif JP", serif;
  font-size: 0.93rem;
  font-weight: 600;
}

.home-page .support-links small {
  color: var(--gray-500);
  font-size: 0.66rem;
}

.home-page .chatbridge-teaser {
  padding: 58px 0;
  color: var(--navy);
  background: var(--home-mint);
}

.home-page .chatbridge-teaser .container {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr auto;
  gap: 24px;
  align-items: center;
}

.home-page .chatbridge-teaser .section-kicker {
  color: var(--navy);
}

.home-page .chatbridge-teaser strong {
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
}

.home-page .chatbridge-teaser p:not(.section-kicker) {
  color: var(--gray-700);
  font-size: 0.75rem;
}

.home-page .chatbridge-teaser a {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.home-page .chatbridge-teaser a span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s;
}

.home-page .chatbridge-teaser a:hover span {
  transform: translate(3px, -3px);
}

/* Footer — light, not black */
.home-page .site-footer {
  padding: clamp(60px, 8vw, 96px) 0 34px;
  color: var(--gray-600);
  background: #dcebed;
  border-top: 1px solid rgba(23, 58, 86, 0.12);
}

.home-page .footer-grid {
  margin-bottom: 44px;
}

.home-page .footer-brand h4,
.home-page .footer-links h5 {
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
}

.home-page .footer-links a,
.home-page .mildsolt-crosslinks a {
  color: var(--gray-600);
}

.home-page .footer-links a:hover,
.home-page .mildsolt-crosslinks a:hover {
  color: var(--home-cobalt);
}

.home-page .footer-privacy {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 58, 86, 0.14);
  text-align: center;
}

.home-page .footer-privacy a {
  color: var(--gray-600);
  font-size: 0.72rem;
}

.home-page .footer-bottom {
  color: var(--gray-500);
  border-top-color: rgba(23, 58, 86, 0.14);
}

.home-page .mildsolt-crosslinks {
  margin-top: 24px;
  padding: 20px 0;
  border-top-color: rgba(23, 58, 86, 0.14) !important;
}

.home-page .mildsolt-crosslinks-title {
  margin: 0 0 10px;
  color: var(--gray-600);
  font-size: 0.72rem;
  font-weight: 600;
}

.home-page .mildsolt-crosslinks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

/* Responsive */
@media (max-width: 960px) {
  .home-page .hero {
    min-height: auto;
  }

  .home-page .hero-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .home-page .hero-copy {
    max-width: 720px;
  }

  .home-page .hero-calc {
    max-width: 680px;
  }

  .home-page .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .support-grid {
    grid-template-columns: 1fr;
  }

  .home-page .chatbridge-teaser .container {
    grid-template-columns: 1fr 1.7fr auto;
  }

  .home-page .chatbridge-teaser .section-kicker {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .home-page .site-header .container {
    min-height: 64px;
  }

  .home-page .hero {
    padding: 60px 0 80px;
    background:
      radial-gradient(circle at 100% 8%, rgba(185, 234, 223, 0.75), transparent 29%),
      #f7fbfa;
  }

  .home-page .hero::before {
    background-size: 38px 38px;
    opacity: 0.7;
  }

  .home-page .hero::after {
    top: 24%;
    right: -170px;
    width: 380px;
    border-width: 64px;
  }

  .home-page .hero-index {
    display: none;
  }

  .home-page .hero-title {
    font-size: clamp(2.7rem, 12.7vw, 4.4rem);
    line-height: 1.28;
  }

  .home-page .hero-sub {
    font-size: 0.9rem;
  }

  .home-page .hero-calc {
    border-radius: 3px 30px 3px 30px;
    box-shadow: 10px 13px 0 rgba(8, 104, 189, 0.08), 0 22px 55px rgba(31, 78, 92, 0.11);
  }

  .home-page .section-heading {
    grid-template-columns: 1fr;
  }

  .home-page .section-heading .section-kicker {
    grid-column: auto;
  }

  .home-page .section-heading > p:last-child {
    margin-top: 24px;
    padding: 0;
    border: 0;
  }

  .home-page .tools-grid {
    gap: 10px;
  }

  .home-page .tool-card,
  .home-page .tool-card-featured {
    grid-column: auto;
    min-height: 245px;
    padding: 23px;
  }

  .home-page .tool-card-featured {
    padding-right: 23px;
  }

  .home-page .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-page .chatbridge-teaser .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-page .container {
    padding-inline: 18px;
  }

  .home-page .reform-badge-hero {
    margin-bottom: 24px;
  }

  .home-page .hero-title {
    letter-spacing: -0.06em;
  }

  .home-page .hero-trust {
    align-items: flex-start;
  }

  .home-page .hero-calc {
    padding: 23px 19px;
  }

  .home-page .calc-inputs {
    margin-bottom: 18px;
  }

  .home-page .result-sub-row {
    gap: 8px;
    justify-content: space-between;
  }

  .home-page .result-sub {
    flex: 1;
  }

  .home-page .tools-grid {
    grid-template-columns: 1fr;
  }

  .home-page .tool-card,
  .home-page .tool-card-featured {
    min-height: 234px;
    align-items: stretch;
  }

  .home-page .card-icon {
    margin-bottom: 22px;
  }

  .home-page .tool-card h3 {
    max-width: calc(100% - 40px);
    margin-bottom: 17px;
  }

  .home-page .card-preview {
    margin-top: auto;
  }

  .home-page .affiliate-section {
    margin-inline: -2px;
    padding: 38px 23px;
    border-radius: 2px 34px 2px 2px;
  }

  .home-page .affiliate-links {
    align-items: stretch;
  }

  .home-page .faq-item summary {
    padding: 19px 18px;
    font-size: 0.88rem;
  }

  .home-page .faq-item .faq-answer {
    padding: 0 18px 20px;
  }

  .home-page .related-grid {
    grid-template-columns: 1fr;
  }

  .home-page .related-card {
    min-height: 125px;
  }

  .home-page .support-grid {
    gap: 48px;
  }

  .home-page .support-links a {
    grid-template-columns: 30px 1fr;
  }

  .home-page .support-links small {
    grid-column: 2;
  }
}

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

  .home-page .card-animate {
    opacity: 1;
    transform: none;
  }
}
