:root {
  --color-bg: #F6F3EE;
  --color-surface: #FFFFFF;
  --color-text: #2B2520;
  --color-text-muted: #6E655C;
  --color-primary: #B85C38;
  --color-primary-text: #9A4A2B;
  --color-secondary: #2F5D50;
  --color-border: #E3DCD2;
  --space-1: 8px; --space-2: 16px; --space-3: 32px; --space-4: 64px; --space-5: 96px;
  --font-heading: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-latin: "Inter", system-ui, sans-serif;
}
html[lang="zh-cmn-Hans"] {
  --font-heading: "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 16px;
  line-height: 1.9; letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--color-primary-text); }
:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 3px; border-radius: 2px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-2) var(--space-2);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand {
  font-family: var(--font-latin); font-weight: 700; letter-spacing: 0.18em;
  font-size: 1.05rem; color: var(--color-text); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 10px;
}
.brand { align-items: center; }
.brand .brand-mark { width: 26px; height: 26px; flex: none; }
.pill-nav {
  display: none;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px; box-shadow: 0 10px 30px -12px rgba(43, 37, 32, 0.25);
  padding: 6px 10px;
  align-items: center; gap: 2px;
}
.pill-nav a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-size: 0.82rem; letter-spacing: 0.06em; text-decoration: none;
  color: var(--color-text); transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.pill-nav a:hover { background: var(--color-bg); }
.pill-nav a.active { color: var(--color-primary-text); }
.pill-nav .lang-switch { color: var(--color-text-muted); border-left: 1px solid var(--color-border); border-radius: 0 999px 999px 0; margin-left: 4px; }
.pill-nav .lang-switch:hover { color: var(--color-primary-text); background: none; }

.nav-toggle {
  width: 52px; height: 52px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 10px 30px -12px rgba(43, 37, 32, 0.3);
  display: grid; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--color-text);
  border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(-90deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { opacity: 0; }

.nav-overlay {
  position: fixed; inset: 0; z-index: 30; background: var(--color-bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 10vw, 96px); gap: var(--space-2);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay a {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem;
  color: var(--color-text); text-decoration: none; letter-spacing: 0.04em;
}
.nav-overlay .lang-switch { font-size: 1rem; color: var(--color-text-muted); margin-top: var(--space-3); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
}
.hero-art {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block;
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100svh;
  padding: 96px clamp(24px, 7vw, 96px) var(--space-4);
  max-width: 1280px; margin: 0 auto; width: 100%;
}
.hero-label {
  font-family: var(--font-latin); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.22em; color: var(--color-primary-text);
  margin-bottom: var(--space-2);
}
.hero-copy {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.35; letter-spacing: 0.02em;
}
.hero-copy .line { display: block; overflow: hidden; }
.hero-copy .line > span { display: inline-block; }
.hero-sub {
  margin-top: var(--space-3); color: var(--color-text-muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem); max-width: 34em;
}
.scroll-cue {
  position: absolute; z-index: 1; right: clamp(24px, 6vw, 72px); bottom: 28px;
  color: var(--color-text-muted); text-decoration: none; font-size: 1.3rem;
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue { animation: cue-bob 2.4s ease-in-out infinite; }
  @keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
}

/* hero intro animation (only when JS enables it) */
html.js-anim .hero-copy .line > span {
  transform: translateY(110%); opacity: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
html.js-anim .hero-copy.in .line > span { transform: translateY(0); opacity: 1; }
html.js-anim .hero-copy.in .line:nth-child(2) > span { transition-delay: 0.15s; }
html.js-anim .hero-sub, html.js-anim .hero-label, html.js-anim .scroll-cue {
  opacity: 0; transition: opacity 0.8s ease 0.7s;
}
html.js-anim .hero.in .hero-sub, html.js-anim .hero.in .hero-label, html.js-anim .hero.in .scroll-cue { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .hero-copy .line > span, html.js-anim .hero-sub, html.js-anim .hero-label, html.js-anim .scroll-cue {
    transform: none; opacity: 1; transition: none;
  }
}

/* ---------- sections ---------- */
main { position: relative; z-index: 1; }
.section {
  max-width: 1120px; margin: 0 auto;
  padding: var(--space-5) clamp(24px, 6vw, 64px);
}
.section-head { margin-bottom: var(--space-4); }
.section-title {
  font-family: var(--font-latin); font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.1; letter-spacing: 0.01em;
}
.section-sub {
  color: var(--color-text-muted); font-size: 0.85rem; letter-spacing: 0.3em; margin-top: 6px;
}
.section h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }

/* mission (about) */
.mission p {
  font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 2.4;
  font-weight: 500; max-width: 40em;
}
.mission p + p { margin-top: var(--space-3); }
.keywords {
  display: flex; gap: var(--space-2) var(--space-3); flex-wrap: wrap;
  margin-top: var(--space-4);
  font-family: var(--font-latin); font-size: 0.85rem; letter-spacing: 0.16em;
  color: var(--color-secondary);
}

/* service / partnership rows */
.rows { border-top: 1px solid var(--color-border); }
.row {
  display: grid; grid-template-columns: 1fr; gap: var(--space-2);
  padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border);
  align-items: center;
}
.row-num {
  font-family: var(--font-latin); font-weight: 300; font-size: 1.6rem;
  color: var(--color-primary-text); line-height: 1;
}
.row p { color: var(--color-text-muted); font-size: 0.95rem; max-width: 46em; }
.row img { width: 56px; height: 56px; justify-self: start; }

/* company */
.company-table { border-top: 1px solid var(--color-border); }
.company-table div {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border);
}
.company-table dt { color: var(--color-text-muted); font-size: 0.9rem; }

