:root {
  --bg: #f6f1e7;
  --paper: rgba(255, 251, 245, 0.88);
  --paper-strong: rgba(255, 251, 245, 0.96);
  --ink: #171410;
  --muted: #6b6258;
  --line: rgba(23, 20, 16, 0.1);
  --matcha: #4b6b4c;
  --matcha-deep: #304834;
  --gold: #b9965e;
  --vermilion: #9f342c;
  --shadow: 0 18px 50px rgba(23, 20, 16, 0.08);
  --radius: 24px;
  --max: 1120px;
  --font-display: "Noto Serif JP", "Cormorant Garamond", serif;
  --font-body: "Noto Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(159, 52, 44, 0.06), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(75, 107, 76, 0.08), transparent 28%),
    linear-gradient(180deg, #faf6ef 0%, #f4ede1 100%);
  line-height: 1.72;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }

.rail {
  position: fixed;
  top: 0; bottom: 0;
  width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  z-index: 5;
  pointer-events: none;
  opacity: 0.6;
}
.rail-left { left: 0; }
.rail-right { right: 0; }
.rail-jp {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  color: var(--muted);
}
.rail-en {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  color: var(--muted);
}
.rail-line {
  width: 1px; flex: 0 0 64px; background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 246, 239, 0.84);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hanko {
  width: 58px;
  height: 58px;
  border: 2px solid var(--vermilion);
  color: var(--vermilion);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  font-size: 0.82rem;
  background: rgba(255, 251, 245, 0.72);
}
.hanko-sm {
  width: 46px;
  height: 46px;
  font-size: 0.72rem;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo-text small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.nav a i {
  font-style: normal;
  color: var(--gold);
  font-family: var(--font-display);
}
.nav a:hover { color: var(--matcha-deep); }
.nav-cta {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--matcha);
  color: #fff !important;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 16px; height: 1.5px; background: var(--ink); display: block; }

.hero {
  position: relative;
  padding: 6rem 0 4.5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 168px;
  background:
    radial-gradient(circle at 12px 12px, rgba(75,107,76,0.08) 11px, transparent 12px) 0 0 / 48px 24px,
    radial-gradient(circle at 36px 12px, rgba(75,107,76,0.08) 11px, transparent 12px) 0 12px / 48px 24px;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, transparent, black 38%);
}
.hero-content {
  position: relative;
  max-width: 760px;
  z-index: 2;
}
.hero-enso {
  position: absolute;
  top: 58px;
  right: 11%;
  width: min(30vw, 320px);
  color: rgba(159, 52, 44, 0.14);
  z-index: 1;
}
.hero-enso svg { width: 100%; height: auto; display: block; }
.hero-kanji {
  position: absolute;
  right: 8%;
  bottom: 132px;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  color: rgba(23, 20, 16, 0.05);
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: var(--matcha);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.eyebrow b {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
}
.eyebrow-rule {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 600;
}
h1 {
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.h1-jp {
  display: block;
  margin-top: 0.45rem;
  color: var(--vermilion);
  font-style: normal;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: 0.18em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}
h3 { font-size: 1.34rem; margin-bottom: 0.55rem; }
.hero-lead, .section p, .card p, .presence-item p { color: var(--muted); }
.hero-lead {
  font-size: 1.12rem;
  max-width: 38rem;
  margin-bottom: 1.8rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.hero-note i {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  transition: 0.2s ease;
}
.btn-primary {
  background: var(--matcha);
  color: #fff;
  box-shadow: 0 10px 24px rgba(75, 107, 76, 0.22);
}
.btn-primary:hover { background: var(--matcha-deep); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid rgba(23, 20, 16, 0.15);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--matcha); color: var(--matcha-deep); }

.section { padding: 4.7rem 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.about p + p { margin-top: 1rem; }
.about-card, .card, .presence-item, .contact-box {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.about-card {
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.about-card ul { list-style: none; display: grid; gap: 0.9rem; }
.about-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.about-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.about-card span { color: var(--muted); font-size: 0.92rem; }
.about-card span i { font-style: normal; color: var(--gold); margin-left: 0.3rem; }
.about-card strong { text-align: right; }

.signature {
  background:
    linear-gradient(180deg, transparent, rgba(75,107,76,0.05), transparent),
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(23,20,16,0.022) 72px 73px);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--vermilion), transparent);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(23,20,16,0.12); }
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.card-jp {
  font-family: var(--font-display);
  color: var(--vermilion);
  letter-spacing: 0.14em;
}
.card-num {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.presence-list { display: grid; gap: 0.9rem; }
.presence-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
}
.presence-item strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}
.presence-item strong i {
  color: var(--gold);
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.92rem;
}
.mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(75,107,76,0.1);
  display: grid;
  place-items: center;
  color: var(--matcha-deep);
  font-family: var(--font-display);
  font-weight: 700;
}
.mark-red {
  background: rgba(159,52,44,0.1);
  color: var(--vermilion);
}

.contact { padding-bottom: 5rem; }
.contact-box {
  border-radius: 30px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  display: grid;
  grid-template-columns: 1.1fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  background:
    linear-gradient(135deg, rgba(75,107,76,0.08), transparent 40%),
    var(--paper-strong);
}
.contact-kanji {
  position: absolute;
  right: 2rem;
  top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  color: rgba(159,52,44,0.07);
  pointer-events: none;
}
.contact-actions { display: grid; gap: 0.9rem; justify-items: start; }
.email-link {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--matcha-deep);
  font-weight: 600;
  word-break: break-all;
}
.email-link:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.7rem 0 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.footer-brand strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .rail { display: none; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.25rem 1rem;
    background: rgba(250, 246, 239, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 0.5rem; text-align: center; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .cards, .contact-box { grid-template-columns: 1fr; }
  .hero { padding-top: 4.5rem; }
  .hero-enso { right: -20px; top: 90px; width: 220px; }
  .hero-kanji { right: 12px; bottom: 110px; }
}

@media (max-width: 520px) {
  .container { width: min(var(--max), calc(100% - 1.2rem)); }
  h1 { font-size: 2.7rem; }
  .hero-actions { width: 100%; }
  .btn { width: 100%; }
  .logo-text small { letter-spacing: 0.08em; }
}
