:root {
  --bg: #14110e;
  --paper: #efe6d6;
  --ink: #1c1712;
  --muted: #6b6258;
  --line: #d7ccb8;
  --accent: #c45c26;
  --hero: #f4ecdc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body[data-lang="ja"] {
  font-family: "Segoe UI", "Yu Gothic", "Hiragino Sans", "Meiryo", sans-serif;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(#fff 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  z-index: 0;
}

.top,
main,
footer {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.mark {
  color: var(--hero);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px 22px;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: #cbbfaa;
  text-decoration: none;
  font-size: 0.92rem;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--hero);
}

.langs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid #3a342c;
  border-radius: 999px;
  background: #1c1814;
}

.langs button {
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: #cbbfaa;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.langs button:hover {
  color: var(--hero);
}

.langs button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--paper);
}

.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  color: var(--hero);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.local-name {
  margin: 16px 0 0;
  color: var(--hero);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-weight: 500;
  letter-spacing: 0.04em;
}

body[data-lang="ja"] .local-name {
  padding-top: 0.55em;
}

ruby {
  ruby-position: over;
  ruby-align: center;
}

rt {
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: inherit;
  opacity: 0.78;
}

.local-name rt {
  color: #d4c4ae;
  opacity: 1;
}

body[data-lang="ja"] .local-name {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
}

body[data-lang="en"] .local-name {
  font-family: Georgia, "Times New Roman", serif;
}

.lede {
  max-width: 38rem;
  margin: 28px 0 16px;
  font-size: 0.9rem;
  font-style: italic;
  color: #9a8f7e;
  transform: skewX(-8deg);
  transform-origin: left center;
}

.note {
  margin: 0;
  color: #9a8f7e;
  font-size: 0.9rem;
}

.note:empty {
  display: none;
}

.block {
  max-width: 920px;
  margin: 0 auto 28px;
  padding: 36px 28px;
  background: var(--paper);
  border-radius: 4px;
}

h2 {
  margin: 0 0 20px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.split {
  display: grid;
  gap: 28px;
}

.split > p,
.about-copy {
  margin: 0;
  font-size: 1.08rem;
}

.about-copy p {
  margin: 0 0 1em;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.facts li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.facts span:first-child {
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 20px;
  padding: 0 0 28px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline time {
  color: var(--muted);
  font-size: 0.92rem;
  padding-top: 4px;
}

.timeline .org {
  margin: 0 0 8px;
  color: var(--muted);
}

.timeline p:last-child {
  margin: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.links a {
  color: var(--ink);
  font-weight: 600;
}

footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  color: #8a8072;
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .top {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-right {
    width: 100%;
    justify-content: space-between;
  }

  .langs {
    margin-left: auto;
  }

  .timeline li,
  .facts li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .block {
    margin-left: 16px;
    margin-right: 16px;
    padding: 28px 20px;
  }
}
