:root {
  --base: #f4ebdd;
  --paper: #fffaf4;
  --soft: #eadbc8;
  --text: #3b2e2a;
  --muted: #7c6a61;
  --line: #decab7;
  --red: #ef4b4b;
  --red-dark: #cf3e3e;
  --page: min(1120px, calc(100vw - 44px));
  --measure: min(760px, calc(100vw - 44px));
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--base);
  font-family:
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo",
    system-ui, sans-serif;
  line-height: 1.9;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 980ms ease,
    transform 980ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal-enabled .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px max(22px, calc((100vw - 1120px) / 2));
  background: rgb(244 235 221 / 92%);
  border-bottom: 1px solid rgb(222 202 183 / 72%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--paper);
  background: var(--text);
  border-radius: 50%;
  font-size: 0.8rem;
}

.brand-text,
nav a {
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

nav {
  display: flex;
  gap: 22px;
  overflow-x: auto;
}

nav a {
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  gap: 54px;
  align-items: center;
  width: var(--page);
  min-height: calc(100svh - 62px);
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero-copy {
  max-width: 500px;
}

.label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  line-height: 1.18;
}

h1 {
  font-size: clamp(4.5rem, 11vw, 8.8rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.tagline {
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 900;
  line-height: 1.75;
}

.hero-text {
  margin: 18px 0 30px;
  color: var(--muted);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 9px 24px;
  border: 2px solid var(--red);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--red);
}

.button.primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button.secondary {
  color: var(--red);
  background: transparent;
}

.button.large {
  min-height: 50px;
  padding-inline: 32px;
}

.hero-photo,
.side-photo,
.main-companion {
  margin: 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-photo img,
.side-photo img,
.main-companion img {
  width: 100%;
  object-fit: cover;
  border-radius: 13px;
}

.hero-photo img {
  aspect-ratio: 16 / 10;
}

.club-panel,
.intro-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 92px 0;
  border-top: 1px solid rgb(222 202 183 / 72%);
}

.section-heading,
.article-section > .label,
.article-section > h2,
.world-section > .label,
.world-section > h2,
.art-section > .label,
.art-section > h2,
.fit-section > .label,
.fit-section > h2,
.faq-section > .label,
.faq-section > h2,
.future-section > .label,
.future-section > h2,
.final-section > .label,
.final-section > h2,
.gallery-section > .label,
.gallery-section > h2,
.links-section > .label,
.links-section > h2 {
  width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.body-copy {
  width: var(--measure);
  margin: 0 auto;
}

.body-copy p,
.fit-section li,
.faq-section p,
.links-section dd {
  margin: 0 0 17px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
}

.article-section .body-copy,
.final-section .body-copy {
  padding: 34px;
  background: rgb(255 250 244 / 62%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.words-image {
  display: block;
  width: var(--measure);
  max-width: 100%;
  height: auto;
  margin: 0 auto 28px;
  border-radius: 12px;
}

.companion-copy a {
  color: var(--red);
  font-weight: 900;
  text-underline-offset: 4px;
}

.story-grid,
.companion-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 42px;
  align-items: start;
}

.story-grid .body-copy,
.companion-layout .body-copy {
  width: auto;
  margin: 0;
}

.side-photo {
  position: sticky;
  top: 92px;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.derivation-chart {
  width: var(--measure);
  margin: 4px auto 38px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.derivation-chart img {
  width: 100%;
  border-radius: 13px;
}

.club-section {
  border-top: 0;
}

.club-panel {
  width: var(--measure);
  margin: 0 auto;
  padding: 38px;
}

.club-panel .body-copy {
  width: auto;
}

.club-panel > .button {
  display: flex;
  width: fit-content;
  margin: 30px auto 0;
}

.club-eyecatch {
  width: 100%;
  height: auto;
  margin: 20px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reference-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.9fr;
  gap: 12px;
  width: var(--page);
  margin: 40px auto 24px;
}

.art-eyecatch {
  display: block;
  width: var(--measure);
  height: auto;
  margin: 24px auto 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reference-card {
  margin: 0;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reference-card img {
  width: 100%;
  height: 270px;
  object-fit: contain;
  background: #fff;
  border-radius: 13px;
}

.reference-card figcaption {
  margin-top: 8px;
}

.reference-download {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 10px;
  padding: 7px 12px;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.reference-download:hover {
  color: #fff;
  background: var(--red);
}

.art-post-copy {
  margin-bottom: 18px;
}

.art-section > .button {
  margin-left: calc((100% - min(760px, calc(100vw - 44px))) / 2);
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  width: var(--measure);
  margin: 0 auto 28px;
}

.gallery-heading h2 {
  margin-bottom: 0;
}

.gallery-heading .button {
  flex: 0 0 auto;
}

.gallery-copy {
  margin-bottom: 28px;
}

.gallery-embed {
  width: var(--page);
  margin: 0 auto;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gallery-embed iframe {
  display: block;
  width: 100%;
  height: min(78svh, 820px);
  min-height: 560px;
  border: 0;
  border-radius: 13px;
  background: #fff;
}

.fit-section ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: var(--page);
  margin: 0 auto 34px;
  padding: 0;
  list-style: none;
}

.fit-section li {
  min-height: 86px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-section details {
  width: var(--measure);
  margin: 0 auto 12px;
  padding: 0 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-section summary {
  cursor: pointer;
  padding: 17px 0;
  font-weight: 900;
}

.faq-section details p {
  padding-bottom: 18px;
  color: var(--muted);
}

.final-section {
  text-align: left;
}

.final-section .button {
  margin-top: 28px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: fit-content;
}

.links-list {
  width: var(--measure);
  margin: 0 auto;
}

.links-section dl {
  margin: 0;
}

.links-section dl div {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.links-section dt {
  font-weight: 900;
}

.links-section dd {
  margin: 0;
}

.links-section a {
  color: var(--red);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.bonus-links {
  margin-top: 30px;
  padding: 24px 28px 8px;
  background: rgb(255 250 244 / 62%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bonus-links h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.bonus-links dl div:last-child {
  border-bottom: 0;
}

.links-banner {
  display: block;
  width: var(--measure);
  max-width: 100%;
  height: auto;
  margin: 24px auto 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.links-photo {
  width: min(calc(var(--measure) * 0.75), 100%);
  max-width: 100%;
  margin: 34px auto 0;
}

.links-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  width: var(--page);
  margin: 0 auto;
  padding: 24px 0 42px;
  border-top: 1px solid rgb(222 202 183 / 72%);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 900px) {
  .hero,
  .story-grid,
  .companion-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .fit-section ul {
    grid-template-columns: 1fr;
  }

  .side-photo {
    position: static;
  }

  .reference-grid {
    grid-template-columns: 1fr;
  }

  .reference-grid img {
    height: auto;
    max-height: 420px;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  :root {
    --page: min(100vw - 28px, 1120px);
    --measure: min(100vw - 28px, 760px);
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 8px 0 4px;
    overflow: visible;
  }

  .site-header.is-menu-open nav {
    display: flex;
  }

  nav a {
    padding: 11px 2px;
    border-top: 1px solid rgb(222 202 183 / 62%);
  }

  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero {
    padding: 42px 0 56px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .article-section .body-copy,
  .final-section .body-copy,
  .club-panel {
    padding: 24px;
  }

  .gallery-embed {
    padding: 8px;
  }

  .gallery-embed iframe {
    height: 72svh;
    min-height: 460px;
  }

  .art-section > .button,
  .club-panel > .button,
  .final-section .button {
    margin-left: auto;
    width: 100%;
  }

  .links-section dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .bonus-links {
    padding: 22px 20px 6px;
  }
}
