/* Shelf専用。既存案のCSSには依存しません。 */
:root { --page-max: 1320px; --shelf-spread: clamp(250px, 26vw, 385px); }
[hidden] { display: none !important; }
html { scroll-padding-top: 28px; }
.reading-progress { position: fixed; z-index: 1090; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.site-header { min-height: 96px; padding: 18px 40px; border-bottom: 0; }
.site-header .brand { width: 260px; }
.site-nav { gap: 32px; font-size: 16px; }
.header-search { min-width: 210px; border-radius: 32px; }
.shelf-hero { padding-top: 28px; background: #fff; }
.hero-heading { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.hero-heading h1 { font-size: clamp(58px, 6.5vw, 96px); line-height: 1.16; letter-spacing: -.075em; }
.hero-heading h1 > span { display: block; white-space: nowrap; }
.hero-aside { text-align: right; padding-bottom: 9px; }
.hero-aside p { font-size: 17px; margin-bottom: 17px; }
.hero-aside .button { min-width: 270px; font-size: 21px; border-color: var(--accent-dark); color: var(--accent-dark); border-radius: 36px; gap: 40px; }
.hero-aside .button:hover { color: #fff; background: var(--accent-dark); }
.hero-aside [data-unavailable="true"] .icon { display: none; }
.hero-aside .text-link { display: flex; width: max-content; margin: 12px 0 0 auto; font-size: 13px; gap: 10px; }
.hero-aside .text-link .icon { width: 17px; height: 17px; }
.shelf-stage { position: relative; height: 460px; margin-top: 30px; overflow: hidden; perspective: 1400px; touch-action: pan-y; }
.shelf-deck { position: absolute; z-index: 2; inset: 0; transform-style: preserve-3d; }
.shelf-cover { position: absolute; left: 50%; bottom: 45px; display: block; width: clamp(264px, 28vw, 360px); aspect-ratio: 9 / 10; background: #181818; transform-origin: center bottom; transform-style: preserve-3d; box-shadow: 0 8px 12px -10px #18181840; -webkit-tap-highlight-color: transparent; }
.shelf-cover::before { content: ''; position: absolute; inset: 0 auto 0 -8px; width: 9px; background: linear-gradient(90deg, #343434, #858585 70%, #343434); transform: rotateY(-90deg); transform-origin: right center; }
.shelf-cover::after { content: ''; position: absolute; inset: 0; border: 1px solid #ffffff35; pointer-events: none; }
.shelf-cover picture, .shelf-cover img { display: block; width: 100%; height: 100%; }
.shelf-cover img { object-fit: cover; }
.shelf-cover .shelf-portrait-lit { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.shelf-cover[aria-selected="true"] .shelf-portrait-lit { opacity: 1; }
.shelf-cover[data-slot="center"] { z-index: 3; transform: translateX(-50%) translateY(6px) translateZ(30px); }
.shelf-cover[data-slot="left"] { z-index: 1; transform: translateX(calc(-50% - var(--shelf-spread))) rotateY(18deg) scale(.86); }
.shelf-cover[data-slot="right"] { z-index: 1; transform: translateX(calc(-50% + var(--shelf-spread))) rotateY(-18deg) scale(.86); }
.shelf-cover:focus-visible { outline: 4px solid #1670d2; outline-offset: 8px; }
.cover-edge { position: absolute; bottom: -4px; left: 0; width: 100%; height: 5px; background: var(--accent); }
/* 硬い棚板の輪郭を出さず、写真の下で消える接地影にします。 */
.shelf-platform { position: absolute; left: 3%; right: 3%; bottom: 6px; height: 44px; background: radial-gradient(ellipse at center, #18181820 0%, #1818180d 36%, #18181800 72%); pointer-events: none; }
.shelf-caption { display: flex; align-items: center; gap: 28px; min-height: 126px; padding-block: 20px; }
.shelf-arrow { flex: 0 0 58px; width: 58px; height: 58px; border: 1px solid #a2a4a6; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: background .2s, color .2s; }
.shelf-arrow:hover { background: var(--ink); color: #fff; }
.shelf-arrow.previous .icon { transform: rotate(180deg); }
.shelf-panels { flex: 1; min-width: 0; }
.shelf-panel { display: flex; align-items: center; gap: 28px; }
.shelf-count { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; font-family: Arial, sans-serif; line-height: 1; }
.shelf-count strong { color: var(--accent); font-size: 65px; font-weight: 800; letter-spacing: -.07em; }
.shelf-count > span { font-size: 24px; font-weight: 500; }
.shelf-story { border-left: 1px solid var(--line); padding-left: 26px; }
.shelf-story h2 { font-size: clamp(23px, 2vw, 30px); letter-spacing: -.06em; line-height: 1.4; white-space: nowrap; }
.shelf-story p { font-size: 13px; color: #555; margin-top: 5px; }
.shelf-actions { display: flex; gap: 10px; margin-left: auto; white-space: nowrap; }
.shelf-actions .button { padding: 12px 20px; font-size: 16px; min-height: 54px; border-radius: 30px; gap: 10px; }
.shelf-actions .icon { width: 16px; height: 16px; }
.shelf-coming { margin-left: auto; white-space: nowrap; }
.shelf-coming span { display: block; color: var(--accent-dark); font: 800 25px/1.3 Arial, sans-serif; }
.shelf-coming small { display: block; margin-top: 5px; color: #626262; font-size: 12px; }
.shelf-utilities { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; gap: 20px; padding-bottom: 18px; }
.shelf-help { font-size: 12px; color: #686868; }
.shelf-markers { display: flex; align-items: center; gap: 8px; }
.shelf-markers button { width: 44px; min-height: 44px; border: 0; background: transparent; position: relative; font: 11px Arial, sans-serif; color: #757575; }
.shelf-markers button::before { content: ''; display: block; width: 24px; height: 3px; background: #d4d4d4; margin: 0 auto 8px; transition: width .2s, background .2s; }
.shelf-markers button[aria-pressed="true"] { color: var(--accent-dark); }
.shelf-markers button[aria-pressed="true"]::before { background: var(--accent); width: 32px; }
.section-jump { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 66px; font-size: 12px; }
.tv-section { padding-top: 108px; }
.section-heading { text-align: center; margin-bottom: 45px; }
.section-heading .section-brand { display: none; }
.section-heading h2 { font-size: clamp(42px, 5.2vw, 76px); letter-spacing: -.06em; }
.section-lead { font-size: 24px; }
.episode { padding-block: 50px; border-bottom: 1px solid var(--line); gap: 48px; }
.episode:last-child { border-bottom: 0; }
.episode-number { display: flex; align-items: center; gap: 30px; font-family: Arial, sans-serif; font-size: 108px; font-weight: 400; letter-spacing: -.08em; line-height: 1; }
.episode-number::after { content: ''; height: 1px; background: var(--accent); flex: 1; }
.episode h3 { margin-top: 20px; font-size: 32px; }
.episode-actions .button-black { background: #df330f; }
.episode-actions .button-black:hover { background: var(--accent-dark); }
.episode-actions .button-outline { border-color: var(--accent-dark); color: var(--accent-dark); }
.episode-actions .button-outline:hover { background: var(--accent-dark); color: #fff; }
.episode-media .detail-photo { width: 31%; border-width: 4px; right: -12px; bottom: -12px; }
.radio-section { padding-block: 92px; }
.radio-heading h2 { font-size: clamp(40px, 4.3vw, 66px); }
.radio-row { position: relative; }
.radio-number { font-size: 23px; }
.audio-toggle { background: #fff; color: var(--ink); }
.audio-toggle:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.audio-wave { display: inline-flex; height: 20px; align-items: center; gap: 3px; margin-left: 13px; opacity: 0; }
.audio-wave i { display: block; width: 3px; height: 14px; background: var(--accent); transform: scaleY(.35); }
.radio-row:has(.audio-toggle[aria-pressed="true"]) .audio-wave { opacity: 1; }
.radio-row:has(.audio-toggle[aria-pressed="true"]) .audio-wave i { animation: audio-meter .7s ease-in-out infinite alternate; }
.audio-wave i:nth-child(2) { animation-delay: -.15s !important; }
.audio-wave i:nth-child(3) { animation-delay: -.4s !important; }
.audio-wave i:nth-child(4) { animation-delay: -.25s !important; }
.audio-wave i:nth-child(5) { animation-delay: -.5s !important; }
@keyframes audio-meter { to { transform: scaleY(1); } }
.search-section { padding-block: 112px 104px; }
.search-section h2 { line-height: 1.35; }
.search-cta { border-radius: 50px; }
.site-footer { gap: 30px; }
.footer-brand { width: 250px; }
html[data-motion="reduced"] { scroll-behavior: auto; }
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation: none !important; transition: none !important; }
@media (max-width: 1199.98px) {
    .hero-heading { gap: 20px; }
    .hero-heading h1 { font-size: 6.4vw; }
    .hero-aside p { font-size: 14px; }
    .hero-aside .button { min-width: 224px; }
    .shelf-stage { height: 390px; }
    .shelf-cover { width: 280px; }
    .shelf-caption { gap: 18px; }
    .shelf-panel { flex-wrap: wrap; gap: 14px 22px; }
    .shelf-count strong { font-size: 55px; }
    .shelf-actions, .shelf-coming { margin-left: auto; }
    .shelf-actions .button { font-size: 14px; padding: 10px 16px; }
    .episode { gap: 35px; }
    .episode h3 { font-size: 28px; }
}
@media (max-width: 991.98px) {
    .site-header { padding-inline: 24px; gap: 20px; }
    .site-header .brand { width: 230px; }
    .header-search { min-width: 160px; }
    .hero-heading { grid-template-columns: 1fr; gap: 22px; }
    .hero-heading h1 { font-size: clamp(54px, 8.5vw, 76px); }
    .hero-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; text-align: left; padding: 0; }
    .hero-aside p { margin: 0; font-size: 15px; }
    .hero-aside .button { min-width: 190px; min-height: 48px; font-size: 17px; gap: 20px; }
    .hero-aside .text-link { margin: 0; }
    .shelf-stage { margin-top: 32px; height: 375px; }
    .shelf-cover { width: 270px; }
    :root { --shelf-spread: 235px; }
    .shelf-caption { align-items: flex-start; }
    .shelf-arrow { margin-top: 16px; flex-basis: 48px; width: 48px; height: 48px; }
    .shelf-panel { display: grid; grid-template-columns: 96px 1fr; gap: 18px; }
    .shelf-story { padding-left: 18px; }
    .shelf-story h2 { font-size: 25px; }
    .shelf-actions, .shelf-coming { grid-column: 2; margin-left: 0; }
    .shelf-count > span { font-size: 20px; }
    .shelf-utilities { grid-template-columns: 1fr; gap: 5px; }
    .shelf-markers { grid-row: 1; grid-column: 1; }
    .shelf-help { grid-row: 2; grid-column: 1 / -1; }
    .tv-section { padding-block: 76px; }
    .episode-number { position: static; font-size: 82px; }
    .episode-copy { padding-left: 0; }
    .episode h3 { margin-top: 14px; font-size: 32px; }
    .episode-media .detail-photo { right: 12px; bottom: -12px; }
    .radio-section { padding-block: 64px; }
    .search-section { padding-block: 80px; }
}
@media (max-width: 575.98px) {
    .site-header { padding: 13px 20px 9px; min-height: 104px; gap: 4px 12px; }
    .site-header .brand { width: 165px; }
    .header-search { min-width: 0; font-size: 11px; padding: 8px 10px; }
    .site-nav { gap: 24px; }
    .shelf-hero { padding-top: 24px; }
    .hero-heading { gap: 19px; }
    .hero-heading h1 { font-size: clamp(39px, 11.2vw, 62px); letter-spacing: -.075em; line-height: 1.22; }
    .hero-aside { gap: 13px 18px; }
    .hero-aside p { flex-basis: 100%; font-size: 12px; }
    .hero-aside .button { min-width: 160px; font-size: 15px; min-height: 46px; padding: 10px 18px; }
    .hero-aside .text-link { font-size: 12px; }
    .shelf-stage { height: 310px; margin-top: 24px; }
    .shelf-cover { width: 62vw; max-width: 290px; bottom: 37px; }
    :root { --shelf-spread: 60vw; }
    .shelf-platform { left: 0; right: 0; bottom: 4px; height: 36px; }
    .shelf-caption { position: relative; gap: 9px; padding: 14px 0; min-height: 170px; }
    .shelf-arrow { width: 36px; height: 44px; flex-basis: 36px; margin-top: 1px; border-radius: 22px; }
    .shelf-arrow .icon { width: 18px; }
    .shelf-panel { display: flex; flex-wrap: wrap; gap: 8px; }
    .shelf-count { flex-basis: 100%; gap: 5px; }
    .shelf-count strong { font-size: 27px; letter-spacing: -.04em; }
    .shelf-count > span { font-size: 12px; }
    .shelf-story { border-left: 0; padding-left: 0; width: 100%; }
    .shelf-story h2 { font-size: clamp(19px, 5.2vw, 26px); }
    .shelf-story p { font-size: 11px; margin-top: 5px; }
    .shelf-actions { gap: 8px; margin-top: 5px; width: 100%; }
    .shelf-actions .button { flex: 1; padding: 10px 7px; min-height: 44px; font-size: 12px; gap: 5px; }
    .shelf-actions .icon { width: 12px; }
    .shelf-coming { margin: 7px 0 0; }
    .shelf-coming span { font-size: 23px; }
    .shelf-coming small { font-size: 11px; }
    .shelf-utilities { padding: 0 0 18px; }
    .shelf-help { font-size: 10px; }
    .tv-section { padding-block: 56px; }
    .section-heading { margin-bottom: 12px; }
    .section-heading h2 { font-size: clamp(33px, 8.7vw, 48px); }
    .section-lead { font-size: 18px; }
    .episode { padding-block: 32px; gap: 23px; }
    .episode-number { font-size: 60px; gap: 24px; }
    .episode h3 { font-size: 25px; margin-top: 10px; }
    .episode-media .detail-photo { width: 32%; right: 8px; bottom: -8px; border-width: 3px; }
    .radio-heading h2 { font-size: 43px; }
    .radio-number { font-size: 17px; }
    .audio-wave { margin-left: auto; }
    .search-section { padding-block: 65px; }
    .footer-brand { width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
    .audio-wave i { animation: none !important; }
}
