
:root {
  --paper: #f7f6f0;
  --surface: #fcfcf8;
  --surface-2: #eeefe6;
  --ink: #243f3a;
  --muted: #5f6d65;
  --line: #dedfd5;
  --green: #225b50;
  --green-ink: #ffffff;
  --orange: #b75032;
  --link: #225b50;
  --end: #b3261e;
  --end-bg: #fbe9e5;
  --soon: #95540c;
  --soon-bg: #fbf0d9;
  --new: #1d6b45;
  --new-bg: #e3f1e6;
  --pick: #7d5f00;
  --pick-bg: #f8efc8;
  --mark: #e8dbab;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(36,63,58,.05), 0 6px 18px rgba(36,63,58,.06);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15201d; --surface: #1c2926; --surface-2: #233330; --ink: #e6ebe4; --muted: #a9b5ad;
    --line: #2f403b; --green: #7fc3ac; --green-ink: #10201b; --orange: #ee9a76; --link: #8fd0b9;
    --end: #ff9a8f; --end-bg: #3a2220; --soon: #f3c27a; --soon-bg: #362b17; --new: #8ad8a8; --new-bg: #183026;
    --pick: #f1d977; --pick-bg: #343015; --mark: #4a4524; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --paper: #15201d; --surface: #1c2926; --surface-2: #233330; --ink: #e6ebe4; --muted: #a9b5ad;
  --line: #2f403b; --green: #7fc3ac; --green-ink: #10201b; --orange: #ee9a76; --link: #8fd0b9;
  --end: #ff9a8f; --end-bg: #3a2220; --soon: #f3c27a; --soon-bg: #362b17; --new: #8ad8a8; --new-bg: #183026;
  --pick: #f1d977; --pick-bg: #343015; --mark: #4a4524; --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
h1, h2, h3 { line-height: 1.45; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: var(--green-ink); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }


.pr-bar { font-size: 12px; text-align: center; color: var(--muted); background: var(--surface-2); padding: 5px 16px; letter-spacing: .02em; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo-icon { display: flex; align-items: flex-end; gap: 3px; height: 30px; flex: none; }
.logo-icon i { display: block; width: 6px; height: 25px; background: var(--green); border-radius: 1px; }
.logo-icon i:nth-child(2) { height: 30px; }
.logo-icon i:nth-child(3) { height: 23px; margin-left: 3px; background: var(--orange); transform: rotate(-16deg); }
.logo-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .06em; line-height: 1.3; }
.logo-sub { display: block; font-size: 12px; color: var(--muted); letter-spacing: .03em; }
.head-nav { display: none; gap: 22px; font-size: 14px; }
.head-nav a { color: var(--ink); text-decoration: none; }
.head-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 820px) { .head-nav { display: flex; } }


