@import url("https://fonts.googleapis.com/css2?family=Archivo+Narrow:wght@600;700&family=Inter:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

:root {
  --wn-yellow: #fac100;
  --wn-black: #151614;
  --wn-ivory: #f3f0e8;
  --wn-paper: #e8e2d6;
  --wn-ink: #1a1b18;
}

* { box-sizing: border-box; }
html { background: var(--wn-black); scroll-behavior: smooth; }
body.omnibus-window-notes-page {
  margin: 0;
  color: var(--wn-ink);
  background: var(--wn-ivory);
  font-family: Inter, "Noto Sans JP", sans-serif;
  overflow-x: clip;
}
body.omnibus-window-notes-page.admin-bar .wn-header { top: 32px; }
body.omnibus-window-notes-page a { color: inherit; text-decoration: none; }
body.omnibus-window-notes-page img { display: block; max-width: 100%; height: auto; }
body.omnibus-window-notes-page button { font: inherit; }
.wn-skip { position: fixed; top: 1rem; left: 1rem; z-index: 9999; padding: .7rem 1rem; color: var(--wn-black); background: var(--wn-yellow); transform: translateY(-200%); }
.wn-skip:focus { transform: none; }

.wn-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  height: 10.7vh;
  min-height: 4.8rem;
  padding: 0 3.2vw;
  display: flex;
  align-items: center;
  color: var(--wn-black);
  background: transparent;
}
.wn-brand { position: relative; z-index: 3; width: clamp(9rem, 10.65vw, 12.8rem); line-height: 0; }
.wn-brand img { width: 100%; height: auto; }
.wn-header__nav {
  margin-left: auto;
  padding: .72rem 5.1rem .72rem 1.25rem;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.1vw, 2.6rem);
  border: 1px solid rgba(250, 193, 0, .38);
  border-radius: 999px;
  color: var(--wn-ivory);
  background: rgba(22, 22, 22, .92);
  box-shadow: 0 .45rem 1.2rem rgba(0, 0, 0, .2);
  backdrop-filter: blur(.55rem);
}
.wn-header__nav a { color: var(--wn-ivory); font-family: "Archivo Narrow", sans-serif; font-size: clamp(.65rem, .82vw, .95rem); font-weight: 700; letter-spacing: .045em; }
.wn-header__nav a:hover,
.wn-header__nav a:focus-visible,
.wn-header__nav a[aria-current="page"] { color: var(--wn-yellow); }
.wn-menu-toggle {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 3.2vw;
  width: 3.45rem;
  height: 3.45rem;
  padding: .9rem;
  display: grid;
  align-content: center;
  gap: .28rem;
  border: 0;
  border-radius: 50%;
  color: var(--wn-yellow);
  background: var(--wn-black);
  cursor: pointer;
  transform: translateY(-50%);
}
.wn-menu-toggle span { display: block; width: 100%; height: 2px; border-radius: 99px; background: currentColor; transition: transform .2s ease, opacity .15s ease; }
.wn-menu-toggle.is-open span:nth-child(1) { transform: translateY(.38rem) rotate(45deg); }
.wn-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.wn-menu-toggle.is-open span:nth-child(3) { transform: translateY(-.38rem) rotate(-45deg); }
.wn-header__nav.is-open {
  position: fixed;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100dvh;
  margin: 0;
  padding: clamp(7rem, 15vh, 10rem) clamp(1.5rem, 10vw, 12rem) 3rem;
  display: grid;
  align-content: start;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: rgba(13, 14, 14, .985);
  overflow-y: auto;
}
.wn-header__nav.is-open a { min-height: clamp(3.7rem, 8vh, 5rem); display: flex; align-items: center; border-bottom: 1px solid rgba(245, 243, 237, .18); font-size: clamp(1.7rem, 4vw, 3rem); }
body.wn-menu-open { overflow: hidden; overscroll-behavior: none; }

@media (max-width: 1180px) {
  .wn-header__nav { display: none; }
  .wn-header__nav.is-open { display: grid; }
}

