/* あかりの歌う本棚：あかりが迎えてくれる、夜の小さな書店。生成りの紙・温かい木の棚板・琥珀色の照明。 */
:root {
  --paper: #f6efe1; --paper-2: #ebdfc8; --card: #fffaf0; --ink: #2b2623; --sub: #6b5d50; --line: #dccdb2;
  --night: #2a1e17; --night-2: #1d1410; --night-ink: #f6efe1; --night-sub: #d9c7a9;
  --wood: #b98552; --wood-light: #d3a26f; --wood-dark: #7c5433; --case: #3a291e;
  --amber: #f0b45a; --amber-deep: #c98a2b;
  --accent: #c4553a; --accent-2: #a9432b; --accent-soft: #f6dfd6;
  --work: #6f9177; --people: #c4553a; --love: #d68aa0; --kids: #d7a13f;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --ch: 188px;  /* 棚に並べる表紙の高さ */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--maru); font-weight: 500; line-height: 1.75; letter-spacing: 0.02em;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(43, 38, 35, 0.05) 1px, transparent 1.4px);
  background-size: 18px 18px;
}
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 10px; background: var(--card); font-weight: 700; }
.skip:focus { top: 12px; }
.pr { margin: 0; color: var(--sub); font-size: 11px; line-height: 1.6; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ボタン */
.btn, .buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  border: 0; border-radius: 12px; font: inherit; font-weight: 900; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn { background: var(--amber); color: var(--night-2); box-shadow: 0 3px 0 var(--amber-deep); white-space: nowrap; }
.btn:hover { background: #f6c273; }
.btn.ghost { background: var(--card); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn.ghost:hover { background: #fff; }
.buy { width: 100%; background: var(--accent); color: #fff; box-shadow: 0 4px 0 #8a3421; }
.buy:hover { background: var(--accent-2); }
.btn:active, .buy:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .4); }

/* 吹き出し（文言は HTML の文字） */
.bubble {
  position: relative; margin: 0; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card);
  color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.6;
}

/* はじめの画面：夜の書店 */
.hero {
  color: var(--night-ink); overflow: hidden;
  background:
    radial-gradient(60% 90% at 78% 8%, rgba(240, 180, 90, .34), transparent 70%),
    radial-gradient(40% 60% at 8% 100%, rgba(240, 180, 90, .10), transparent 70%),
    linear-gradient(var(--night), var(--night-2));
  border-bottom: 10px solid var(--wood-dark);
}
.hero-in {
  position: relative; width: min(1200px, 100%); margin: 0 auto; padding: 16px 16px 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px;
  grid-template-areas: "head akari" "bubble bubble" "tools tools";
}
.hero-head { grid-area: head; align-self: center; }
.sign { margin: 0 0 6px; color: var(--amber); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
h1 { margin: 0; }
.hero h1 .brand { display: block; font-family: var(--mincho); font-weight: 800; font-size: 15px; letter-spacing: .3em; color: var(--night-sub); }
.hero h1 .brand::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--amber); }
.hero h1 .msg {
  display: block; margin-top: 6px; font-family: var(--mincho); font-weight: 800; font-size: clamp(21px, 6.6vw, 30px);
  line-height: 1.35; letter-spacing: .04em; word-break: keep-all;
}
.lead { display: none; margin: 14px 0 0; max-width: 31em; color: var(--night-sub); font-size: 15px; line-height: 1.9; }
.hero-akari { grid-area: akari; position: relative; margin: 0; width: clamp(118px, 36vw, 168px); aspect-ratio: 470 / 690; overflow: hidden; border-radius: 14px 14px 0 0; }
.hero-akari img { position: absolute; left: 4%; top: 6%; width: 92%; height: auto; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.bookcase {
  position: absolute; inset: 0; display: grid; grid-auto-rows: 1fr; background: #4a3324; border: 6px solid var(--wood-dark); border-bottom: 0;
  border-radius: 14px 14px 0 0; box-shadow: inset 0 0 40px rgba(0, 0, 0, .55);
}
.bookcase i {
  display: block; border-bottom: 8px solid var(--wood); opacity: .78;
  background:
    linear-gradient(rgba(29, 20, 16, .55), rgba(29, 20, 16, .1) 60%),
    repeating-linear-gradient(90deg, #8a4a36 0 14px, #c9a25a 14px 24px, #5e7566 24px 40px, #e4d6b8 40px 50px, #6b4a37 50px 66px, #b0705a 66px 78px, #3f4c5c 78px 92px, #d8c49a 92px 104px);
  background-position: 0 0, var(--shift, 0) 0;
}
.bookcase i:nth-child(2) { --shift: -37px; } .bookcase i:nth-child(3) { --shift: -71px; } .bookcase i:nth-child(4) { --shift: -19px; }
.lamp {
  position: absolute; left: 50%; top: 0; width: 120%; height: 70%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 205, 120, .42), transparent);
}
.hero-bubble { grid-area: bubble; margin-top: 10px; font-size: 13px; }
.hero-bubble br { display: none; }
.hero-bubble::after {
  content: ""; position: absolute; right: 54px; top: -9px; width: 14px; height: 14px; background: var(--card);
  border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg);
}
.hero-tools { grid-area: tools; padding: 12px 0 18px; display: grid; gap: 12px; }
.hero-actions { display: grid; gap: 10px; }
.hero-actions .btn { display: none; }
.search { display: flex; min-width: 0; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 2px rgba(240, 180, 90, .0); }
.search input {
  flex: 1; min-width: 0; min-height: 46px; padding: 8px 12px 8px 14px; border: 0; border-radius: 12px 0 0 12px; background: transparent;
  color: var(--ink); font: inherit; font-size: 16px;
}
.search input::placeholder { color: #8d7f70; }
.search button { padding: 0 16px; border: 0; border-radius: 0 12px 12px 0; background: var(--wood-dark); color: var(--night-ink); font: inherit; font-weight: 900; cursor: pointer; white-space: nowrap; }
.search button:hover { background: #8d6240; }
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pick-label { flex: 0 0 100%; font-size: 12px; font-weight: 700; color: var(--amber); letter-spacing: .08em; }
.pick-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1.5px solid rgba(246, 239, 225, .45);
  border-radius: 999px; color: var(--night-ink); font-weight: 700; font-size: 14px; text-decoration: none; background: rgba(246, 239, 225, .07);
}
.pick-chip:hover { background: rgba(246, 239, 225, .18); }
.pick-chip small { font-size: 11px; color: var(--night-sub); }
.pick-chip::before, .tab::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.pick-chip.work::before, .tab.work::before { background: var(--work); } .pick-chip.people::before, .tab.people::before { background: var(--people); }
.pick-chip.love::before, .tab.love::before { background: var(--love); } .pick-chip.kids::before, .tab.kids::before { background: var(--kids); }
.featured {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px;
  background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.featured:hover { background: #fff; }
.featured-cover { --ch: 76px; display: block; }
.featured-cover .cover { display: block; height: 76px; width: auto; border-radius: 3px; box-shadow: 0 3px 8px rgba(43, 38, 35, .35); }
.featured-text { display: grid; min-width: 0; }
.featured-kicker { font-size: 11px; font-weight: 700; color: var(--accent-2); letter-spacing: .06em; }
.featured-fit { font-family: var(--mincho); font-weight: 800; font-size: 17px; line-height: 1.4; }
.featured-title { font-size: 12px; color: var(--sub); line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.featured-by { margin-left: 4px; }
.featured-go { font-weight: 900; color: var(--accent); }
.hero .pr { color: #b9a78b; }

/* 悩みの棚の切り替えと検索の結果 */
.shelfbar { position: sticky; top: 0; z-index: 5; margin: 0 -24px; padding: 12px 24px 8px; background: linear-gradient(var(--paper) 82%, rgba(246, 239, 225, 0)); }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 2px solid var(--ink);
  border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
}
.tab small { min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--paper-2); font-size: 12px; text-align: center; }
.tab.on { background: var(--ink); color: var(--card); }
.tab.on small { background: rgba(255, 255, 255, .18); }
.tab[data-filter="all"]::before { display: none; }
.status {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 8px 0 0; padding: 10px 14px;
  border: 2px dashed var(--wood); border-radius: 12px; background: var(--card); font-weight: 700; font-size: 15px;
}
.status button, .tries button {
  min-height: 36px; padding: 4px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.status button:hover, .tries button:hover { background: #fff; }
.tries .pick-chip { border-color: var(--line, rgba(60, 40, 25, .25)); background: #fffaf0; color: var(--ink, #3a2a20); }
.tries .pick-chip:hover { background: #fff; }

/* 棚（あかりの一言と、木の棚板） */
.shelf { margin-top: 28px; scroll-margin-top: 72px; }
.shelf-head { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: end; margin-bottom: 12px; }
.shelf-akari { display: block; width: 64px; height: auto; align-self: end; }
.shelf h2 { margin: 0 0 6px; font-family: var(--mincho); font-weight: 800; font-size: 24px; line-height: 1.3; letter-spacing: .06em; }
.shelf h2 small { margin-left: 10px; font-family: var(--maru); font-size: 13px; font-weight: 700; color: var(--sub); letter-spacing: .02em; }
.shelf-say .bubble { border-radius: 4px 16px 16px 16px; font-size: 13.5px; }
.case {
  position: relative; overflow: hidden; padding: 0 8px; border: 8px solid var(--wood-dark); border-radius: 10px;
  background: linear-gradient(rgba(240, 180, 90, .22), rgba(240, 180, 90, 0) 120px), var(--case);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .5), 0 8px 18px rgba(43, 38, 35, .18);
}
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.tome { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px 6px 14px; scroll-margin-top: 90px; }
.tome::before {  /* 棚板。どの本も同じ高さに横いっぱいの板を引き、列の端まで 1 枚の板に見せる */
  content: ""; position: absolute; left: -100vw; right: -100vw; top: calc(20px + var(--ch)); height: 14px;
  background: linear-gradient(var(--wood-light), var(--wood) 45%, var(--wood-dark)); box-shadow: 0 8px 12px rgba(0, 0, 0, .4);
}
.tome-link { position: relative; display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; border-radius: 8px; }
.tome-cover { display: flex; align-items: flex-end; justify-content: center; height: var(--ch); transition: transform .18s ease; }
.tome-cover .cover { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; border-radius: 2px 4px 4px 2px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.tome-link:hover .tome-cover, .tome-link:focus-visible .tome-cover { transform: translateY(-6px); }
.tome-label {
  flex: 1; display: grid; align-content: start; gap: 2px; margin-top: 28px; padding: 9px 10px 10px; border-radius: 8px;
  background: var(--card); color: var(--ink); box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.tome-fit { font-weight: 900; font-size: 13.5px; line-height: 1.45; color: var(--accent-2); }
.tome-title { font-weight: 700; font-size: 13px; line-height: 1.5; margin-left: -.4em; }
.tome-by { font-size: 11px; color: var(--sub); line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tome-link:hover .tome-title { text-decoration: underline; }
.tome .tags { margin: 6px 0 0; }
.tome-buy {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin-top: 4px; padding: 4px 4px; color: var(--amber);
  font-size: 12.5px; font-weight: 700; text-underline-offset: 3px;
}
.tome:target .tome-label { box-shadow: 0 0 0 3px var(--amber); }
.soon { margin: 0; padding: 26px 8px; color: var(--night-sub); font-weight: 700; font-size: 14px; text-align: center; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.axis, .chip { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.axis { background: var(--paper-2); }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-soft); color: var(--accent-2); text-decoration: none; white-space: nowrap; }
.chip .hp { width: 15px; height: 15px; flex: none; }
.chip.listen { background: var(--night); color: var(--amber); }
.chip.unlimited { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
a.chip { min-height: 30px; padding: 4px 12px; transition: transform .15s ease, background-color .15s ease; }
a.chip:hover { transform: translateY(-1px); }
a.chip.listen:hover { background: #38281f; }
a.chip.unlimited:hover { background: #fff; }
/* 棚のカードの札は、白い札の中の下に入れる（白い札の下を空けておき、札を引き上げて重ねる） */
.tome .tags { position: relative; z-index: 1; flex-wrap: nowrap; gap: 4px; margin: -40px 0 10px; padding: 0 8px; pointer-events: none; }
.tome .chip { flex: none; gap: 4px; min-height: 30px; padding: 4px 7px; font-size: 11.5px; pointer-events: auto; }
.tome[class*="tags-"] .tome-label { padding-bottom: 50px; }
@media (max-width: 359px) {  /* いちばん狭い画面でも 2 つが 1 行に収まるように詰める */
  .tome .tags { padding: 0 5px; }
  .tome .chip { gap: 3px; padding: 4px 5px; font-size: 10.5px; }
  .tome .chip .hp { width: 12px; height: 12px; }
}

/* 蔵書カード（利用できる書影が無い本） */
.titlecard {
  position: relative; display: flex; flex-direction: column; height: var(--ch); aspect-ratio: 600 / 860; overflow: hidden; text-align: left;
  font-size: calc(var(--ch) / 15.5); line-height: 1.45; color: var(--ink); border-radius: 2px 5px 5px 2px;
  background: repeating-linear-gradient(transparent 0 1.55em, rgba(124, 84, 51, .22) 1.55em calc(1.55em + 1px)) 0 2.6em, #fbf3e0;
  box-shadow: inset 0 0 0 1px rgba(124, 84, 51, .35), 0 6px 10px rgba(0, 0, 0, .45);
}
.tc-label { display: block; padding: .45em .8em; background: var(--wood-dark); color: var(--paper); font-size: .72em; font-weight: 700; letter-spacing: .2em; }
.titlecard.work .tc-label { background: var(--work); } .titlecard.people .tc-label { background: var(--people); }
.titlecard.love .tc-label { background: #b9647c; } .titlecard.kids .tc-label { background: #a87a22; }
.tc-title {
  flex: 1; padding: .7em .8em 0; font-family: var(--mincho); font-weight: 800; font-size: 1em; line-height: 1.55; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow-wrap: anywhere;
}
.tc-author { padding: .3em .8em .7em; font-size: .72em; color: var(--sub); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; flex: none; }
.featured-cover .tc-author, .featured-cover .tc-label { display: none; }
.featured-cover .titlecard { font-size: 8px; }

/* 0 件の案内 */
.empty { display: grid; justify-items: center; gap: 12px; margin-top: 20px; padding: 24px 16px 28px; border-radius: 16px; background: var(--paper-2); text-align: center; }
.empty img { width: min(200px, 60%); height: auto; mix-blend-mode: multiply; }
.empty h1, .empty h2 { margin: 0 0 10px; font-family: var(--mincho); font-size: 20px; line-height: 1.5; }
.empty p { margin: 10px 0 0; }
.tries { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--sub); }

.about { margin-top: 44px; padding: 20px 18px; border-radius: 16px; background: var(--paper-2); }
.about h2 { margin: 0 0 8px; font-family: var(--mincho); font-size: 18px; }
.about p { margin: 0 0 8px; font-size: 14px; color: var(--sub); }
.ig { font-weight: 700; color: var(--ink); }

footer { margin-top: 30px; padding: 26px 0 40px; border-top: 2px dashed var(--line); color: var(--sub); font-size: 12px; line-height: 1.8; }
footer p { margin: 0 0 6px; }
footer strong { color: var(--ink); }

/* 本のページ */
.sitebar { background: linear-gradient(var(--night), var(--night-2)); border-bottom: 6px solid var(--wood-dark); color: var(--night-ink); }
.sitebar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.sitebar-brand { font-family: var(--mincho); font-weight: 800; font-size: 17px; letter-spacing: .2em; text-decoration: none; }
.sitebar-brand::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 8px; vertical-align: middle; background: var(--amber); }
.back { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; font-weight: 700; color: var(--amber); text-underline-offset: 3px; }
.crumbs { margin: 14px 0 0; font-size: 12px; color: var(--sub); }
.crumbs a { color: var(--sub); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.article { max-width: 1040px; margin: 0 auto; padding-bottom: 12px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "book" "akari"; gap: 16px; padding: 16px 0 8px; }
.intro-head { grid-area: head; min-width: 0; }
.ask { margin: 0; color: var(--accent-2); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.intro-head h1 {
  margin: 4px 0 0; font-family: var(--mincho); font-weight: 800; font-size: clamp(21px, 5.6vw, 34px); line-height: 1.55; letter-spacing: .02em;
  /* 長い日本語の見出しを画面の幅で折り返す（keep-all にすると右にはみ出す）。句読点は行頭に置かない */
  word-break: normal; overflow-wrap: anywhere; line-break: strict; text-wrap: pretty; text-indent: -.5em; padding-left: .5em;
}
@supports (word-break: auto-phrase) { .intro-head h1 { word-break: auto-phrase; } }
.bookline { margin: 10px 0 0; display: grid; gap: 2px; }
.bookline-title { font-weight: 900; font-size: 17px; line-height: 1.5; margin-left: -.4em; overflow-wrap: anywhere; }
.bookline-by { font-size: 13px; color: var(--sub); overflow-wrap: anywhere; }
.intro-book { grid-area: book; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; }
.intro-cover { --ch: 158px; }
.intro-cover .cover { display: block; height: var(--ch); width: auto; border-radius: 3px 6px 6px 3px; box-shadow: 0 10px 22px rgba(43, 38, 35, .35); }
.intro-buy { display: grid; gap: 10px; min-width: 0; }
.intro-akari { grid-area: akari; min-width: 0; display: grid; gap: 14px; }
.fit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); }
.fit dt { padding: 1px 10px; border-radius: 999px; background: var(--ink); color: var(--card); font-size: 12px; font-weight: 700; }
.fit dd { margin: 0; font-weight: 900; font-size: 16px; }
.reason { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px; align-items: end; }
.reason-akari { display: block; width: 96px; height: auto; }
.reason .bubble { align-self: center; padding: 14px 16px; border-radius: 18px; font-weight: 500; }
.reason .bubble::before {
  content: ""; position: absolute; left: -9px; top: 34px; width: 14px; height: 14px; background: var(--card);
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
}
.reason h2 { margin: 0 0 4px; font-size: 13px; font-weight: 900; color: var(--accent-2); letter-spacing: .04em; }
.reason p { margin: 0; font-size: 15.5px; line-height: 1.85; }

.talk { max-width: 680px; margin: 26px auto 0; display: grid; gap: 26px; }
.talk h2, .near h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-family: var(--mincho); font-weight: 800; font-size: 22px; letter-spacing: .08em; }
.talk h2::after, .near h2::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--wood) 0 6px, transparent 6px 10px); }
.talk p { margin: 0 0 12px; font-size: 16.5px; line-height: 2.05; }
.talk .relate { font-weight: 700; }
.talk .turn { margin-top: 16px; padding: 14px 16px; border-left: 5px solid var(--amber); border-radius: 0 12px 12px 0; background: var(--card); font-weight: 700; }
.talk .action { padding: 18px 18px 8px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); box-shadow: 4px 4px 0 var(--ink); }
.closing {
  max-width: 680px; margin: 34px auto 0; padding: 24px 20px; border-radius: 16px; text-align: center; color: var(--night-ink);
  background: radial-gradient(70% 120% at 50% 0, rgba(240, 180, 90, .3), transparent 70%), linear-gradient(var(--night), var(--night-2));
  border-bottom: 8px solid var(--wood-dark);
}
.closing h2 { margin: 0; font-family: var(--mincho); font-weight: 800; font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.closing-by { margin: 4px 0 14px; font-size: 13px; color: var(--night-sub); }
.closing .buy { max-width: 360px; }
.closing .pr { margin-top: 12px; color: #b9a78b; }
.near { margin-top: 40px; }
.more { display: flex; justify-content: center; margin: 28px 0 0; }

@media (max-width: 359px) {
  .wrap { padding: 0 16px; }
  .shelfbar { margin: 0 -16px; padding: 12px 16px 8px; }
  :root { --ch: 172px; }
  .reason { grid-template-columns: 76px minmax(0, 1fr); }
  .reason-akari { width: 76px; }
  .intro-cover { --ch: 136px; }
}
@media (max-width: 599px) {
  .sign { font-size: 11px; letter-spacing: .02em; }
  .pick-chip small { display: none; }
  .pick-chip { padding: 6px 13px; }
  .tab { padding: 6px 11px; font-size: 13px; }
}
@media (min-width: 360px) and (max-width: 599px) {
  .wrap { padding: 0 16px; }
  .shelfbar { margin: 0 -16px; padding: 12px 16px 8px; }
}
@media (min-width: 600px) {
  .row { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
  .hero-in { padding: 24px 24px 0; }
  .lead { display: block; }
  .hero-akari { width: 220px; }
  .hero-bubble br { display: inline; }
  .hero-actions { grid-template-columns: auto minmax(0, 1fr); }
  .hero-actions .btn { display: inline-flex; }
}
@media (min-width: 860px) {
  :root { --ch: 206px; }
  .hero-in {
    padding: 0 24px; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); column-gap: 48px;
    grid-template-areas: "head akari" "tools akari"; grid-template-rows: auto 1fr;
  }
  .hero-head { align-self: end; padding-top: 40px; }
  .sign { font-size: 14px; }
  .hero h1 .brand { font-size: 20px; }
  .hero h1 .msg { font-size: clamp(38px, 3.9vw, 54px); margin-top: 10px; }
  .hero-tools { padding: 20px 0 28px; gap: 14px; align-content: start; }
  .pick-label { flex: 0 0 auto; margin-right: 4px; }
  .hero-akari { width: auto; aspect-ratio: auto; height: 100%; min-height: 520px; margin-top: 28px; border-radius: 18px 18px 0 0; }
  .hero-akari img { left: 50%; top: 5%; width: auto; height: 128%; transform: translateX(-36%); }
  .bookcase { border-width: 10px; border-radius: 18px 18px 0 0; }
  .bookcase i { border-bottom-width: 12px; background-size: auto, 150px 100%; }
  .hero-bubble {
    grid-area: akari; align-self: start; justify-self: start; z-index: 2; margin: 84px 0 0 -72px; white-space: nowrap; font-size: 15px; padding: 12px 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
  }
  .hero-bubble::after { right: -9px; top: 26px; border: 0; border-right: 2px solid var(--ink); border-top: 2px solid var(--ink); }
  .featured { max-width: 460px; }
  .shelf { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 44px; }
  .shelf-head { grid-template-columns: 1fr; gap: 8px; margin: 0; padding-top: 8px; }
  .shelf-akari { width: 104px; order: 2; justify-self: center; margin-top: 4px; }
  .shelf h2 { font-size: 28px; }
  .shelf-say .bubble { border-radius: 16px 16px 16px 4px; font-size: 14px; }
  .case { padding: 0 14px; border-width: 10px; }
  .tome { padding: 24px 8px 16px; }
  .tome::before { top: calc(24px + var(--ch)); }
  .empty { grid-template-columns: auto minmax(0, 420px); justify-content: center; align-items: center; gap: 28px; text-align: left; }
  .tries { justify-content: flex-start; }
  .intro {
    grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "book head" "book akari"; grid-template-rows: auto 1fr;
    column-gap: 52px; row-gap: 22px; margin-top: 14px; padding: 36px 40px; border: 2px solid var(--ink); border-radius: 22px;
    background: var(--card); box-shadow: 6px 6px 0 var(--ink);
  }
  .intro-book { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 22px; padding: 26px 22px 20px; border-radius: 14px;
    background: linear-gradient(rgba(240, 180, 90, .25), transparent 55%), var(--case); border-bottom: 12px solid var(--wood); }
  .intro-cover { --ch: 330px; }
  .intro-cover .cover { box-shadow: 0 14px 26px rgba(0, 0, 0, .5); }
  .intro-buy { width: 100%; justify-items: center; }
  .intro-book .pr { color: #cdbb9d; }
  .reason { grid-template-columns: 150px minmax(0, 1fr); gap: 8px; }
  .reason-akari { width: 150px; }
  .reason .bubble { background: var(--paper); padding: 18px 22px; }
  .reason .bubble::before { background: var(--paper); top: 44px; }
  .reason p { font-size: 16.5px; }
  .fit dd { font-size: 18px; }
  .talk { margin-top: 44px; gap: 34px; }
  .talk p { font-size: 17px; }
}
@media (min-width: 860px) and (max-height: 760px) {
  .hero-akari { min-height: 440px; }
  .hero-head { padding-top: 26px; }
  .lead { margin-top: 10px; font-size: 14px; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tome-cover, .btn, .buy { transition: none; }
}

/* Amazon の商品画像（直接表示）。出ないときは site.js が .noimg を付け、蔵書カードに替える */
.amzcover { display: contents; }
.amzcover:not(.noimg) .titlecard { display: none; }
.amzcover.noimg .cover { display: none; }

/* 表紙と札を 1 冊のまとまりに見せる：本ごとに淡い灯りの枠で囲み、札は棚板から 2 本のひもで表紙の真下に下げる */
.tome { border: 4px solid transparent; border-radius: 14px; background: linear-gradient(rgba(255, 214, 150, .13), rgba(255, 214, 150, .05)) padding-box; }
.tome-label { position: relative; margin-top: 30px; border-radius: 4px 4px 8px 8px; border-top: 3px solid var(--amber); }
.tome-label::before, .tome-label::after {  /* 棚板から札を下げるひも */
  content: ""; position: absolute; top: -19px; width: 2px; height: 16px; background: var(--wood-light); box-shadow: 1px 0 0 rgba(0, 0, 0, .35);
}
.tome-label::before { left: 22%; } .tome-label::after { right: 22%; }
.tome-link:hover .tome-label, .tome-link:focus-visible .tome-label { box-shadow: 0 0 0 2px var(--amber); }
.tome-buy { align-self: center; }

/* 棚ごとのあかりの絵（小物が見える大きさで出す） */
.shelf-head { grid-template-columns: 84px 1fr; }
.shelf-akari { width: 84px; }
@media (min-width: 860px) {
  .shelf-head { grid-template-columns: 1fr; }
  .shelf-akari { width: 168px; }
}

/* 聴く・読み放題の導線：本のページのボタン（冒頭は同格、締めは一言）と、棚の一番下の細い帯 */
.way {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 8px 14px;
  border-radius: 12px; font-weight: 900; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.way .hp { flex: none; }
.way:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.way.listen { background: var(--night); color: var(--amber); box-shadow: 0 4px 0 #0e0907; }
.way.listen:hover { background: #38281f; }
.way.unlimited { background: var(--card); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.way.unlimited:hover { background: #fff; }
.pitch { margin: 22px 0 12px; font-family: var(--mincho); font-weight: 800; font-size: 17px; line-height: 1.7; }
.way-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--night-sub); }
.closing .way { max-width: 360px; margin-inline: auto; }
.closing .way.listen { background: var(--amber); color: var(--night-2); box-shadow: 0 4px 0 var(--amber-deep); }
.closing .way.listen:hover { background: #f6c273; }
.closing .way.unlimited { margin-top: 16px; border-color: var(--night-ink); background: transparent; color: var(--night-ink); box-shadow: none; }
.closing .way.unlimited:hover { background: rgba(246, 239, 225, .1); }

.band {
  display: grid; gap: 8px; margin-top: 40px; padding: 14px 16px; border: 2px dashed var(--line); border-radius: 14px; background: var(--paper-2);
}
.band[hidden] { display: none; }
.band-say { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.7; }
.band-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.band-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14px; font-weight: 900; color: var(--accent-2); }
@media (min-width: 760px) {
  .band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 24px; padding: 14px 22px; }
  .band .pr { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .way { transition: none; } }

/* YouTube の動画。押すまではサムネ（maxresdefault の真ん中が縦の絵）と再生の印だけ。押したら iframe に替わる */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border: 0; border-radius: 14px;
  background: var(--night-2); box-shadow: 0 10px 22px rgba(43, 38, 35, .3); }
.yt img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(29, 20, 16, .72); box-shadow: 0 0 0 3px rgba(246, 239, 225, .9); transition: background-color .15s ease, transform .15s ease; }
.yt-play::after { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent var(--night-ink); }
a.yt:hover img { transform: scale(1.03); }
a.yt:hover .yt-play { background: var(--accent); transform: scale(1.06); }
a.yt:focus-visible { outline-offset: 4px; }
/* 再生は画面の真ん中の大きい枠で（小さい枠では YouTube の表示が絵を覆う）。高さいっぱいの 9:16 */
.yt-stage { width: min(92vw, calc((100dvh - 96px) * 9 / 16), 460px); max-width: none; max-height: none; padding: 0; border: 0; overflow: visible; background: transparent; }
.yt-stage::backdrop { background: rgba(29, 20, 16, .86); }
.yt-box { aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.yt-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.yt-close { position: absolute; right: 0; top: -44px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--card); color: var(--ink);
  font-size: 22px; line-height: 36px; cursor: pointer; }

/* 本のページ：冒頭の下に、縦長の動画を置く */
.watch { max-width: 680px; margin: 30px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.watch-cell { flex: 0 1 280px; min-width: 0; margin: 0; }
.watch-cell figcaption { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: var(--mincho); font-weight: 800;
  font-size: 19px; letter-spacing: .06em; }
.watch-cell figcaption::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--wood) 0 6px, transparent 6px 10px); }
.watch-cell.song figcaption::before { content: "♪"; color: var(--accent); }
.watch:has(.watch-cell + .watch-cell) .watch-cell { flex-basis: 240px; }
@media (max-width: 559px) {
  .watch-cell { flex-basis: 220px; }
  .watch:has(.watch-cell + .watch-cell) .watch-cell { flex: 1 1 0; }  /* 2 本のときは横に並べたまま縮める */
  .watch { gap: 12px; }
  .watch-cell figcaption { font-size: 15px; }
  .yt-play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .yt-play::after { left: 20px; top: 15px; border-width: 11px 0 11px 17px; }
}

/* トップ：棚の上の歌の横の列（列の中だけ横に流れる） */
.videos { margin-top: 26px; }
.videos h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; font-family: var(--mincho); font-weight: 800;
  font-size: 24px; letter-spacing: .06em; }
.videos h2 small { font-family: var(--maru); font-size: 13px; font-weight: 700; color: var(--sub); letter-spacing: .02em; }
.videos { --gut: 24px; }
@media (max-width: 599px) { .videos { --gut: 16px; } }  /* .wrap の左右の余白にそろえる（列を画面の端まで流す） */
.clips { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 12px; margin: 0 calc(-1 * var(--gut)); padding: 4px var(--gut) 14px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); overscroll-behavior-x: contain; }
.clip { display: grid; align-content: start; gap: 8px; min-width: 0; scroll-snap-align: start; }
.clip-kind { justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--night); color: var(--amber); font-size: 11.5px; font-weight: 700; }
.clip .yt { border-radius: 12px; }
.clip-book { display: grid; font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--ink); text-decoration: none; }
.clip-fit { color: var(--accent-2); font-weight: 900; font-size: 13px; }
.clip-book:hover { text-decoration: underline; }
@media (min-width: 860px) {
  .clips { grid-auto-columns: 196px; margin: 0; padding: 4px 0 14px; scroll-padding: 0; }
}

/* 棚の表紙の角の、動画ありの印 */
.tome-cover .cv { position: relative; display: inline-flex; align-items: flex-end; height: 100%; max-width: 100%; }
.vid-mark { position: absolute; right: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 2px var(--card), 0 3px 6px rgba(0, 0, 0, .4); }
.vid-mark::after { content: ""; position: absolute; left: 10px; top: 7px; border-style: solid; border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent #fff; }
