:root {
  --paper: #faf7f0;
  --surface: #ffffff;
  --band: #f3eee4;
  --ink: #1f1d1a;
  --ink-2: #57524a;
  --ink-3: #857f74;
  --line: #e6e0d4;
  --accent: #b23a2a;
  --accent-hover: #962f21;
  --accent-soft: #f6e7e0;
  --on-accent: #ffffff;
  --track: #f3eee4;
  --good: #2c6a4c;
  --good-soft: #e4f0e8;
  --bad-soft: #f8ebe5;
  --shadow: 0 1px 0 rgba(60, 40, 20, 0.03), 0 18px 40px -24px rgba(60, 40, 20, 0.28);
  --radius: 16px;
  --maxw: 1080px;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  color-scheme: light dark;
}

/* テーマ：フッターで「ライト」「ダーク」を選ぶと <html data-theme="light|dark"> が付く。
   付いていないとき（「システム」）は OS の設定に従う。ダークの色は下の 2 か所で同じ値にする。 */
:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151412;
  --surface: #1d1c19;
  --band: #1a1917;
  --ink: #eeeae2;
  --ink-2: #b4aea3;
  --ink-3: #8a8479;
  --line: #2f2d29;
  --accent: #e27662;
  --accent-hover: #ec8b79;
  --accent-soft: #3a231e;
  --on-accent: #1a0e0b;
  --track: #2f2d29;
  --good: #7cc4a0;
  --good-soft: #1c2d24;
  --bad-soft: #33221d;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151412;
    --surface: #1d1c19;
    --band: #1a1917;
    --ink: #eeeae2;
    --ink-2: #b4aea3;
    --ink-3: #8a8479;
    --line: #2f2d29;
    --accent: #e27662;
    --accent-hover: #ec8b79;
    --accent-soft: #3a231e;
    --on-accent: #1a0e0b;
    --track: #2f2d29;
    --good: #7cc4a0;
    --good-soft: #1c2d24;
    --bad-soft: #33221d;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  line-height: 1.7;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

/* 日本語は、HTML に入れた <wbr>（文節の切れ目）と、句読点・空白の後ろでだけ改行する。
   word-break: auto-phrase は Chrome しか対応していないため、Safari や Firefox でも同じ改行になるように
   keep-all と <wbr> を使う。収まらないときだけ、語の途中でも折り返す（overflow-wrap）。
   日本語の文を足したり書き換えたりしたら、文節の切れ目に <wbr> を入れる。 */
html[lang="ja"] body,
.sample-text[lang="ja"] {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 日本語のページの中の中国語（404 ページの一文など）は、ふつうに改行する */
html[lang="ja"] [lang|="zh"] {
  word-break: normal;
}

/* 途中で改行しないまとまり（括弧と中身、「です・ます」「中国語（簡体字）→」など）。
   Safari は keep-all のとき「（」の後ろ・「・」の後ろ・「→」の前でも改行し、改行しない文字（&#8288;）も
   white-space: nowrap も思うように効かないため、inline-block にする（2026-11-26 に WebKit で確認）。 */
.keep {
  display: inline-block;
}

/* 短い文は行の長さをそろえ、長い文は最後の行に 1 語だけ残らないようにする（対応していないブラウザでは無視される） */
html[lang="ja"] .problem p,
html[lang="ja"] .service-list li,
html[lang="ja"] .service-meta dd,
html[lang="ja"] .steps p,
html[lang="ja"] .sample-note,
html[lang="ja"] .sample-text,
.sample-text[lang="ja"] {
  text-wrap: balance;
}

html[lang="ja"] .service-desc,
html[lang="ja"] .about-grid p,
html[lang="ja"] .info-grid p,
html[lang="ja"] .contact-card p,
html[lang="ja"] .record-note {
  text-wrap: pretty;
}


html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 {
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  white-space: nowrap;
}

html[lang="en"] .brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

html[lang="en"] .brand-sub {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.site-nav {
  --nav-gap: 24px;
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
}

.lang-switch {
  font-size: 0.82rem;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.lang-switch:hover {
  color: var(--ink);
  border-color: var(--accent-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink-3);
}

/* 枠だけアクセントの色にしたボタン（トップの「サービスを見る」） */
.btn-outline {
  border-color: var(--accent);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent-hover);
  background: var(--accent-soft);
}

.btn-small {
  padding: 0.55em 1.1em;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 88px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.6vw + 1rem, 3.5rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
}

html[lang="en"] .hero h1 {
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin-top: 24px;
  font-size: 1.06rem;
  color: var(--ink-2);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Compare card (signature element) */
.compare {
  margin: 0;
}

/* 例のタブ（アプリの日本語／製品紹介の日本語）。ラジオボタンで切り替え、JavaScript は使わない。
   2 つのパネルは同じ場所に重ね、見えない方は visibility: hidden にする（2 列の幅では、切り替えてもカードの高さが変わらない）。 */
.compare {
  position: relative;
}

.sample-switch {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

/* フォルダーのタブの形。タブはカードの上の辺に乗せ、選んでいるタブだけカードとつなげる。
   色は使わず、選んでいるタブは太字と、カードと同じ背景で示す */
.sample-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
}

/* タブどうしは隙間なく並べ、となりの枠線を 1 本に重ねる */
.sample-tabs label + label {
  margin-left: -1px;
}

.sample-tabs label {
  flex: 0 1 auto;
  min-width: 0;
  margin-bottom: -1px;
  padding: 9px 14px 8px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-2);
  cursor: pointer;
}

/* 太字の幅を先に確保して、切り替えたときにタブの幅が変わらないようにする（見えない・読み上げない） */
.sample-tabs label::after {
  content: attr(data-label);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 700;
}

#sample-app:checked ~ .sample-tabs label[for="sample-app"],
#sample-product:checked ~ .sample-tabs label[for="sample-product"] {
  position: relative;
  z-index: 1;
  border-bottom-color: var(--surface);
  background: var(--surface);
  font-weight: 700;
}

#sample-app:focus-visible ~ .sample-tabs label[for="sample-app"],
#sample-product:focus-visible ~ .sample-tabs label[for="sample-product"] {
  outline: 2px solid var(--ink-3);
  outline-offset: -3px;
}