.hero { display: grid; gap: 20px; padding: 28px 0 8px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.2fr 1fr; padding: 40px 0 16px; } }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: .16em; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--green); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(25px, 6.6vw, 42px); letter-spacing: .05em; line-height: 1.55; margin: 0; }
.mark { background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 88%, transparent 88%); }
.hero-lead { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.updated { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.hero-art { display: none; position: relative; height: 270px; }
@media (min-width: 900px) { .hero-art { display: block; } }
.art-orbit { position: absolute; inset: 0 10px; border-radius: 50%; background: var(--surface-2); }
.art-orbit::after { content: ""; position: absolute; inset: 22px; border: 1px solid var(--line); border-radius: 50%; }
.art-book { position: absolute; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 12px; overflow: hidden;
  border-left: 4px solid rgba(255,255,255,.25); box-shadow: 5px 10px 14px rgba(35,58,42,.14); font-family: var(--serif); }
.art-book b { font-size: 20px; line-height: 1.45; position: relative; z-index: 1; }
.art-book small { font-family: var(--sans); font-size: 9px; letter-spacing: .12em; position: relative; z-index: 1; }
.art-1 { background: #e9aa86; color: #633b2f; left: 6%; top: 64px; width: 124px; height: 176px; transform: rotate(-11deg); }
.art-2 { background: #bcd4b8; color: #184a43; left: 34%; top: 14px; width: 140px; height: 206px; transform: rotate(5deg); z-index: 2; }
.art-3 { background: #eadfbf; color: #3d503d; left: 64%; top: 82px; width: 118px; height: 168px; transform: rotate(14deg); z-index: 3; }
.art-tag { position: absolute; z-index: 4; left: 40%; bottom: -4px; width: 92px; height: 92px; border-radius: 50%; background: #fbf8ec; color: #9c4a2e;
  border: 1px solid #d4caa9; display: flex; align-items: center; justify-content: center; text-align: center; transform: rotate(-9deg);
  font-family: var(--serif); font-weight: 700; font-size: 14px; line-height: 1.4; }


.stats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 76px; padding: 10px 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.stats b { font-size: 28px; line-height: 1.1; font-weight: 600; }
.stats span { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; margin-top: 4px; }
.stats .stat-end b { color: var(--end); }
.stats .stat-new b { color: var(--new); }


.jump { position: sticky; top: 0; z-index: 6; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 12px 0 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; padding: 6px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.jump a:hover { border-color: var(--green); }

.block { margin: 30px 0 48px; }
.block > h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: .05em; margin: 0 0 16px; }
.block > h2 small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 4px; }


.feature { display: grid; gap: 12px; margin-bottom: 18px; }
.feature .card { border-color: color-mix(in srgb, var(--orange) 40%, var(--line)); }


.toolbar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; display: grid; gap: 12px; }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.search input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.seg, .chip { font: inherit; font-size: 14px; min-height: 40px; padding: 6px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.seg:hover, .chip:hover { border-color: var(--green); }
.seg[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--green-ink); font-weight: 700; }
@media (max-width: 640px) {
  .filter-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
  .filter-row::-webkit-scrollbar { display: none; }
  .seg, .chip { flex: none; }
}
.sort-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.sort-row select { font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); margin-left: 4px; }
.result { color: var(--muted); }
.result b { color: var(--ink); font-size: 18px; }
.reset, .linklike { font: inherit; font-size: 14px; background: none; border: 0; color: var(--link); text-decoration: underline; cursor: pointer; padding: 4px; }


.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; } }
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-margin-top: 70px; }
.card[data-sample] .book { outline: 2px dashed var(--soon); }
.book { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; aspect-ratio: 3 / 4;
  padding: 34px 12px 14px; overflow: hidden; border-radius: 4px 8px 8px 4px; text-decoration: none;
  border-left: 6px solid rgba(255,255,255,.28); box-shadow: 3px 6px 14px rgba(36,63,58,.16); transition: transform .18s, box-shadow .18s; }
.book:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 5px 10px 18px rgba(36,63,58,.2); }
.book::after { content: ""; position: absolute; right: -28%; top: -14%; width: 85%; aspect-ratio: 1; border-radius: 50%;
  border: 14px solid rgba(255,255,255,.22); pointer-events: none; }
