:root { color: #20211f; background: #fcfbf8; font: 16px/1.85 "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1200px; padding: 0 clamp(22px,6vw,90px); }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid #673414; outline-offset: 5px; }
header,footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; }
header a,footer a { text-decoration: none; }
header a:hover,footer a:hover { text-decoration: underline; }
.wordmark { font: 650 28px/1 Arial,sans-serif; letter-spacing: -.07em; }
.wordmark span { color: #66665f; }
.intro { display: grid; grid-template-columns: 1fr minmax(160px,32%); align-items: center; gap: clamp(24px,6vw,70px); min-height: 338px; margin: 28px 0 0; padding: 28px 0; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-weight: 500; line-height: 1.36; }
h1 { font-size: clamp(36px,5.6vw,72px); letter-spacing: -.035em; }
.intro p { margin-top: 20px; max-width: 32em; }
.volumes { display: flex; align-items: flex-end; gap: 6%; padding: 20px 8px 0; border-bottom: 2px solid currentColor; }
.volumes i { height: clamp(82px,12vw,158px); display: block; width: 14%; border: 1.5px solid #383b33; border-bottom: 0; position: relative; transform-origin: bottom; background: radial-gradient(circle,#66695c .7px,transparent .9px) 0 0 / 4px 4px; }
.volumes i::after { content: ""; position: absolute; top: 15%; left: 20%; width: 60%; height: 27%; background: #fcfbf8; border: 1px solid #6c6b60; }
.volumes i:nth-child(2) { height: clamp(108px,15vw,195px); background-size: 3px 3px; }
.volumes i:nth-child(3) { height: clamp(72px,10vw,120px); }
.volumes i:nth-child(4) { height: clamp(78px,13vw,150px); transform: rotate(-12deg); margin-left: 5%; }
.volumes i:nth-child(5) { height: clamp(88px,12vw,145px); transform: rotate(-12deg); }
.shelf { margin: 25px 0 64px; border-top: 1px solid #bbbdb2; padding-top: 28px; min-height: 180px; }
h2 { font-size: clamp(21px,3vw,30px); margin-bottom: 20px; }
.entry { display: block; padding: 22px 0; text-decoration: none; border-bottom: 1px solid #d7d8ce; }
.entry h3 { font-size: 1.25rem; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; }
.entry:hover h3 { text-decoration-color: currentColor; }
.entry p { margin: .4em 0 0; }
footer { font-size: .85rem; border-top: 1px solid #bbbdb2; }
@media(max-width: 620px) { header,footer { padding: 19px 0; } .intro { grid-template-columns: 1fr; padding: 18px 0 26px; gap: 25px; } .volumes { width: min(200px,75%); justify-self: end; } }
@media(prefers-reduced-motion:no-preference) {
  .intro > div:first-child { animation: emerge .7s ease-out both; }
  .volumes i { animation: place .6s cubic-bezier(.18,.67,.3,1) both; }
  .volumes i:nth-child(2) { animation-delay: .07s; } .volumes i:nth-child(3) { animation-delay: .14s; }
  .volumes i:nth-child(4) { animation-delay: .21s; } .volumes i:nth-child(5) { animation-delay: .28s; }
  @keyframes emerge { from { opacity: 0; translate: 0 10px; } }
  @keyframes place { from { opacity: 0; translate: 5px -14px; rotate: 7deg; } }
}
[hidden] { display: none !important; }
.shelf-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.shelf-heading h2 { margin: 0; }
.shelf-heading p, .entry-copy > small, .byline { color: #595d53; }
.filters { display: flex; gap: 14px; margin: 18px 0 26px; }
.filters label { flex: 1; display: grid; gap: 3px; color: #494b43; font-size: .84rem; }
.filters label:first-child { flex: 2; }
.filters input, .filters select, .more { font: inherit; font-size: 1rem; background: #fffefa; color: #24251e; border: 1px solid #a9aa9e; border-radius: 3px; padding: 9px 13px; min-height: 46px; min-width: 0; width: 100%; }
.filters input:focus-visible,.filters select:focus-visible,.more:focus-visible { outline: 2px solid #626957; outline-offset: 2px; }
#entries { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(290px,100%),1fr)); column-gap: 25px; }
.entry { display: grid; grid-template-columns: 76px minmax(0,1fr); align-items: center; gap: 15px; border-top: 1px solid #c7c9be; border-bottom: 0; padding: 18px 0; }
.entry img { width: 76px; height: 104px; object-fit: contain; object-position: bottom left; }
.entry-copy { min-width: 0; }
.entry-copy:only-child { grid-column: 1/-1; }
.entry-copy h3 { font-size: 1.1rem; line-height: 1.47; }
.entry-copy p { font-size: .83rem; line-height: 1.55; }
.more { margin: 28px auto 0; display: block; width: auto; padding-inline: 26px; cursor: pointer; }
.read-head { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto; gap: 30px; margin: 20px 0 40px; }
.read-head img { width: clamp(85px,17vw,180px); max-height: 240px; object-fit: contain; }
.read-head h1, .chapter-title { font-size: clamp(30px,4.2vw,54px); overflow-wrap: anywhere; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; font-size: .85rem; margin: 25px 0; }
.byline { font-size: .85rem; margin-bottom: .75rem; }
.book-subtitle { margin-top: .8em; }
.book-action { display: inline-flex; border: 1px solid #33382d; padding: 7px 18px; margin: 12px 12px 5px 0; border-radius: 3px; text-decoration: none; }
.book-action.primary { background: #272a24; color: #fff; }
.request-book { max-width: 50rem; margin: 2rem auto; padding: 1.1rem 1.35rem; border-inline-start: 3px solid #4c6253; background: #eeefe7; }
.request-book h2 { margin: 0 0 .4rem; font-size: 1.2rem; }
.request-book p { margin: 0; line-height: 1.8; }
.chapter-list { padding: 0; margin: 18px 0 45px; border-top: 1px solid #bbbdb2; list-style: none; }
.chapter-list li { border-bottom: 1px solid #dadaD2; padding: 12px 0; }
.chapter-list a, .chapter-list span { display: block; }
.chapter-list a::after { content: "　→"; }
.chapter-body, .reader-nav, .chapter-heading { max-width: 50rem; margin-inline: auto; }
.chapter-body { line-height: 1.95; overflow-wrap: anywhere; margin-top: 36px; }
.chapter-body section { margin: 1.6rem 0; }
.chapter-body h1, .chapter-body h2, .chapter-body h3, .chapter-body h4 { margin: 1.8em 0 .65em; overflow-wrap: anywhere; }
.chapter-body h1,.chapter-body h2 { font-size: clamp(21px,2.9vw,30px); }
.chapter-body h3 { font-size: 1.18rem; }
.chapter-body p { margin-block: .85em; }
.chapter-body pre { background: #eeeee6; border-radius: 3px; padding: 14px 18px; overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.chapter-body code { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
.chapter-body :not(pre) > code { background: #eeeee6; padding: .12em .26em; }
.chapter-body img { max-width: 100%; height: auto; }
.chapter-body blockquote { margin: 1em 0; padding: .1em 1em; border-left: 3px solid #919785; color: #44483d; }
.chapter-body table { display: block; overflow-x: auto; border-collapse: collapse; }
.chapter-body th,.chapter-body td { border: 1px solid #c4c6ba; padding: 6px 11px; text-align: left; }
.reader-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-top: 18px; margin-block: 36px; border-top: 1px solid #bbbdb2; }
@media(max-width: 620px) { .filters { flex-direction: column; gap: 8px; } .read-head { gap: 12px; } .entry { grid-template-columns: 68px minmax(0,1fr); } .entry img { width: 68px; height: 92px; } }

.chapter-body .chapter-diagram {margin:1.6rem 0;padding:clamp(.7rem,2vw,1.25rem);border:1px solid #d4d3cc;border-radius:4px;background:#fff;min-width:0}
.chapter-diagram > a {display:block;line-height:0;cursor:zoom-in}
.chapter-diagram img {display:block;width:auto;max-width:100%;height:auto;margin:auto}
.chapter-diagram figcaption {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.4rem 1rem;padding-block:.8rem .4rem;font-size:.9rem}
.chapter-diagram figcaption a,.chapter-diagram summary {text-underline-offset:.2em;font-size:.85rem}
.chapter-diagram details {border-top:1px solid #dfdfd8;padding-top:.45rem;color:#42433c}
.chapter-diagram summary {cursor:pointer;width:fit-content;min-height:32px}
.chapter-diagram ol {margin:.5rem 0;padding-inline-start:1.65rem}
.chapter-diagram li {margin-block:.36rem;font-size:.87rem;overflow-wrap:anywhere}