/* カードの本体（左上はタブとつながるので角を丸めない） */
.sample-panels {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 22px 22px 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.sample-panel > .pair:first-child {
  margin-top: 0;
}

.sample-panel {
  grid-area: 1 / 1;
  min-width: 0;
}

#sample-app:checked ~ .sample-panels [data-sample="product"],
#sample-product:checked ~ .sample-panels [data-sample="app"] {
  visibility: hidden;
}

/* 1 列になる幅では、高さをそろえると短い方の下に大きな余白ができるので、見えない方を外す */
@media (max-width: 980px) {
  #sample-app:checked ~ .sample-panels [data-sample="product"],
  #sample-product:checked ~ .sample-panels [data-sample="app"] {
    display: none;
  }
}

.pair {
  margin-top: 18px;
}

.pair + .pair {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

.pair-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.sample {
  border-radius: 12px;
  padding: 12px 16px 13px;
}

.sample + .sample {
  margin-top: 8px;
}

.sample.before {
  background: var(--bad-soft);
}

.sample.after {
  background: var(--good-soft);
}

.sample-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sample.before .sample-tag {
  color: var(--accent);
}

.sample.after .sample-tag {
  color: var(--good);
}

.sample-tag svg {
  width: 14px;
  height: 14px;
}

.sample-text {
  margin-top: 4px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
}

.sample.before .sample-text {
  color: var(--ink-2);
}

.sample.after .sample-text {
  font-weight: 500;
}

.sample-note {
  margin-top: 2px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-3);
}

/* Sections */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section.band {
  background: var(--band);
}

.section-head {
  max-width: 660px;
  margin-bottom: 44px;
}

.kicker {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.55rem, 1.6vw + 1.05rem, 2.2rem);
  line-height: 1.45;
}

html[lang="en"] .section h2 {
  line-height: 1.25;
}

.section-lead {
  margin-top: 16px;
  color: var(--ink-2);
}

/* Problems */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.problem {
  display: flex;
  gap: 18px;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.problem-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
  flex: none;
}

.problem p {
  color: var(--ink);
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px 32px;
}

.service.featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
}

/* アイコンとラベル（「個人開発者・中小企業向け」など）を同じ行に置き、タイトルの高さをそろえる */
.service-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.service-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.service h3 {
  font-size: 1.3rem;
  line-height: 1.45;
}