@media (max-width: 767px) {
  .wn-header {
    height: clamp(4.65rem, 19vw, 5rem);
    min-height: 0;
    padding: 0 clamp(.9rem, 4vw, 1.1rem);
    border-radius: 0 0 1.45rem 1.45rem;
    background: linear-gradient(112deg, #0d0e0e 0%, #191a19 72%, #0b0c0c 100%);
    box-shadow: 0 .45rem 1rem rgba(0, 0, 0, .24);
  }
  .wn-brand { width: clamp(8.9rem, 42vw, 10rem); max-width: 44vw; filter: brightness(0) saturate(100%) invert(77%) sepia(99%) saturate(1437%) hue-rotate(2deg) brightness(103%) contrast(103%); }
  .wn-menu-toggle { right: clamp(.9rem, 4vw, 1.1rem); width: 3rem; height: 3rem; padding: .78rem; background: #050606; }
  .wn-header__nav.is-open { padding: clamp(6.8rem, 16vh, 9rem) clamp(1.5rem, 7vw, 4rem) 2rem; }
  .wn-header__nav.is-open a { font-size: clamp(1.7rem, 7vw, 2.8rem); }
}

.wn-archive { min-height: 100vh; padding-top: 5rem; background: #d8d3c8; }

.wn-notebook { min-height: calc(100vh - 5rem); padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 5vw, 6rem) 7rem; background: #d8d3c8; background-image: linear-gradient(rgba(22,22,20,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(22,22,20,.05) 1px, transparent 1px); background-size: 28px 28px; }
.wn-notebook__heading { max-width: 92rem; margin: 0 auto 2.5rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.wn-notebook__heading p { margin: 0; font-size: .7rem; font-weight: 700; line-height: 1.7; letter-spacing: .08em; }
.wn-notebook__heading h1 { margin: .35rem 0 0; font-family: "Archivo Narrow", sans-serif; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .9; }
.wn-filters { max-width: 92rem; margin: 0 auto 3rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.wn-filters button { appearance: none; padding: .65rem .9rem; border: 1px solid rgba(22,22,20,.45); border-radius: 999px; color: var(--wn-ink); background: rgba(245,243,237,.68); font-size: .62rem; font-weight: 800; letter-spacing: .04em; cursor: pointer; }
.wn-filters button:hover,
.wn-filters button.is-active { color: var(--wn-yellow); background: var(--wn-black); border-color: var(--wn-black); }

.wn-grid { max-width: 92rem; margin: 0 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(1.2rem, 2.5vw, 2.4rem); align-items: start; }
.wn-card { grid-column: span 4; min-width: 0; position: relative; transition: transform .2s ease; }
.wn-card:nth-child(7n + 1), .wn-card:nth-child(7n + 6) { grid-column: span 5; }
.wn-card:nth-child(7n + 2), .wn-card:nth-child(7n + 5) { grid-column: span 3; }
.wn-card:nth-child(7n + 3) { margin-top: 2rem; }
.wn-card:nth-child(7n + 4) { margin-top: -1rem; }
.wn-card:nth-child(odd) { transform: rotate(-.45deg); }
.wn-card:nth-child(even) { transform: rotate(.4deg); }
.wn-card:hover { z-index: 2; transform: translateY(-.35rem) rotate(0); }
.wn-card > a { min-height: 27rem; padding: clamp(1rem, 2vw, 1.5rem); display: flex; flex-direction: column; color: var(--wn-ink); background: rgba(244, 240, 229, .97); border: 1px solid rgba(22,22,20,.16); box-shadow: 0 .65rem 1.3rem rgba(32,31,27,.12); overflow: hidden; }
.wn-card--paper > a { background: #d4b98c; }
.wn-card--report > a { background: repeating-linear-gradient(#f4f1e8 0 2rem, #c4d4dd 2.05rem 2.1rem); }
.wn-card--memo > a { background: #f4e46e; }
.wn-card--grid > a { background-color: #e8e6db; background-image: linear-gradient(#bfc6c4 1px, transparent 1px), linear-gradient(90deg, #bfc6c4 1px, transparent 1px); background-size: 18px 18px; }
.wn-card--ticket > a { clip-path: polygon(0 0, 96% 0, 100% 6%, 96% 12%, 100% 18%, 96% 24%, 100% 30%, 96% 36%, 100% 42%, 96% 48%, 100% 54%, 96% 60%, 100% 66%, 96% 72%, 100% 78%, 96% 84%, 100% 90%, 96% 100%, 0 100%); }
.wn-card--photo > a { color: var(--wn-ivory); background: var(--wn-black); }
.wn-card__pin { position: absolute; z-index: 2; top: -.35rem; left: 50%; width: .8rem; height: .8rem; border-radius: 50%; background: var(--wn-yellow); border: 2px solid var(--wn-black); box-shadow: 0 .18rem .2rem rgba(0,0,0,.25); }
.wn-card__meta { order: -2; margin-bottom: .9rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .59rem; font-weight: 800; letter-spacing: .06em; }
.wn-card figure { order: -1; aspect-ratio: 4 / 3; margin: 0 0 1.2rem; background: #888; overflow: hidden; }
.wn-card figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.04); transition: transform .4s ease; }
.wn-card:hover figure img { transform: scale(1.025); }
.wn-card__fallback { display: grid; place-content: center; color: var(--wn-yellow); background: var(--wn-black) !important; font-family: "Archivo Narrow", sans-serif; font-size: 2rem; line-height: .85; position: relative; }
.wn-card__fallback img { position: absolute; inset: 0; opacity: .38; }
.wn-card__fallback span { position: relative; z-index: 1; }
.wn-card h2 { margin: 0; font-family: "Archivo Narrow", "Noto Sans JP", sans-serif; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.18; letter-spacing: -.025em; }
.wn-card p { margin: .8rem 0 1.2rem; font-size: .76rem; line-height: 1.8; }
.wn-card__read { margin-top: auto; padding-top: 1rem; border-top: 1px solid currentColor; display: flex; justify-content: space-between; font-size: .63rem; font-weight: 800; letter-spacing: .08em; }
.wn-card__read b { color: var(--wn-yellow); font-size: 1.1rem; }
.wn-load-more { min-width: 15rem; min-height: 4.5rem; margin: 4rem auto 0; padding: 0 1.5rem; border: 1px solid var(--wn-yellow); border-radius: 999px; display: flex; align-items: center; justify-content: space-between; color: var(--wn-yellow); background: var(--wn-black); font-size: .72rem; font-weight: 800; cursor: pointer; }
.wn-load-more[hidden] { display: none; }
.wn-load-more:disabled { opacity: .55; cursor: wait; }
.wn-api-message, .wn-empty { max-width: 40rem; margin: 2rem auto; padding: 1.5rem; text-align: center; color: var(--wn-yellow); background: var(--wn-black); }
.wn-empty { grid-column: 1 / -1; display: grid; gap: .4rem; }

.wn-single { padding: clamp(8rem, 12vw, 11rem) 1.2rem 7rem; color: var(--wn-ink); background: var(--wn-ivory); }
.wn-single > article { max-width: 76rem; margin: 0 auto; }
.wn-single__header { max-width: 52rem; margin: 0 auto 3rem; }
.wn-back-top { display: inline-block; margin-bottom: 3rem; font-size: .65rem; font-weight: 800; letter-spacing: .08em; border-bottom: 1px solid; }
.wn-single__meta { display: flex; gap: 1.5rem; color: #6c6659; font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.wn-single__header h1 { margin: 1.2rem 0 1.5rem; font-family: "Archivo Narrow", "Noto Sans JP", sans-serif; font-size: clamp(2.7rem, 6vw, 5.6rem); line-height: 1.08; letter-spacing: -.04em; }
.wn-single__lead { margin: 0; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 2; }
.wn-single__author { margin: 1.5rem 0 0; font-size: .68rem; letter-spacing: .04em; }
.wn-single__visual { max-width: 66rem; margin: 0 auto clamp(4rem, 8vw, 7rem); position: relative; background: #cbbf9f; transform: rotate(-.3deg); box-shadow: 0 1rem 3rem rgba(34,31,24,.14); }
.wn-single__visual img { width: 100%; max-height: 70vh; object-fit: cover; }
.wn-single__tape { position: absolute; top: -1rem; left: 50%; width: 8rem; height: 2.2rem; background: rgba(237,217,148,.72); transform: translateX(-50%) rotate(1deg); }
.wn-single__body { max-width: 43rem; margin: 0 auto; font-family: "Noto Sans JP", sans-serif; font-size: clamp(.98rem, 1.4vw, 1.08rem); line-height: 1.95; }
.wn-single__body p { margin: 0 0 1.65em; }
.wn-single__body h2, .wn-single__body h3 { margin: 2.8em 0 1em; line-height: 1.45; }
.wn-single__body h2 { font-size: 1.55em; }
.wn-single__body h3 { font-size: 1.25em; }
.wn-single__body blockquote { margin: 2.5rem -2rem; padding: 1.4rem 2rem; border-left: .3rem solid var(--wn-yellow); background: #e7dfcf; font-weight: 600; }
.wn-single__body blockquote p:last-child { margin-bottom: 0; }
.wn-single__body ul, .wn-single__body ol { margin: 2rem 0; padding-left: 1.4rem; }
.wn-single__body li { margin-bottom: .65rem; }
.wn-single__body figure { margin: 3rem -8vw; }
.wn-single__body img { width: 100%; }
.wn-single__body iframe, .wn-single__body video { max-width: 100%; }
.wn-related { max-width: 60rem; margin: 6rem auto 0; padding: 2rem; background: var(--wn-yellow); }
.wn-related > p { margin: 0 0 1rem; font-size: .65rem; font-weight: 800; letter-spacing: .1em; }
.wn-related a { display: grid; grid-template-columns: minmax(10rem, 20rem) 1fr auto; gap: 1.5rem; align-items: center; }
.wn-related img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.wn-related strong { font-size: 1.5rem; }
.wn-related span { font-size: .65rem; font-weight: 800; }
.wn-note-nav { max-width: 76rem; margin: 6rem auto 3rem; border-top: 1px solid #aaa392; border-bottom: 1px solid #aaa392; display: grid; grid-template-columns: repeat(2, 1fr); }
.wn-note-nav a { min-height: 9rem; padding: 1.8rem; display: grid; align-content: center; gap: .55rem; }
.wn-note-nav a + a { border-left: 1px solid #aaa392; text-align: right; }
.wn-note-nav span { color: #706b60; font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.wn-note-nav strong { font-size: clamp(.9rem, 1.3vw, 1.1rem); line-height: 1.5; }
.wn-back { width: min(22rem, 90%); min-height: 4.5rem; margin: 0 auto; padding: 0 1.5rem; border-radius: 999px; display: flex; justify-content: space-between; align-items: center; color: var(--wn-yellow) !important; background: var(--wn-black); font-size: .72rem; font-weight: 800; }

.wn-footer { padding: 4rem clamp(1.2rem, 5vw, 6rem); color: var(--wn-ivory); background: var(--wn-black); display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.wn-footer p { margin: 0; display: grid; }
.wn-footer p strong { color: var(--wn-yellow); font-size: 2.5rem; letter-spacing: -.05em; }
.wn-footer p span, .wn-footer small { font-size: .6rem; letter-spacing: .08em; }
.wn-footer > a { padding: 1.2rem 0; border-bottom: 1px solid var(--wn-yellow); color: var(--wn-yellow) !important; font-weight: 700; }
.wn-footer > small { grid-column: 1 / -1; opacity: .55; }

.wn-404 {
  min-height: 100dvh;
  padding: clamp(8rem, 14vh, 11rem) clamp(1.5rem, 7vw, 8rem) 5rem;
  color: var(--wn-black);
  background:
    radial-gradient(circle at 72% 28%, rgba(255,255,255,.32) 0 .18rem, transparent .22rem),
    linear-gradient(112deg, rgba(255,255,255,.1), transparent 38%),
    var(--wn-yellow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 38rem);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
}
.wn-404__content { max-width: 48rem; }
.wn-404__index { margin: 0 0 2rem; font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.wn-404 h1 { margin: 0; font-size: clamp(4.5rem, 10vw, 10rem); line-height: .82; letter-spacing: -.065em; }
.wn-404__copy { max-width: 34rem; margin: 2.5rem 0 0; font-size: clamp(.92rem, 1.25vw, 1.12rem); font-weight: 650; line-height: 2; }
.wn-404__route { min-height: 26rem; position: relative; border: .18rem solid var(--wn-black); border-radius: 50%; }
.wn-404__route::before,
.wn-404__route::after { content: ""; position: absolute; border-radius: 50%; background: var(--wn-black); }
.wn-404__route::before { width: 1.05rem; height: 1.05rem; left: 14%; top: 65%; box-shadow: 19rem -13rem 0 var(--wn-black); }
.wn-404__route::after { width: 44%; height: .18rem; left: 28%; top: 50%; transform: rotate(-28deg); transform-origin: center; }
.wn-404__action {
  width: min(21rem, 100%);
  min-height: 5rem;
  margin-top: 3rem;
  padding: 0 1.8rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--wn-yellow) !important;
  background: var(--wn-black);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .06em;
}
.wn-404__action b { font-size: 1.7rem; font-weight: 400; }

@media (max-width: 900px) {
  .wn-archive { padding-top: 5rem; background: #d8d3c8; }
  .wn-notebook { min-height: calc(100vh - 5rem); padding: 4rem 1rem 5rem; }
  .wn-notebook__heading { display: grid; }
  .wn-notebook__heading > p { max-width: 26rem; }
  .wn-filters { flex-wrap: nowrap; margin-right: -1rem; padding-right: 1rem; overflow-x: auto; scrollbar-width: none; }
  .wn-filters button { flex: none; }
  .wn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .wn-card, .wn-card:nth-child(n) { grid-column: span 1; margin-top: 0; transform: none; }
  .wn-card:nth-child(3n + 1) { grid-column: 1 / -1; }
  .wn-card > a { min-height: 23rem; padding: .85rem; }
  .wn-card:nth-child(3n + 1) > a { min-height: 25rem; }
  .wn-card h2 { font-size: 1.3rem; }
  .wn-card p { font-size: .7rem; }
  .wn-single { padding-top: 8rem; }
  .wn-single__header, .wn-single__body { max-width: 38rem; }
  .wn-single__body blockquote { margin-inline: 0; }
  .wn-single__body figure { margin-inline: 0; }
  .wn-related a { grid-template-columns: 1fr; }
  .wn-note-nav { grid-template-columns: 1fr; }
  .wn-note-nav a + a { border-left: 0; border-top: 1px solid #aaa392; text-align: left; }
  .wn-footer { grid-template-columns: 1fr; align-items: start; }
  .wn-404 { grid-template-columns: 1fr; align-content: center; }
  .wn-404__route { min-height: 18rem; order: -1; opacity: .3; }
}

@media (max-width: 520px) {
  .wn-grid { grid-template-columns: 1fr; gap: 1.35rem; }
  .wn-card, .wn-card:nth-child(n) { grid-column: 1; }
  .wn-card > a, .wn-card:nth-child(3n + 1) > a { min-height: 0; }
  .wn-card figure { aspect-ratio: 16 / 10; }
  .wn-single__header h1 { font-size: clamp(2.3rem, 12vw, 3.2rem); }
  .wn-single__lead { font-size: .9rem; }
  .wn-single__body { font-size: .94rem; line-height: 1.9; }
  .wn-single__visual { margin-inline: -.5rem; }
  .wn-note-nav a { min-height: 7.5rem; padding: 1.2rem .4rem; }
  .wn-related { margin-inline: -.2rem; padding: 1.2rem; }
  .wn-404 { padding-inline: 1.5rem; }
  .wn-404 h1 { font-size: clamp(4rem, 22vw, 6rem); }
  .wn-404__route { display: none; }
}

@media (max-width: 782px) {
  body.omnibus-window-notes-page.admin-bar .wn-header { top: 46px; }
  body.omnibus-window-notes-page.admin-bar .wn-header__nav.is-open { top: 46px; height: calc(100dvh - 46px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
