:root {
  --accent: #D8472E; /* vermillion — default theme accent */
  --ink: #2A1512;
  --bg: #FBF3EC;
  --text: #4A332C;
  --banner-h: 34px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: 'palt';
  -webkit-font-smoothing: antialiased;
}
p { text-wrap: pretty; }
::selection { background: #2A1512; color: #FBF1E7; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes scrollDash {
  0% { transform: translateY(-16px); }
  100% { transform: translateY(48px); }
}

/* ---------- Construction banner ---------- */
.construction-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #FBF3EC;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: var(--banner-h); left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 44px;
  background: rgba(251, 243, 236, 0.85);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(42, 21, 18, 0.08);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.brand-name {
  font-family: 'Zen Old Mincho', serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand-en {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #B7A79C;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #4A332C;
  transition: color 0.25s;
}
.nav-link:hover { color: var(--accent); }
.nav-cta {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--bg);
  background: var(--ink);
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.25s;
}
.nav-cta:hover { background: #3D251F; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.btn-solid {
  color: var(--bg);
  background: var(--ink);
  padding: 16px 32px;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}
.btn-solid:hover { background: #3D251F; transform: translateY(-1px); }
.btn-arrow { font-size: 15px; line-height: 1; }
.btn-underline {
  color: var(--ink);
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(42, 21, 18, 0.3);
  transition: color 0.25s, border-color 0.25s;
}
.btn-underline:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(172px + var(--banner-h)) 44px 110px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 72px;
  align-items: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}