.service-desc {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.service-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.service-list li {
  position: relative;
  padding-left: 18px;
}

.service-list li + li {
  margin-top: 6px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

html[lang="en"] .service-list li::before {
  top: 0.8em;
}

.service-meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.service-meta dt {
  font-weight: 700;
  color: var(--ink-2);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.service-meta dd {
  margin: 2px 0 10px;
}

.service-meta dd:last-child {
  margin-bottom: 0;
}

/* 3 列のときは、カードの中の行（アイコン・タイトル・説明・一覧）の高さを 3 枚でそろえる */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 981px) {
    .service-grid {
      row-gap: 0;
    }

    .service {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.about-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.4vw + 0.95rem, 1.85rem);
  line-height: 1.7;
  color: var(--ink);
  padding-left: 22px;
  border-left: 2px solid var(--accent);
}

html[lang="en"] .about-quote {
  line-height: 1.45;
}

.about-body p + p {
  margin-top: 18px;
}

.about-body p {
  color: var(--ink-2);
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 20px;
  border-top: 2px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.step::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--accent);
}

.step h3 {
  font-size: 1.1rem;
  line-height: 1.5;
}

.step p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.info h3 {
  font-size: 1.02rem;
  line-height: 1.5;
}

.info p,
.info ul {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.93rem;
}

.info ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

/* Contact */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card .kicker {
  margin-bottom: 10px;
}

.contact-card h2 {
  font-size: clamp(1.55rem, 1.6vw + 1.05rem, 2.2rem);
}

.contact-card p {
  margin: 16px auto 0;
  color: var(--ink-2);
  max-width: 32em;
}

.contact-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.contact-email {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

/* 404 */
.notfound {
  border-top: 0;
  padding-top: 72px;
}

.notfound h1 {
  font-size: clamp(1.55rem, 1.6vw + 1.05rem, 2.2rem);
}

.notfound-actions {
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-3);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}

.footer-brand .brand-mark {
  width: 26px;
  height: 26px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-3);
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

/* テーマ切り替え（アイコンだけ。名前は画面読み上げ用の文字と、マウスを重ねたときの title で示す） */
.footer-theme {
  position: relative;
  display: inline-flex;
  flex: none;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.footer-theme[hidden] {
  display: none;
}

.footer-theme input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.footer-theme label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.footer-theme label svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.footer-theme label:hover {
  color: var(--ink);
}

.footer-theme input:checked + label {
  background: var(--accent-soft);
  color: var(--accent);
}

.footer-theme input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (max-width: 960px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

section[id] {
  scroll-margin-top: 72px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .compare {
    max-width: 560px;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 56px 0 72px;
  }

  .section {
    padding: 72px 0;
  }

  .problem-grid,
  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    height: 60px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-sub {
    display: none;
  }

  html[lang="en"] .brand-name {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .nav-actions .btn {
    display: none;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .sample-panels {
    padding: 20px;
  }

  .sample-tabs label {
    padding: 8px 10px 7px;
    font-size: 0.75rem;
  }

  .contact-card {
    padding: 40px 22px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}

/* Language menu */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-menu {
  position: relative;
}

.lang-menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.lang-menu > summary::-webkit-details-marker {
  display: none;
}

.lang-menu > summary svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 30;
}

.lang-list a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--ink-2);
  text-decoration: none;
}

.lang-list a:hover {
  background: var(--band);
  color: var(--ink);
}

.lang-list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

/* Simplified Chinese */
[lang="zh-Hans"] {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html[lang="zh-Hans"] {
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
}

html[lang="zh-Hans"] [lang="ja"] {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
}

html[lang="zh-Hans"] .brand-name[lang="ja"] {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
}

html[lang="zh-Hans"] .hero h1 {
  letter-spacing: 0.04em;
}

/* Traditional Chinese */
[lang="zh-Hant"] {
  font-family: "Noto Sans TC", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", sans-serif;
}

html[lang="zh-Hant"] {
  --font-sans: "Noto Sans TC", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", "LiSong Pro", serif;
}

html[lang="zh-Hant"] [lang="ja"] {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
}

html[lang="zh-Hant"] .brand-name[lang="ja"] {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
}

html[lang="zh-Hant"] .hero h1 {
  letter-spacing: 0.04em;
}

/* Track record */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.stat-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.6vw + 1.1rem, 2.3rem);
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-num small {
  margin-left: 4px;
  font-family: var(--font-sans);
  font-size: 0.5em;
  font-weight: 500;
  color: var(--ink-2);
}

.stat-label {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.record-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 26px;
}

.record-card h3 {
  font-size: 1.02rem;
  line-height: 1.5;
}

.record-card .bars + h3 {
  margin-top: 28px;
}

.bars {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bars li {
  display: grid;
  grid-template-columns: minmax(0, 13em) minmax(0, 1fr) 3em;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.bar-label small {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-3);
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.bar-value {
  text-align: right;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.record-note {
  margin-top: 18px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-3);
}

@media (max-width: 980px) {
  .record-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .bars li {
    grid-template-columns: minmax(0, 1fr) 3em;
    row-gap: 4px;
  }

  .bars .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
