:root {
  --bg: #0a0a0a;
  --bg-2: #0d0d0e;
  --panel: #111113;
  --panel-2: #141417;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f0eee8;
  --text-dim: #b6b4ad;
  --muted: #7a7a74;
  --muted-2: #5a5a55;
  --accent: #d8d6cf;

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 56px);
}

html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(240, 238, 232, 0.18); color: #fff; }
a { color: inherit; text-decoration: none; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,10,10,0.85), rgba(10,10,10,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav .brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.06em;
}
.nav ul {
  display: flex;
  gap: 44px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.nav ul a { transition: color .25s ease; }
.nav ul a:hover { color: #fff; }
.nav .menu-btn {
  display: none;
  background: none; border: none; color: var(--text);
  font-family: var(--mono); font-size: 12px; letter-spacing: .15em;
  cursor: pointer; padding: 6px 10px;
}

.nav.open ul {
  display: flex;
  position: absolute;
  top: 100%; left: 0; right: 0;
  flex-direction: column;
  gap: 0;
  background: rgba(10,10,10,0.97);
  border-top: 1px solid var(--line);
  padding: 8px 0;
  animation: slideDown .3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .nav ul { display: none; }
  .nav .menu-btn { display: block; }
  .nav.open ul li { padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px var(--pad) 80px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #14141a 0%, #0a0a0a 65%, #050505 100%);
}

/* Background decoration layers */
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
}
.hero-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--muted);
  margin-bottom: 56px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.hero-label::before, .hero-label::after {
  content: ""; width: 32px; height: 1px; background: var(--line-strong);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 5.2vw, 64px);
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin: 0 0 36px;
  position: relative;
  z-index: 2;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero h1 .line + .line { margin-top: 0.2em; }

.hero-sub {
  color: var(--text-dim);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 2.1;
  max-width: 640px;
  margin: 0 auto 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
}
.hero-sub + .hero-sub { margin-top: 24px; margin-bottom: 56px; }

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  min-width: 220px;
  justify-content: space-between;
  font-family: "Noto Sans JP", var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all .25s ease;
}
.btn:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.32); }
.btn.primary { background: rgba(245, 243, 237, 0.95); color: #0a0a0a; border-color: rgba(245, 243, 237, 0.95); }
.btn.primary:hover { background: #fff; color: #000; }
.btn .arrow { font-family: var(--mono); font-weight: 300; font-size: 14px; }

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
  color: var(--muted);
}
.scroll-indicator .line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--line-strong));
}
.scroll-indicator .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.4em;
}

/* ---------- SECTION SHARED ---------- */
section.block {
  position: relative;
  padding: clamp(96px, 14vw, 180px) var(--pad);
  border-top: 1px solid var(--line);
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--line-strong);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.55;
  letter-spacing: 0.03em;
  margin: 0 0 48px;
  text-wrap: pretty;
}
.lead {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 2.0;
  max-width: 720px;
  letter-spacing: 0.03em;
}

/* ---------- PROBLEM ---------- */
.problem-list {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.problem-item {
  background: var(--bg);
  padding: 36px 24px;
  text-align: center;
  position: relative;
}
.problem-item .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}
.problem-item .label {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.05em;
  color: var(--text);
}
.problem-conclusion {
  margin-top: 48px;
  text-align: center;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.problem-note {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.04em;
}
@media (max-width: 860px) {
  .problem-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .problem-list { grid-template-columns: 1fr; }
}

/* ---------- POSITION ---------- */
.position-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: stretch;
  margin-top: 40px;
}
.position-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.position-left .section-title {
  margin: 0 0 28px;
}

.panel {
  border: 1px solid rgba(255,255,255,.075);
  background: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.026));
  box-shadow: 0 30px 90px rgba(0,0,0,.22);
  padding: clamp(26px, 4vw, 42px);
}

.check-list {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 29px;
  color: rgba(255,255,255,.76);
  font-size: 15px;
  line-height: 1.85;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255,255,255,.5);
  transform: rotate(45deg);
}
.position-end {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  line-height: 1.9;
}
@media (max-width: 860px) {
  .position-grid { grid-template-columns: 1fr !important; gap: 48px; }
  .notdo-grid { grid-template-columns: 1fr !important; gap: 48px; }
}

/* ---------- SERVICES ---------- */
.services-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: 48px 40px;
  position: relative;
  transition: background .3s ease;
}
.service:hover { background: var(--panel); }
.service .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
  color: var(--text);
}
.service p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 2.0;
  margin: 0;
  letter-spacing: 0.03em;
}
@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 36px 28px; }
}

/* ---------- NOT DO ---------- */
.notdo {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.notdo .lead { margin-bottom: 40px; }
.notdo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.notdo-left {
  display: flex;
  flex-direction: column;
}
.notdo-left .section-title {
  margin: 0 0 28px;
}
.notdo-lead {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  letter-spacing: 0.03em;
}
.notdo-list {
  list-style: none; padding: 0; margin: 0;
}
.notdo-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.03em;
}
.notdo-list li:first-child { border-top: 1px solid var(--line); }
.notdo-list .mark {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 13px;
  min-width: 16px;
}
.notdo-end {
  margin-top: 56px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  line-height: 1.9;
}

/* ---------- PROCESS ---------- */
.process {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%; right: 8%;
  height: 1px;
  background: var(--line-strong);
}
.step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.step .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  margin-top: 22px;
}
.step .num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.step h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}
.step p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
  letter-spacing: 0.02em;
}
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 0px; }
  .process::before { display: none; }
  .step {
    text-align: left;
    padding: 40px 0;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0px;
    align-items: start;
    border-bottom: 1px solid var(--line);
  }
  .step:first-child {
    border-top: 1px solid var(--line);
  }
  .step .dot { margin: 3px 0 0; }
  .step .num { grid-column: 2; margin-bottom: 0; }
  .step h4 { grid-column: 2; }
  .step p { grid-column: 2; }
}

/* ---------- ARTICLES ---------- */
.articles {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  border: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  transition: border-color .25s ease, background .25s ease;
  position: relative;
}
.article-card:hover { border-color: var(--line-strong); background: var(--panel); }
.article-card .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-card .status {
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  font-size: 10px;
}
.article-card h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  margin: 0;
  flex: 1;
}
.article-card .desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.85;
  letter-spacing: 0.02em;
}
.article-card .read-more {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
}
@media (max-width: 860px) {
  .articles { grid-template-columns: 1fr; }
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--bg-2);
}
.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-inner .section-title { margin-bottom: 64px; }
.about-body {
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2.4;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.about-body p { margin: 0 0 32px; }
.about-body p:last-child { margin-bottom: 0; }
.etymology {
  display: inline-flex;
  gap: 32px;
  justify-content: center;
  margin: 40px 0;
  padding: 32px 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.etymology div {
  text-align: center;
}
.etymology .word {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.etymology .meaning {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--muted);
}
.etymology .plus {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--muted);
  align-self: center;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-grid .lead { margin-bottom: 32px; }
.contact-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.contact-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  font-size: 14px;
  color: var(--text);
}
.contact-list .mark {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 3px;
}
.contact-list .label-mini {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}
.contact-ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}
.contact-ctas .btn { min-width: 0; width: 100%; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px var(--pad) 40px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.footer-tagline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--muted);
}
.footer-meta { font-family: var(--mono); font-size: 11px; }
.footer-links { display: flex; gap: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; }
.footer-links a:hover { color: #fff; }

/* fade-in */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
