@font-face {
  font-family: "Shippori Mincho";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/shippori-mincho-600.woff2") format("woff2");
  unicode-range: U+a, U+20, U+23, U+2c-3a, U+3d, U+47-4a, U+4d-4e, U+50, U+53, U+5f, U+61-70, U+73-78, U+a9, U+b7, U+2014, U+3001-3002, U+3042, U+3044, U+3048, U+304a-3050, U+3053-305c, U+305f-3060, U+3063-306b, U+306e-3071, U+3078-307a, U+307e-307f, U+3081-3082, U+3084, U+3089-308c, U+3092-3093, U+3099-309a, U+30a2, U+30a4, U+30ab-30ac, U+30af-30b0, U+30b5-30ba, U+30c3, U+30c8-30c9, U+30d5-30dd, U+30e1-30e2, U+30ea-30ed, U+30f3, U+30fb-30fc, U+4e00, U+4e2d, U+4e88, U+4eba, U+4eee, U+4f55, U+500b, U+5099, U+5185, U+52d5, U+5834, U+5916, U+59cb, U+5b9a, U+5b9f, U+5c0f, U+623b, U+6240, U+624b, U+6587, U+66f8, U+672c, U+679a, U+6b8b, U+6e96, U+7684, U+77ed, U+7d61, U+7f6e, U+8003, U+898b, U+8a66, U+8abf, U+8db3, U+8eab, U+9023, U+96c6, U+9759, U+9a13;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/zen-kaku-gothic-new-400.woff2") format("woff2");
  unicode-range: U+a, U+20, U+23, U+2c-3a, U+3d, U+47-4a, U+4d-4e, U+50, U+53, U+5f, U+61-70, U+73-78, U+a9, U+b7, U+2014, U+3001-3002, U+3042, U+3044, U+3048, U+304a-3050, U+3053-305c, U+305f-3060, U+3063-306b, U+306e-3071, U+3078-307a, U+307e-307f, U+3081-3082, U+3084, U+3089-308c, U+3092-3093, U+3099-309a, U+30a2, U+30a4, U+30ab-30ac, U+30af-30b0, U+30b5-30ba, U+30c3, U+30c8-30c9, U+30d5-30dd, U+30e1-30e2, U+30ea-30ed, U+30f3, U+30fb-30fc, U+4e00, U+4e2d, U+4e88, U+4eba, U+4eee, U+4f55, U+500b, U+5099, U+5185, U+52d5, U+5834, U+5916, U+59cb, U+5b9a, U+5b9f, U+5c0f, U+623b, U+6240, U+624b, U+6587, U+66f8, U+672c, U+679a, U+6b8b, U+6e96, U+7684, U+77ed, U+7d61, U+7f6e, U+8003, U+898b, U+8a66, U+8abf, U+8db3, U+8eab, U+9023, U+96c6, U+9759, U+9a13;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/zen-kaku-gothic-new-500.woff2") format("woff2");
  unicode-range: U+a, U+20, U+23, U+2c-3a, U+3d, U+47-4a, U+4d-4e, U+50, U+53, U+5f, U+61-70, U+73-78, U+a9, U+b7, U+2014, U+3001-3002, U+3042, U+3044, U+3048, U+304a-3050, U+3053-305c, U+305f-3060, U+3063-306b, U+306e-3071, U+3078-307a, U+307e-307f, U+3081-3082, U+3084, U+3089-308c, U+3092-3093, U+3099-309a, U+30a2, U+30a4, U+30ab-30ac, U+30af-30b0, U+30b5-30ba, U+30c3, U+30c8-30c9, U+30d5-30dd, U+30e1-30e2, U+30ea-30ed, U+30f3, U+30fb-30fc, U+4e00, U+4e2d, U+4e88, U+4eba, U+4eee, U+4f55, U+500b, U+5099, U+5185, U+52d5, U+5834, U+5916, U+59cb, U+5b9a, U+5b9f, U+5c0f, U+623b, U+6240, U+624b, U+6587, U+66f8, U+672c, U+679a, U+6b8b, U+6e96, U+7684, U+77ed, U+7d61, U+7f6e, U+8003, U+898b, U+8a66, U+8abf, U+8db3, U+8eab, U+9023, U+96c6, U+9759, U+9a13;
}

:root {
  --bg: #f3efe6;
  --paper: #fbf8f2;
  --ink: #1c1914;
  --muted: #5c564c;
  --line: #e3d9c8;
  --accent: #9a3412;
  --accent-soft: #f6e4d8;
  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Droid Sans Fallback", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "WenQuanYi Micro Hei", "Droid Sans Fallback", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(880px 420px at 100% -8%, #f6e3d2 0%, transparent 58%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

::selection {
  background: #f0d2c2;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 2;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.page {
  display: flex;
  flex-direction: column;
  width: min(920px, calc(100% - 32px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 28px 0 40px;
}

.page > main {
  flex: 1 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.brand svg {
  display: block;
  color: var(--accent);
}

.pill {
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.mast {
  display: grid;
  gap: 22px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 12vw, 88px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.05;
}

.tagline {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.mast-side {
  display: grid;
  gap: 16px;
  align-content: end;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

section {
  scroll-margin-top: 24px;
}

section + section {
  margin-top: 44px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

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

.card {
  height: 100%;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.links a,
.link-static {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: 2px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.links a:hover {
  background: rgba(154, 52, 18, 0.05);
}

.link-title {
  font-weight: 500;
}

.link-url {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
}

.link-go {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  vertical-align: 1px;
}

.missing {
  padding: 12px 0 8px;
}

.missing h1 {
  font-size: clamp(36px, 8vw, 56px);
  letter-spacing: 0.02em;
}

.missing h1 .line {
  display: block;
}

.missing .lede {
  margin-top: 12px;
}

.missing-action {
  margin: 28px 0 0;
}

.missing-action a {
  color: var(--accent);
  font-weight: 500;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 760px) {
  .page {
    width: min(920px, calc(100% - 64px));
    padding: 56px 0 88px;
  }

  .topbar {
    margin-bottom: 40px;
  }

  .mast {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 48px;
    padding-bottom: 40px;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .missing h1 .line {
    display: inline;
  }

  section + section {
    margin-top: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 420px) {
  .link-url {
    overflow-wrap: anywhere;
  }
}
