:root {
  color-scheme: light;
  --ink: #202522;
  --text: #343b37;
  --muted: #6d746f;
  --paper: #faf7f1;
  --surface: #fffdf8;
  --soft: #f0ebe1;
  --line: #ddd6ca;
  --moss: #315743;
  --moss-dark: #20382d;
  --clay: #9d503b;
  --gold: #a88342;
  --blue: #466d7f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.72;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 13px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(221, 214, 202, 0.92);
  background: rgba(250, 247, 241, 0.95);
  backdrop-filter: blur(16px);
}

.brand {
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  min-height: 38px;
  padding: 8px 10px;
}

.nav a:hover {
  color: var(--moss-dark);
}

.nav-cta {
  border: 1px solid rgba(49, 87, 67, 0.25);
  border-radius: 999px;
  background: var(--surface);
  color: var(--moss-dark);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(49, 87, 67, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
}

.lang-switch a,
.lang-switch span {
  min-width: 42px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.lang-switch .is-current {
  background: var(--moss);
  color: #fffdf8;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.62fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: clamp(54px, 8vw, 104px) clamp(22px, 6vw, 76px) clamp(48px, 7vw, 82px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero-main {
  max-width: 860px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 28px 0 0;
  color: var(--moss-dark);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 780;
  line-height: 1.45;
}

.hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.85;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  background: var(--moss);
  color: #fffdf8;
}

.button.secondary {
  border: 1px solid rgba(49, 87, 67, 0.3);
  background: var(--surface);
  color: var(--moss-dark);
}

.button.ghost {
  border: 1px solid rgba(157, 80, 59, 0.32);
  background: rgba(157, 80, 59, 0.08);
  color: #7e3e2d;
}

.profile-panel {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.profile-panel img {
  width: min(72%, 280px);
  margin: 24px auto 0;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.03);
}

.profile-panel-body {
  padding: 24px;
}

.panel-name {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
}

.fact-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 15px;
}

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

.fact-list li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "•";
}

.section {
  padding: clamp(68px, 9vw, 116px) clamp(22px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}

.compact-section {
  background: var(--paper);
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 34px;
}

.section-heading h2,
.profile-layout h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-list article {
  min-height: 260px;
  padding: 26px;
  background: var(--surface);
}

.number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: 0;
}

.service-list p,
.proof-grid p {
  margin: 16px 0 0;
  color: var(--muted);
}

.question-section {
  background: var(--moss-dark);
  color: #fffdf8;
}

.question-section .section-heading p,
.question-section .section-kicker {
  color: rgba(255, 253, 248, 0.74);
}

.question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255, 253, 248, 0.16);
}

.question-list p {
  margin: 0;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 253, 248, 0.07);
  color: rgba(255, 253, 248, 0.9);
  font-size: 19px;
  line-height: 1.62;
}

.question-list p:first-child {
  grid-column: span 2;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.45;
}

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

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  counter-increment: process;
}

.process-list li::before {
  display: block;
  margin-bottom: 32px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  content: "STEP " counter(process, decimal-leading-zero);
}

.process-list strong {
  display: block;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
}

.process-list span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.profile-section {
  background: var(--soft);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.52fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 90px);
  max-width: 1120px;
  margin: 0 auto;
}

.prose p {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 19px;
}

.works-section {
  background: var(--paper);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.proof-grid article {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  min-width: 0;
  background: var(--surface);
  overflow: hidden;
}

.proof-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.proof-grid .proof-img-contain {
  box-sizing: border-box;
  padding: 12px;
  object-fit: contain;
  object-position: center;
  background: #f7f2e8;
}

.proof-grid .proof-img-top {
  height: 220px;
  object-position: center bottom;
}

.proof-grid .proof-img-middle {
  object-position: center 52%;
}

.proof-grid .proof-img-left {
  object-position: left 4%;
}

.proof-grid .proof-img-right {
  object-position: right 4%;
}

.proof-grid .proof-img-japan {
  object-position: center 86%;
}

.proof-body {
  padding: 22px 24px 26px;
}

.proof-body h3 {
  overflow-wrap: anywhere;
}

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

.notes-list {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.note-item {
  border-bottom: 1px solid var(--line);
}

.note-link {
  display: block;
  padding: 20px 0;
  color: var(--moss-dark);
}

.note-title {
  display: block;
  padding-right: 32px;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 780;
}

.note-summary {
  display: block;
  margin-top: 10px;
  max-width: 820px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.75;
}

.note-link::after {
  float: right;
  margin-top: -34px;
  color: var(--clay);
  content: "→";
}

.article-page {
  min-height: 100vh;
  background: var(--surface);
}

.article-shell {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) clamp(22px, 6vw, 32px) clamp(72px, 9vw, 110px);
}

.article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--clay);
  font-size: 14px;
  font-weight: 760;
}

.article-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
}

.article-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.article-lead {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.9;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.article-body {
  padding-top: 32px;
}

.article-body h2 {
  margin: 38px 0 14px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.3;
}

.article-body p,
.article-body li {
  color: var(--text);
  font-size: 17px;
  line-height: 1.9;
}

.article-body p {
  margin: 0 0 18px;
}

.article-points {
  margin: 10px 0 0;
  padding-left: 22px;
}

.article-footnote {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.contact-section {
  padding: clamp(74px, 10vw, 128px) clamp(22px, 6vw, 76px);
  background: var(--ink);
  color: #fffdf8;
  text-align: center;
}

.contact-section h2,
.contact-section p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section p {
  color: rgba(255, 253, 248, 0.76);
  font-size: 18px;
}

.contact-actions {
  justify-content: center;
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    max-width: 680px;
  }

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

}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .header-tools {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
    font-size: 13px;
  }

  .article-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 50px;
  }

  .service-list,
  .question-list,
  .process-list,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .question-list p:first-child {
    grid-column: span 1;
    font-size: 22px;
  }

  .service-list article,
  .process-list li {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .nav {
    gap: 2px;
  }

  .nav a {
    padding: 7px 8px;
  }

  .hero {
    padding-top: 42px;
  }

  .lang-switch {
    width: 100%;
    justify-content: space-between;
  }

  .lang-switch a,
  .lang-switch span {
    flex: 1 1 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .hero-lead,
  .section-heading p,
  .prose p,
  .contact-section p {
    font-size: 16px;
  }

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

  .button {
    width: 100%;
  }

  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}
