:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-alt: #eef1f4;
  --text: #14171a;
  --muted: #626a73;
  --line: #d9dee4;
  --accent: #2f6fed;
  --accent-strong: #1f55bc;
  --accent-soft: #eaf1ff;
  --dark: #101318;
  --dark-soft: #171b22;
  --success: #1d7a4b;
  --shadow: 0 22px 60px rgba(20, 23, 26, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-height: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(247, 248, 250, 0.88);
  border-bottom: 1px solid rgba(217, 222, 228, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-symbol {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-wordmark {
  width: 180px;
  height: auto;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: .9rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  color: #30363d;
  white-space: nowrap;
}

.site-nav a:not(.language-link)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transition: right .22s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  right: 0;
}

.language-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.language-link:hover {
  border-color: #aab4c0;
  background: #fff;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(47, 111, 237, .16), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -250px;
  bottom: -340px;
  border: 1px solid rgba(47, 111, 237, .22);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(47, 111, 237, .03),
    0 0 0 140px rgba(47, 111, 237, .025);
}

.hero-inner {
  min-height: 620px;
  padding: 96px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 78px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 5.2rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.hero h1.hero-title-ja {
  max-width: none;
  font-size: clamp(2rem, 5vw, 3.8rem);
  white-space: nowrap;
}

.hero h1.hero-title-en {
  max-width: 820px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.1;
  text-wrap: balance;
}

.hero-lead {
  max-width: 690px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-summary,
.hero-role-note {
  display: block;
}

.hero-summary {
  color: var(--text);
  font-weight: 650;
}

.hero-role-note {
  margin-top: 10px;
  font-size: .92em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(47, 111, 237, .24);
}

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

.button-secondary {
  border-color: var(--line);
  background: rgba(255,255,255,.78);
}

.hero-panel {
  position: relative;
  min-height: 420px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 86% 8%, rgba(71, 132, 255, .36), transparent 30%),
    linear-gradient(150deg, #0e1117 0%, #171c25 55%, #101318 100%);
  box-shadow: var(--shadow);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.panel-kicker {
  position: relative;
  z-index: 1;
  color: #aeb8c5;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.panel-number {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 9vw, 7.2rem);
  line-height: .9;
  letter-spacing: -.06em;
}

.panel-caption {
  position: relative;
  z-index: 1;
  max-width: 280px;
  color: #c8d0da;
  font-size: .9rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.metric {
  padding: 18px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}

.metric strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.15;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: #9faab8;
  font-size: .72rem;
  line-height: 1.45;
}

.metric span.metric-download {
  white-space: nowrap;
  letter-spacing: -.02em;
}

.section {
  padding: 110px 0;
}

.section-tight {
  padding: 86px 0;
}

.section-dark {
  color: #fff;
  background: var(--dark);
}

.section-alt {
  background: var(--surface-alt);
}

.section-heading {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.section-dark .section-heading p {
  color: #aeb8c5;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.product-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: -22px 0 38px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}

.product-roles strong {
  margin-right: 8px;
  color: var(--text);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-card {
  position: relative;
  min-height: 390px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(20,23,26,.045);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: #b9c2cd;
  box-shadow: 0 20px 44px rgba(20,23,26,.085);
}

.product-card.large {
  grid-column: span 6;
}

.product-card.small {
  grid-column: span 4;
  min-height: 340px;
}

.product-card.dark {
  color: #fff;
  border-color: rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 80% 16%, rgba(47, 111, 237, .35), transparent 32%),
    var(--dark-soft);
}

.product-card.accent {
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(234,241,255,.9));
}

.product-card .tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-card.dark .tag {
  color: #dbe7ff;
  background: rgba(255,255,255,.1);
}

.product-card h3 {
  margin: 24px 0 12px;
  font-size: clamp(1.55rem, 2.3vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: -.03em;
}

.product-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.product-card.dark p {
  color: #b9c3cf;
}

.product-stat {
  position: absolute;
  right: 28px;
  bottom: 24px;
  text-align: right;
}

.product-stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.045em;
}

.product-stat span {
  color: var(--muted);
  font-size: .76rem;
}

.product-card.dark .product-stat span {
  color: #9da8b5;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 800;
}

.product-link::after {
  content: "→";
  transition: transform .2s ease;
}

.product-link:hover::after {
  transform: translateX(4px);
}

.philosophy-essay-heading {
  max-width: 920px;
}

.philosophy-essay-heading h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw, 4.5rem);
  line-height: 1.14;
  letter-spacing: -.045em;
}

.philosophy-statement {
  margin-top: 52px;
  padding: 38px 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 111, 237, .25), transparent 38%),
    rgba(255,255,255,.04);
}

.philosophy-statement strong {
  display: block;
  max-width: 1040px;
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
  line-height: 1.45;
  letter-spacing: -.025em;
}

.philosophy-essay {
  max-width: 940px;
  margin: 46px auto 0;
}

.philosophy-essay p {
  margin: 0;
  color: #c3ccd7;
  font-size: 1rem;
  line-height: 2;
}

.philosophy-essay p + p {
  margin-top: 24px;
}

.philosophy-essay p:first-child,
.philosophy-essay p:last-child {
  color: #fff;
  font-weight: 650;
}

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

.business-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.business-card .icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 1.15rem;
  font-weight: 900;
}

.business-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.business-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .66fr);
  gap: 72px;
  align-items: start;
}

