/* ===================================
   吉野貴士税理士事務所 相続専門サイト - Stylesheet
   =================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #1a5632;
  --color-primary-light: #2a7a4a;
  --color-primary-dark: #0e3a20;
  --color-accent: #c8a45c;
  --color-accent-light: #dfc07a;
  --color-bg: #fafaf7;
  --color-bg-alt: #f0efe8;
  --color-text: #2d2d2d;
  --color-text-light: #5a5a5a;
  --color-text-muted: #8a8a8a;
  --color-white: #ffffff;
  --color-border: #ddd;
  --color-border-light: #eee;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s, opacity 0.3s;
}

a:hover {
  color: var(--color-primary-light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only {
  display: none;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 0;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav-external {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  color: var(--color-accent) !important;
  font-weight: 500 !important;
  border: 1px solid var(--color-accent);
  padding: 6px 16px !important;
  border-radius: var(--radius-sm);
  font-size: 13px !important;
  transition: all 0.3s !important;
}

.nav-external:hover {
  background: var(--color-accent) !important;
  color: var(--color-primary-dark) !important;
}

.nav-external::after {
  display: none !important;
}

.nav-cta {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-sm);
  font-weight: 500 !important;
  transition: background 0.3s !important;
}

.nav-cta:hover {
  background: var(--color-primary-light) !important;
}

.nav-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 18px 40px;
  font-size: 17px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a3c2a 0%, #2a5a3a 40%, #1a5632 100%);
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 164, 92, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="p" patternUnits="userSpaceOnUse" width="40" height="40"><path d="M0 20h40M20 0v40" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect fill="url(%23p)" width="100" height="100"/></svg>');
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  text-align: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.6;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.hero-title .accent {
  color: var(--color-accent-light);
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.9;
}

.hero-free-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 15px;
  font-weight: 700;
  padding: 8px 28px;
  border-radius: 30px;
  margin-bottom: 28px;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 12px rgba(200, 164, 92, 0.3);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 700;
}

.hero-actions .btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
}

.hero-actions .btn-outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* --- Section Common --- */
section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.section-title .accent {
  color: var(--color-accent);
}

.section-lead {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 48px;
  font-size: 15px;
}

/* --- Worries --- */
.worries {
  background: var(--color-white);
}

.worries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.worry-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--color-border-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.worry-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--color-primary);
}

.worry-icon svg {
  width: 100%;
  height: 100%;
}

.worry-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
}

.worry-card strong {
  color: var(--color-text);
}

.worries-lead {
  text-align: center;
  margin-top: 40px;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-primary);
}

/* --- Flow (相続の流れ) --- */
.flow {
  background: var(--color-bg);
}

.flow-timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.flow-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 19px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
}

.flow-item {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
}

.flow-item:last-child {
  padding-bottom: 0;
}

.flow-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  position: relative;
  left: -40px;
  margin-right: -40px;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--color-bg);
}

.flow-icon svg {
  width: 20px;
  height: 20px;
}

.flow-content {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  flex-grow: 1;
  transition: box-shadow 0.3s;
}

.flow-content:hover {
  box-shadow: var(--shadow-md);
}

.flow-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.flow-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.flow-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.flow-cta {
  text-align: center;
  margin-top: 48px;
  padding: 36px 28px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.flow-cta p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.flow-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .flow-timeline {
    padding-left: 32px;
  }

  .flow-timeline::before {
    left: 15px;
  }

  .flow-icon {
    width: 32px;
    height: 32px;
    left: -32px;
    margin-right: -32px;
    box-shadow: 0 0 0 3px var(--color-bg);
  }

  .flow-icon svg {
    width: 16px;
    height: 16px;
  }

  .flow-content {
    padding: 20px;
  }

  .flow-title {
    font-size: 15px;
  }

  .flow-text {
    font-size: 13px;
  }

  .flow-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .flow-cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* --- Reasons --- */
.reasons {
  background: var(--color-bg);
}

.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}

.reason-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: var(--color-white);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: box-shadow 0.3s;
}

.reason-card:hover {
  box-shadow: var(--shadow-md);
}

.reason-number {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  opacity: 0.7;
}

.reason-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.reason-content p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.9;
}

