:root { --ink:#403b48; --paper:#fbf7f2; --lavender:#ded7e3; --green:#b9d4c0; --line:rgba(64,59,72,.2); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:"Hiragino Mincho ProN","Yu Mincho",serif; line-height:1.9; }
a { color:inherit; text-decoration:none; }
header { height:68px; padding:0 4vw; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); font-family:Arial,sans-serif; font-size:9px; letter-spacing:.12em; }
.intro { min-height:72vh; padding:12vh 24px; display:grid; place-content:center; text-align:center; background:linear-gradient(150deg,#f8eee9 0%,#edf3eb 100%); }
.intro > p { font-family:Arial,sans-serif; font-size:9px; letter-spacing:.22em; }
.intro h1 { margin:20px 0 28px; font-size:clamp(42px,7vw,82px); font-weight:400; line-height:1.5; }
.intro div { font-size:13px; }
.intro a,.afterword a { justify-self:center; margin-top:36px; padding-bottom:5px; border-bottom:1px solid currentColor; font-size:11px; }
.story-slider {
  display:block;
  padding:0;
  overflow:visible;
  background:white;
}
.story-slider::-webkit-scrollbar { display:none; }
.story-slide {
  margin:0;
  padding:0 0 28px;
  display:block;
  border-bottom:1px solid rgba(64,59,72,.12);
  background:white;
}
.story-slide img {
  width:100%;
  max-width:1280px;
  height:auto;
  margin:0 auto;
  display:block;
  background:white;
}
.story-slide figcaption { display:none; }
.study-story .intro { min-height:62svh; }
.study-story .story-slider { min-height:calc(100svh - 68px); padding:30px 5vw 100px; display:grid; place-items:center; overflow:hidden; background:#eeeae2; touch-action:pan-y; }
.study-story .story-slide { width:100%; margin:0; padding:0; display:none; border:0; background:transparent; }
.study-story .story-slide.active { display:grid; place-items:center; }
.study-story .story-slide img { width:auto; max-width:100%; height:auto; max-height:calc(100svh - 215px); margin:auto; object-fit:contain; background:white; box-shadow:0 18px 50px rgba(35,43,40,.12); }
.study-story .story-slide figcaption { display:block; margin-top:16px; font-family:Arial,sans-serif; font-size:9px; letter-spacing:.14em; text-align:center; opacity:.55; }
.study-story .controls { position:sticky; bottom:0; margin-top:-76px; }
.study-story .controls button:disabled { cursor:default; opacity:.25; }
.controls {
  position:static;
  z-index:5;
  max-width:none;
  margin-top:0;
  padding:12px 4vw;
  display:grid;
  grid-template-columns:44px 1fr auto 44px;
  gap:18px;
  align-items:center;
  color:white;
  background:rgba(35,43,40,.72);
  backdrop-filter:blur(12px);
}
.controls button { width:44px; height:44px; border:1px solid rgba(255,255,255,.55); border-radius:50%; color:white; background:rgba(255,255,255,.06); cursor:pointer; }
.progress { height:1px; background:rgba(255,255,255,.28); overflow:hidden; }
.progress span { display:block; width:100%; height:1px; background:white; transform:scaleX(.1); transform-origin:left; transition:transform .3s ease; }
.page-number { margin:0; min-width:42px; font-family:Arial,sans-serif; font-size:9px; letter-spacing:.1em; }
.afterword { min-height:55vh; padding:12vh 24px; display:grid; place-content:center; text-align:center; background:#dfe9df; }
.afterword p { margin:0; font-size:clamp(21px,3vw,34px); line-height:2; }
.study-notes { padding:13vh 6vw; background:#f6f1e9; }
.card-reading-guide { padding:12vh 6vw; background:#fffaf3; }
.notes-heading { max-width:760px; margin:0 auto 8vh; text-align:center; }
.notes-heading p { margin:0; font-family:Arial,sans-serif; font-size:9px; letter-spacing:.22em; }
.notes-heading h2 { margin:18px 0 0; font-size:clamp(32px,4.8vw,60px); font-weight:400; line-height:1.6; }
.note-cards { max-width:1180px; margin:auto; display:grid; grid-template-columns:repeat(5,1fr); gap:1px; background:var(--line); }
.note-cards article { min-height:360px; padding:34px 28px; display:flex; flex-direction:column; background:#fffdf8; }
.note-cards span { font-family:Arial,sans-serif; font-size:9px; letter-spacing:.15em; }
.note-cards h3 { margin:42px 0 18px; font-size:21px; font-weight:400; line-height:1.6; }
.note-cards p { margin:0; font-size:12px; }
.guide-list { max-width:1120px; margin:auto; display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.guide-list article { min-height:250px; padding:34px 32px; border:1px solid rgba(64,59,72,.16); background:white; }
.guide-list span { font-family:Arial,sans-serif; font-size:9px; letter-spacing:.15em; opacity:.62; }
.guide-list h3 { margin:24px 0 16px; font-size:24px; font-weight:400; line-height:1.55; }
.guide-list p { margin:0; font-size:13px; }
.story-next-path { padding:12vh 6vw; text-align:center; background:#f4efe8; }
.story-next-path > p { margin:0; font-family:Arial,sans-serif; font-size:9px; letter-spacing:.22em; }
.story-next-path > h2 { margin:18px 0 7vh; font-size:clamp(28px,4.5vw,55px); font-weight:400; line-height:1.65; }
.story-next-path > div { max-width:1150px; margin:auto; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; text-align:left; }
.story-next-path a { min-height:145px; padding:28px; display:flex; flex-direction:column; justify-content:space-between; border:1px solid var(--line); background:white; transition:transform .2s ease,box-shadow .2s ease; }
.story-next-path a.primary { color:white; background:#405c4c; }
.story-next-path a:hover { transform:translateY(-3px); box-shadow:0 15px 34px rgba(64,59,72,.1); }
.story-next-path span { font-size:10px; opacity:.7; }
.story-next-path strong { margin-top:20px; font-size:14px; font-weight:400; }
.midnight-story { color:#f2eee3; background:#0b1428; }
.midnight-story header { border-bottom-color:rgba(255,255,255,.16); }
.midnight-story .intro { background:#0b1428; }
.midnight-story .story-slider { background:#070d1b; }
.midnight-story .afterword { background:#101d37; }
.midnight-story .intro a,.midnight-story .afterword a { border-bottom-color:rgba(255,255,255,.65); }
@media(max-width:720px) {
  header { height:58px; padding:0 15px; }
  header span { display:none; }
  .intro { min-height:68svh; }
  .intro h1 { font-size:41px; }
  .story-slide { padding:0 0 20px; }
  .story-slide img { width:100%; max-width:none; height:auto; }
  .study-story .intro { min-height:58svh; }
  .study-story .story-slider { min-height:calc(100svh - 58px); padding:20px 12px 90px; }
  .study-story .story-slide img { width:auto; max-width:100%; max-height:calc(100svh - 185px); }
  .study-story .controls { margin-top:-72px; }
  .controls { padding:10px 12px; grid-template-columns:42px 1fr auto 42px; gap:10px; }
  .controls button { width:42px; height:42px; }
  .story-next-path { padding:10vh 20px; }
  .story-next-path > div { grid-template-columns:1fr; }
  .story-next-path a { min-height:125px; }
  .study-notes { padding:10vh 20px; }
  .card-reading-guide { padding:10vh 20px; }
  .guide-list { grid-template-columns:1fr; }
  .guide-list article { min-height:0; padding:30px 26px; }
  .note-cards { grid-template-columns:1fr; gap:12px; background:transparent; }
  .note-cards article { min-height:260px; padding:30px 26px; }
  .note-cards h3 { margin-top:32px; }
}