.book .badge { position: absolute; top: 10px; left: 10px; z-index: 1; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.book-genre { font-size: 11px; letter-spacing: .1em; opacity: .85; position: relative; }
.book-head { font-family: var(--serif); font-size: clamp(20px, 5.4vw, 26px); line-height: 1.3; letter-spacing: .02em; position: relative; }
.book-name { font-size: 13px; font-weight: 700; line-height: 1.45; position: relative;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-pick { position: absolute; top: 40px; left: 10px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px;
  background: var(--pick-bg); color: var(--pick); }
.c-p0 { background: #e9aa86; color: #4f2b22; }
.c-p1 { background: #d2cbe4; color: #3f3352; }
.c-p2 { background: #c5d3d4; color: #1f3f47; }
.c-p3 { background: #bcd4b8; color: #173f39; }
.c-p4 { background: #304e5d; color: #f3f1e6; }
.c-p5 { background: #eadfbf; color: #3a4a39; }
.c-p6 { background: #d8957d; color: #47231e; }
.c-p7 { background: #b89b7c; color: #2f2a22; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.88); color: #4a5550; }
.badge.end { background: var(--end); color: #fff; }
.badge.soon { background: #fbe7c4; color: #7a4300; }
.badge.new { background: #dff1e4; color: #165c39; }
.card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.card-title { font-size: 13.5px; line-height: 1.5; margin: 0; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); text-decoration: none; }
.period { margin: 0; font-size: 12.5px; color: var(--muted); }
.memo summary { cursor: pointer; font-size: 12.5px; color: var(--orange); font-weight: 700; list-style: none; }
.memo summary::-webkit-details-marker { display: none; }
.memo summary::after { content: " ▾"; }
.memo[open] summary::after { content: " ▴"; }
.memo p { margin: 4px 0 6px; font-size: 13.5px; background: var(--surface-2); border-radius: 6px; padding: 8px 10px; }
.genres { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.genres li { font-size: 11px; color: var(--muted); background: var(--surface-2); border-radius: 3px; padding: 0 6px; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 6px;
  background: var(--green); color: var(--green-ink); font-weight: 700; text-decoration: none; font-size: 13.5px; margin-top: auto; }
.cta:hover { filter: brightness(1.08); }

.feature { display: grid; gap: 14px; margin-bottom: 20px; }
.card.wide { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--orange) 35%, var(--line)); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .card.wide { grid-template-columns: 220px 1fr; padding: 16px; } }
.card.wide .card-title { font-size: 16px; -webkit-line-clamp: 3; }
.card.wide .cta { align-self: start; padding: 0 20px; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }


.teiban-group { margin-bottom: 20px; }
.teiban-group h3 { font-size: 16px; margin: 0 0 8px; }
.teiban-group h3 small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; justify-content: center; min-height: 66px; height: 100%; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.tile.featured { border-left: 4px solid var(--orange); }
.tile-label { font-weight: 700; font-size: 15px; }
.tile-hint { font-size: 12px; color: var(--muted); }
.chips-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chiplink { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.chiplink:hover, .tile:hover { border-color: var(--green); }


.offers { display: grid; gap: 8px; margin: 14px 0 0; }
@media (min-width: 760px) { .offers { grid-template-columns: 1fr 1fr; } }
.offer { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.offer:hover { border-color: var(--green); }
.offer-tag { grid-row: 1 / 3; font-size: 11px; font-weight: 700; color: var(--green-ink); background: var(--green); border-radius: 4px; padding: 3px 7px; }
.offer b { font-size: 14.5px; line-height: 1.4; }
.offer small { grid-column: 2; font-size: 12px; color: var(--muted); line-height: 1.4; }
.offer-go { grid-column: 3; grid-row: 1 / 3; font-size: 22px; color: var(--green); }

.howto ol { padding-left: 1.4em; margin: 0; }
.howto li { margin-bottom: 4px; }

.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 760px; margin-top: 28px; }
.prose h1 { font-family: var(--serif); font-size: 26px; margin-top: 0; letter-spacing: .04em; }
.prose h2 { font-size: 18px; margin: 24px 0 6px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 36px; font-size: 13px; color: var(--muted); }
.site-footer p { margin: 0 0 8px; }
.assoc { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0; }
.foot-nav a { color: var(--ink); }


.cta.big { min-height: 52px; padding: 0 26px; font-size: 16px; margin-top: 16px; align-self: start; }
.fine { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.aud-hero .cta.big { display: inline-flex; }
.uses { display: grid; gap: 10px; }
@media (min-width: 760px) { .uses { grid-template-columns: repeat(3, 1fr); } }
.use { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.use h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 17px; }
.use p { margin: 0; font-size: 14px; color: var(--muted); }
.chips-links.more { margin-top: 18px; }
.aud-last { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 18px; }
.aud-last p { margin: 0; }
.offers { grid-template-columns: 1fr; }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(3, 1fr); } }


.steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: st; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px 12px 52px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.steps li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: var(--green-ink); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.steps b { font-size: 15.5px; }
.steps span { font-size: 14px; color: var(--muted); }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl-item { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius);
  padding: 12px 14px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.tl-item .badge { justify-self: start; }
.tl-item b { font-family: var(--serif); font-size: 18px; }
.tl-when { font-size: 14px; color: var(--muted); }
.tl-item p { margin: 0; font-size: 14px; }
.tl-item .chiplink { justify-self: start; margin-top: 4px; }
.prose-lite p { margin: 0 0 10px; }
.series { margin-top: 10px; }
.series a { color: var(--ink); }
.checked { margin-top: -20px; }


[hidden] { display: none !important; }

.card-more { margin-top: 8px; }
.card-more > summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; color: var(--link); min-height: 36px; padding: 6px 0; }
.card-more > summary::-webkit-details-marker { display: none; }
.card-more > summary::before { content: "＋ "; }
.card-more[open] > summary::before { content: "－ "; }
.card-more > p { margin: 4px 0 8px; font-size: 13px; }
html body .product-choice .product-link { margin-top: auto; }
html body .product-choice .card-more .compatibility { margin-top: 0; padding: 6px 0 4px; border-top: 0; }
html body .product-choice .card-more .product-source { display: inline-block; text-align: left; padding: 4px 0 0; min-height: 0; }
.previous.card-more > summary { display: block; }
.previous.card-more .fine { background: none; padding: 0; }