.reason-content strong {
  color: var(--color-primary);
}

/* --- Service / Plans --- */
.service {
  background: var(--color-white);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.plan-card--featured {
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(26, 86, 50, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.plan-card--featured .plan-badge {
  background: var(--color-primary);
  color: var(--color-white);
}

.plan-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.plan-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.plan-price {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.plan-price span {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 14px;
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
  color: var(--color-text-light);
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 7px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}

/* --- Profile --- */
.profile {
  background: var(--color-bg);
}

.profile-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.profile-photo img {
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-md);
}

.profile-label {
  font-size: 12px;
  color: var(--color-primary);
  background: rgba(26, 86, 50, 0.08);
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.profile-name h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: 8px;
  margin-bottom: 20px;
}

.profile-message {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent);
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-detail-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.profile-detail-row:last-child {
  border-bottom: none;
}

.profile-detail-row dt {
  flex-shrink: 0;
  width: 120px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.profile-detail-row dd {
  font-size: 14px;
  color: var(--color-text);
}

/* --- Pricing --- */
.pricing {
  background: var(--color-bg);
}

.pricing-block {
  max-width: 800px;
  margin: 0 auto 40px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.pricing-block:hover {
  box-shadow: var(--shadow-md);
}

.pricing-block-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.pricing-block-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(26, 86, 50, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.pricing-block-badge--green {
  background: rgba(46, 204, 113, 0.1);
  color: #1a6032;
}

.pricing-block-badge--accent {
  background: rgba(200, 164, 92, 0.12);
  color: #8a6a20;
}

.pricing-block-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.pricing-block-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 6px;
}

.pricing-table-wrapper {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pricing-table thead {
  background: var(--color-bg);
}

.pricing-table th {
  padding: 12px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border-light);
  white-space: nowrap;
}

.pricing-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
  vertical-align: middle;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: rgba(26, 86, 50, 0.02);
}

.price-cell {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 15px;
  white-space: nowrap;
}

.pricing-note {
  padding: 14px 28px;
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
}

.pricing-free-note {
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: center;
}

.pricing-free-note p {
  display: inline-block;
  font-size: 15px;
  color: var(--color-primary-dark);
  background: rgba(26, 86, 50, 0.06);
  border: 1px solid rgba(26, 86, 50, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
}

.pricing-free-note strong {
  color: var(--color-primary);
}

.pricing-payment {
  max-width: 600px;
  margin: 32px auto 0;
  padding: 24px 28px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.pricing-payment h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.payment-method {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.payment-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-sm);
}

.payment-info strong {
  font-size: 14px;
  color: var(--color-text);
  display: block;
  margin-bottom: 2px;
}

.payment-info p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.pricing-cta {
  text-align: center;
  margin-top: 16px;
}

/* --- Map --- */
.map-section {
  background: var(--color-white);
  padding-bottom: 0;
}

.map-wrapper {
  margin-top: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-wrapper iframe {
  display: block;
}

/* --- FAQ --- */
.faq {
  background: var(--color-bg);
}

.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

.faq-question::before {
  content: 'Q';
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
}

.faq-question::after {
  content: '';
  margin-left: auto;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-answer {
  padding: 0 0 20px 48px;
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.9;
}

/* --- Contact --- */
.contact {
  background: var(--color-bg-alt);
}

.contact-free-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 24px;
  padding: 14px 24px;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--color-text);
}

.contact-free-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.contact-free-icon svg {
  width: 100%;
  height: 100%;
}

.contact-free-banner strong {
  color: var(--color-primary);
  font-size: 18px;
}

.contact-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.9;
}

.contact-lead strong {
  color: var(--color-primary);
}

.contact-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
}

.required {
  font-size: 11px;
  color: var(--color-white);
  background: #c0392b;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  padding: 10px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, background 0.3s;
}

.radio-label:hover {
  border-color: var(--color-primary);
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.radio-label input[type="radio"]:checked + span {
  color: var(--color-primary);
  font-weight: 500;
}

.form-privacy {
  margin-bottom: 24px;
  padding: 16px 18px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.form-privacy p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Privacy checkbox */
.privacy-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text);
}

.privacy-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.privacy-checkbox-custom {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  position: relative;
  transition: all 0.2s;
}

.privacy-checkbox-label input[type="checkbox"]:checked + .privacy-checkbox-custom {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.privacy-checkbox-label input[type="checkbox"]:checked + .privacy-checkbox-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--color-white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.privacy-checkbox-label input[type="checkbox"]:focus-visible + .privacy-checkbox-custom {
  box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.15);
}

.privacy-checkbox-text {
  line-height: 1.5;
}

.privacy-checkbox-text a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}

.privacy-checkbox-text a:hover {
  color: var(--color-primary-light);
}

.privacy-checkbox-text .required {
  vertical-align: middle;
}

.form-privacy--error {
  background: rgba(192, 57, 43, 0.06);
  border: 1px solid rgba(192, 57, 43, 0.3);
}

.form-privacy--error .privacy-checkbox-custom {
  border-color: #c0392b;
}

/* --- Privacy Policy Page --- */
.privacy-page {
  margin-top: var(--header-height);
  padding: 60px 0 80px;
  min-height: calc(100vh - var(--header-height));
}

.privacy-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.03em;
}

.privacy-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 48px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.privacy-intro {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-light);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.privacy-section {
  margin-bottom: 32px;
}

.privacy-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--color-primary);
}

