:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #182233;
  --muted: #647083;
  --line: #dfe5ee;
  --primary: #123b7a;
  --primary-dark: #0b2854;
  --accent: #0ea5a8;
  --accent-soft: #e8fbfb;
  --soft: #eef4ff;
  --shadow: 0 18px 50px rgba(24,34,51,.10);
  --radius: 22px;
  --max: 1120px;
}

* { 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: var(--bg);
  line-height: 1.75;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.narrow { max-width: 860px; }
.section { padding: 84px 0; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 14px;
}
.brand-text { font-size: 16px; }
.global-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}
.global-nav a { text-decoration: none; color: var(--muted); }
.global-nav a:hover { color: var(--primary); }
.nav-cta {
  color: #fff !important;
  background: var(--primary);
  padding: 10px 16px;
  border-radius: 999px;
}

.hero {
  padding-top: 92px;
  background:
    radial-gradient(circle at 20% 10%, rgba(14,165,168,.18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(18,59,122,.14), transparent 32%),
    linear-gradient(180deg, #fff, var(--bg));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 40px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -.05em; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; }
h3 { font-size: 22px; letter-spacing: -.02em; }
p { margin: 0 0 18px; }
.lead { font-size: clamp(17px, 2vw, 21px); color: #35445b; max-width: 760px; }
.section-lead { color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions.center { justify-content: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { background: var(--accent); color: #fff; }
.button-tertiary { background: #fff; color: var(--primary); border-color: var(--line); }
.hero-note { margin-top: 18px; color: var(--muted); font-weight: 700; }
.hero-panel {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.choice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.choice-list a {
  display: block;
  text-decoration: none;
  padding: 18px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid rgba(18,59,122,.12);
}
.choice-list strong { display: block; font-size: 20px; color: var(--primary); }
.choice-list span { display: block; color: var(--muted); margin-top: 4px; }

.problem { background: #fff; }
.definition-box {
  margin-top: 32px;
  background: var(--accent-soft);
  border-left: 5px solid var(--accent);
  border-radius: 18px;
  padding: 26px;
}

.cards { display: grid; gap: 22px; margin-top: 34px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .highlight-card, .cta-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 28px; display: flex; flex-direction: column; }
.card-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.check-list { padding: 0; margin: 8px 0 24px; list-style: none; }
.check-list li { position: relative; padding-left: 28px; margin: 8px 0; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}
.text-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.comparison { background: #fff; }
.table-wrap { overflow-x: auto; margin-top: 28px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--primary); color: #fff; }
tr:last-child td { border-bottom: 0; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 34px 0 0; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.steps span { display: inline-block; color: var(--accent); font-weight: 900; margin-bottom: 12px; }
.steps p { color: var(--muted); margin-bottom: 0; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); gap: 34px; align-items: start; }
.highlight-card { padding: 28px; }

.faq { background: #fff; }
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  margin: 14px 0;
  overflow: hidden;
}
summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 900;
  color: var(--primary);
}
details p { padding: 0 22px 20px; color: #35445b; }

.final-cta { background: linear-gradient(135deg, var(--primary), #07172e); color: #fff; }
.cta-box { padding: 42px; text-align: center; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); box-shadow: none; }
.final-cta .eyebrow { color: #79f0f0; }
.final-cta p { color: rgba(255,255,255,.84); }

.site-footer { background: #07172e; color: rgba(255,255,255,.82); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.footer-inner p { margin: 0; }

@media (max-width: 920px) {
  .global-nav { display: none; }
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .cards.three, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 24px, var(--max)); }
  .brand-text { font-size: 14px; }
  .hero { padding-top: 70px; }
  .hero-panel, .card, .highlight-card, .cta-box { padding: 22px; }
  .button { width: 100%; }
  .footer-inner { display: block; }
  .footer-inner p + p { margin-top: 8px; }
}

.supporter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.supporter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.supporter-card h3 {
  margin: 0 0 14px;
  color: var(--primary);
}
.supporter-card ul {
  margin: 0;
  padding-left: 1.2em;
}
.supporter-card li {
  margin: 8px 0;
}
@media (max-width: 900px) {
  .supporter-grid { grid-template-columns: 1fr; }
}

/* AI Search Diagnostician section */
.diagnostician { background: #f8fbff; }
.diagnostician-flow { margin-top: 28px; align-items: stretch; }
.number-list { margin: 18px 0 0; padding-left: 1.4rem; color: var(--muted); }
.number-list li { margin: 10px 0; }

/* Diagnostician profile */
.diagnostician-profile {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 28px 0 32px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.diagnostician-profile-media img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 999px;
  border: 4px solid #e9f3ff;
  background: #f3f7fb;
}
.diagnostician-profile-body h3 {
  margin-top: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}
.profile-title {
  margin-top: -8px;
  font-weight: 800;
  color: var(--primary);
}
@media (max-width: 700px) {
  .diagnostician-profile {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .diagnostician-profile-media img {
    width: 128px;
    height: 128px;
  }
}

.profile-list {
  display: grid;
  gap: 24px;
  margin: 32px 0;
}


/* === Hamburger menu: PC / tablet / mobile common === */
body.menu-open {
  overflow: hidden;
}

.site-header {
  z-index: 1000;
}

.header-inner {
  position: relative;
}

.brand {
  position: relative;
  z-index: 1002;
}

.menu-toggle {
  position: relative;
  z-index: 1002;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.is-open .menu-toggle-line:nth-child(1),
.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-line:nth-child(2),
.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-line:nth-child(3),
.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.global-nav {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1001;
  display: none !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 96px 24px 40px;
  background: rgba(255,255,255,.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow-y: auto;
}

body.menu-open .global-nav,
.global-nav.is-open {
  display: flex !important;
}

.global-nav a {
  display: block;
  width: min(420px, 100%);
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(24,34,51,.08);
}

.global-nav a:hover,
.global-nav a:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  outline: none;
}

.global-nav .nav-cta {
  color: #fff !important;
  background: var(--primary);
  border-color: var(--primary);
}

.subsidies-section {
  background-color: #f8f9fa;
  padding: 60px 20px;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
}
.subsidies-container {
  max-width: 1000px;
  margin: 0 auto;
}
.subsidies-header {
  text-align: center;
  margin-bottom: 40px;
}
.subsidies-header .badge {
  background-color: #e63946;
  color: #fff;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 15px;
}
.subsidies-header h2 {
  font-size: 28px;
  color: #1d3557;
  margin-bottom: 15px;
  font-weight: 700;
}
.subsidies-header .lead-text {
  font-size: 16px;
  line-height: 1.6;
  color: #4a4a4a;
}
.subsidies-grid {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .subsidies-grid {
    flex-direction: column;
  }
}
.subsidies-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 30px;
  flex: 1;
}
.subsidies-card h3 {
  font-size: 18px;
  color: #1d3557;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #a8dadc;
  padding-bottom: 10px;
}
.price-box {
  text-align: center;
  padding: 10px 0;
}
.original-price {
  font-size: 16px;
  color: #777;
  text-decoration: line-through;
}
.original-price span {
  font-weight: bold;
}
.arrow {
  color: #e63946;
  font-weight: bold;
  margin: 10px 0;
}
.discount-price {
  font-size: 20px;
  color: #333;
}
.discount-price strong {
  font-size: 36px;
  color: #e63946;
}
.price-note {
  font-size: 12px;
  color: #666;
  margin-top: 15px;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th, .info-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.info-table th {
  width: 30%;
  font-weight: bold;
  color: #555;
  font-size: 15px;
}
.info-table td {
  font-size: 15px;
}
.company-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.company-logo {
  max-height: 30px;
  width: auto;
}
.subsidies-footer {
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  background-color: #e2eafc;
  padding: 20px;
  border-radius: 6px;
}

