/* ============================================================
   TechMirai AI — Stylesheet
   Aesthetic: Japanese editorial-technical
   Washi cream / sumi ink / 朱色 vermillion accent
   ============================================================ */

:root {
  /* Colors — washi paper palette */
  --bg: #F7F4EE;
  --bg-alt: #EFEAE0;
  --bg-deep: #1A1A1F;
  --ink: #1A1A1F;
  --ink-soft: #3A3A42;
  --ink-faint: #6B6862;
  --muted: #8C8275;
  --line: rgba(26, 26, 31, 0.15);
  --line-soft: rgba(26, 26, 31, 0.08);

  /* Accent — 朱色 vermillion */
  --accent: #48A04B;
  --accent-deep: #388E3C;
  --accent-soft: rgba(200, 16, 46, 0.08);

  /* Secondary — sumi ink blue */
  --indigo: #1E2A44;

  /* Type */
  --f-display: Arial, Helvetica, sans-serif;
  --f-body: Arial, Helvetica, sans-serif;
  --f-jp-display: Arial, Helvetica, sans-serif;
  --f-jp-body: Arial, Helvetica, sans-serif;
  --f-mono: Arial, Helvetica, sans-serif;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Layout */
  --container: 1200px;
  --topbar-h: 80px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ============================================================
   RESET + BASE
   ============================================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  /* Subtle paper texture using gradient + noise */
  background-image:
    radial-gradient(at 5% 0%, rgba(200, 16, 46, 0.02) 0%, transparent 35%),
    radial-gradient(at 95% 100%, rgba(30, 42, 68, 0.02) 0%, transparent 35%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Japanese language */
html[data-lang="ja"] body {
  font-family: var(--f-jp-body);
  font-size: 15.5px;
  letter-spacing: 0.02em;
  line-height: 1.85;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink);
}

.logo-img {
  margin-top: 20px;
  height: 120px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logof {
  display: flex;
  align-items: center;
  /* Reduced margin-bottom so the tagline stays close */
  margin-bottom: 1.5rem; 
}

.logof-img {
  /* Smaller height (matching header font-size/line-height) */
  height: 60px; 
  width: auto;
  object-fit: contain;
  display: block;
}

/* Ensure the tagline below doesn't push too far away */
.footer__tag {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  max-width: 250px;
  line-height: 1.4;
}

.topnav {
  display: flex;
  gap: var(--s-6);
  align-items: center;
}
.topnav a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}
.topnav a:hover::after { right: 0; }

.topbar__right {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.lang-toggle:hover { border-color: var(--ink); }
.lang-toggle__opt {
  padding: 0 2px;
  transition: color 0.2s;
}
.lang-toggle__opt[data-active="true"] {
 color: var(--accent);
  font-weight: 700;
}
.lang-toggle__sep { color: var(--line); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: 14px 24px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn--small { padding: 9px 18px; font-size: 0.85rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.35s var(--ease);
  z-index: 0;
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover { border-color: var(--accent); }


.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn__arrow {
  font-family: var(--f-mono);
  font-weight: 400;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   SECTION HEADS
   ============================================================ */

section {
  padding: var(--s-10) 0;
  position: relative;
}
section + section { border-top: 1px solid var(--line-soft); }

.section-num {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  font-variation-settings: "opsz" 14;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: inline-block;
}

.section-head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-left: var(--s-4);
}

.section-eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  font-family: Arial, Helvetica, sans-serif;
  font-variation-settings: normal; /* Disable variable font effects */
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s-5) 0;
  max-width: 22ch;
}
.section-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}
html[data-lang="ja"] .section-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 3.8vw, 2.8rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
html[data-lang="ja"] .section-title em {
  font-style: normal;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 2px;
}

.section-lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 var(--s-7) 0;
}
html[data-lang="ja"] .section-lede { font-size: 1rem; line-height: 1.95; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: var(--s-9) 0 var(--s-10) 0;
  border-top: none !important;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -200px;
  width: 600px;
  height: 600px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero::after {
  content: "ものづくり";
  position: absolute;
  right: var(--s-5);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--f-jp-display);
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  color: var(--muted);
  opacity: 0.6;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  position: relative;
  z-index: 1;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(200, 16, 46, 0); }
}

