:root {
  --bg: #ffffff;
  --bg-2: #f6f8fa;
  --panel: #f7f9fb;
  --text: #16252f;
  --muted: #64798a;
  --line: rgba(22, 37, 47, 0.12);
  --accent: #10788f;
  --max: 940px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ---------- logo badge ---------- */
.logo-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eef3f6;
  border: 1px solid var(--line);
  flex: none;
}

.logo-badge.lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.site-nav {
  display: flex;
  gap: 26px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  padding: 6px 0;
  transition: color 0.25s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 28px 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 24% 18%, rgba(16, 120, 143, 0.12), transparent 62%),
    radial-gradient(760px 560px at 82% 72%, rgba(99, 140, 170, 0.14), transparent 65%);
}

/* hero watermark logo */
.hero-mark {
  position: absolute;
  top: 50%;
  right: -7%;
  transform: translateY(-50%);
  line-height: 0;
  pointer-events: none;
  opacity: 0.07;
  animation: mark-in 1.5s 0.25s both ease-out;
}

.hero-mark img {
  display: block;
  width: clamp(340px, 46vw, 660px);
  height: auto;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 0.8s 0.05s both ease-out;
}

.hero-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(2rem, 5.8vw, 3.6rem);
  line-height: 1.38;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hero h1 .line {
  display: block;
  animation: rise 0.9s both ease-out;
}

.hero h1 .line:nth-child(1) { animation-delay: 0.12s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.22s; }

.accent { color: var(--accent); }

.hero .lead {
  margin: 0;
  max-width: 33em;
  color: var(--muted);
  font-size: 1rem;
  animation: rise 0.9s 0.32s both ease-out;
}

.hero-links {
  margin: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.9s 0.42s both ease-out;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  background: #fff;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.btn.primary:hover {
  background: #0c6377;
  border-color: #0c6377;
  color: #ffffff;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  margin: 0;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  margin: 10px auto 0;
  background: linear-gradient(to bottom, var(--muted), transparent);
}

/* ---------- sections ---------- */
.section {
  padding: 110px 0;
  scroll-margin-top: 66px;
  border-top: 1px solid var(--line);
}

.section.alt {
  background: linear-gradient(180deg, #f6f8fa, #ffffff);
}

.section .inner,
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.section-head {
  margin-bottom: 44px;
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow .num {
  color: var(--muted);
  margin-right: 14px;
}

.section h2 {
  margin: 8px 0 0;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.statement {
  margin: 0;
  font-size: clamp(1.2rem, 2.9vw, 1.7rem);
  line-height: 2.05;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* profile */
.profile {
  margin: 0;
  display: grid;
  grid-template-columns: 9.5em 1fr;
}

.profile dt,
.profile dd {
  margin: 0;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.profile dt {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.profile dt:last-of-type,
.profile dd:last-of-type {
  border-bottom: 1px solid var(--line);
}

/* bio */
.bio {
  margin-top: 64px;
  padding: 34px 34px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.bio h3 {
  margin: 0 0 14px;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

.bio-name {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bio-name em {
  margin-left: 14px;
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 400;
}

.bio p:not(.bio-name) {
  margin: 0 0 14px;
  color: #3d5363;
}

.bio p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0 32px;
}

.foot-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 20px;
}

.foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-align: left;
}

.foot-brand em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-brand .logo-badge {
  background: #ffffff;
}

.foot-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.foot-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.84rem;
  transition: color 0.25s;
}

.foot-nav a:hover { color: var(--accent); }

.foot-bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.foot-bottom p { margin: 0; }

/* ---------- 404 ---------- */
.notfound {
  max-width: var(--max);
  margin: 0 auto;
  padding: 190px 28px 150px;
  text-align: center;
}

.notfound h1 {
  margin: 10px 0 8px;
  font-family: var(--mono);
  font-size: clamp(3rem, 12vw, 5.5rem);
  line-height: 1.1;
  font-weight: 700;
}

.notfound .hero-links { justify-content: center; animation: none; }

/* ---------- motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes mark-in {
  from { opacity: 0; transform: translateY(-50%) scale(0.94); }
  to { opacity: 0.07; transform: translateY(-50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-mark { right: -16%; opacity: 0.055; }
  .hero-mark img { width: clamp(320px, 62vw, 560px); }
}

@media (max-width: 600px) {
  body { line-height: 1.85; }
  .site-header .bar { height: 58px; padding: 0 18px; }
  .brand-name { letter-spacing: 0.2em; font-size: 0.82rem; }
  .logo-badge { width: 30px; height: 30px; border-radius: 8px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 0.76rem; }
  .hero { padding: 120px 20px 100px; }
  .hero-mark { right: -26%; top: 46%; opacity: 0.05; }
  .hero-mark img { width: clamp(300px, 88vw, 460px); }
  .section { padding: 76px 0; scroll-margin-top: 58px; }
  .section .inner, .site-footer .inner { padding: 0 20px; }
  .section-head { margin-bottom: 32px; }
  .statement { line-height: 1.95; }
  .bio { padding: 26px 22px; }
  .bio-name em { display: block; margin-left: 0; }
  .profile { grid-template-columns: 1fr; }
  .profile dt { padding: 16px 0 0; }
  .profile dd { padding: 2px 0 16px; border-top: 0; }
  .profile dt:last-of-type { border-bottom: 0; }
  .foot-top { flex-direction: column; align-items: center; }
  .notfound { padding: 140px 20px 110px; }
}