.privacy-section p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-light);
}

.privacy-section ul {
  list-style: none;
  margin-top: 10px;
  padding-left: 0;
}

.privacy-section li {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
  padding: 4px 0 4px 20px;
  position: relative;
}

.privacy-section li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.4;
}

.privacy-section a {
  color: var(--color-primary);
  text-decoration: underline;
}

.privacy-contact {
  margin-top: 16px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.privacy-contact-row {
  display: flex;
  padding: 6px 0;
}

.privacy-contact-row dt {
  flex-shrink: 0;
  width: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.privacy-contact-row dd {
  font-size: 14px;
  color: var(--color-text);
}

.privacy-date {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: right;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
}

/* --- Footer --- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--color-white);
}

.footer-sub {
  font-size: 11px;
  margin-bottom: 8px;
}

.footer-address {
  font-size: 12px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-external {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-accent-light) !important;
}

.footer-external:hover {
  color: var(--color-accent) !important;
}

.footer-external svg {
  flex-shrink: 0;
  vertical-align: middle;
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===================================
   Simulation Page
   =================================== */
.sim-page {
  margin-top: var(--header-height);
  padding: 48px 0 80px;
  min-height: calc(100vh - var(--header-height));
}

.sim-hero {
  text-align: center;
  margin-bottom: 48px;
}

.sim-hero h1 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.sim-hero p {
  font-size: 15px;
  color: var(--color-text-light);
}

.sim-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

/* Steps indicator */
.sim-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.sim-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 24px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 13px;
  transition: all 0.3s;
}

.sim-step.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.sim-step.done {
  background: rgba(26, 86, 50, 0.1);
  color: var(--color-primary);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
}

.sim-step.active .step-num {
  background: rgba(255, 255, 255, 0.25);
}

.sim-step.done .step-num {
  background: rgba(26, 86, 50, 0.15);
}

.step-label {
  font-weight: 500;
}

/* Panels */
.sim-panel {
  display: none;
}

.sim-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-panel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.sim-panel-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

/* Sim form */
.sim-form-group {
  margin-bottom: 24px;
}

.sim-form-group > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.sim-toggle {
  display: flex;
  gap: 10px;
}

.toggle-label {
  cursor: pointer;
}

.toggle-label input {
  display: none;
}

.toggle-btn {
  display: inline-block;
  padding: 10px 28px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-light);
  transition: all 0.3s;
}

.toggle-label input:checked + .toggle-btn {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.sim-counter {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
}

.counter-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.counter-btn.minus {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
}

.counter-btn.plus {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: none;
}

.counter-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.sim-counter input {
  width: 60px;
  height: 44px;
  border: 2px solid var(--color-border);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--color-text);
  -moz-appearance: textfield;
}

.sim-counter input::-webkit-inner-spin-button,
.sim-counter input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.sim-note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.sim-info-box {
  background: rgba(26, 86, 50, 0.04);
  border: 1px solid rgba(26, 86, 50, 0.12);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 24px;
}

