/* ========== Tax Tools v2 — Conversion-optimized landing ========== */
:root {
  --navy: #1e3a5f;
  --navy-light: #2a5082;
  --navy-dark: #122540;
  --accent: #0d9488;
  --accent-hover: #0b7e73;
  --accent-light: #ccfbf1;
  --green: #10b981;
  --green-light: #d1fae5;
  --red: #ef4444;
  --red-light: #fee2e2;
  --orange: #f59e0b;
  --orange-light: #fef3c7;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius: 8px;
  --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, 'Segoe UI', 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: var(--navy);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.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%, var(--navy-light) 100%);
  color: var(--white);
  padding: 2.5rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
  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: white;
  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(--gray-700); 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-400); 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: var(--gray-600); 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; }

/* ===== 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 ===== */
.ad-slot { background: var(--gray-100); border: 1px dashed var(--gray-300); border-radius: var(--radius); min-height: 90px; display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); color: var(--gray-400); margin: 24px 0; }

/* ===== 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; }
}

/* ===== 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; }
}
