:root {
  color-scheme: light;
  --ink: #14233a;
  --navy: #1d3a5f;
  --deep: #0f1d31;
  --muted: #5a6577;
  --line: #d8dde4;
  --paper: #f6f7f4;
  --tint: #e9eef3;
  --accent: #f2c14e;
  --accent-soft: #fbe7b0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid #c47f12; outline-offset: 5px; }

.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }

.skip { position: absolute; top: -100px; left: 20px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 92px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.mark {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; place-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy);
}
.mark i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.mark i:nth-child(2), .mark i:nth-child(3) { background: #9fb6d1; }
nav { display: flex; gap: 28px; font-size: 13px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }

/* Typography */
.eyebrow { margin: 0 0 22px; font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--navy); }
h1 { margin: 0 0 24px; font-size: clamp(32px, 4vw, 50px); line-height: 1.42; letter-spacing: -.04em; font-weight: 800; }
h1 span { color: var(--navy); background: linear-gradient(transparent 68%, var(--accent-soft) 68%, var(--accent-soft) 92%, transparent 92%); }
h2 { margin: 0 0 16px; font-size: 27px; line-height: 1.6; letter-spacing: -.03em; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading > p:last-child { margin: 0; max-width: 46rem; font-size: 14px; color: var(--muted); }
.number { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--navy); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 13px 22px; border: 1px solid var(--navy); border-radius: 3px;
  font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s;
}
.primary { background: var(--navy); color: #fff; }
.primary:hover { background: var(--deep); }
.secondary:hover { background: var(--tint); }
.accent { background: var(--accent); border-color: var(--accent); color: var(--deep); }
.accent:hover { background: #f7d27a; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; padding-block: 84px 96px; }
.subtitle { margin: 0 0 22px; font-size: 19px; font-weight: 600; line-height: 1.8; }
.intro { margin: 0 0 30px; max-width: 34rem; font-size: 14px; line-height: 2.1; color: var(--muted); }
.file-info { margin: 18px 0 0; font-size: 11px; line-height: 1.95; color: var(--muted); }

.book-area { padding: 28px 5px 0 20px; }
.book {
  position: relative; overflow: hidden; min-height: 460px;
  padding: 34px 30px 30px 38px; color: #eef2f7; background: var(--navy);
  border-left: 8px solid var(--deep); border-radius: 2px 7px 7px 2px;
  box-shadow: 12px 13px 0 -5px #dfe3e8, 20px 28px 45px -16px #14233a40;
  transform: rotate(3deg);
}
.book-top { font-size: 9px; letter-spacing: .13em; line-height: 1.8; color: #b8c6d8; }
.book-title { margin-top: 26px; font-size: clamp(19px, 2vw, 24px); font-weight: 700; line-height: 1.45; letter-spacing: -.02em; }
.book-title b { display: inline-block; margin-top: 6px; font-size: 1.7em; line-height: 1.2; color: var(--accent); }
.lattice {
  display: grid; grid-template-columns: repeat(5, 14px); justify-content: space-between;
  row-gap: 14px; margin: 30px 6px 26px; position: relative;
}
.lattice::before {
  content: ""; position: absolute; inset: 6px 6px; pointer-events: none;
  background:
    linear-gradient(#6f8bb0, #6f8bb0) 0 0 / 100% 1px,
    linear-gradient(#6f8bb0, #6f8bb0) 0 25% / 100% 1px,
    linear-gradient(#6f8bb0, #6f8bb0) 0 50% / 100% 1px,
    linear-gradient(#6f8bb0, #6f8bb0) 0 75% / 100% 1px,
    linear-gradient(#6f8bb0, #6f8bb0) 0 100% / 100% 1px,
    linear-gradient(#6f8bb0, #6f8bb0) 0 0 / 1px 100%,
    linear-gradient(#6f8bb0, #6f8bb0) 25% 0 / 1px 100%,
    linear-gradient(#6f8bb0, #6f8bb0) 50% 0 / 1px 100%,
    linear-gradient(#6f8bb0, #6f8bb0) 75% 0 / 1px 100%,
    linear-gradient(#6f8bb0, #6f8bb0) 100% 0 / 1px 100%;
  background-repeat: no-repeat;
}
.lattice i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: #dce5f0; border: 3px solid var(--navy); }
.lattice i.x, .lattice i.z { width: 14px; height: 14px; border-radius: 2px; background: var(--accent); }
.lattice i.z { background: #9fd3c7; }
.book-bottom { font-size: 15px; font-weight: 600; }
.book-bottom span { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .12em; color: #b8c6d8; }
.book-caption { margin: 35px 0 0; text-align: center; font-size: 9px; letter-spacing: .16em; color: var(--muted); }

/* Revision */
.revision { padding-block: 52px 60px; border-top: 1px solid var(--line); }
.revision-list { margin: 28px 0; }
.revision-list > div { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.revision-list > div:last-child { border-bottom: 1px solid var(--line); }
.revision-list dt { font-size: 15px; font-weight: 600; line-height: 1.9; }
.revision-list dd { margin: 0; font-size: 13px; line-height: 2; color: var(--muted); }

/* Platforms */
.platforms { padding-block: 66px 72px; background: var(--tint); border-block: 1px solid var(--line); }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 36px; margin-top: 36px; }
.platform-grid a { display: block; padding: 20px 0 22px; border-top: 1px solid #b9c5d3; text-decoration: none; }
.platform-grid h3 { margin: 10px 0 6px; font-size: 22px; letter-spacing: -.02em; }
.platform-grid a:hover h3 { text-decoration: underline; text-underline-offset: 6px; }
.platform-grid p { margin: 0; font-size: 13px; line-height: 2; color: var(--muted); }

/* Themes */
.themes { padding-block: 72px 64px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 32px; }
.theme-grid article { padding-top: 20px; border-top: 2px solid var(--navy); }
.theme-grid h3 { margin: 10px 0 8px; font-size: 18px; }
.theme-grid p { margin: 0; font-size: 13px; line-height: 2; color: var(--muted); }

/* Contents */
.contents { padding-block: 80px; border-top: 1px solid var(--line); }
.contents-inner { display: grid; grid-template-columns: .85fr 1.4fr; gap: 90px; }
.contents-intro { position: sticky; top: 32px; align-self: start; }
.contents-intro > p:not(.eyebrow) { font-size: 14px; color: var(--muted); }
.part { display: flex; align-items: baseline; gap: 14px; margin: 34px 0 6px; font-size: 13px; font-weight: 700; }
.part:first-child { margin-top: 0; }
.part span { min-width: 74px; font-size: 10px; letter-spacing: .14em; color: var(--navy); }
.chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.chapters li { border-bottom: 1px solid var(--line); }
.chapters a { display: flex; align-items: center; gap: 20px; padding: 13px 0; text-decoration: none; }
.chapters a > span { min-width: 22px; font: 15px Georgia, "Times New Roman", serif; color: #8592a3; }
.chapters strong { font-size: 14px; font-weight: 600; }
.chapters a:hover strong { text-decoration: underline; }
.chapters small { margin-left: auto; white-space: nowrap; font-size: 11px; color: var(--muted); }

/* Notes */
.notes { display: grid; grid-template-columns: .85fr 1.4fr; gap: 90px; padding-block: 44px; border-top: 1px solid var(--line); }
.notes .eyebrow { margin-bottom: 12px; }
.notes h2 { font-size: 20px; }
.notes p:not(.eyebrow) { margin-top: 0; font-size: 13px; line-height: 2; color: var(--muted); }

/* Feedback */
.feedback {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  margin-block: 24px 20px; padding: 48px; border-radius: 4px;
  background: var(--navy); color: #eef2f7;
}
.feedback .eyebrow { color: var(--accent); margin-bottom: 12px; }
.feedback h2 { font-size: 24px; }
.feedback .button { margin-top: 10px; }
.feedback-body p { margin: 0 0 12px; font-size: 13px; line-height: 2; color: #c9d4e2; }
.feedback-body .contacts { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #ffffff2b; color: #eef2f7; }

/* Closing */
.closing {
  display: flex; align-items: center; justify-content: space-between; gap: 25px;
  margin-block: 0 64px; padding: 36px 40px; border-radius: 4px; background: var(--tint);
}
.closing .eyebrow { margin-bottom: 8px; }
.closing h2 { margin-bottom: 6px; font-size: 24px; }
.closing p:last-child { margin: 0; font-size: 13px; color: var(--muted); }

/* Footer */
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding-block: 26px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 30px; padding-block: 56px; }
  .book-area { padding-left: 0; }
  .book { min-height: 420px; padding: 26px 22px; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .contents-inner, .notes { gap: 40px; }
  .feedback { gap: 32px; padding: 36px; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 72px; flex-wrap: wrap; padding-block: 14px; gap: 10px; }
  .brand { font-size: 10px; gap: 8px; letter-spacing: .08em; }
  .mark { width: 26px; height: 26px; gap: 3px; }
  .mark i { width: 5px; height: 5px; }
  nav { gap: 14px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 52px; }
  .eyebrow { font-size: 9px; letter-spacing: .1em; }
  h1 { font-size: 30px; }
  .subtitle { font-size: 16px; }
  .intro { font-size: 13px; }
  .book-area { width: 100%; max-width: 290px; margin: auto; padding: 0 10px; }
  .book { min-height: 390px; padding: 24px; }
  .book-title { font-size: 17px; }
  h2 { font-size: 22px; }
  .revision { padding-block: 34px 42px; }
  .revision-list > div { grid-template-columns: 1fr; gap: 6px; padding-block: 16px; }
  .revision-list dt { font-size: 14px; }
  .revision-list dd { font-size: 12px; }
  .platforms { padding-block: 44px; }
  .platform-grid, .theme-grid { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .theme-grid { gap: 26px; }
  .themes { padding-block: 44px; }
  .contents { padding-block: 46px; }
  .contents-inner { grid-template-columns: 1fr; gap: 24px; }
  .contents-intro { position: static; }
  .contents h2 br { display: none; }
  .chapters a { gap: 14px; }
  .chapters strong { font-size: 13px; }
  .notes { grid-template-columns: 1fr; gap: 8px; padding-block: 30px; }
  .feedback { grid-template-columns: 1fr; padding: 26px 22px; gap: 18px; }
  .feedback h2 { font-size: 20px; }
  .closing { flex-direction: column; align-items: flex-start; padding: 24px; margin-bottom: 40px; }
  .closing h2 { font-size: 20px; }
  footer { flex-direction: column; font-size: 10px; }
}

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