.sim-info-box p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.sim-info-box strong {
  color: var(--color-primary);
}

.sim-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-input {
  width: 200px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--color-text);
  text-align: right;
  background: var(--color-bg);
  transition: border-color 0.3s, box-shadow 0.3s;
  -moz-appearance: textfield;
}

.sim-input::-webkit-inner-spin-button,
.sim-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.sim-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.1);
}

.sim-unit {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-light);
  white-space: nowrap;
}

/* Nav buttons */
.sim-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

/* Result */
.result-summary {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.result-label {
  font-size: 14px;
  color: var(--color-text-light);
}

.result-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.result-minus {
  color: #c0392b;
}

.result-divider {
  height: 1px;
  background: var(--color-border);
  margin: 8px 0;
}

.result-highlight {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.result-highlight-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.result-highlight-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-white);
  font-family: var(--font-serif);
}

.result-highlight-value span {
  font-size: 20px;
  font-weight: 500;
}

.result-highlight.no-tax {
  background: linear-gradient(135deg, #1a6032, #2a8a5a);
}

.result-notice {
  margin-bottom: 24px;
}

.result-notice p {
  font-size: 14px;
  line-height: 1.8;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
}

.result-notice .notice-safe {
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.2);
  color: #1a6032;
}

.result-notice .notice-tax {
  background: rgba(231, 76, 60, 0.06);
  border: 1px solid rgba(231, 76, 60, 0.15);
  color: #8b2a1a;
}

.result-cta {
  text-align: center;
  padding: 24px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.result-cta p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.result-cta strong {
  color: var(--color-primary);
}

/* Disclaimer */
.sim-disclaimer {
  max-width: 680px;
  margin: 40px auto 0;
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}

.sim-disclaimer h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text-muted);
}

.sim-disclaimer ul {
  list-style: none;
}

.sim-disclaimer li {
  font-size: 12px;
  color: var(--color-text-muted);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.sim-disclaimer li::before {
  content: '※';
  position: absolute;
  left: 0;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 900;
  text-decoration: none;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* ===================================
   Animations (Scroll reveal)
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .header-inner {
    padding: 0 16px;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav ul {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .nav a {
    font-size: 18px;
  }

  .nav-cta {
    margin-top: 10px;
  }

  /* Hero */
  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Sections */
  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 22px;
  }

  /* Worries */
  .worries-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Reasons */
  .reason-card {
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
  }

  .reason-number {
    font-size: 32px;
  }

  /* Plans */
  .plan-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Profile */
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .profile-photo img {
    aspect-ratio: 3/4;
    object-position: center top;
  }

  /* Pricing */
  .pricing-block-header {
    padding: 20px 20px 16px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 10px 14px;
    font-size: 13px;
  }

  .price-cell {
    font-size: 14px;
  }

  .pricing-note {
    padding: 12px 20px;
  }

  .profile-detail-row {
    flex-direction: column;
    gap: 4px;
  }

  .profile-detail-row dt {
    width: auto;
  }

  /* FAQ */
  .faq-question { font-size: 14px; }
  .faq-answer { padding-left: 48px; font-size: 14px; }

  /* Contact */
  .contact-form-wrapper {
    padding: 28px 20px;
  }

  /* Privacy page */
  .privacy-content {
    padding: 28px 20px;
  }

  .privacy-title {
    font-size: 24px;
  }

  .privacy-section h2 {
    font-size: 15px;
  }

  .privacy-contact-row {
    flex-direction: column;
    gap: 2px;
  }

  .privacy-contact-row dt {
    width: auto;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Simulation page */
  .sim-wrapper {
    padding: 28px 20px;
  }

  .sim-hero h1 {
    font-size: 22px;
  }

  .sim-steps {
    gap: 4px;
    flex-wrap: wrap;
  }

  .sim-step {
    padding: 6px 12px;
    font-size: 12px;
  }

  .sim-input-wrapper {
    flex-direction: row;
  }

  .sim-input {
    width: 100%;
  }

  .result-highlight-value {
    font-size: 36px;
  }

  .sim-nav {
    gap: 12px;
  }

  .sim-nav .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Back to top Mobile */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 22px;
  }

  .container {
    padding: 0 16px;
  }
}