.story-copy h2 {
  margin: 0 0 28px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.2;
  letter-spacing: -.045em;
}

.story-copy p {
  margin: 0 0 20px;
  color: var(--muted);
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 5px;
  width: 1px;
  background: #c9d0d8;
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-item time {
  display: block;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.timeline-item h3 {
  margin: 7px 0 5px;
  font-size: 1.02rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.achievement {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.achievement strong {
  display: block;
  font-size: 2.05rem;
  line-height: 1;
  letter-spacing: -.045em;
}

.achievement span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .83rem;
}

.news-block {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.news-heading .section-label {
  margin-bottom: 8px;
}

.news-heading h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.news-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color .2s ease, background-color .2s ease;
}

.news-item:hover {
  border-color: #aab4c0;
  background: var(--accent-soft);
}

.news-item time {
  color: var(--accent-strong);
  font-size: .84rem;
  font-weight: 750;
  letter-spacing: .04em;
}

.news-item > span:not(.news-arrow) {
  color: #30363d;
  font-weight: 650;
}

.news-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform .2s ease;
}

.news-item:hover .news-arrow {
  transform: translateX(4px);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.info-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.info-card h3 {
  margin: 0 0 22px;
  font-size: 1.35rem;
}

.profile-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.profile-name strong {
  font-size: 1.55rem;
}

.profile-name span {
  color: var(--muted);
  font-size: .86rem;
}

.info-card p {
  color: var(--muted);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: .9rem;
}

.company-table th {
  width: 31%;
  color: var(--muted);
  font-weight: 700;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}

.contact {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 111, 237, .12), transparent 35%),
    #fff;
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
}

.contact h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -.045em;
}

.contact p {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
}

