/* ==========================================================================
   Mirai Koru: global styles
   ========================================================================== */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-soft: #f6f6f3;
  --accent: #d9432b;        /* vermilion / 朱色 */
  --accent-600: #bf3520;
  --accent-soft: #fdeeea;
  --dark: #0b1120;
  --dark-2: #141c30;
  --dark-line: #243049;
  --ok: #15803d;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 60px rgba(15, 23, 42, .12);
  --container: 1180px;
  --font: "Inter", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  line-break: strict;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.45; letter-spacing: .02em; font-weight: 700; word-break: auto-phrase; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #e2e8f0; }
.section-dark h2, .section-dark h3 { color: #fff; }

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

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(25px, 3.3vw, 38px); margin-bottom: 16px; }
.section-head p { font-size: 16.5px; color: var(--muted); }
.section-dark .section-head p { color: #94a3b8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow .jp { font-family: var(--font-jp); letter-spacing: .12em; color: var(--muted); font-weight: 500; }
.section-dark .eyebrow .jp { color: #64748b; }

.lead { font-size: 17px; color: var(--ink-2); }
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Icons ---------- */
.i { width: 22px; height: 22px; flex: none; }
[data-icon] { display: inline-flex; }
.icon-box {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 20px;
}
.section-dark .icon-box { background: rgba(217, 67, 43, .14); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .i { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .i { transform: translateX(2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(217, 67, 43, .28); }
.btn-primary:hover { background: var(--accent-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.22); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.link-arrow .i { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu and collapse it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 16px; letter-spacing: .14em; font-weight: 700; }
.brand-text small { font-family: var(--font-jp); font-size: 10px; letter-spacing: .3em; color: var(--muted); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav-links .nav-mobile-cta { display: none; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, top .25s;
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-open .nav-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 104px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/hero-home.webp") center / cover no-repeat, #fbf6f3;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.35; letter-spacing: .02em; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 36px; max-width: 560px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; color: var(--muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .i { width: 16px; height: 16px; color: var(--ok); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2);
  margin-bottom: 28px; box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.pill b { background: var(--accent-soft); color: var(--accent); padding: 2px 10px; border-radius: 999px; font-weight: 600; }

/* Page hero (inner pages) */
.page-hero { padding: 88px 0 72px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 280px at 90% 0%, rgba(217, 67, 43, .08), transparent 70%), var(--bg-soft);
}
.page-hero h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.4; margin-bottom: 20px; max-width: 820px; }
.page-hero .lead { max-width: 680px; }
.page-hero-soft::before { background: url("../img/hero-home.webp") center / cover no-repeat, #fbf6f3; }

/* ---------- Call mockup ---------- */
.call-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 500px; margin-left: auto;
}
.call-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.call-who { display: flex; align-items: center; gap: 12px; }
.call-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.call-avatar .i { width: 18px; height: 18px; }
.call-who strong { display: block; font-size: 14px; }
.call-who span { font-size: 12px; color: var(--muted); }
.live {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok);
  background: #ecfdf3; padding: 4px 10px; border-radius: 999px;
}
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 28px; padding: 0 22px; margin: 14px 0 4px; }
.wave i { width: 4px; flex: none; background: var(--accent); opacity: .75; border-radius: 2px; height: 30%; animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 0%,100% { height: 20%; } 50% { height: 100%; } }

.transcript { padding: 12px 22px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 330px; }
.msg {
  max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.msg.show { opacity: 1; transform: none; }
.msg small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; margin-bottom: 2px; opacity: .65; }
.msg-caller { background: var(--bg-soft); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-agent { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-jp { font-family: var(--font-jp); }
.msg-event {
  align-self: stretch; max-width: none; display: flex; align-items: center; gap: 10px;
  background: #ecfdf3; color: #14532d; border: 1px solid #c9f0d6; font-weight: 500;
}
.msg-event .i { width: 18px; height: 18px; color: var(--ok); }

/* ---------- Industry strip ---------- */
.strip { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip-label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.strip-items { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.strip-items span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.strip-items .i { width: 18px; height: 18px; color: var(--muted); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card-media { overflow: hidden; padding-top: 0; }
.card-media > img {
  display: block; width: calc(100% + 64px); max-width: none; margin: 0 -32px;
  aspect-ratio: 4 / 3; height: auto; object-fit: cover; transition: transform .5s;
}
.card-media .icon-box {
  position: relative; margin-top: -24px; background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
}
.card-media:hover > img { transform: scale(1.04); }
/* Capabilities grid: one soft art panel per column, washed out under the text. */
.grid-art .card { background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .7) 65%), var(--art) center / cover no-repeat, #fff; }
.grid-art .card:nth-child(3n+1) { --art: url("../img/feature-bg-1.webp"); }
.grid-art .card:nth-child(3n+2) { --art: url("../img/feature-bg-2.webp"); }
.grid-art .card:nth-child(3n)   { --art: url("../img/feature-bg-3.webp"); }
/* Home solutions: scene sits on the right, so the wash fades left-to-right. */
.grid-solutions .card { background: linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .84) 70%, rgba(255, 255, 255, .2)), var(--art) right center / cover no-repeat, #fff; }
.grid-solutions .card:nth-child(1) { --art: url("../img/solution-hotels.webp"); }
.grid-solutions .card:nth-child(2) { --art: url("../img/solution-clinics.webp"); }
.grid-solutions .card:nth-child(3) { --art: url("../img/solution-dealerships.webp"); }
.grid-art .icon-box { background: #fff; box-shadow: 0 6px 16px rgba(217, 67, 43, .12); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9dce2; }
.card .step-num {
  font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .1em; margin-bottom: 18px; display: block;
}
.section-dark .card { background: var(--dark-2); border-color: var(--dark-line); }
.section-dark .card p { color: #94a3b8; }

.card-link { display: flex; flex-direction: column; height: 100%; }
.card-link .link-arrow { margin-top: auto; padding-top: 20px; }

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list .i { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.section-dark .check-list li { color: #cbd5e1; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.steps .card { position: relative; }

/* ---------- Languages ---------- */
.lang-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lang-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-cloud span {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--dark-line); background: var(--dark-2);
  font-size: 15px; color: #e2e8f0; font-weight: 500;
}
.lang-cloud span.hl { border-color: var(--accent); color: #fff; background: rgba(217, 67, 43, .18); }
.lang-wrap .check-list { margin-top: 28px; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 112px; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(24px, 2.9vw, 32px); margin-bottom: 16px; }
.split .lead { margin-bottom: 28px; }
.split .tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent);
  margin-bottom: 14px;
}
.split .tag .i { width: 18px; height: 18px; }
.split .tag .jp { font-family: var(--font-jp); color: var(--muted); font-weight: 500; }

.panel {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px; padding: 32px;
}
.panel h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.scenario { display: grid; gap: 12px; }
.scenario-row {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; font-size: 15px;
}
.scenario-row .when { font-size: 12px; font-weight: 700; color: var(--accent); min-width: 64px; flex: none; padding-top: 2px; }
.panel-stat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.panel-stat div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.panel-stat b { display: block; font-size: 15px; }
.panel-stat span { font-size: 13px; color: var(--muted); }

/* ---------- Integrations ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logo-tile {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; font-weight: 600; font-size: 15px;
}
.logo-tile small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.logo-dot {
  width: 36px; height: 36px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--ink-2); flex: none;
}

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  margin-top: 8px; position: relative;
}
.billing-toggle button {
  border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
}
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.billing-toggle .save { font-size: 11px; background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 999px; }
.billing-toggle button[aria-pressed="true"] .save { background: var(--accent); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px 32px;
  display: flex; flex-direction: column; position: relative;
}
.plan.featured { border: 2px solid var(--ink); box-shadow: var(--shadow-lg); }
.plan-badge {
  position: absolute; top: -13px; left: 32px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .04em;
}
.plan h3 { font-size: 22px; margin-bottom: 6px; }
.plan .plan-desc { color: var(--muted); font-size: 15px; min-height: 48px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 28px 0 4px; }
.plan-price .amount { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }
.plan-price .per { color: var(--muted); font-size: 15px; }
.plan-note { font-size: 13px; color: var(--muted); min-height: 20px; }
.plan .btn { margin: 28px 0; }
.plan .check-list { font-size: 15px; gap: 11px; }
.plan .check-list .i { width: 18px; height: 18px; }
.plan-sub { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }

.pricing-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 36px; font-size: 14px; color: var(--muted); }
.pricing-foot span { display: inline-flex; align-items: center; gap: 8px; }
.pricing-foot .i { width: 16px; height: 16px; color: var(--ok); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 14px; background: var(--bg-soft); position: sticky; top: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 20%; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .group td { background: #fafaf8; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare .yes { color: var(--accent); display: inline-flex; }
.compare .yes .i { width: 18px; height: 18px; }
.compare .no { color: #b6bec9; }

.addon { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.addon b { font-size: 17px; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 24px;
  transition: border-color .2s;
}
.faq details[open] { border-color: #cfd3da; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-4px); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--dark); color: #fff; border-radius: 28px; padding: 72px 64px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  right: -120px; top: -160px; background: radial-gradient(circle, rgba(217, 67, 43, .45), transparent 65%);
}
.cta-band h2 { font-size: clamp(23px, 2.9vw, 34px); color: #fff; margin-bottom: 14px; }
.cta-band p { color: #94a3b8; font-size: 16px; }
.cta-band .btn-row { justify-content: flex-end; position: relative; z-index: 1; }

/* ---------- About ---------- */
.kanji-mark {
  font-family: var(--font-jp); font-size: clamp(120px, 18vw, 220px); font-weight: 700; line-height: 1;
  color: var(--accent); letter-spacing: -.02em;
}
.kanji-caption { color: var(--muted); margin-top: 16px; font-size: 15px; }
.value-jp { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .14em; display: block; margin-bottom: 8px; }

.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.info-table th, .info-table td { padding: 18px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 30%; background: var(--bg-soft); font-weight: 600; font-size: 15px; }
.info-table th small { display: block; font-family: var(--font-jp); font-weight: 500; color: var(--muted); font-size: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 23, 42, .06);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent); }
.field .error { font-size: 13px; color: var(--accent); display: none; }
.field.invalid .error { display: block; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.form-success {
  display: none; padding: 16px 18px; margin-top: 18px; border-radius: 12px;
  background: #ecfdf3; border: 1px solid #c9f0d6; color: #14532d; font-size: 15px;
}
.form-success.show { display: block; }

.contact-aside { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon-box { margin: 0; width: 44px; height: 44px; }
.contact-item b { display: block; }
.contact-item span, .contact-item a { color: var(--muted); font-size: 15px; }
.contact-item a:hover { color: var(--accent); }
.next-steps { counter-reset: n; display: grid; gap: 16px; }
.next-steps li { counter-increment: n; display: flex; gap: 14px; color: var(--ink-2); font-size: 15px; }
.next-steps li::before {
  content: counter(n); width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700; display: grid; place-items: center; margin-top: 1px;
}

/* ---------- Legal ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #94a3b8; padding: 80px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: #64748b; }
.footer-about { margin-top: 18px; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 18px; font-weight: 600; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--dark-line); margin-top: 64px; padding-top: 28px; font-size: 14px;
}
.footer-bottom .jp { font-family: var(--font-jp); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .msg { opacity: 1 !important; transform: none !important; transition: none !important; }
  .wave i, .live::before { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .hero { padding: 56px 0 80px; }
  .hero-grid, .lang-wrap, .split, .contact-grid, .cta-band { grid-template-columns: 1fr; gap: 48px; }
  .call-card { margin: 0 auto; }
  .split.reverse > :first-child { order: 0; }
  .split + .split { margin-top: 80px; }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 520px; margin: 0 auto; }
  .cta-band { padding: 56px 32px; }
  .cta-band .btn-row { justify-content: flex-start; }

  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 20px 24px;
    background: #fff; border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { font-size: 18px; padding: 14px 16px; border-radius: 12px; }
  .nav-links .nav-mobile-cta { display: flex; margin-top: 12px; color: #fff; background: var(--accent); justify-content: center; }
  .nav-links .nav-mobile-cta:hover { background: var(--accent-600); color: #fff; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .grid-2, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 26px; }
  .card-media { padding-top: 0; }
  .card-media > img { width: calc(100% + 52px); margin: 0 -26px; }
  .form-card { padding: 26px 20px; }
  .panel { padding: 22px; }
  .panel-stat { grid-template-columns: 1fr; }
  .strip-inner { flex-direction: column; align-items: flex-start; }
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; padding-bottom: 6px; }
  .info-table td { padding-top: 6px; }
  .btn-row .btn { flex: 1 1 auto; }
  .transcript { min-height: 360px; }
}

/* Offset in-page anchors for the sticky header */
[id] { scroll-margin-top: 96px; }

/* Contact form (PHP) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  padding: 14px 16px; margin-bottom: 20px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid #f6c9bf; color: #8a2412; font-size: 15px;
}

/* Japanese typography helpers */
.h2-lg { font-size: clamp(25px, 3.3vw, 38px); margin-bottom: 16px; }
.plan-price .amount-text { font-size: 30px; }
.addon-unit { font-weight: 500; font-size: 13px; color: var(--muted); }
.field label .req {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 4px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.6; vertical-align: 1px;
}
@media (max-width: 640px) {
  .hero h1 br, .page-hero h1 br { display: none; }
}
.check-list li, .plan-desc, .plan-note, .faq summary, .scenario-row, .hero-meta span, .pricing-foot span { word-break: auto-phrase; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
}
.lang-switch a {
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.4;
  transition: color .2s, background .2s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
@media (max-width: 960px) {
  .lang-switch a { padding: 6px 11px; }
}

/* ---------- English typography ----------
   The base styles are tuned for Japanese; English reads better tighter. */
html[lang="en"] body { line-height: 1.65; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 { letter-spacing: -0.02em; line-height: 1.15; }
html[lang="en"] .hero h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -0.035em; line-height: 1.08; }
html[lang="en"] .page-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.1; }
html[lang="en"] .section-head h2, html[lang="en"] .h2-lg { font-size: clamp(30px, 4vw, 44px); }
html[lang="en"] .split h2 { font-size: clamp(28px, 3.4vw, 38px); }
html[lang="en"] .cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); }
html[lang="en"] .cta-band p { font-size: 18px; }
html[lang="en"] .lead { font-size: 19px; }
html[lang="en"] .section-head p { font-size: 18px; }
html[lang="en"] .eyebrow { letter-spacing: .08em; }
html[lang="en"] .faq summary { font-size: 17px; }
html[lang="en"] .plan-price .amount { font-size: 46px; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.founder-photo { position: relative; margin: 0; max-width: 440px; }
.founder-photo::before {
  content: ""; position: absolute; inset: -40px -40px auto auto; width: 70%; height: 70%; z-index: 0;
  background: radial-gradient(circle, rgba(217, 67, 43, .35), transparent 65%);
}
.founder-photo picture, .founder-photo img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  border-radius: 24px; background: #0b0b0b;
}
.founder-photo picture { border: 1px solid var(--dark-line); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.founder-photo figcaption {
  position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px;
  display: flex; flex-direction: column; padding: 14px 18px; border-radius: 16px;
  background: rgba(11, 17, 32, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08);
}
.founder-photo figcaption strong { color: #fff; font-size: 18px; letter-spacing: .02em; }
.founder-photo figcaption span { color: #94a3b8; font-size: 13px; }
.founder-quote { margin: 0 0 36px; padding-left: 22px; border-left: 3px solid var(--accent); }
.founder-quote p { color: #e2e8f0; font-size: 18px; line-height: 1.9; }
.founder-quote footer { margin-top: 14px; color: #94a3b8; font-size: 14px; font-weight: 600; }
.section-dark .founder-sub { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #94a3b8; margin-bottom: 16px; }
html[lang="en"] .founder-quote p { line-height: 1.7; font-size: 19px; }
@media (max-width: 960px) {
  .founder { grid-template-columns: 1fr; gap: 48px; }
  .founder-photo { margin: 0 auto; width: 100%; max-width: 380px; }
}

/* ---------- Legal documents ---------- */
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.legal-meta .btn { margin-left: auto; }
.legal-summary { background: #fff; border-bottom: 1px solid var(--line); }
.legal-summary-title { font-size: 20px; margin-bottom: 24px; }
.legal-point { padding: 26px; }
.legal-point .icon-box { width: 40px; height: 40px; margin-bottom: 14px; }
.legal-point .icon-box .i { width: 20px; height: 20px; }
.legal-point h3 { font-size: 16px; margin-bottom: 6px; }
.legal-point p { font-size: 14px; }
.legal-summary-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.legal { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
.legal-toc summary { list-style: none; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; cursor: default; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-toc a {
  display: flex; gap: 10px; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.5; color: var(--muted); transition: color .2s, border-color .2s;
}
.legal-toc a span { flex: none; min-width: 22px; font-variant-numeric: tabular-nums; color: #94a3b8; }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.legal-toc a.active span { color: var(--accent); }

.legal-doc { max-width: 780px; }
.legal-section { padding-bottom: 8px; }
.legal-section + .legal-section { border-top: 1px solid var(--line); padding-top: 8px; }
.legal-doc h2 { display: flex; align-items: baseline; gap: 14px; font-size: 22px; margin: 32px 0 16px; }
.legal-num { flex: none; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.legal-doc p, .legal-doc li { font-size: 15.5px; }
.legal-doc ol { padding-left: 22px; }
.legal-doc ol > li, .legal-doc ul > li { margin-bottom: 10px; }
.legal-doc li > ul { margin-top: 10px; }
.legal-doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 20px; font-size: 14.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.legal-doc th, .legal-doc td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.7; }
.legal-doc thead th { background: var(--bg-soft); font-size: 13px; color: var(--ink-2); }
.legal-doc tbody th { width: 30%; background: var(--bg-soft); font-weight: 600; }
.legal-doc tr:last-child th, .legal-doc tr:last-child td { border-bottom: 0; }
.legal-doc small { color: var(--muted); }
.legal-sign { text-align: right; margin-top: 24px; }
.legal-end { margin-top: 40px; }
.legal-end a { text-decoration: none; }

@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; max-height: none; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
  .legal-toc summary { cursor: pointer; margin-bottom: 0; }
  .legal-toc details[open] summary { margin-bottom: 12px; }
  .legal-meta .btn { margin-left: 0; }
}
@media (max-width: 640px) {
  .legal-doc tbody th { width: 38%; }
  .legal-doc th, .legal-doc td { padding: 10px 12px; }
}

@media print {
  .site-header, .site-footer, .legal-toc, .legal-meta .btn, .legal-end, .skip-link { display: none !important; }
  .page-hero::before { display: none; }
  .page-hero, .section, .section-sm { padding: 16px 0 !important; border: 0; }
  .legal { display: block; }
  .legal-doc { max-width: none; }
  .legal-section { break-inside: auto; }
  .legal-doc h2 { break-after: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card { break-inside: avoid; box-shadow: none; }
  a { color: inherit !important; }
  body { font-size: 11pt; }
}
