/* Localトップ試作02。専用bodyクラス内だけに適用。 */
.library-top-prototype02 { background: #faf9f6; }
.library-top-prototype02 .library-header { background: #faf9f6; }
.library-top-prototype02 .library-wrap { background: #faf9f6; }
.library-top-prototype02 .pickup-area { padding: 20px 0 72px; text-align: center; }
.library-top-prototype02 .pickup-track { gap: 24px; padding: 0 max(24px, calc((100vw - 960px) / 2)) 0; }
.library-top-prototype02 .library-visual-banner { flex: 0 0 min(960px, calc(100vw - 100px)); border: 0; background: transparent; }
.library-top-prototype02 .library-visual-banner:hover { transform: none; }
.library-top-prototype02 .library-visual-banner > a,
.library-top-prototype02 .library-visual-banner picture { display: block; width: 100%; height: 100%; }
.library-top-prototype02 .library-visual-banner img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
.library-top-prototype02 .pickup-nav-button { width: 46px; height: 46px; background: #fffdf8; border-color: #ad966b; color: #26394a; }
.library-top-prototype02 .slider-dots { display: inline-flex; align-items: center; vertical-align: middle; gap: 4px; margin: 18px 10px 0 0; }
.library-top-prototype02 .slider-dot { position: relative; width: 30px; height: 44px; border-radius: 0; background: transparent; }
.library-top-prototype02 .slider-dot::after { content: ''; position: absolute; width: 6px; height: 6px; top: 19px; left: 12px; border-radius: 50%; background: #c7c2b8; }
.library-top-prototype02 .slider-dot.active::after { width: 22px; left: 4px; border-radius: 4px; background: #26394a; }
.library-top-prototype02 .pickup-autoplay-control { display: inline-flex; vertical-align: middle; margin: 18px 0 0; }
.library-top-prototype02 .pickup-autoplay-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #26394a; border-radius: 50%; background: #26394a; color: white; text-decoration: none; cursor: pointer; }
.library-top-prototype02 .autoplay-icon { display: block; width: 10px; height: 13px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.library-top-prototype02 .pickup-autoplay-toggle[aria-pressed="true"] .autoplay-icon { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; border-right: 0; margin-left: 3px; }
.library-top-prototype02 .library-latest[hidden] { display: none; }
.library-top-prototype02 .category-tab-list { gap: 10px; align-items: stretch; padding-bottom: 12px; margin-bottom: 25px; }
.library-top-prototype02 .category-tab-button { display: flex; align-items: center; justify-content: center; padding: 15px 8px; min-height: 58px; border: 1px solid #d0cec5; border-radius: 3px; background: #fffefa; color: #343b42; }
.library-top-prototype02 .category-tab-label { font-weight: 400; white-space: nowrap; }
.library-top-prototype02 .category-tab-button::after,
.library-top-prototype02 .category-tab-button:hover::after { display: none; background: transparent; }
.library-top-prototype02 .category-tab-button:hover { background: #efede5; border-color: #9c997f; }
.library-top-prototype02 .category-tab-button.is-active { background: #26394a; border-color: #26394a; color: #fff; }
.library-top-prototype02 .category-tab-button.is-active::after { content: ''; display: block; left: 50%; right: auto; bottom: -10px; width: 0; height: 0; transform: translateX(-50%); border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 10px solid #26394a; background: transparent; }
.library-top-prototype02 .pickup-autoplay-toggle:focus-visible,
.library-top-prototype02 .slider-dot:focus-visible { outline: 2px solid #a58e5e; outline-offset: 4px; }
@media (max-width: 767px) {
  .library-top-prototype02 .library-header__inner { gap: 14px; }
  .library-top-prototype02 .library-header__actions { flex-shrink: 0; }
  .library-top-prototype02 .pickup-area { padding: 12px 0 48px; }
  .library-top-prototype02 .pickup-track { gap: 12px; padding-inline: 18px; }
  .library-top-prototype02 .library-visual-banner { flex-basis: calc(100vw - 36px); aspect-ratio: 1 / 1; }
  .library-top-prototype02 .library-visual-banner img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; }
  .library-top-prototype02 .pickup-nav-button { width: 44px; height: 44px; top: calc(8px + (100vw - 36px) / 2); bottom: auto; transform: translateY(-50%); }
  .library-top-prototype02 .pickup-nav-button--prev { left: 4px; }
  .library-top-prototype02 .pickup-nav-button--next { right: 4px; }
  .library-top-prototype02 .category-tab-list { gap: 8px; padding: 4px 18px 16px; margin-bottom: 18px; }
  .library-top-prototype02 .category-tab-button { flex: 0 0 auto; min-width: 110px; min-height: 50px; padding: 14px 18px; }
  .library-top-prototype02 .category-tab-label { font-size: 13px; }
}

/* Use the same soft search-field silhouette on the top page and modal. */
.library-top-prototype02 .library-book-finder__search .search-form { border-radius: 999px; }

/* Prototype 11: grouped concern catalogue with compact index rows. */
.library-top-prototype02 .concern-catalogue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 42px; padding: 6px 28px 34px; }
.library-top-prototype02 .concern-catalogue__group { min-width: 0; }
.library-top-prototype02 .concern-catalogue__heading { margin-bottom: 7px; padding-bottom: 9px; border-bottom: 1px solid #b8a27a; color: #26394a; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 16px; font-weight: 600; letter-spacing: .05em; }
.library-top-prototype02 .concern-catalogue__list { margin: 0; padding: 0; list-style: none; }
.library-top-prototype02 .concern-catalogue__list li { margin: 0; border-bottom: 0; }
.library-top-prototype02 .concern-catalogue__list li[hidden] { display: none; }
.library-top-prototype02 .concern-catalogue__list a { display: grid; min-height: 43px; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 4px; color: #3c454d; font-size: 12px; line-height: 1.6; text-decoration: none; transition: color .16s ease, background .16s ease; }
.library-top-prototype02 .concern-catalogue__list a:hover { color: #1f3447; background: #faf8f3; }
.library-top-prototype02 .concern-catalogue__list a:focus-visible { outline: 2px solid #a58e5e; outline-offset: 2px; }
.library-top-prototype02 .concern-catalogue__marker { width: 9px; height: 5px; border: 0; border-bottom: 1px solid #a58e5e; border-left: 1px solid #a58e5e; transform: rotate(-45deg); }
.library-top-prototype02 .concern-catalogue__arrow { color: #9c875f; font-size: 13px; }
.library-top-prototype02 .concern-catalogue__toggle { display: flex; min-height: 38px; align-items: center; gap: 7px; margin: 8px 0 0 auto; padding: 6px 2px; border: 0; border-bottom: 1px solid #b8a27a; color: #5e574c; background: transparent; font-family: inherit; font-size: 11px; cursor: pointer; }
.library-top-prototype02 .concern-catalogue__toggle b { color: #9c875f; font-size: 14px; font-weight: 400; }
.library-top-prototype02 .concern-catalogue__toggle:hover { color: #26394a; }
.library-top-prototype02 .concern-catalogue__toggle:focus-visible { outline: 2px solid #a58e5e; outline-offset: 3px; }

@media (max-width: 767px) {
  .library-top-prototype02 .concern-catalogue { grid-template-columns: 1fr; gap: 28px; padding: 3px 15px 27px; }
  .library-top-prototype02 .concern-catalogue__heading { font-size: 15px; }
  .library-top-prototype02 .concern-catalogue__list a { min-height: 46px; padding-block: 9px; font-size: 12px; }
}

/* アーカイブ既存の active 色を、ドット本体には適用しない。 */
.library-top-prototype02 .slider-dot.active { background: transparent; width: 30px; }

.library-top-prototype02 .pickup-nav-button { display: inline-flex; }
.library-top-prototype02 .category-more-label { font-weight: inherit; }
.library-top-prototype02 .category-more-label--mobile { display: none; }

/* Two-level book finder: method guide above the existing category tabs. */
.library-top-prototype02 .library-book-finder { padding: 76px 24px 0; background: #f3f0e9; border-block: 0; }
.library-top-prototype02 .library-book-finder__heading { width: min(1132px, 100%); margin: 0 auto 34px; text-align: center; }
.library-top-prototype02 .library-book-finder__label { display: block; margin-bottom: 10px; color: #9a8357; font-size: 10px; font-weight: 600; letter-spacing: .24em; }
.library-top-prototype02 .library-book-finder__title { color: #26394a; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(30px, 3vw, 40px); font-weight: 500; line-height: 1.4; letter-spacing: .08em; }
.library-top-prototype02 .library-book-finder__heading p { margin: 12px 0 0; color: #68645d; font-size: 13px; letter-spacing: .04em; }
.library-top-prototype02 .finder-method-tabs { display: grid; width: min(1132px, 100%); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 auto; }
.library-top-prototype02 .finder-method-tab { position: relative; display: flex; min-height: 98px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; padding: 21px 28px; border: 1px solid #aeb4b8; border-radius: 2px; color: #26394a; background: #fffefa; font-family: inherit; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.library-top-prototype02 .finder-method-tab span { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; letter-spacing: .04em; }
.library-top-prototype02 .finder-method-tab small { color: #77736c; font-size: 11px; letter-spacing: .06em; }
.library-top-prototype02 .finder-method-tab:hover { border-color: #26394a; background: #f8f6f0; }
.library-top-prototype02 .finder-method-tab.is-active { border-color: #26394a; color: #fff; background: #26394a; }
.library-top-prototype02 .finder-method-tab.is-active small { color: #d9dde1; }
.library-top-prototype02 .finder-method-tab:focus-visible { outline: 2px solid #a58e5e; outline-offset: 4px; }
.library-top-prototype02 .finder-method-panel { width: min(1132px, 100%); margin: 34px auto 0; }
.library-top-prototype02 .finder-method-panel[hidden] { display: none; }
.library-top-prototype02 .finder-method-panel--current { padding: 42px 48px 70px; border-top: 1px solid #d3ccbe; }
.library-top-prototype02 .finder-method-panel__guide { margin: 0 0 24px; color: #716b61; font-size: 12px; text-align: center; letter-spacing: .08em; }
.library-top-prototype02 .finder-current-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.library-top-prototype02 .finder-current-list li { display: flex; min-height: 72px; align-items: center; padding: 17px 20px 17px 40px; border: 1px solid #d5d0c6; color: #343b42; background: #fffefa; font-size: 14px; line-height: 1.65; }
.library-top-prototype02 .finder-current-list li::before { width: 6px; height: 6px; flex: 0 0 auto; margin-left: -19px; margin-right: 13px; border: 1px solid #a58e5e; border-radius: 50%; content: ''; }
.library-top-prototype02 .finder-method-panel--theme { margin-top: 34px; }
.library-top-prototype02 .finder-method-panel--theme .library-category-tabs { padding-top: 54px; border-top: 0; }
.library-top-prototype02 .finder-method-panel--position { padding: 52px 0 70px; border-top: 1px solid #d3ccbe; }
.library-top-prototype02 .finder-method-panel--theme { padding: 52px 0 70px; border-top: 0; }
.library-top-prototype02 .finder-method-panel--position .category-section-heading,
.library-top-prototype02 .finder-method-panel--theme .category-section-heading { margin-bottom: 30px; text-align: center; }
.library-top-prototype02 .finder-method-panel--position .finder-method-panel__guide { margin: 12px 0 0; }
.library-top-prototype02 .classification-tab-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.library-top-prototype02 .classification-browser--concerns .classification-tab-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.library-top-prototype02 .classification-tab-button { position: relative; min-height: 62px; padding: 13px 15px; border: 1px solid #d0cec5; border-radius: 2px; color: #343b42; background: #fffefa; font-family: inherit; font-size: 13px; line-height: 1.55; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.library-top-prototype02 .classification-tab-button:hover { border-color: #9c997f; background: #efede5; }
.library-top-prototype02 .classification-tab-button.is-active { border-color: #26394a; color: #fff; background: #26394a; }
.library-top-prototype02 .classification-tab-button.is-active::after { position: absolute; top: 100%; left: 50%; border-top: 8px solid #26394a; border-right: 8px solid transparent; border-left: 8px solid transparent; content: ''; transform: translateX(-50%); }
.library-top-prototype02 .classification-tab-button:focus-visible,
.library-top-prototype02 .classification-expand:focus-visible { outline: 2px solid #a58e5e; outline-offset: 4px; }
.library-top-prototype02 .classification-panels { margin-top: 34px; }
.library-top-prototype02 .classification-expand { display: flex; min-width: 230px; align-items: center; justify-content: center; gap: 20px; margin: 22px auto 0; padding: 12px 22px; border: 0; border-bottom: 1px solid #9c875f; color: #343b42; background: transparent; font-family: inherit; font-size: 12px; letter-spacing: .05em; cursor: pointer; }
.library-top-prototype02 .classification-expand b { color: #9c875f; font-size: 18px; font-weight: 400; line-height: 1; }
.library-top-prototype02 .classification-tab-button[hidden] { display: none; }

/* Phenomena: compact index for scanning many short phrases. */
.library-top-prototype02 .classification-browser--concerns .classification-tab-list { gap: 7px 9px; }
.library-top-prototype02 .classification-browser--concerns .classification-tab-button { min-height: 48px; padding: 9px 14px 9px 28px; text-align: left; }
.library-top-prototype02 .classification-browser--concerns .classification-tab-button::before { position: absolute; top: 50%; left: 13px; width: 5px; height: 5px; border: 1px solid #a58e5e; border-radius: 50%; content: ''; transform: translateY(-50%); }
.library-top-prototype02 .classification-browser--concerns .classification-tab-button.is-active::before { border-color: #d4c29c; background: #d4c29c; }
.library-top-prototype02 .classification-browser--concerns .classification-tab-button.is-active::after { display: none; }

/* Life position: three quiet routes with selectable stations. */
.library-top-prototype02 .position-map { display: grid; gap: 24px; padding: 28px 30px 32px; border: 1px solid #d5d0c6; background: #f9f7f1; }
.library-top-prototype02 .position-route { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 22px; }
.library-top-prototype02 .position-route__label { color: #6c675f; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 13px; letter-spacing: .06em; }
.library-top-prototype02 .position-route__label span { display: block; margin-bottom: 4px; color: #a58e5e; font-family: Georgia, serif; font-size: 9px; letter-spacing: .18em; }
.library-top-prototype02 .position-route__track { position: relative; display: grid; grid-auto-columns: minmax(112px, 1fr); grid-auto-flow: column; gap: 12px; align-items: stretch; }
.library-top-prototype02 .position-route__track::before { position: absolute; z-index: 0; top: 20px; right: 5%; left: 5%; height: 1px; background: #b8a27a; content: ''; }
.library-top-prototype02 .position-route:nth-child(2) .position-route__track { width: 68%; margin-left: 12%; }
.library-top-prototype02 .position-route:nth-child(3) .position-route__track { width: 84%; margin-left: 5%; }
.library-top-prototype02 .position-stop { z-index: 1; min-height: 82px; padding: 33px 10px 10px; border: 0; color: #4d4a45; background: transparent; font-size: 12px; }
.library-top-prototype02 .position-stop:hover { border: 0; background: #efede5; }
.library-top-prototype02 .position-stop__marker { position: absolute; top: 13px; left: 50%; width: 15px; height: 15px; border: 3px solid #f9f7f1; border-radius: 50%; background: #b8a27a; box-shadow: 0 0 0 1px #9c875f; transform: translateX(-50%); }
.library-top-prototype02 .position-stop.is-active { border: 0; color: #fff; background: #26394a; }
.library-top-prototype02 .position-stop.is-active::after { display: none; }
.library-top-prototype02 .position-stop.is-active .position-stop__marker { background: #fff; box-shadow: 0 0 0 2px #b8a27a; }

/* Themes: orderly shelves retaining the speech-bubble active tab. */
.library-top-prototype02 .classification-browser--theme .classification-tab-list { gap: 10px; padding: 0 0 13px; border-bottom: 4px double #c9c0ae; }
.library-top-prototype02 .classification-browser--theme .classification-tab-button { min-height: 68px; border-bottom-color: #b8a27a; background: #fffefa; box-shadow: inset 0 -4px 0 #f0ece2; }
.library-top-prototype02 .classification-browser--theme .classification-tab-button.is-active { border-color: #26394a; background: #26394a; box-shadow: none; }

@media (max-width: 767px) {
  .library-top-prototype02 .library-book-finder { padding: 54px 18px 0; }
  .library-top-prototype02 .library-book-finder__heading { margin-bottom: 26px; }
  .library-top-prototype02 .library-book-finder__title { font-size: 28px; }
  .library-top-prototype02 .library-book-finder__heading p { font-size: 12px; }
  .library-top-prototype02 .finder-method-tabs { grid-template-columns: 1fr; gap: 8px; }
  .library-top-prototype02 .finder-method-tab { min-height: 78px; padding: 13px 14px; }
  .library-top-prototype02 .finder-method-tab span { font-size: 15px; line-height: 1.55; }
  .library-top-prototype02 .finder-method-tab small { font-size: 9px; line-height: 1.5; }
  .library-top-prototype02 .finder-method-panel { margin-top: 27px; }
  .library-top-prototype02 .finder-method-panel--current { padding: 30px 0 52px; }
  .library-top-prototype02 .finder-method-panel__guide { margin-bottom: 18px; font-size: 11px; }
  .library-top-prototype02 .finder-current-list { grid-template-columns: 1fr; gap: 8px; }
  .library-top-prototype02 .finder-current-list li { min-height: 58px; padding-block: 13px; font-size: 13px; }
  .library-top-prototype02 .finder-method-panel--theme .library-category-tabs { margin-inline: -18px; padding-top: 42px; }
  .library-top-prototype02 .finder-method-panel--position,
  .library-top-prototype02 .finder-method-panel--theme { padding: 38px 0 52px; }
  .library-top-prototype02 .classification-tab-list,
  .library-top-prototype02 .classification-browser--concerns .classification-tab-list { grid-template-columns: 1fr; gap: 8px; }
  .library-top-prototype02 .classification-browser--position .classification-tab-list,
  .library-top-prototype02 .classification-browser--theme .classification-tab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-top-prototype02 .classification-tab-button { min-height: 58px; padding: 11px 10px; font-size: 12px; }
  .library-top-prototype02 .classification-panels { margin-top: 28px; }
  .library-top-prototype02 .classification-browser--concerns .classification-tab-button { min-height: 46px; }
  .library-top-prototype02 .position-map { gap: 28px; padding: 25px 18px 30px; }
  .library-top-prototype02 .position-route { display: block; }
  .library-top-prototype02 .position-route__label { margin-bottom: 12px; }
  .library-top-prototype02 .position-route__label span { display: inline-block; margin: 0 9px 0 0; }
  .library-top-prototype02 .position-route__track,
  .library-top-prototype02 .position-route:nth-child(2) .position-route__track,
  .library-top-prototype02 .position-route:nth-child(3) .position-route__track { display: grid; width: 100%; grid-auto-columns: auto; grid-auto-flow: row; gap: 7px; margin: 0; padding-left: 24px; }
  .library-top-prototype02 .position-route__track::before { top: 8px; right: auto; bottom: 8px; left: 7px; width: 1px; height: auto; }
  .library-top-prototype02 .position-stop { min-height: 48px; padding: 10px 12px 10px 24px; text-align: left; }
  .library-top-prototype02 .position-stop__marker { top: 50%; left: -23px; transform: translateY(-50%); }
  .library-top-prototype02 .classification-browser--theme .classification-tab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; }
  .library-top-prototype02 .classification-browser--theme .classification-tab-button { min-height: 46px; padding: 7px 6px; font-size: 13px; line-height: 1.35; }
  .library-top-prototype02 .classification-browser--theme .classification-tab-button.is-active::after { border-top-width: 6px; border-right-width: 6px; border-left-width: 6px; }
  .library-top-prototype02 .classification-browser--theme .category-more-label--desktop { display: none; }
  .library-top-prototype02 .classification-browser--theme .category-more-label--mobile { display: inline; white-space: nowrap; }
}

/* Prototype 04: all three finding methods remain visible as library floors. */
.library-top-prototype02 .finder-guide-links { display: grid; width: min(1132px, 100%); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 auto 52px; }
.library-top-prototype02 .finder-guide-link { position: relative; display: flex; min-height: 88px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; padding: 18px 24px; border: 1px solid #aeb4b8; border-radius: 2px; color: #26394a; background: #fffefa; text-align: center; text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.library-top-prototype02 .finder-guide-link span { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(16px, 1.55vw, 19px); font-weight: 600; letter-spacing: .04em; }
.library-top-prototype02 .finder-guide-link small { color: #77736c; font-size: 10px; letter-spacing: .06em; }
.library-top-prototype02 .finder-guide-link::after { color: #9c875f; font-size: 14px; content: '↓'; }
.library-top-prototype02 .finder-guide-link:hover { border-color: #26394a; background: #f8f6f0; transform: translateY(-2px); }
.library-top-prototype02 .finder-guide-link:focus-visible { outline: 2px solid #a58e5e; outline-offset: 4px; }
.library-top-prototype02 .finder-method-section { scroll-margin-top: 110px; }
.library-top-prototype02 .finder-method-section + .finder-method-section { margin-top: 24px; }
.library-top-prototype02 .finder-method-panel--current { padding-top: 48px; border-top: 1px solid #d3ccbe; }
.library-top-prototype02 .finder-method-panel--current .category-section-heading { margin-bottom: 12px; text-align: center; }
.library-top-prototype02 .finder-section-title { color: #232323; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(24px, 2.6vw, 31px); font-weight: 600; line-height: 1.5; letter-spacing: .04em; }
.library-top-prototype02 .finder-method-panel--position,
.library-top-prototype02 .finder-method-panel--theme { padding-top: 58px; }

@media (max-width: 767px) {
  .library-top-prototype02 .finder-guide-links { grid-template-columns: 1fr; gap: 8px; margin-bottom: 38px; }
  .library-top-prototype02 .finder-guide-link { min-height: 68px; padding: 11px 15px; }
  .library-top-prototype02 .finder-guide-link span { font-size: 15px; }
  .library-top-prototype02 .finder-guide-link::after { position: absolute; right: 20px; }
  .library-top-prototype02 .finder-method-section { scroll-margin-top: 82px; }
  .library-top-prototype02 .finder-method-section + .finder-method-section { margin-top: 16px; }
  .library-top-prototype02 .finder-method-panel--current { padding-top: 38px; }
  .library-top-prototype02 .finder-section-title { font-size: 23px; }
}

/* Prototype 05: theme first, compact position results, direct concern links. */
.library-top-prototype02 .classification-browser--theme .classification-tab-list { padding-bottom: 0; border-bottom: 0; }
.library-top-prototype02 .classification-browser--theme .classification-tab-button { border-color: #b8a27a; box-shadow: none; }
.library-top-prototype02 .classification-browser--theme .classification-tab-button.is-active { border-color: #26394a; box-shadow: none; }
.library-top-prototype02 .classification-browser--position .category-article-grid { display: flex; flex-direction: column; gap: 9px; }
.library-top-prototype02 .classification-browser--position .category-article-card,
.library-top-prototype02 .classification-browser--position .category-article-card:first-child { min-height: 0; grid-row: auto; }
.library-top-prototype02 .classification-browser--position .category-article-card a { display: grid; height: auto; grid-template-columns: 168px minmax(0, 1fr); align-items: center; }
.library-top-prototype02 .classification-browser--position .category-article-thumb,
.library-top-prototype02 .classification-browser--position .category-article-card:first-child .category-article-thumb { width: 168px; height: 98px; aspect-ratio: auto; }
.library-top-prototype02 .classification-browser--position .category-article-body,
.library-top-prototype02 .classification-browser--position .category-article-card:first-child .category-article-body { padding: 13px 20px; }
.library-top-prototype02 .classification-browser--position .category-article-title,
.library-top-prototype02 .classification-browser--position .category-article-card:first-child .category-article-title { font-size: 14px; line-height: 1.65; }
.library-top-prototype02 .classification-browser--position .category-article-rank,
.library-top-prototype02 .classification-browser--position .category-article-card:first-child .category-article-rank { top: 7px; left: 7px; min-width: 29px; height: 24px; font-size: 10px; }
.library-top-prototype02 .concern-index__link { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #343b42; text-decoration: none; }
.library-top-prototype02 .concern-index__link span { flex: 0 0 auto; color: #9c875f; }
.library-top-prototype02 .concern-index__link:hover { color: #26394a; }
.library-top-prototype02 .finder-method-panel--current { padding-bottom: 62px; }

@media (max-width: 767px) {
  .library-top-prototype02 .classification-browser--position .category-article-card a { grid-template-columns: 96px minmax(0, 1fr); }
  .library-top-prototype02 .classification-browser--position .category-article-thumb,
  .library-top-prototype02 .classification-browser--position .category-article-card:first-child .category-article-thumb { width: 96px; height: 72px; }
  .library-top-prototype02 .classification-browser--position .category-article-body,
  .library-top-prototype02 .classification-browser--position .category-article-card:first-child .category-article-body { padding: 9px 11px; }
  .library-top-prototype02 .classification-browser--position .category-article-category { margin-bottom: 3px; font-size: 8px; }
  .library-top-prototype02 .classification-browser--position .category-article-title,
  .library-top-prototype02 .classification-browser--position .category-article-card:first-child .category-article-title { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}

/* Prototype 06: concise reading finder with relocated keyword search and line icons. */
.library-top-prototype02 .library-book-finder__heading { margin-bottom: 26px; }
.library-top-prototype02 .library-book-finder__search { width: min(620px, 100%); margin: 0 auto 34px; }
.library-top-prototype02 .library-book-finder__search .search-form { border-color: #c9c1b2; border-radius: 999px; background: #fffefa; }
.library-top-prototype02 .library-book-finder__search .search-form input[type="search"] { padding: 15px 18px; color: #26394a; }
.library-top-prototype02 .library-book-finder__search .search-form button { flex-basis: 54px; background: #26394a; }
.library-top-prototype02 .finder-guide-link { min-height: 126px; gap: 13px; padding: 20px 24px; }
.library-top-prototype02 .finder-guide-icon { width: 38px; height: 38px; fill: none; stroke: #9c875f; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.library-top-prototype02 .finder-guide-link::after { display: none; content: none; }

@media (max-width: 767px) {
  .library-top-prototype02 .library-book-finder__heading { margin-bottom: 22px; }
  .library-top-prototype02 .library-book-finder__search { margin-bottom: 28px; }
  .library-top-prototype02 .finder-guide-link { min-height: 92px; gap: 9px; padding: 14px 18px; }
  .library-top-prototype02 .finder-guide-icon { width: 30px; height: 30px; }
}

/* Prototype 08: theme-led finder with two compact alternate entrances. */
.library-top-prototype02 .finder-method-panel--theme { margin-top: 10px; padding-top: 48px; }
.library-top-prototype02 .finder-alternate-entrances { width: min(1132px, 100%); margin: 0 auto; padding: 54px 0 70px; border-top: 0; }
.library-top-prototype02 .finder-alternate-entrances__heading { margin-bottom: 25px; text-align: center; }
.library-top-prototype02 .finder-alternate-entrances__title { color: #26394a; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 24px; font-weight: 600; letter-spacing: .05em; }
.library-top-prototype02 .finder-alternate-entrances__heading p { margin: 10px 0 0; color: #716b61; font-size: 12px; line-height: 1.8; }
.library-top-prototype02 .finder-accordion.finder-method-panel { width: 100%; margin: 0; padding: 0; border: 1px solid #c9c1b2; background: #fffefa; scroll-margin-top: 100px; }
.library-top-prototype02 .finder-accordion + .finder-accordion { margin-top: 12px; }
.library-top-prototype02 .finder-accordion .finder-accordion__heading { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; margin: 0; padding: 0 22px; text-align: left; }
.library-top-prototype02 .finder-accordion .category-section-label { margin: 0; }
.library-top-prototype02 .finder-accordion .finder-section-title,
.library-top-prototype02 .finder-accordion h2 { margin: 0; font: inherit; }
.library-top-prototype02 .finder-accordion__trigger { display: flex; width: 100%; min-height: 76px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border: 0; color: #26394a; background: transparent; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 20px; font-weight: 600; text-align: left; letter-spacing: .04em; cursor: pointer; }
.library-top-prototype02 .finder-accordion__trigger b { color: #9c875f; font-family: sans-serif; font-size: 22px; font-weight: 300; }
.library-top-prototype02 .finder-accordion__trigger:focus-visible { outline: 2px solid #a58e5e; outline-offset: 4px; }
.library-top-prototype02 .finder-accordion__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .22s ease, visibility 0s linear .22s; }
.library-top-prototype02 .finder-accordion__inner { min-height: 0; overflow: hidden; }
.library-top-prototype02 .finder-accordion.is-open .finder-accordion__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .22s ease; }
.library-top-prototype02 .finder-accordion__inner > .finder-method-panel__guide { margin: 0; padding: 20px 28px; border-top: 1px solid #e0d9cc; }
.library-top-prototype02 .finder-accordion__inner > .classification-browser { padding: 4px 28px 30px; }
.library-top-prototype02 .finder-accordion.finder-method-panel--current { padding-bottom: 0; }

@media (max-width: 767px) {
  .library-top-prototype02 .finder-method-panel--theme { margin-top: 6px; padding-top: 36px; }
  .library-top-prototype02 .finder-alternate-entrances { padding: 40px 0 52px; }
  .library-top-prototype02 .finder-alternate-entrances__heading { margin-bottom: 20px; }
  .library-top-prototype02 .finder-alternate-entrances__title { font-size: 21px; }
  .library-top-prototype02 .finder-alternate-entrances__heading p { width: 260px; max-width: 100%; margin-inline: auto; }
  .library-top-prototype02 .finder-accordion .finder-accordion__heading { grid-template-columns: 35px minmax(0, 1fr); padding: 0 15px; }
  .library-top-prototype02 .finder-accordion__trigger { min-height: 68px; font-size: 16px; }
  .library-top-prototype02 .finder-accordion__inner > .finder-method-panel__guide { padding: 17px 15px; text-align: left; }
  .library-top-prototype02 .finder-accordion__inner > .classification-browser { padding: 2px 15px 22px; }
}

/* Prototype 09: familiar age and life-event entrances inside accordion 02. */
.library-top-prototype02 .life-stage-index { padding: 28px; border-top: 1px solid #e0d9cc; }
.library-top-prototype02 .life-stage-index__ages { padding-bottom: 30px; }
.library-top-prototype02 .life-stage-index__events { padding-top: 28px; border-top: 1px solid #e0d9cc; }
.library-top-prototype02 .life-stage-index__heading { color: #26394a; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 19px; font-weight: 600; letter-spacing: .05em; }
.library-top-prototype02 .life-stage-index__heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.library-top-prototype02 .life-stage-index__multiple-note { color: #777167; font-size: 10px; letter-spacing: .05em; }
.library-top-prototype02 .life-stage-index__ages > p { margin: 8px 0 18px; color: #716b61; font-size: 11px; line-height: 1.8; }
.library-top-prototype02 .life-stage-age-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.library-top-prototype02 .life-stage-age-list button,
.library-top-prototype02 .life-stage-event-list button { min-height: 46px; padding: 9px 12px; border: 1px solid #c9c1b2; border-radius: 1px; color: #36434e; background: #fff; font-family: inherit; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.library-top-prototype02 .life-stage-age-list button { font-size: 14px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .library-top-prototype02 .life-stage-age-list button:hover,
  .library-top-prototype02 .life-stage-event-list button:hover { border-color: #9c875f; background: #f7f4ed; }
}
.library-top-prototype02 .life-stage-age-list button[aria-pressed="true"],
.library-top-prototype02 .life-stage-event-list button[aria-pressed="true"] { border-color: #26394a; color: #fff; background: #26394a; }
.library-top-prototype02 .life-stage-age-list button:focus-visible,
.library-top-prototype02 .life-stage-event-list button:focus-visible { outline: 2px solid #a58e5e; outline-offset: 3px; }
.library-top-prototype02 .life-stage-event-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 30px; margin-top: 20px; }
.library-top-prototype02 .life-stage-event-group__label { margin-bottom: 9px; padding-bottom: 7px; border-bottom: 0; color: #746344; font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.library-top-prototype02 .life-stage-event-list { display: flex; flex-wrap: wrap; gap: 7px; }
.library-top-prototype02 .life-stage-event-list button { min-height: 38px; padding: 7px 13px; font-size: 12px; }
.library-top-prototype02 .life-stage-event-list button { white-space: normal; word-break: keep-all; overflow-wrap: normal; }
.library-top-prototype02 .life-stage-results { margin-top: 30px; padding-top: 26px; border-top: 1px solid #e0d9cc; }
.library-top-prototype02 .life-stage-results__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.library-top-prototype02 .life-stage-results__summary { color: #26394a; font-size: 13px; font-weight: 600; }
.library-top-prototype02 .life-stage-results__clear { flex: 0 0 auto; padding: 5px 0; border: 0; border-bottom: 1px solid #9c875f; color: #5d5548; background: transparent; font-family: inherit; font-size: 11px; cursor: pointer; }
.library-top-prototype02 .life-stage-results__clear:hover { color: #26394a; }
.library-top-prototype02 .life-stage-results__clear:focus-visible { outline: 2px solid #a58e5e; outline-offset: 3px; }
.library-top-prototype02 .life-stage-results .category-article-grid { display: flex; flex-direction: column; gap: 9px; }
.library-top-prototype02 .life-stage-results .category-article-card,
.library-top-prototype02 .life-stage-results .category-article-card:first-child { min-height: 0; grid-row: auto; }
.library-top-prototype02 .life-stage-results .category-article-card a { display: grid; height: auto; grid-template-columns: 168px minmax(0, 1fr); align-items: center; }
.library-top-prototype02 .life-stage-results .category-article-thumb,
.library-top-prototype02 .life-stage-results .category-article-card:first-child .category-article-thumb { width: 168px; height: 98px; aspect-ratio: auto; }
.library-top-prototype02 .life-stage-results .category-article-body { padding: 13px 20px; }
.library-top-prototype02 .life-stage-results .category-article-title { font-size: 14px; line-height: 1.65; }
.library-top-prototype02 .life-stage-results__all { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 9px 16px; border: 1px solid #9c875f; color: #26394a; background: #fff; font-size: 12px; font-weight: 600; text-decoration: none; box-sizing: border-box; }
.library-top-prototype02 .life-stage-results__all[hidden] { display: none; }
.library-top-prototype02 .life-stage-results__all > span[aria-hidden] { color: #8f7750; }
.library-top-prototype02 .life-stage-results__all:hover { background: #faf8f3; }
.library-top-prototype02 .life-stage-results__all:focus-visible { outline: 2px solid #a58e5e; outline-offset: 3px; }

@media (max-width: 767px) {
  .library-top-prototype02 .life-stage-index { padding: 22px 15px; }
  .library-top-prototype02 .life-stage-index__ages { padding-bottom: 25px; }
  .library-top-prototype02 .life-stage-index__events { padding-top: 24px; }
  .library-top-prototype02 .life-stage-index__heading { font-size: 17px; }
  .library-top-prototype02 .life-stage-index__heading-row { align-items: baseline; flex-direction: row; gap: 8px; }
  .library-top-prototype02 .life-stage-index__multiple-note { flex: 0 0 auto; margin-left: auto; text-align: right; }
  .library-top-prototype02 .life-stage-index__ages > p { display: none; }
  .library-top-prototype02 .life-stage-age-list { display: flex; grid-template-columns: none; gap: 8px; margin-top: 14px; padding: 0 28px 3px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; }
  .library-top-prototype02 .life-stage-age-list::-webkit-scrollbar { display: none; }
  .library-top-prototype02 .life-stage-age-list button { width: auto; min-width: 62px; flex: 0 0 auto; padding-inline: 16px; white-space: nowrap; }
  .library-top-prototype02 .life-stage-event-groups { grid-template-columns: 1fr; gap: 16px; }
  .library-top-prototype02 .life-stage-event-group__label { margin-bottom: 6px; padding-bottom: 4px; }
  .library-top-prototype02 .life-stage-event-list button { min-height: 40px; padding-block: 6px; }
  .library-top-prototype02 .life-stage-event-list button[data-life-stage-slug="quarter-life-crisis"] { order: 1; }
  .library-top-prototype02 .life-stage-event-list button[data-life-stage-slug="fresh-start"] { order: 2; }
  .library-top-prototype02 .life-stage-event-list button[data-life-stage-slug="midlife-crisis"] { order: 3; }
  .library-top-prototype02 .life-stage-event-list button[data-life-stage-slug="life-review"] { order: 4; }
  .library-top-prototype02 .life-stage-results .category-article-card a { grid-template-columns: 96px minmax(0, 1fr); }
  .library-top-prototype02 .life-stage-results .category-article-thumb,
  .library-top-prototype02 .life-stage-results .category-article-card:first-child .category-article-thumb { width: 96px; height: 72px; }
  .library-top-prototype02 .life-stage-results .category-article-body { padding: 9px 11px; }
  .library-top-prototype02 .life-stage-results .category-article-title { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .library-top-prototype02 .life-stage-results__header { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* Library-wide supporting-copy scale. The variables are defined on .library-site. */
.library-top-prototype02 .library-book-finder__heading p,
.library-top-prototype02 .finder-alternate-entrances__heading p {
  font-size: var(--library-font-lead, 15px);
  line-height: var(--library-line-height-lead, 1.9);
}

@media (max-width: 767px) {
  .library-top-prototype02 .library-book-finder__heading p,
  .library-top-prototype02 .finder-alternate-entrances__heading p {
    font-size: var(--library-font-lead-sp, 14px);
  }
}
