/* 漫画ナビ：白地に印刷の紺、差し色は朱。角丸の箱は使わず、書影と罫線で区切る。
   共通ルール（_template/design）：本文16px・注記14px以上、本文の太さ500、行間1.7以上、押せる高さ44px以上。 */
:root {
  --bg: #fdfdfc;
  --tint: #f3f5f8;
  --text: #1c2420;
  --sub: #59625d;
  --line: #dfe3e1;
  --ink: #243044;
  --accent: #b4452f; /* 朱。白地の文字にも、白文字を載せる塗りにも使える（コントラスト 5.4） */
  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  line-break: strict;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }
.wrap { max-width: 1100px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(253,253,252,.94);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; }
.brand::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--accent); }
.site-nav { display: flex; gap: 8px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: .95rem; }
.site-nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--ink); }
.pr-notice { padding: 8px 20px; text-align: center; font-size: .875rem; color: var(--sub); border-bottom: 1px solid var(--line); }

/* ヒーロー */
.hero { padding: 64px 0 52px; background: var(--tint); border-bottom: 1px solid var(--line); }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--sub); font-size: .9rem; font-weight: 700; letter-spacing: .12em; }
.hero-kicker::before { content: ""; width: 32px; height: 2px; background: var(--ink); }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.4; margin: 0 0 20px; }
.hero-sub { font-size: 1.05rem; color: var(--sub); }

/* 棚 */
.shelf { padding-top: 40px; padding-bottom: 88px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.shelf-head h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin: 0; }
.shelf-count { color: var(--sub); font-size: .95rem; }
.shelf-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-main { display: block; flex: 1; color: inherit; }
.cover { position: relative; aspect-ratio: 2/3; background: #eceeed; overflow: hidden; box-shadow: 0 4px 16px rgba(28,36,32,.14); transition: transform .15s, box-shadow .15s; }
.card-main:hover .cover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(28,36,32,.2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.noimg { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: .9rem; }
.rank { position: absolute; top: 0; left: 0; min-width: 32px; padding: 2px 8px 4px; background: var(--accent); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.4; text-align: center; }
.card h3 { margin: 4px 0 0; font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.vols { margin-top: 12px; color: var(--ink); font-size: .875rem; font-weight: 700; }
.by, .meta { color: var(--sub); font-size: .875rem; line-height: 1.6; }
.meta { font-variant-numeric: tabular-nums; }
.buy { display: grid; gap: 8px; margin-top: 12px; }
.buy a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border: 1px solid var(--ink); font-size: .875rem; font-weight: 700; text-align: center; transition: background .15s, color .15s; }
.buy a:first-child { background: var(--ink); color: #fff; }
.buy a:first-child:hover { background: #141c2a; }
.buy a + a { border-color: transparent; background: transparent; color: var(--sub); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.buy a + a:hover { color: var(--ink); }

/* 選び方・プライバシー */
.about { padding-top: 56px; padding-bottom: 88px; }
.about > * { max-width: 36em; }
.about h1 { font-size: clamp(1.9rem, 4.5vw, 2.4rem); margin-bottom: 16px; }
.about h2 { font-family: var(--serif); font-size: 1.3rem; margin: 40px 0 8px; padding-left: 12px; border-left: 4px solid var(--ink); }
.about p { margin: 8px 0; }
.about ol, .about ul { margin: 8px 0; padding-left: 1.4em; }
.about li { margin: 8px 0; }
.about li p { margin: 4px 0; color: var(--sub); }
.about li p:first-child { color: var(--text); }

/* フッター */
.footer { background: var(--text); color: rgba(255,255,255,.78); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 44px 20px; text-align: center; }
.footer-logo { font-family: var(--serif); color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.footer-nav, .footer-sisters, .footer-note, .footer-copy { display: block; margin: 12px 0; font-size: .875rem; line-height: 1.7; }
.footer a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: #fff; }

@media (max-width: 900px) {
  .shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hero { padding: 40px 0 32px; }
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .site-nav a { padding: 0 4px; }
  .footer-inner { text-align: left; }
}