/* contact */
.contact-mail { margin-top: var(--space-3); }
.btn {
  display: inline-block; background: var(--color-text); color: var(--color-bg);
  border-radius: 999px; padding: 16px 44px; text-decoration: none;
  font-family: var(--font-latin); letter-spacing: 0.14em; font-size: 0.9rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--color-primary); transform: translateY(-2px); }

footer {
  padding: var(--space-4) var(--space-2) var(--space-3); text-align: center;
  color: var(--color-text-muted); font-size: 0.85rem;
}
footer a { color: var(--color-text-muted); }

/* ---------- reveal on scroll (JS-enhanced, visible without JS) ---------- */
html.js-anim .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js-anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .row { grid-template-columns: 72px 1fr 88px; }
  .row img { justify-self: end; }
  .company-table div { grid-template-columns: 200px 1fr; }
}
@media (min-width: 1024px) {
  .pill-nav { display: inline-flex; }
  .nav-toggle, .nav-overlay { display: none; }
  .site-header { padding: 20px clamp(24px, 3vw, 48px); }
  .hero-inner { justify-content: center; align-items: flex-start; }
  .hero-inner > * { margin-left: 44%; }
  .hero-art { width: 58%; }
  .section { padding-left: var(--space-4); padding-right: var(--space-4); }
  .split { display: grid; grid-template-columns: 320px 1fr; gap: var(--space-4); align-items: start; }
  .split .section-head { position: sticky; top: 120px; margin-bottom: 0; }
}

/* privacy (legal) pages */
.legal { max-width: 720px; margin: 0 auto; padding: 140px clamp(24px, 6vw, 64px) var(--space-5); }
.legal h1 { font-family: var(--font-heading); font-weight: 800; font-size: 1.8rem; margin-bottom: var(--space-3); }
.legal h2 { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; margin: var(--space-3) 0 var(--space-1); }
.site-nav--simple { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: var(--space-2); }
.site-nav--simple nav { display: flex; gap: var(--space-2); background: rgba(255,255,255,0.9); border-radius: 999px; padding: 8px 18px; box-shadow: 0 10px 30px -12px rgba(43,37,32,0.25); }
.site-nav--simple nav a { font-size: 0.85rem; text-decoration: none; color: var(--color-text); white-space: nowrap; }

@media (max-width: 1023px) {
  .hero-art { opacity: 0.55; }
}
