/* ===================================================
   TaxGuard Pro - Landing Page Styles
   Modern, professional, trust-building design
   =================================================== */

:root {
  --navy:    #0f172a;
  --navy2:   #1e293b;
  --accent:  #3b82f6;
  --accent2: #2563eb;
  --green:   #10b981;
  --red:     #ef4444;
  --gold:    #f59e0b;
  --text:    #1e293b;
  --text-sub:#64748b;
  --bg:      #f8fafc;
  --white:   #ffffff;
  --border:  #e2e8f0;
  --shadow:  0 4px 24px rgba(0,0,0,0.08);
  --radius:  12px;
  --font:    'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}

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

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  color: var(--navy);
}
.logo-icon { font-size: 24px; }
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 50%, #0f172a 100%);
  color: var(--white);
  padding: 80px 0 60px;
}
.hero-inner { text-align: center; }

.hero-badge {
  display: inline-block;
  background: rgba(59,130,246,0.2);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,0.4);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.highlight {
  color: var(--gold);
  position: relative;
}

.hero-sub {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }

.hero-note { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 48px; }

.hero-metrics {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.metric { text-align: center; }
.metric-val { font-size: 24px; font-weight: 900; color: var(--gold); }
.metric-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ── SOCIAL PROOF ── */
.social-proof {
  background: var(--white);
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.proof-label { font-size: 12px; color: var(--text-sub); margin-bottom: 12px; text-align: center; }
.proof-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
}

/* ── SECTION COMMON ── */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.3;
}
.section-header p { color: var(--text-sub); max-width: 560px; margin: 0 auto; }

/* ── FEATURES ── */
.features { background: var(--bg); }

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, #eff6ff, #fff);
  grid-column: span 2;
}
@media (max-width: 768px) { .feature-highlight { grid-column: span 1; } }

.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-sub); line-height: 1.7; margin-bottom: 16px; }
.feature-detail {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.feature-detail span {
  background: #f1f5f9; border-radius: 4px; padding: 2px 10px;
  font-size: 12px; font-weight: 500; color: var(--text);
}

/* ── HOW IT WORKS ── */
.how-it-works { background: var(--navy); color: var(--white); }
.how-it-works .section-header h2 { color: var(--white); }
.how-it-works .section-header p { color: rgba(255,255,255,0.6); }

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.step { max-width: 260px; text-align: center; padding: 20px; }
.step-num {
  font-size: 48px; font-weight: 900; color: var(--gold);
  opacity: 0.8; margin-bottom: 12px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: rgba(255,255,255,0.65); }
.step-arrow { font-size: 28px; color: rgba(255,255,255,0.3); align-self: center; padding: 0 8px; }
@media (max-width: 680px) { .step-arrow { display: none; } }

/* ── PRICING ── */
.pricing { background: var(--white); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.pricing-popular {
  border-color: var(--accent);
  background: #eff6ff;
  transform: scale(1.02);
}

.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--white);
  font-size: 12px; font-weight: 700;
  padding: 3px 16px; border-radius: 999px;
  white-space: nowrap;
}
.plan-badge-b2b {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #1e40af; color: var(--white);
  font-size: 12px; font-weight: 700;
  padding: 3px 16px; border-radius: 999px;
  white-space: nowrap;
}
.coming-soon-badge {
  display: inline-block;
  background: #fef3c7; color: #92400e;
  font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
  margin-bottom: 6px;
}
.feature-coming-soon { opacity: 0.75; }

.plan-name { font-size: 14px; font-weight: 700; color: var(--text-sub); margin-bottom: 8px; }
.plan-price {
  font-size: 38px; font-weight: 900; color: var(--navy); margin-bottom: 4px;
}
.price-period { font-size: 14px; font-weight: 500; color: var(--text-sub); }
.plan-desc { font-size: 13px; color: var(--text-sub); margin-bottom: 20px; }

