/* Shared, tab-free fiction shelves. Scoped away from the approved hero/news. */
#manga.content-section, .story-library-page { color: #07122f; background: #faffff; }
#manga.content-section { padding: 48px 0 40px; }
#manga.content-section::before, #manga.content-section::after { display: none; }
.story-library-shell { position: relative; z-index: 2; box-sizing: border-box; width: 100%; max-width: 1440px; padding-inline: clamp(20px, 4vw, 58px); margin-inline: auto; }
.story-library-intro { margin-bottom: 30px; }
.story-library-eyebrow { margin: 0 0 28px; padding-bottom: 14px; border-bottom: 1px solid #2454ff; font-size: 16px; font-weight: 850; letter-spacing: .025em; }
.story-library-intro h1, .story-library-intro h2 { margin: 0 0 24px; font-family: inherit; font-size: clamp(30px, 3.7vw, 52px); font-weight: 900; line-height: 1.4; letter-spacing: -.04em; text-decoration: underline; text-decoration-color: #d8ff31; text-decoration-thickness: 6px; text-underline-offset: 9px; text-wrap: balance; }
.story-library-intro h1 > span, .story-library-intro h2 > span { display: inline-block; max-width: 100%; }
.story-library-intro > p:last-child { margin: 0; color: #596780; font-size: 15px; line-height: 1.9; }
.story-rooms { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; }
.story-room { min-width: 0; scroll-margin-top: 104px; }
.story-room + .story-room { position: relative; }
.story-room + .story-room::before { position: absolute; top: 0; bottom: 0; left: -32px; border-left: 1px solid #d7e4f2; content: ''; }
.story-room-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 26px; }
.story-room-heading > div > p { margin: 0 0 4px; color: #2454ff; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.story-room-heading h2, .story-room-heading h3 { margin: 0; font-family: inherit; color: #07122f; font-size: 42px; line-height: 1.35; font-weight: 900; letter-spacing: -.04em; text-decoration: underline; text-decoration-color: #d8ff31; text-decoration-thickness: 5px; text-underline-offset: 8px; }
.story-room-heading > a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 12px; color: #2454ff; font-size: 12px; line-height: 1.6; font-weight: 800; text-decoration: none; }
.story-room-heading > a span { margin-left: 8px; }
.library-work { display: grid; grid-template-columns: 42% minmax(0,1fr); gap: 15px; min-width: 0; align-content: start; }
.library-work--lead { grid-template-columns: 40% minmax(0,1fr); gap: 25px; margin-bottom: 26px; min-height: 380px; }
.library-cover { margin: 0; min-width: 0; }
.library-cover img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 0; }
.library-work--lead .library-cover img { height: 350px; aspect-ratio: auto; object-fit: contain; object-position: left top; }
.library-supporting .library-cover img { height: 176px; aspect-ratio: auto; object-fit: contain; object-position: left top; }
.library-cover figcaption { margin: 5px 0 0; color: #647089; font-size: 10px; line-height: 1.5; }
.library-preparing-cover { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; box-sizing: border-box; width: 100%; aspect-ratio: 2 / 3; padding: 18px 14px; border: 1px solid #deded8; background: #faf9f5; color: #27322f; text-align: left; }
.library-preparing-brand { color: #666e69; font-size: 9px; font-weight: 500; letter-spacing: .025em; line-height: 1.8; }
.library-preparing-label { padding-top: 12px; border-top: 1px solid #c8cdc5; font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif; font-size: 20px; font-weight: 500; letter-spacing: .13em; line-height: 1.6; }
.library-work--lead .library-preparing-cover { width: 233.333px; max-width: 100%; height: 350px; }
.library-work--lead .library-preparing-cover { padding: 28px 24px; }
.library-work--lead .library-preparing-brand { font-size: 11px; }
.library-work--lead .library-preparing-label { padding-top: 18px; font-size: 29px; }
.library-supporting .library-preparing-cover { width: 117.333px; max-width: 100%; height: 176px; }
@media(max-width:1100px) {
  .library-work--lead .library-preparing-cover { width: 100%; height: auto; }
}
@media(max-width:800px) {
  .library-supporting .library-preparing-cover { width: 100%; height: auto; }
}
@media(max-width:480px) {
  .library-work--lead .library-preparing-cover { padding: 20px 14px; }
  .library-work--lead .library-preparing-brand { font-size: 9px; }
  .library-work--lead .library-preparing-label { font-size: 22px; }
}
.library-work-copy { min-width: 0; padding-top: 7px; }
.library-work-copy h3, .library-work-copy h4 { margin: 0 0 12px; color: #07122f; font-family: inherit; font-size: 16px; line-height: 1.7; font-weight: 800; text-wrap: pretty; overflow-wrap: anywhere; }
.library-work--lead .library-work-copy h3, .library-work--lead .library-work-copy h4 { font-size: clamp(23px, 2vw, 30px); line-height: 1.6; margin-bottom: 18px; }
.library-title-phrase { display: inline-block; max-width: 100%; }
.library-summary { margin: 12px 0 0; color: #596780; font-size: 12px; line-height: 1.9; font-weight: 400; }
.library-work--lead .library-summary { font-size: 15px; line-height: 1.95; }
.library-availability { margin: 14px 0 0; color: #596780; font-size: 12px; line-height: 1.7; }
.library-status { display: inline-block; color: #69716b; font-size: 12px; padding: 0; line-height: 1.8; font-weight: 500; letter-spacing: .08em; }
.library-read { display: inline-flex; justify-content: center; align-items: center; gap: 20px; box-sizing: border-box; min-height: 48px; margin-top: 20px; padding: 12px 20px; color: #07122f; background: #d8ff31; border-radius: 7px; font-size: 14px; line-height: 1.5; font-weight: 850; text-decoration: none; }
.library-read:hover { color: #fff; background: #07122f; }
.library-supporting { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px 20px; }
.story-library-note { margin: 30px 0 0; padding-top: 20px; border-top: 1px solid #d7e4f2; color: #647089; font-size: 12px; line-height: 1.9; }
.story-library-shell a:focus-visible, .story-library-page a:focus-visible { outline: 3px solid #2454ff; outline-offset: 5px; }
.story-library-shell a:hover { text-decoration: underline; text-underline-offset: 4px; }
.story-library-page main { padding: 40px 0 60px; }
.story-library-page .episode-strip { margin-top: 48px; background: #faffff; border-top: 1px solid #d7e4f2; }
.story-library-page .episode-strip-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.story-library-page .episode-card { display: block; padding: 18px 0; border: 0; border-top: 1px solid #d7e4f2; background: transparent; border-radius: 0; }
.story-library-page .episode-card h3 { font-size: 16px; line-height: 1.7; }
@media(max-width:1100px) {
  .story-rooms { gap: 40px; }
  .story-room + .story-room::before { left: -20px; }
  .library-work--lead { gap: 17px; }
  .library-work--lead .library-summary { font-size: 14px; }
  .library-supporting { gap: 20px 16px; }
  .library-supporting .library-work { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .library-supporting .library-cover { max-width: 130px; }
  .library-work--lead .library-cover img { height: auto; aspect-ratio: 2 / 3; }
  .story-room-heading h2, .story-room-heading h3 { font-size: 36px; }
}
@media(max-width:800px) {
  .story-rooms { grid-template-columns: minmax(0,1fr); gap: 42px; }
  .story-room + .story-room { padding-left: 0; padding-top: 32px; border-left: 0; border-top: 1px solid #d7e4f2; }
  .story-room + .story-room::before { display: none; }
  .library-work--lead { grid-template-columns: minmax(0,.7fr) minmax(0,1fr); min-height: 0; }
  .library-work--lead .library-summary { font-size: 15px; }
  .library-work--lead .library-work-copy h3, .library-work--lead .library-work-copy h4 { font-size: 26px; }
  .library-supporting .library-work { grid-template-columns: minmax(0,.7fr) minmax(0,1fr); gap: 14px; }
  .library-supporting .library-cover { max-width: none; }
  .library-supporting .library-cover img { height: auto; aspect-ratio: 2 / 3; }
  .story-library-page .episode-strip-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:480px) {
  #manga.content-section { padding-block: 42px; }
  .story-library-intro { margin-bottom: 30px; }
  .story-library-intro h1, .story-library-intro h2 { font-size: 29px; line-height: 1.6; text-align: left; }
  .story-library-eyebrow { font-size: 13px; margin-bottom: 22px; }
  .story-library-intro > p:last-child { font-size: 14px; }
  .story-room-heading { margin-bottom: 24px; }
  .story-room-heading h2, .story-room-heading h3 { font-size: 34px; }
  .story-room-heading > a { font-size: 11px; }
  .library-work--lead { grid-template-columns: 39% minmax(0,1fr); gap: 18px; align-items: start; }
  .library-work--lead .library-work-copy h3, .library-work--lead .library-work-copy h4 { font-size: 21px; margin-bottom: 12px; line-height: 1.65; }
  .library-work--lead .library-summary { font-size: 14px; line-height: 1.85; }
  .library-read { width: 100%; gap: 8px; padding: 12px 8px; font-size: 12px; }
  .library-work--lead .library-work-copy { padding-top: 0; }
  .library-supporting { gap: 22px 18px; }
  .library-supporting .library-work { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .library-supporting .library-cover { max-width: 100px; }
  .library-work-copy h3, .library-work-copy h4 { font-size: 15px; margin-bottom: 6px; }
}
