:root {
  --bg: #fbf8f3;
  --paper: #ffffff;
  --ink: #1a1814;
  --muted: #6b6358;
  --line: #e8e2d6;
  --accent: #b23a2b;
  --accent-dark: #8a2a1f;
  --soft: #f3ede1;
  --dark: #14110d;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

.serif { font-family: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Times New Roman", serif; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; margin: 0 auto; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; flex-wrap: nowrap; }
.nav > .nav-menu { flex: 1 1 auto; min-width: 0; justify-content: center; }
.nav > .lang-switch { flex-shrink: 0; }
@media (max-width: 880px) {
  .nav { flex-wrap: wrap; }
  .nav > .nav-menu { flex: 1 1 100%; order: 3; justify-content: flex-start; }
  .nav > .lang-switch { order: 2; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.45rem;
  letter-spacing: 0.22em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
}
.brand:hover { color: var(--accent); }
.brand-logo { height: 88px; width: auto; display: block; }

.nav-menu { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.lang-switch {
  display: inline-flex;
  gap: 2px;
  margin-left: 14px;
  align-items: center;
}
.lang-switch a {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: var(--accent); background: rgba(0, 0, 0, 0.04); }
.lang-switch a.active {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
}
@media (max-width: 720px) {
  .lang-switch { margin-left: 0; margin-top: 4px; }
  .lang-switch a { font-size: 0.66rem; padding: 3px 7px; letter-spacing: 0.14em; }
}
.nav-menu a {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  background-color: var(--dark);
  color: #fff;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,13,0.50) 0%, rgba(20,17,13,0.70) 55%, rgba(20,17,13,0.85) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 150px 28px 170px;
  max-width: 1180px;
  margin: 0 auto;
}
.hero .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 22px;
  font-weight: 500;
}
.hero h1 {
  font-family: "Cormorant Garamond", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.15;
  margin: 0 0 24px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero .lead {
  font-size: 1.08rem;
  margin: 0 0 40px;
  max-width: 40em;
  opacity: 0.92;
  line-height: 1.85;
  font-weight: 400;
}

/* Buttons */
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  border: 1px solid var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.cta:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.cta-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.cta-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Sections */
.section { padding: 110px 0; }
.section-alt { background: var(--soft); }
.section-dark { background: var(--dark); color: #f1ebdb; }
.section-dark p { color: #c9c0ad; }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head .eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}
.section h2 {
  font-family: "Cormorant Garamond", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin: 0 0 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.section p { color: var(--muted); }

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px 34px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: 0 18px 40px rgba(20,17,13,0.08); transform: translateY(-3px); border-color: var(--accent); }
.card .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.card h3 {
  font-family: "Cormorant Garamond", "Hiragino Mincho ProN", serif;
  margin: 0 0 14px; font-size: 1.45rem; letter-spacing: 0.02em; font-weight: 500;
}
.card p { color: var(--muted); margin: 0 0 18px; font-size: 0.95rem; line-height: 1.8; }
.card .more {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.card .more::after { content: " →"; }

/* Feature row (image + text) */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature.reverse .feature-image { order: 2; }
.feature-image img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 2px;
}
.feature-text .eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}
.feature-text h2 { margin-top: 0; }
.feature-text p { color: #4a4239; font-size: 1rem; line-height: 1.95; }

/* Page header */
.page-head {
  padding: 130px 0 70px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-head .eyebrow {
  font-style: italic;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-family: "Cormorant Garamond", serif;
}
.page-head h1 {
  font-family: "Cormorant Garamond", "Hiragino Mincho ProN", serif;
  margin: 0; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 500; letter-spacing: 0.02em;
}

/* Info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 56px;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.info-table th {
  width: 200px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.info-table td { font-size: 1rem; line-height: 1.7; }

/* Content blocks */
.content h2 {
  margin: 64px 0 18px;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-family: "Cormorant Garamond", "Hiragino Mincho ProN", serif;
  font-size: 1.25rem; margin: 36px 0 12px; font-weight: 500; letter-spacing: 0.02em;
}
.content p, .content ul, .content ol {
  font-size: 1rem;
  color: #2a2620;
  line-height: 1.95;
}
.content ul li { margin-bottom: 10px; }

.process-list { list-style: none; padding: 0; counter-reset: step; }
.process-list li {
  counter-increment: step;
  padding: 26px 0 26px 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.process-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 26px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 500;
}
.process-list li strong { display: block; font-size: 1.1rem; margin-bottom: 4px; font-weight: 600; }
.process-list li span { color: var(--muted); font-size: 0.95rem; }

/* CTA block */
.cta-block { text-align: center; }
.cta-block .eyebrow {
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}
.cta-block h2 { margin-bottom: 16px; }
.cta-block p { margin-bottom: 36px; max-width: 38em; margin-left: auto; margin-right: auto; }

/* Stats / quick facts */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}
.stat {
  padding: 24px 12px;
}
.stat .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  color: var(--accent);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
}
.stat .label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: 64px 0 36px;
  background: var(--dark);
  color: #c9c0ad;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  color: #f1ebdb;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 600;
}
.footer-grid a { color: #c9c0ad; display: block; padding: 5px 0; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { line-height: 1.7; margin: 0 0 14px; }
.site-footer .copyright {
  border-top: 1px solid #2a2620;
  padding-top: 26px;
  text-align: center;
  color: #8a8275;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

@media (max-width: 800px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feature-image { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .info-table th { width: 130px; font-size: 0.72rem; }
  .hero-inner { padding: 110px 24px 130px; }
  .section { padding: 72px 0; }
  .nav { min-height: 60px; }
  .nav-menu { gap: 4px 14px; }
  .nav-menu a { font-size: 0.74rem; letter-spacing: 0.1em; }
  .brand { font-size: 1.2rem; gap: 8px; }
  .brand-logo { height: 68px; }
}

/* Founder portrait figure */
.founder-figure { margin: 24px 0 32px; }
.founder-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(20, 17, 13, 0.12);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Wide panorama figure for the Services section on home */
.services-panorama { margin: 0 0 48px; }
.services-panorama img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(20, 17, 13, 0.12);
}
@media (max-width: 720px) {
  .services-panorama { margin-bottom: 32px; }
  .services-panorama img { aspect-ratio: 16 / 9; border-radius: 6px; }
}

/* Inline content figures (3 per page within main body) */
.inline-figure {
  margin: 36px 0;
}
.inline-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(20, 17, 13, 0.10);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Chinese font stack — applied to pages with <html lang="zh-*"> */
:lang(zh), :lang(zh-Hans), :lang(zh-Hant), html[lang^="zh"] body {
  font-family: "Inter", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", sans-serif;
}
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) h4,
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(zh-Hans) h4,
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3, :lang(zh-Hant) h4,
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3, html[lang^="zh"] h4,
html[lang^="zh"] .gallery-title,
html[lang^="zh"] .hero h1,
html[lang^="zh"] .brand {
  font-family: "Cormorant Garamond", "Source Han Serif SC", "Noto Serif SC", "Source Han Serif CN", "Songti SC", "STSong", "SimSun", serif;
  letter-spacing: 0.04em;
}
/* Body letter-spacing tweaks for Chinese (default Latin tracking is too loose) */
html[lang^="zh"] .eyebrow,
html[lang^="zh"] .nav-menu a,
html[lang^="zh"] .lang-switch a {
  letter-spacing: 0.08em;
}

/* Page atmosphere gallery (4-image grid) */
.gallery { padding: 80px 0; background: var(--bg); }
.gallery .container { max-width: 1200px; }
.gallery-title {
  font-family: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.7rem;
  letter-spacing: 0.22em;
  text-align: center;
  margin: 0 0 8px;
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 500;
}
.gallery-sub {
  text-align: center;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 44px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(20, 17, 13, 0.08);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.gallery-grid img:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(20, 17, 13, 0.14);
}
@media (max-width: 720px) {
  .gallery { padding: 56px 0; }
  .gallery-title { font-size: 1.3rem; letter-spacing: 0.18em; }
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
}