.contact-email {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.contact-email:hover {
  color: var(--accent);
}

.site-footer {
  padding: 48px 0 28px;
  color: #c3ccd7;
  background: #0e1117;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.footer-brand .brand-symbol,
.footer-brand .brand-wordmark {
  filter: invert(1);
}

.footer-brand p {
  max-width: 460px;
  margin: 16px 0 0;
  color: #929eac;
  font-size: .85rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px 34px;
  font-size: .84rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  color: #7f8a98;
  font-size: .76rem;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(20,23,26,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Privacy policy pages */
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 84px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 86% 12%, rgba(47, 111, 237, .14), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
}

.legal-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  bottom: -250px;
  border: 1px solid rgba(47, 111, 237, .2);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(47, 111, 237, .03),
    0 0 0 108px rgba(47, 111, 237, .02);
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.14;
  letter-spacing: -.05em;
}

.legal-hero p:last-child {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.legal-content {
  max-width: 880px;
  padding: 52px 64px 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-content > p,
.legal-content li {
  color: #454c54;
}

.legal-content > p {
  margin: 0 0 18px;
}

.legal-content h2 {
  margin: 52px 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  letter-spacing: -.025em;
}

.legal-content ol,
.legal-content ul {
  margin: 0;
  padding-left: 1.5em;
}

.legal-content li {
  padding-left: .25em;
  line-height: 1.9;
}

.legal-content li + li {
  margin-top: 10px;
}

.legal-content li > ol,
.legal-content li > ul {
  margin-top: 10px;
}

.legal-company {
  color: var(--text) !important;
  font-weight: 750;
}

.legal-meta {
  margin-top: 24px !important;
  color: var(--muted) !important;
  font-size: .9rem;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 15px;
    font-size: .82rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-panel {
    min-height: 340px;
  }

  .section-heading {
    grid-template-columns: 210px 1fr;
    gap: 40px;
  }

  .product-card.large {
    grid-column: span 6;
  }

  .product-card.small {
    grid-column: span 6;
  }

  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    height: calc(100vh - var(--header-height));
    padding: 34px 24px 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    overflow-y: auto;
    background: rgba(247,248,250,.98);
    transform: translateX(100%);
    transition: transform .24s ease;
  }

  .nav-open .site-nav {
    transform: translateX(0);
  }

  .site-nav a {
    font-size: 1rem;
  }

  .hero-inner {
    min-height: auto;
    padding: 72px 0 68px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 4.6rem);
  }

  .hero h1.hero-title-en {
    font-size: clamp(2.25rem, 8.4vw, 3.8rem);
  }

  .section {
    padding: 84px 0;
  }

  .section-tight {
    padding: 68px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 38px;
  }

  .product-card.large,
  .product-card.small {
    grid-column: span 12;
  }

  .product-card {
    min-height: 330px;
  }

  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand-wordmark {
    width: 150px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-panel {
    padding: 26px;
  }

  .hero-metrics,
  .business-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .news-block {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }

  .news-item {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }

  .news-item time {
    grid-column: 1 / -1;
  }

  .product-card {
    padding: 26px;
  }

  .product-stat {
    position: static;
    margin-top: 30px;
    text-align: left;
  }

  .business-card,
  .info-card {
    padding: 24px;
  }

  .philosophy-statement {
    margin-top: 38px;
    padding: 28px 24px;
  }

  .philosophy-essay {
    margin-top: 34px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .company-table td {
    padding-top: 0;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* Detailed story pages — aligned with the main site's visual system */
.story-detail {
  max-width: 880px;
  margin-inline: auto;
}

.story-detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 52px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-detail-nav a {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.story-detail-nav a:hover {
  color: var(--accent);
}

.story-chapter {
  padding: 0 0 64px;
  margin: 0 0 64px;
  border-bottom: 1px solid var(--line);
}

.story-chapter:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.story-chapter .chapter-no {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.story-chapter h2 {
  margin: 0 0 24px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.3;
  letter-spacing: -.035em;
}

.story-chapter h3 {
  margin: 34px 0 12px;
  font-size: 1.3rem;
  line-height: 1.5;
}

.story-chapter p {
  margin: 0 0 20px;
  color: #454c54;
  font-size: 1rem;
  line-height: 2;
}

.story-chapter .story-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.story-chapter .story-link:hover {
  color: var(--accent);
}

.story-quote {
  margin: 34px 0;
  padding: 26px 28px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 750;
  line-height: 1.7;
}

.story-return {
  padding: 78px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

.story-return h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: -.04em;
}

.story-return p {
  max-width: 650px;
  margin: 18px auto 0;
  color: var(--muted);
}

@media (max-width: 620px) {
  .legal-hero {
    padding: 68px 0 62px;
  }

  .legal-content {
    padding: 32px 22px 40px;
    border-radius: var(--radius-md);
  }

  .legal-content h2 {
    margin-top: 42px;
  }

  .story-detail-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-chapter {
    padding-bottom: 48px;
    margin-bottom: 48px;
  }

  .story-quote {
    padding: 22px;
  }
}