.hero__title {
   font-family: Arial, Helvetica, sans-serif;
  font-variation-settings: "opsz" 144, "SOFT" 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 var(--s-6) 0;
}
.hero__title > span { display: block; }
.hero__line-1 { color: var(--ink-soft); font-weight: 300; }
.hero__line-2 em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero__line-3 {
  font-size: clamp(1.3rem, 2.8vw, 1.95rem);
  font-weight: 400;
  font-style: normal;                  /* Removed italic for clarity */
  color: var(--ink-soft);
  letter-spacing: -0.015em;
  margin-top: var(--s-4);
  line-height: 1.35;
}

html[data-lang="ja"] .hero__title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.1rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
html[data-lang="ja"] .hero__line-3 { font-style: normal; font-size: clamp(1.05rem, 2vw, 1.4rem); }
html[data-lang="ja"] .hero__line-2 em { font-style: normal; }

.hero__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 var(--s-6) 0;
}
html[data-lang="ja"] .hero__lede { line-height: 1.9; font-size: 1.02rem; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  max-width: 600px;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-num {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 48;
  font-weight: 600;
  font-size: 1.85rem;
  color: var(--accent);
  line-height: 1;
}
.trust-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero__seal { display: none; }

/* ============================================================
   PROBLEM
   ============================================================ */

.problem { background: var(--bg-alt); }

.killers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-top: var(--s-6);
}

.killer {
  padding: var(--s-6);
  background: var(--bg);
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.killer:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.killer__num {
  font-family: Arial, Helvetica, sans-serif;
  font-variation-settings: "opsz" 48;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--s-4);
  font-style: italic;
}
.killer__title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 var(--s-3) 0;
  letter-spacing: -0.01em;
}
.killer p { margin: 0; color: var(--ink-soft); }
html[data-lang="ja"] .killer__title { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }

.problem__bottom {
  margin-top: var(--s-7);
  padding: var(--s-5);
  border-left: 3px solid var(--accent);
  background: var(--bg);
  font-size: 1.1rem;
  font-style: normal;
}
html[data-lang="ja"] .problem__bottom { font-style: normal; }

/* ============================================================
   SOLUTION
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: var(--s-6);
}

.feature {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-5);
}
.feature:last-child { border-bottom: 1px solid var(--line); }

.feature__num {
   font-family: Arial, Helvetica, sans-serif;
  font-variation-settings: "opsz" 48;
  font-style: italic;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1.1;
}

.feature__title {
   font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 var(--s-3) 0;
}
html[data-lang="ja"] .feature__title {  font-family: Arial, Helvetica, sans-serif; font-weight: 700; line-height: 1.4; }

.feature__body {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 var(--s-4) 0;
  max-width: 70ch;
}

.feature__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.feature__list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}
.feature__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--f-mono);
  font-weight: 500;
}

/* ============================================================
   INDUSTRIES — SPEC TABLE
   ============================================================ */

.industries { background: var(--bg-alt); }

.spec-table {
  margin-top: var(--s-6);
  border: 1px solid var(--ink);
  background: var(--bg);
  overflow-x: auto;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec th, .spec td {
  text-align: left;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec thead th {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: none;
}
.spec tbody th {
   font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--bg-alt);
  width: 180px;
  letter-spacing: -0.005em;
}
.spec tbody td {
  color: var(--ink-soft);
}
.spec tbody tr:last-child th,
.spec tbody tr:last-child td {
  border-bottom: none;
}
.spec__hilite { background: rgba(200, 16, 46, 0.04); }
.spec__hilite td { color: var(--ink); font-weight: 500; }
.spec__icon { color: var(--accent); margin-right: 4px; }

.industries__note {
  margin-top: var(--s-5);
  font-size: 0.88rem;
  color: var(--muted);
  font-style: normal;
  max-width: 80ch;
}
html[data-lang="ja"] .industries__note { font-style: normal; }

/* ============================================================
   PROOF / MATH
   ============================================================ */

.math-card {
  margin-top: var(--s-6);
  padding: var(--s-7);
  background: var(--bg-deep);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.math-card::before {
  content: "¥";
  position: absolute;
  top: -40px;
  right: -20px;
  font-family: var(--f-display);
  font-size: 22rem;
  font-weight: 300;
  color: rgba(200, 16, 46, 0.08);
  line-height: 1;
  pointer-events: none;
}

.math-card__scenario {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(247, 244, 238, 0.85);
  margin-bottom: var(--s-6);
  max-width: 65ch;
  position: relative;
}
html[data-lang="ja"] .math-card__scenario { font-family: Arial, Helvetica, sans-serif; font-style: normal; line-height: 1.8; }

.math-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  position: relative;
}
.math-item {
  padding: var(--s-4);
  border: 1px solid rgba(247, 244, 238, 0.15);
}
.math-item--big {
  background: var(--accent);
  border-color: var(--accent);
  grid-column: span 2;
}
.math-item__num {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 96;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.math-item--big .math-item__num { font-size: clamp(2.5rem, 5vw, 4rem); }
.math-item__label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.6);
  margin-top: var(--s-2);
}
.math-item--big .math-item__label { color: rgba(247, 244, 238, 0.9); }

