/* ===================================================
   index.css — トップページ専用スタイル
   ヘッダー/ナビ/フッター → header_unified.css に統一
   =================================================== */

/* --- Base (トップページのみ style.css を読み込まないため必要) --- */
:root {
  --navy: #0f2d5c;
  --navy-dark: #091e3f;
  --navy-mid: #1a4080;
  --gold: #c8972a;
  --gold-light: #e8b84b;
  --gold-pale: #fdf6e3;
  --text: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #7a7a9a;
  --border: #e0e8f0;
  --bg-light: #f5f8fd;
  --white: #ffffff;
  --red-badge: #d93025;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  line-height: 1.9;
  background: var(--white);
  font-size: 18px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- 共通ボタン --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.03em;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* --- セクション共通 --- */
section { padding: 64px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: 'Noto Serif JP', serif;
  line-height: 1.4;
}
.section-desc {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 40px;
  max-width: 600px;
}
.bg-light { background: var(--bg-light); }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 60%, #1a5490 100%);
  color: var(--white);
  padding: 70px 20px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 24px;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}
.hero-badge img { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -0.15em; }
.hero h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
  font-family: 'Noto Serif JP', serif;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.9;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.stat-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num sup { font-size: 20px; }
.stat-label { font-size: 13.5px; color: rgba(255,255,255,0.75); line-height: 1.4; }

/* ========== ALERT BANNER ========== */
.law-alert {
  background: linear-gradient(90deg, #fff8e6, #fef3d0);
  border-left: 4px solid var(--gold);
  padding: 18px 24px;
  min-height: 72px;
  contain: layout style;
}
.law-alert-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.law-alert-icon {
  background: var(--gold);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
}
.law-alert-text { font-size: 13.5px; color: #5a3d00; line-height: 1.7; }
.law-alert-text strong { color: #8b5e00; }

/* ========== SERVICE CARDS ========== */
.services-bg { background: var(--bg-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(15,45,92,0.12);
  transform: translateY(-2px);
}
.service-card.featured { border-color: var(--gold); border-width: 2px; }
.service-card-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--gold);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}
.service-card-badge.new-badge { background: var(--red-badge); }
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.service-card.featured .service-icon { background: var(--gold-pale); }
.service-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  font-family: 'Noto Serif JP', serif;
}
.service-card p { font-size: 13.5px; color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }
.service-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-card-link::after { content: " \2192"; }

/* ========== WHY ========== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.why-item:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(200,151,42,0.12); }
.why-num {
  width: 38px;
  height: 38px;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-body h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.why-body p { font-size: 13px; color: var(--text-mid); line-height: 1.7; }
.why-image-area {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  border-radius: 16px;
  padding: 40px 30px;
  color: white;
  text-align: center;
}
.why-image-area .achievement {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  line-height: 1.7;
  text-align: left;
}
.award-item {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.award-item .year { font-size: 12.5px; color: var(--gold-light); font-weight: 700; }
.award-item .award-desc { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.5; }

/* ========== FLOW ========== */
.flow-bg { background: var(--bg-light); }
.flow-steps {
  display: flex;
  gap: 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: 10px;
}
.flow-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
  padding: 0 12px;
}
.flow-step::after {
  content: '\2192';
  position: absolute;
  right: -10px;
  top: 28px;
  font-size: 20px;
  color: var(--gold);
  z-index: 2;
}
.flow-step:last-child::after { display: none; }
.step-num {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.flow-step h3 { font-size: 14.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ========== COUNTRIES ========== */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.country-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
  background: white;
}
.country-card:hover { box-shadow: 0 6px 20px rgba(15,45,92,0.12); transform: translateY(-2px); border-color: var(--gold); }
.country-flag { font-size: 48px; line-height: 1; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.country-badge { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 12px; background: var(--bg-light); color: var(--text-light); border: 1px solid var(--border); }
.country-badge.long { background: var(--gold-pale); color: #7a5000; border-color: var(--gold); }
.country-info h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.country-info p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  color: white;
  padding: 70px 20px;
  text-align: center;
}
.cta-section h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 12px;
  font-family: 'Noto Serif JP', serif;
}
.cta-section p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 36px; line-height: 1.9; }
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.cta-box {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 28px 20px;
  transition: background 0.2s;
}
.cta-box:hover { background: rgba(255,255,255,0.18); }
.cta-box-icon { font-size: 32px; margin-bottom: 10px; }
.cta-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.cta-box p { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 14px; line-height: 1.6; }
.cta-box > a {
  display: inline-block;
  background: var(--gold);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 5px;
  transition: background 0.2s;
}
.cta-box > a:hover { background: var(--gold-light); }

/* ========== NEWS ========== */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.news-date { color: var(--text-light); font-size: 13px; white-space: nowrap; min-width: 95px; }
.news-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 2px;
}
.tag-news { background: #dbeafe; color: #1e40af; }
.tag-update { background: #dcfce7; color: #166534; }
.tag-important { background: #fee2e2; color: #991b1b; }
.news-title { color: var(--text); line-height: 1.6; }
.news-title:hover { color: var(--navy); text-decoration: underline; }

/* ========== PRICE ESTIMATE ========== */
.price-estimate-wrap { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 26px; box-shadow: 0 4px 24px rgba(15,45,92,0.06); }
.price-estimate-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; align-items: start; }
.price-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.price-kpi { border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: #fbfdff; }
.price-kpi .label { font-size: 13.5px; color: var(--text-light); font-weight: 700; letter-spacing: 0.03em; }
.price-kpi .value { font-size: 22px; font-weight: 900; color: var(--navy); margin-top: 6px; line-height: 1.2; }
.price-kpi .note { font-size: 13.5px; color: var(--text-mid); margin-top: 4px; line-height: 1.6; }
.price-mini { font-size: 14.5px; color: var(--text-mid); line-height: 1.85; }
.price-mini strong { color: var(--navy); }
.price-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 10px; }
.price-table th { background: var(--bg-light); color: var(--navy); font-weight: 800; padding: 10px 12px; border: 1px solid var(--border); text-align: left; white-space: nowrap; }
.price-table td { padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.price-table tr:hover td { background: #fafcff; }
.price-disclaimer { margin-top: 14px; padding: 12px 14px; border: 1px solid #f3d28c; background: var(--gold-pale); border-radius: 10px; font-size: 13.5px; color: #7a5000; line-height: 1.8; }
.price-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.price-actions a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 800; }
.price-actions a.primary { background: var(--gold); color: white; }
.price-actions a.primary:hover { background: var(--gold-light); }
.price-actions a.ghost { background: white; border: 1.5px solid var(--border); color: var(--navy); }
.price-actions a.ghost:hover { border-color: var(--gold); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 24px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-stats .stat-card { padding: 14px 10px; }
  .hero-stats .stat-num { font-size: 28px; }
  .hero-stats .stat-label { font-size: 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .countries-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-grid { grid-template-columns: 1fr; max-width: 380px; }
  .flow-step h3 { font-size: 12px; }
  .price-estimate-grid { grid-template-columns: 1fr; }
  .price-kpis { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 40px 16px; }
  .hero h1 { font-size: 21px; }
  section { padding: 48px 16px; }
  .section-title { font-size: 21px; }
  .countries-grid { grid-template-columns: 1fr 1fr; }
}