.plan-features {
  list-style: none; margin-bottom: 24px;
}
.plan-features li { font-size: 13px; padding: 5px 0; line-height: 1.5; }
.plan-features .locked { color: #94a3b8; }

.pricing-note {
  text-align: center; color: var(--text-sub); font-size: 13px; margin-top: 24px;
}

/* ── DISCLAIMER ── */
.disclaimer-section { background: #fff7ed; padding: 40px 0; }
.disclaimer-box {
  border: 1px solid #fed7aa; border-radius: var(--radius);
  padding: 24px 28px; background: var(--white);
}
.disclaimer-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: #92400e; }
.disclaimer-box p { font-size: 13px; color: #78350f; line-height: 1.8; }

/* ── FAQ ── */
.faq { background: var(--bg); }
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  font-size: 15px; font-weight: 700;
  padding: 18px 20px; cursor: pointer;
  list-style: none; display: flex;
  justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 20px 18px; font-size: 14px; color: var(--text-sub); line-height: 1.8; }

/* ── 特定商取引法 ── */
.tokusho { background: var(--white); }
.tokusho h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.tokusho-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tokusho-table th, .tokusho-table td {
  padding: 10px 14px; border: 1px solid var(--border); text-align: left;
}
.tokusho-table th { background: var(--bg); font-weight: 600; width: 160px; color: var(--text-sub); }

/* ── FOOTER ── */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 48px 0 32px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-brand .logo-text { color: var(--white); }
.footer-tagline { font-size: 12px; margin-top: 6px; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }
.footer-disclaimer { max-width: 640px; }
.footer-disclaimer p { font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.7; margin-bottom: 6px; }

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BROKER SECTION ── */
.brokers { background: var(--white); padding: 60px 0; }
.broker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.broker-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 18px 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
  transition: all 0.15s;
}
.broker-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.broker-icon { font-size: 24px; }
.broker-name { font-size: 12px; font-weight: 700; color: var(--text); }
.broker-more { opacity: 0.5; }
.broker-note { text-align: center; color: var(--text-sub); font-size: 12px; }
.highlight-text { color: var(--accent); }

/* ── PAYMENT METHODS ── */
.payment-methods {
  text-align: center; margin-bottom: 32px;
  padding: 16px; background: var(--bg); border-radius: var(--radius);
}
.payment-label { font-size: 12px; color: var(--text-sub); margin-bottom: 10px; }
.payment-icons {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.pay-method {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
}
.pay-icon { font-size: 22px; }

/* ── PLAN FEATURES (checkmark style) ── */
.plan-features li { display: flex; align-items: flex-start; gap: 6px; }
.feat-yes::before { content: "✅"; flex-shrink: 0; }
.feat-no { color: #94a3b8; }
.feat-no::before { content: "—"; flex-shrink: 0; color: #cbd5e1; }
.feat-soon { color: #92400e; }
.feat-soon::before { content: "🕐"; flex-shrink: 0; }
.feat-note { color: #64748b; font-size: 11px; }
.feat-note::before { content: "ℹ"; flex-shrink: 0; }

/* ── PRICING BOTTOM ── */
.pricing-bottom {
  text-align: center; margin-top: 20px;
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.pricing-bottom p { font-size: 13px; color: var(--text-sub); }

/* ── REFERRAL SECTION ── */
.referral-section { background: linear-gradient(135deg, #1e3a5f, #0f172a); padding: 48px 0; }
.referral-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 28px 32px;
}
.referral-left h3 { color: var(--white); font-size: 20px; margin-bottom: 8px; }
.referral-left p { color: rgba(255,255,255,0.75); font-size: 14px; }
.referral-left strong { color: var(--gold); }

/* ── REGISTER SECTION ── */
.register-section { background: var(--bg); padding: 80px 0; }
.register-box {
  max-width: 520px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-row input {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: var(--font);
  transition: border-color 0.15s;
}
.form-row input:focus { outline: none; border-color: var(--accent); }

/* 同意チェックボックス */
.consent-box {
  background: #fffbeb; border: 1.5px solid #fcd34d;
  border-radius: 8px; padding: 16px; margin: 20px 0;
}
.consent-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: #92400e; }
.consent-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 10px; cursor: pointer;
}
.consent-item input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; cursor: pointer;
  accent-color: var(--accent);
}
.consent-item span { font-size: 13px; line-height: 1.5; }
.consent-item strong { color: var(--navy); }
.consent-item a { color: var(--accent); text-decoration: underline; }
.required-badge {
  background: var(--red); color: white; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 4px; margin-left: 6px;
}

.success-box { text-align: center; padding: 20px; }
.success-box p { margin-bottom: 8px; }
.error-box { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; padding: 16px; }

/* ── MOBILE NAV ── */
.nav-mobile-toggle {
  display: none; background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--text);
}

/* ── STEP ICONS ── */
.step-icon { font-size: 36px; margin-bottom: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); padding: 16px; border-bottom: 1px solid var(--border); z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: block; }
  .nav { position: relative; }
  .hero { padding: 56px 0 40px; }
  .hero-metrics { gap: 20px; }
  .hero-metrics .metric-val { font-size: 18px; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .pricing-popular { transform: none; }
  .broker-grid { grid-template-columns: repeat(2, 1fr); }
  .referral-box { flex-direction: column; text-align: center; }
  .pricing-bottom { flex-direction: column; gap: 8px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-highlight { grid-column: span 1; }
}

@media print {
  .header, .nav-cta, .hero-actions, .footer { display: none !important; }
  .pricing-popular { border-color: #000; }
}