.math-card__verdict {
  font-size: 1.1rem;
  line-height: 1.6;
  padding: var(--s-5) 0;
  border-top: 1px solid rgba(247, 244, 238, 0.15);
  border-bottom: 1px solid rgba(247, 244, 238, 0.15);
  margin-bottom: var(--s-5);
  position: relative;
}

.math-card .btn--primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
  position: relative;
}
.math-card .btn--primary::before { background: var(--accent); }
.math-card .btn--primary:hover { color: var(--bg); border-color: var(--accent); }

/* ============================================================
   PRICING
   ============================================================ */

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-6);
}

.plan {
  padding: var(--s-6);
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  position: relative;
  transition: all 0.3s var(--ease);
}
.plan:hover { border-color: var(--ink); transform: translateY(-2px); }

.plan--featured {
  border-color: var(--ink);
  border-width: 2px;
  background: var(--ink);
  color: var(--bg);
}
.plan--featured:hover { transform: translateY(-4px); }
.plan--featured .plan__tag,
.plan--featured .plan__per { color: rgba(247, 244, 238, 0.7); }
.plan--featured .plan__for { color: rgba(247, 244, 238, 0.85); }
.plan--featured .plan__list li { color: rgba(247, 244, 238, 0.95); border-color: rgba(247, 244, 238, 0.1); }
.plan--featured .plan__not { color: rgba(247, 244, 238, 0.5) !important; }
.plan--featured .plan__setup { border-color: rgba(247, 244, 238, 0.15); }
.plan--featured .plan__setup span { color: rgba(247, 244, 238, 0.7); }

.plan__ribbon {
  position: absolute;
  top: -12px;
  left: var(--s-6);
  background: var(--accent);
  color: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  padding: 5px 12px;
}


.plan__tag {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: block;
  margin-bottom: var(--s-3);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--s-3);
}
.plan__currency {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 500;
}
.plan__num {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan__per {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 4px;
}
.plan__custom {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.plan--featured .plan__custom { color: var(--accent); }

.plan__for {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.plan__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.plan__list li {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem;
  position: relative;
  padding-left: 22px;
}
.plan__list li:last-child { border-bottom: none; }
.plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.plan__not { color: var(--muted) !important; }
.plan__not::before { content: "—" !important; color: var(--muted) !important; }

.plan__setup {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.plan__setup span {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.plan__setup strong {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.plan--featured .btn--primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.plan--featured .btn--primary::before { background: var(--accent); }
.plan--featured .btn--primary:hover { color: var(--bg); border-color: var(--accent); }

.pricing__note {
  margin-top: var(--s-5);
  font-size: 0.90rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

/* ============================================================
   ABOUT / E-E-A-T
   ============================================================ */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  margin-top: var(--s-6);
}

.about__lede {
  font-size: 1.15rem;
  line-height: 1.65;
  margin: 0 0 var(--s-6) 0;
  color: var(--ink-soft);
  max-width: 60ch;
}

.founder {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--s-5);
  padding: var(--s-6);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}

.founder__avatar {
  width: 100px;
  height: 100px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.founder__name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}
html[data-lang="ja"] .founder__name { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }

.founder__role {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 var(--s-3) 0;
}

.founder__body p {
  margin: 0 0 var(--s-3) 0;
  color: var(--ink-soft);
}

.founder blockquote {
  margin: 0;
  padding: var(--s-3) 0 0;
  font-family: var(--f-display);
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  border-left: 0;
  position: relative;
}
.founder blockquote::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: -8px;
  font-size: 3rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
}
html[data-lang="ja"] .founder blockquote { font-style: normal; font-family: Arial, Helvetica, sans-serif; }


.pillars__title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 var(--s-5) 0;
}

.pillar {
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--s-2);
}
.pillar h4 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  letter-spacing: -0.005em;
}
html[data-lang="ja"] .pillar h4 { font-family: var(--f-jp-display); font-weight: 700; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================================
   FAQ
   ============================================================ */

.faq { background: var(--bg-alt); }

.faq__list {
  margin-top: var(--s-6);
  border-top: 1px solid var(--line);
}

.qa {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s var(--ease);
}
html[data-lang="ja"] .qa summary { font-family: var(--f-jp-display); font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.qa:hover summary { color: var(--accent); }

.qa__icon {
  font-family: var(--f-mono);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.3s var(--ease);
}
.qa[open] .qa__icon { transform: rotate(45deg); }

.qa p {
  margin: 0;
  padding: 0 0 var(--s-5) 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 80ch;
  font-family: Arial, Helvetica, sans-serif;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-top: var(--s-6);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__row--two {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.form__row--two > div { display: flex; flex-direction: column; gap: 6px; }

.form label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.form input, .form textarea, .form select {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26, 26, 31, 0.08);
}

.form__row--consent { flex-direction: row; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--f-body);
}
.checkbox input { margin-top: 3px; flex-shrink: 0; }
.checkbox a { color: var(--accent); text-decoration: underline; }

.form__status {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  padding: var(--s-3) 0;
  min-height: 1.5em;
}
.form__status--success { color: var(--accent); }
.form__status--error { color: #c0392b; }

.contact__info {
  padding: var(--s-6);
  background: var(--bg-deep);
  color: var(--bg);
}
.contact__info h3 {
 font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.6);
  margin: 0 0 var(--s-5) 0;
  font-weight: 500;
}
.contact__dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--s-3) var(--s-5);
  margin: 0 0 var(--s-5) 0;
}
.contact__dl dt {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.5);
  padding-top: 4px;
}
.contact__dl dd {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(247, 244, 238, 0.95);
}
.contact__dl a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact__pledge {
  padding-top: var(--s-5);
  border-top: 1px solid rgba(247, 244, 238, 0.15);
  font-size: 0.92rem;
  color: rgba(247, 244, 238, 0.85);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bg-deep);
  color: rgba(247, 244, 238, 0.85);
  padding: var(--s-9) 0 var(--s-6) 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}