.eyebrow-rule { height: 1px; width: 44px; background: var(--accent); }
.eyebrow-text {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-title {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 600;
  font-size: clamp(44px, 5.9vw, 76px);
  line-height: 1.22;
  white-space: nowrap;
  letter-spacing: 0.015em;
  margin: 0 0 32px;
  color: var(--ink);
}
.hero-lead {
  font-size: 16px;
  line-height: 2.1;
  color: var(--text);
  max-width: 480px;
  margin: 0 0 10px;
}
.hero-lead-en {
  font-size: 12.5px;
  line-height: 1.75;
  color: #9C8579;
  letter-spacing: 0.03em;
  max-width: 470px;
  margin: 0 0 42px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* Hero media */
.hero-media { position: relative; }
.frame-outline {
  position: absolute;
  top: 20px; left: 20px; right: -20px; bottom: -20px;
  border: 1px solid var(--accent);
  opacity: 0.4;
  border-radius: 20px;
}
.frame-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #EDE0D3, #EDE0D3 11px, #F5ECE1 11px, #F5ECE1 22px);
  display: flex;
  align-items: flex-end;
  box-shadow: 0 34px 70px -34px rgba(42, 21, 18, 0.38);
}
.frame-tag {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: #9C8B76;
  background: rgba(251, 243, 236, 0.88);
  padding: 6px 10px;
  margin: 14px;
  border-radius: 6px;
}
.hero-card {
  position: absolute;
  left: -30px;
  bottom: 44px;
  background: #FFFFFF;
  padding: 17px 24px;
  border-radius: 12px;
  box-shadow: 0 20px 44px -22px rgba(42, 21, 18, 0.42);
  border-left: 3px solid var(--accent);
  transform: rotate(-2deg);
}
.hero-card-name {
  font-family: 'Zen Old Mincho', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.08em;
}
.hero-card-role {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: #9C8579;
  margin-top: 5px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  left: 48px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint-text {
  writing-mode: vertical-rl;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  color: #B7A79C;
  text-transform: uppercase;
}
.scroll-hint-track {
  width: 1px;
  height: 48px;
  background: rgba(42, 21, 18, 0.12);
  overflow: hidden;
  display: block;
  position: relative;
}
.scroll-hint-dash {
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  height: 16px;
  background: var(--accent);
  animation: scrollDash 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ---------- Stats ---------- */
.stats {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 44px 48px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(42, 21, 18, 0.12);
  border-bottom: 1px solid rgba(42, 21, 18, 0.12);
}
.stat { padding: 30px 24px; border-left: 1px solid rgba(42, 21, 18, 0.09); }
.stat:first-child { padding: 30px 24px 30px 0; border-left: none; }
.stat:last-child { padding: 30px 0 30px 24px; }
.stat-num {
  font-family: 'Zen Old Mincho', serif;
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
}
.stat-unit { font-size: 16px; color: var(--accent); }
.stat-label {
  font-size: 12.5px;
  color: #6B564C;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ---------- Section head ---------- */
.section-head-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.section-no {
  font-family: 'Zen Old Mincho', serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.section-kicker {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: #B7A79C;
  text-transform: uppercase;
}
.section-rule { flex: 1; height: 1px; background: rgba(42, 21, 18, 0.1); }
.section-title {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 600;
  font-size: 38px;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.04em;
}

/* ---------- About ---------- */
.about {
  max-width: 1280px;
  margin: 0 auto;
  padding: 104px 44px;
  scroll-margin-top: calc(88px + var(--banner-h));
}
.about .section-head { margin-bottom: 60px; }
.about-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 76px;
  align-items: start;
}
.about-media { display: flex; gap: 20px; }
.about-media-label {
  writing-mode: vertical-rl;
  font-size: 10.5px;
  letter-spacing: 0.34em;
  color: #B7A79C;
  padding-top: 4px;
}
.about-photo-wrap { position: relative; flex: 1; }
.about-frame-outline {
  position: absolute;
  top: 16px; left: 16px; right: -16px; bottom: -16px;
  border: 1px solid rgba(42, 21, 18, 0.22);
  border-radius: 20px;
}
.about-photo { box-shadow: 0 26px 54px -32px rgba(42, 21, 18, 0.32); }
.about-name {
  font-family: 'Zen Old Mincho', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.about-name-en {
  font-size: 14px;
  color: #9C8579;
  letter-spacing: 0.12em;
  font-weight: 400;
}
.about-role {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-top: 10px;
}
.hr { height: 1px; background: rgba(42, 21, 18, 0.1); margin: 30px 0; }
.about-text {
  font-size: 15px;
  line-height: 2.15;
  color: var(--text);
  margin: 0 0 22px;
}
.about-text-last { margin: 0 0 36px; }
.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 44px;
}
.about-meta-label {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: #B7A79C;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.career {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid rgba(42, 21, 18, 0.12);
  padding-left: 18px;
}
.career-row {
  display: flex;
  gap: 14px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text);
}
.career-year {
  color: var(--accent);
  font-family: 'Zen Old Mincho', serif;
  flex-shrink: 0;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 12.5px;
  color: var(--text);
  border: 1px solid rgba(42, 21, 18, 0.16);
  padding: 7px 14px;
  border-radius: 999px;
  transition: border-color 0.25s, color 0.25s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Research ---------- */
.research {
  background: #F6E6DA;
  scroll-margin-top: calc(88px + var(--banner-h));
}
.research-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 104px 44px;
}
.research-head { margin-bottom: 16px; }
.research-lead {
  font-size: 14.5px;
  line-height: 2.0;
  color: #6B564C;
  max-width: 560px;
  margin: 0 0 56px;
}
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(42, 21, 18, 0.1);
  border: 1px solid rgba(42, 21, 18, 0.1);
}
.theme {
  background: var(--bg);
  padding: 42px 42px 46px;
  transition: background 0.35s, box-shadow 0.35s;
}
.theme:hover {
  background: #FFFFFF;
  box-shadow: inset 0 3px 0 var(--accent);
}
.theme-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.theme-no {
  font-family: 'Zen Old Mincho', serif;
  font-size: 42px;
  color: var(--accent);
  line-height: 1;
}
.theme-en {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: #B7A79C;
  text-transform: uppercase;
}
.theme-title {
  font-family: 'Zen Old Mincho', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}
.theme-body {
  font-size: 13.5px;
  line-height: 2.0;
  color: var(--text);
  margin: 0;
}

/* ---------- Statement ---------- */
.statement {
  background: var(--ink);
  color: #F1E4DC;
  position: relative;
  overflow: hidden;
}
.statement-kanji {
  position: absolute;
  right: -30px;
  bottom: -110px;
  font-family: 'Zen Old Mincho', serif;
  font-size: 340px;
  line-height: 1;
  color: rgba(241, 228, 220, 0.05);
  pointer-events: none;
  user-select: none;
}
.statement-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 116px 44px;
  text-align: center;
  position: relative;
}
.statement-quote {
  display: block;
  font-family: 'Zen Old Mincho', serif;
  font-size: 56px;
  color: var(--accent);
  line-height: 0.5;
}
.statement-text {
  font-family: 'Zen Old Mincho', serif;
  font-size: 31px;
  line-height: 1.9;
  font-weight: 500;
  margin: 22px 0 0;
  letter-spacing: 0.06em;
}
.statement-en {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: #B49B90;
  margin: 30px 0 0;
  text-transform: uppercase;
}

/* ---------- Data Center ---------- */
.datacenter {
  max-width: 1280px;
  margin: 0 auto;
  padding: 104px 44px;
  scroll-margin-top: calc(88px + var(--banner-h));
}
.datacenter-head { margin-bottom: 40px; }
.datacenter-title { margin: 0 0 22px; }
.datacenter-lead {
  font-size: 14.5px;
  line-height: 2.0;
  color: #6B564C;
  max-width: 620px;
  margin: 0;
}
.data-table { border-top: 1px solid rgba(42, 21, 18, 0.14); }
.data-row {
  display: grid;
  grid-template-columns: 72px 150px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 16px;
  border-bottom: 1px solid rgba(42, 21, 18, 0.1);
  transition: background 0.3s;
}
.data-row:hover { background: #F6E6DA; }
.data-code {
  font-family: 'Zen Old Mincho', serif;
  font-size: 16px;
  color: var(--ink);
}
.data-type { display: flex; align-items: center; gap: 9px; }
.data-type-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.data-type-text {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: #6B564C;
  text-transform: uppercase;
}
.data-title {
  font-size: 14.5px;
  color: #3A2620;
  line-height: 1.7;
}
.data-scale {
  font-size: 12px;
  color: #9C8579;
  letter-spacing: 0.04em;
}
.datacenter-note {
  font-size: 11px;
  color: #B7A79C;
  margin-top: 20px;
  letter-spacing: 0.05em;
}

/* ---------- Contact ---------- */
.contact {
  background: #F6E6DA;
  scroll-margin-top: calc(88px + var(--banner-h));
}
.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 108px 44px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.contact-head-row { margin-bottom: 20px; }
.contact-copy .section-title { margin: 0 0 26px; }
.contact-text {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text);
  max-width: 430px;
  margin: 0;
}
.contact-text-en {
  font-size: 12px;
  line-height: 1.8;
  color: #9C8579;
  margin: 16px 0 0;
  letter-spacing: 0.03em;
}
.contact-card {
  background: #FFFFFF;
  padding: 46px;
  border-radius: 18px;
  border-top: 3px solid var(--accent);
  box-shadow: 0 30px 64px -36px rgba(42, 21, 18, 0.42);
}
.contact-card-label {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: #B7A79C;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-email {
  font-family: 'Zen Old Mincho', serif;
  font-size: 23px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.contact-email:hover { color: var(--accent); }
.contact-card .contact-card-label:nth-of-type(1) { margin-bottom: 10px; }
.contact-office {
  font-size: 14px;
  line-height: 2.0;
  color: var(--text);
}
.contact-btn { margin-top: 30px; padding: 15px 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #D8C7C0;
}
.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 44px 44px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.footer-brand-name {
  font-family: 'Zen Old Mincho', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--bg);
  letter-spacing: 0.04em;
}
.footer-brand-en {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #B49B90;
  margin-top: 14px;
}
.footer-nav { display: flex; gap: 32px; }
.footer-link {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #D8C7C0;
  text-decoration: none;
  transition: color 0.25s;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 44px;
  font-size: 11px;
  color: #9C8579;
  letter-spacing: 0.05em;
}

/* ---------- Entrance animations ---------- */
.fade-up { animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-up-1 { animation-delay: 0.08s; }
.fade-up-2 { animation-delay: 0.16s; }
.fade-up-3 { animation-delay: 0.22s; }
.fade-up-4 { animation-delay: 0.3s; }
.fade-up-media { animation-duration: 1s; animation-delay: 0.2s; }

/* Scroll reveal — JS toggles .is-visible */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-header { padding: 14px 24px; }
  .brand-en { display: none; }
  .site-nav { gap: 18px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: calc(140px + var(--banner-h)) 24px 80px;
  }
  .hero-title { white-space: normal; }
  .hero-media { max-width: 420px; }
  .scroll-hint { display: none; }
  .stats { padding: 0 24px 40px; }
  .about, .research-inner, .datacenter, .contact-inner { padding-left: 24px; padding-right: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .theme-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { padding: 48px 24px 36px; }
  .footer-bottom-inner { padding: 20px 24px; }
}
@media (max-width: 560px) {
  .site-nav { gap: 14px; }
  .nav-link { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child, .stat:last-child { padding: 24px 16px; border-left: none; }
  .about-meta { grid-template-columns: 1fr; }
  .section-title { font-size: 30px; }
  .data-row {
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
  }
  .data-title { grid-column: 1 / -1; }
  .data-scale { grid-column: 1 / -1; }
  .statement-text { font-size: 24px; }
  .statement-kanji { font-size: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
