:root {
  color-scheme: light;
  --paper: #f7f1e6;
  --paper-0: #fffdf8;
  --paper-1: #eee3d1;
  --line: #d8c7aa;
  --ink: #171613;
  --muted: #5f574d;
  --quiet: #807568;
  --bronze: #9a6b3e;
  --teal: #114d45;
  --mustard: #c78331;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif KR", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans CJK SC", system-ui, sans-serif;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    linear-gradient(to right, rgba(154, 107, 62, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(154, 107, 62, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 14px;
  transform: translateY(-180%);
  padding: 10px 14px;
  background: var(--teal);
  color: var(--paper-0);
  border-radius: 4px;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 199, 170, 0.9);
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: var(--max);
  min-height: 70px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 34px;
}

.brand-compact {
  display: none !important;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.language-switcher {
  display: inline-flex;
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--paper-0);
  border-radius: 6px;
}

.language-switcher button {
  min-width: 38px;
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--teal);
  color: var(--paper-0);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-0);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 132px) clamp(18px, 4vw, 42px);
}

.hero-grid,
.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}

.hero-grid > *,
.two-column > *,
.contact-grid > *,
.product-entry > * {
  min-width: 0;
}

.hero .wrap {
  min-height: min(650px, calc(100vh - 70px));
  align-items: center;
  padding-top: clamp(44px, 6vw, 84px);
  padding-bottom: clamp(44px, 6vw, 84px);
}

.hero-lockup {
  margin: 0 0 clamp(36px, 5vw, 56px);
}

.hero-lockup img {
  width: clamp(260px, 36vw, 480px);
  height: auto;
}

.ph {
  display: inline-block;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
  word-break: keep-all;
}

h1 {
  max-width: 11em;
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: 1.2;
}

.hero h1 {
  max-width: 13em;
  line-height: 1.22;
}

h2 {
  line-height: 1.24;
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.24;
}

.lead,
.copy-block p,
.product-copy p,
.contact-list,
.site-footer {
  color: var(--muted);
}

.section {
  border-top: 1px solid var(--line);
}

.eyebrow,
.catalog-no,
figcaption {
  color: var(--bronze);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-figure {
  margin: 0;
  align-self: center;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}

.hero-figure figcaption,
.product-image figcaption {
  margin-top: 10px;
}

.copy-block {
  border-top: 1px solid var(--line);
}

.copy-block p {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.product-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.48fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.catalog-no {
  margin: 22px 0 18px;
  font-family: var(--serif);
  font-size: 34px;
}

.app-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.facts,
.contact-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}

.facts dt,
.facts dd,
.contact-list dt,
.contact-list dd {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt,
.contact-list dt {
  color: var(--bronze);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.link-row a,
.text-link {
  color: var(--teal);
  font-weight: 650;
}

.product-image {
  margin: 0;
  width: min(100%, 286px);
  justify-self: end;
}

.product-image img {
  width: 100%;
  aspect-ratio: 828 / 1760;
  object-fit: cover;
  background: #11110f;
  border: 8px solid #11110f;
  border-radius: 36px;
  box-shadow: 0 22px 52px rgba(31, 24, 16, 0.2);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-0);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px clamp(18px, 4vw, 42px) 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px clamp(32px, 6vw, 80px);
  align-items: start;
}

.footer-brand {
  display: inline-block;
}

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

.footer-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.footer-inner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    order: 4;
    width: 100%;
    display: none;
  }

  .site-header.is-open .nav-links {
    display: flex;
  }

  .hero-grid,
  .two-column,
  .contact-grid,
  .product-entry {
    grid-template-columns: 1fr;
  }

  .hero .wrap {
    min-height: auto;
  }

  .hero-lockup img {
    width: min(78vw, 380px);
  }

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

  .footer-meta {
    justify-items: start;
    text-align: left;
  }

  h1,
  h2 {
    overflow-wrap: break-word;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }

  .product-image {
    justify-self: start;
    width: min(100%, 260px);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .language-switcher {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher button {
    flex: 1;
  }

  .facts,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .facts dd,
  .contact-list dd {
    padding-top: 0;
  }
}

/* Chinese hero line: break only at the <br>, never leave a single character on the last line. */
html[lang^="zh"] .hero h1 {
  max-width: none;
}

/* Line breaking per language.
   zh / ja: headings carry phrase spans (.ph) so lines only break between phrases.
   ko: never split a word (어절) across lines. */
html[lang="ko"] body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

html[lang="ja"] body {
  line-break: strict;
}

html[lang="en"] h1,
html[lang="en"] h2 {
  word-break: normal;
}

/* Media must never cover copy: copy always stacks above figures. */
.hero-grid > div,
.product-copy,
.two-column > div {
  position: relative;
  z-index: 1;
}

@media (max-width: 560px) {
  .brand-full {
    display: none !important;
  }

  .brand-compact {
    display: block !important;
  }

  .brand img {
    height: 28px;
  }

  .hero .wrap {
    padding-top: 36px;
  }

  .hero-lockup {
    margin-bottom: 28px;
  }
}