.footer__tag {
  margin-top: var(--s-3);
  color: rgba(247, 244, 238, 0.6);
  max-width: 32ch;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
.footer__cols h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.5);
  margin: 0 0 var(--s-3) 0;
  font-weight: 500;
}
.footer__cols a {
  display: block;
  padding: 4px 0;
  color: rgba(247, 244, 238, 0.85);
  font-size: 0.92rem;
}
.footer__cols a:hover { color: var(--accent); }

.footer__bottom {
  padding-top: var(--s-5);
  border-top: 1px solid rgba(247, 244, 238, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.85rem;
  color: rgba(247, 244, 238, 0.6);
}
.footer__bottom p { margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 720px) {
  .killers { grid-template-columns: repeat(3, 1fr); }
  .form__row--two { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .math-grid { grid-template-columns: repeat(4, 1fr); }
  .math-item--big { grid-column: span 4; }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 80px 1fr 200px;
    align-items: start;
  }
  .hero__meta { flex-direction: column; align-items: flex-start; padding-top: 12px; }
  .hero__meta .section-num { font-size: 1.1rem; writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 0.4em; }
  .hero__seal { display: flex; justify-content: flex-end; align-items: center; padding-top: var(--s-7); color: var(--accent); }
  .hero::after { font-size: 1rem; }
  .feature { grid-template-columns: 100px 1fr; }
  .about__grid { grid-template-columns: 1.5fr 1fr; gap: var(--s-8); }
  .contact__grid { grid-template-columns: 1.4fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 2fr; }
  section { padding: var(--s-10) 0; }
}

@media (max-width: 720px) {
  :root { --topbar-h: 60px; }
  .topnav { display: none; }
  .menu-toggle { display: flex; }
  .topbar__right .btn { display: none; }
  .lang-toggle { font-size: 0.72rem; }
  .logo-img { height: 85px; }
  .logo-img { margin-top: 15px; }
  section { padding: var(--s-8) 0; }
  .hero { padding: var(--s-7) 0 var(--s-8) 0; }
  .hero__trust { gap: var(--s-4); }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .feature { grid-template-columns: 1fr; gap: var(--s-3); }
  .feature__num { font-size: 1.5rem; }
  .founder { grid-template-columns: 1fr; }
  .founder__avatar { width: 70px; height: 70px; font-size: 1.4rem; }
  .math-card { padding: var(--s-5); }
  .spec tbody th { width: 130px; font-size: 0.85rem; }
  .spec th, .spec td { padding: var(--s-3); font-size: 0.85rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .contact__info, .form { padding: var(--s-5); }
}

/* Print + reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
