:root {
  --rakuten: #bf0071;
  --rakuten-dark: #8f0055;
  --ink: #172033;
  --muted: #647084;
  --line: #d9dee8;
  --soft: #f6f7f9;
  --ok: #087f5b;
  --warn: #b45309;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
}
a { color: inherit; }
.notice {
  background: #1f2937;
  color: #f8fafc;
  font-size: 13px;
  text-align: center;
  padding: 8px 14px;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { font-weight: 800; letter-spacing: .01em; text-decoration: none; }
.brand small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.nav-links a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: white; text-decoration: none; font-weight: 800; }
.nav-links a[aria-current="page"] { color: var(--rakuten); background: #fff0f7; border-color: #f5c2df; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hero {
  padding: 54px 0 38px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 28px;
  align-items: center;
}
.kicker { color: var(--rakuten); font-weight: 800; font-size: 14px; }
h1 {
  margin: 12px 0 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
}
.lead { color: #364152; font-size: clamp(17px, 2vw, 20px); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--rakuten);
  background: var(--rakuten);
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(191, 0, 113, .18);
}
.cta.secondary { background: white; color: var(--rakuten); box-shadow: none; }
.fact-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(17,24,39,.08);
}
.fact-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fact-list li { border-left: 4px solid var(--rakuten); padding: 10px 12px; background: #fff7fb; border-radius: 10px; }
.section { padding: 44px 0; }
.section.alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 18px; }
.section-chip {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff0f7;
  color: var(--rakuten);
  font-weight: 800;
  font-size: 12px;
}
h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.section-intro, .microcopy { color: var(--muted); }
.page-toc { background: #fff; border-bottom: 1px solid var(--line); }
.page-toc-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.page-toc a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #364152;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.page-toc a:first-child { border-color: #f5c2df; background: #fff0f7; color: var(--rakuten); }
.grid-2, .grid-3 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(17,24,39,.05);
}
.mini-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.flow-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  min-height: 150px;
  box-shadow: 0 10px 26px rgba(17,24,39,.05);
}
.flow-step strong,
.flow-step span { display: block; }
.flow-step strong { margin: 12px 0 4px; font-size: 18px; }
.flow-step span:last-child { color: var(--muted); font-size: 13px; }
.icon-circle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff0f7;
  color: var(--rakuten);
  font-weight: 900;
}
.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.scope-card.ok { border-top: 5px solid var(--ok); }
.scope-card.caution { border-top: 5px solid var(--warn); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.team-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 10px 12px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(17,24,39,.04);
}
.ease-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #ecfdf5;
  color: var(--ok);
  font-weight: 900;
  font-size: 12px;
}
.ease-badge.medium { background: #fff7ed; color: var(--warn); }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.detail-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.detail-tile strong { display: block; font-size: 22px; color: var(--rakuten); line-height: 1.2; }
.detail-tile span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.comparison-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.comparison-step { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; min-height: 118px; }
.comparison-step strong,
.comparison-step span { display: block; }
.comparison-step strong { color: var(--rakuten); font-size: 16px; line-height: 1.25; }
.comparison-step span { color: var(--muted); font-size: 12px; margin-top: 6px; }
.carrier-pill-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.carrier-pill { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; background: #fff; font-size: 12px; font-weight: 900; }
.verified-line { color: var(--muted); font-size: 12px; margin-top: 10px; }
.source-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }
.source-card a { color: var(--rakuten); font-weight: 900; }
.kpi { font-size: 26px; font-weight: 900; color: var(--rakuten); }
.connection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.connection-card { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; text-decoration: none; box-shadow: 0 10px 26px rgba(17,24,39,.05); }
.connection-card strong { display: block; font-size: 18px; line-height: 1.25; }
.connection-card span { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.connection-card em { display: inline-flex; margin-top: 12px; color: var(--rakuten); font-style: normal; font-weight: 900; font-size: 13px; }
.check-list { margin: 10px 0 0; padding-left: 1.2em; }
.check-list li { margin: 8px 0; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: white; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 800; }
.breadcrumbs { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.footer { padding: 26px 0 92px; color: var(--muted); font-size: 13px; }
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  display: flex;
  justify-content: center;
}
@media (max-width: 820px) {
  .hero-grid, .grid-2, .grid-3, .connection-grid, .mini-flow, .scope-grid, .team-grid, .detail-grid, .comparison-flow { grid-template-columns: 1fr; }
  .nav-inner { align-items: flex-start; flex-direction: column; }
  .nav-links { gap: 10px; }
  .cta { width: 100%; }
  .sticky-cta .cta { max-width: 420px; }
}
