/* ==========================================================
   Rui ユーザー画面スタイル
   ========================================================== */

:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-2: #f1eee9;
  --ink: #1f1c19;
  --ink-2: #4a4540;
  --muted: #817a72;
  --line: #e6e1da;
  --accent: #e0402a;
  --accent-hover: #c63520;
  --accent-soft: #fdeeea;
  --accent-ink: #ffffff;
  --star: #f5a623;
  --success: #1f9d55;
  --success-soft: #e7f6ed;
  --line-green: #06c755;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(31, 28, 25, .06), 0 2px 8px rgba(31, 28, 25, .05);
  --shadow-lg: 0 8px 28px rgba(31, 28, 25, .12);
  --container: 1160px;
  --gutter: 16px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.icon { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -0.15em; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.logo__icon { width: 30px; height: 30px; border-radius: 8px; }
.logo__mark {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.logo__mark span { color: var(--accent); }
.logo__tagline { font-size: 11px; color: var(--muted); white-space: nowrap; }
.logo:hover .logo__mark { color: var(--ink); }

.header-search { flex: 1; max-width: 460px; }
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box input {
  width: 100%;
  height: 40px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search-box input:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-box button {
  position: absolute;
  right: 4px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
}
.search-box button:hover { background: var(--accent-hover); }
.search-box--lg input { height: 54px; font-size: 16px; padding-left: 22px; padding-right: 60px; background: var(--surface); box-shadow: var(--shadow); }
.search-box--lg button { width: 46px; height: 46px; right: 4px; }

.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: 4px; }
.global-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.global-nav a:hover, .global-nav a.is-current { background: var(--surface-2); color: var(--ink); }
.global-nav a.nav-login { background: var(--ink); color: #fff; }
.global-nav a.nav-login:hover { background: var(--accent); color: #fff; }

/* ---------- メイン ---------- */
.site-main { padding: 20px 0 64px; min-height: 60vh; }

.page-head { padding: 12px 0 20px; }
.page-head h1 { font-size: 26px; }
.page-head__lead { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.page-head__meta { margin-top: 8px; color: var(--muted); font-size: 13px; }

.section { margin-top: 44px; }
.section:first-child { margin-top: 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.section-head h2 .count { font-size: 13px; font-weight: 400; color: var(--muted); }
.section-head__more {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.section-head__more:hover { text-decoration: underline; }
.section-lead { margin: -6px 0 14px; color: var(--muted); font-size: 13px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--line { background: var(--line-green); color: #fff; }
.btn--line:hover { background: #05a647; color: #fff; }
.btn--amazon { background: #ffd814; color: #111; border-color: #fcd200; }
.btn--amazon:hover { background: #f7ca00; color: #111; }
.btn--sm { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.btn--lg { min-height: 50px; padding: 12px 24px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip .count { color: var(--muted); font-size: 11px; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--sm { padding: 2px 8px; font-size: 12px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge--accent { background: var(--accent); color: #fff; }
.badge--soft { background: var(--accent-soft); color: var(--accent); }
.badge--done { background: #3b3733; color: #fff; }
.badge--success { background: var(--success-soft); color: var(--success); }

/* ---------- パンくず ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 4px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:last-child { color: var(--ink-2); }

/* ---------- 表紙 ---------- */
.cover {
  position: relative;
  aspect-ratio: 7 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, #ece7df, #ddd6cb);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover__noimage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.5;
}
.cover__badges {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cover__badges .badge { background: rgba(31, 28, 25, .82); color: #fff; }
.cover__badges .badge--accent { background: var(--accent); }

/* ---------- 作品・書籍カード ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 24px 16px;
}
.card-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 148px;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 2px var(--gutter) 12px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin;
}
.card-scroller > * { scroll-snap-align: start; }

.work-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* いま話題の漫画：カードの上に話題の理由 */
.buzz-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.buzz-item__reason { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft, #fdeeea); border-radius: 999px; padding: 2px 8px; line-height: 1.5; }
.work-card__link { display: block; }
.work-card__link:hover .cover { box-shadow: var(--shadow-lg); }
.work-card__link:hover .work-card__title { color: var(--accent); }
.work-card .cover { transition: box-shadow .2s; }
.work-card__title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-card__meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-card__meta a:hover { color: var(--accent); }
.work-card__release {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.work-card__release--muted { color: var(--muted); font-weight: 400; }
.work-card__formats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.format-link {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
}
.format-link:hover { border-color: #f0b400; background: #fff8d6; color: var(--ink); }
.work-card .stars { position: absolute; top: 6px; right: 6px; }

/* 横長カード（おすすめ文つき） */
.work-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.work-row__title { font-size: 16px; }
.work-row__title a:hover { color: var(--accent); }
.work-row__meta { margin-top: 2px; font-size: 12px; color: var(--muted); }
.work-row__excerpt {
  margin: 8px 0 10px;
  font-size: 13px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-row-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }

/* ---------- お気に入り（星） ---------- */
.stars {
  display: inline-flex;
  gap: 1px;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  line-height: 1;
}
.star-btn {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: #cfc8bf;
  display: grid;
  place-items: center;
}
.star-btn svg { width: 16px; height: 16px; }
.star-btn.is-star { color: var(--star); }
.stars:hover .star-btn { color: var(--star); }
.stars .star-btn:hover ~ .star-btn { color: #cfc8bf; }
.stars--lg { padding: 6px 10px; background: var(--surface-2); box-shadow: none; }
.stars--lg .star-btn { width: 28px; height: 28px; }
.stars--lg .star-btn svg { width: 24px; height: 24px; }

/* ---------- ヒーロー（トップ） ---------- */
.hero {
  position: relative;
  margin: -20px 0 8px;
  padding: 48px 0 40px;
  background:
    radial-gradient(circle at 12% 20%, rgba(224, 64, 42, .10), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(245, 166, 35, .14), transparent 40%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.hero h1 { font-size: 34px; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { margin: 10px 0 24px; color: var(--ink-2); }
.hero__keywords { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 13px; }
.hero__keywords-label { color: var(--muted); }
.hero__stats { display: flex; justify-content: center; gap: 32px; margin-top: 28px; }
.hero__stat strong { display: block; font-size: 22px; line-height: 1.2; }
.hero__stat span { font-size: 12px; color: var(--muted); }

/* ---------- タブ（日付切り替え） ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.tab small { font-weight: 400; color: var(--muted); margin-left: 2px; }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab.is-active small { color: rgba(255, 255, 255, .7); }
.tab-panel[hidden] { display: none; }

/* ---------- バナー ---------- */
.cta-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px 24px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}
.cta-banner h2 { font-size: 20px; }
.cta-banner p { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .75); }
.cta-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 作品詳細 ---------- */
.work-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.work-hero__cover { position: relative; }
.work-hero__cover .cover { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.work-hero__title { font-size: 28px; }
.work-hero__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.work-hero__authors { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.work-hero__authors a { font-weight: 700; }
.work-hero__authors a:hover { color: var(--accent); }
.work-hero__tags { margin-top: 12px; }
.work-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }

.release-box {
  margin-top: 20px;
  padding: 18px 20px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.release-box--muted { border-color: var(--line); background: var(--surface-2); }
.release-box__label { font-size: 13px; font-weight: 700; color: var(--accent); }
.release-box--muted .release-box__label { color: var(--ink-2); }
.release-box__date { margin-top: 2px; font-size: 26px; font-weight: 700; line-height: 1.35; }
.release-box__date small { font-size: 15px; margin-left: 4px; }
.release-box__sub { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.release-box__countdown {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  vertical-align: middle;
}
.release-box__buy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.store-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.store-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 700;
  font-size: 14px;
}
.store-link:hover { border-color: var(--accent); color: var(--accent); }
.store-link small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; margin-top: 32px; }
.content-grid__side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }

.panel {
  padding: 22px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 18px; margin-bottom: 14px; }
.panel h3 { font-size: 15px; margin: 18px 0 8px; }
.panel--flat { box-shadow: none; border: 1px solid var(--line); }

.prose { font-size: 15px; color: var(--ink-2); }
.prose h3, .prose h4 { color: var(--ink); margin: 1.2em 0 .4em; font-size: 15px; }
.prose p:last-child { margin-bottom: 0; }
.prose--clamp { position: relative; max-height: 18em; overflow: hidden; }
.prose--clamp::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5em;
  background: linear-gradient(transparent, var(--surface));
}
.prose--clamp.is-open { max-height: none; }
.prose--clamp.is-open::after { display: none; }
.read-more { margin-top: 8px; border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; font-size: 13px; }

.volume-table th, .volume-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}
.volume-table th { font-size: 12px; color: var(--muted); font-weight: 700; }
.volume-table td.vol { white-space: nowrap; font-weight: 700; }
.volume-table td.vol a:hover { color: var(--accent); }
.volume-table td.date { white-space: nowrap; }
.volume-table tr.is-future td.date { color: var(--accent); font-weight: 700; }
.volume-table .thumb { width: 36px; }
.volume-table .thumb .cover { width: 36px; border-radius: 3px; }
.volume-table .buy { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

.data-list { display: grid; grid-template-columns: 7em 1fr; gap: 10px 12px; font-size: 14px; }
.data-list dt { color: var(--muted); font-weight: 700; font-size: 13px; }
.data-list dd { margin: 0; }

.faq dt { font-weight: 700; margin-top: 14px; display: flex; gap: 8px; }
.faq dt::before { content: "Q"; color: var(--accent); }
.faq dd { margin: 4px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.faq dt:first-child { margin-top: 0; }

.notify-box { text-align: center; }
.notify-box__icon { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.notify-box h2 { font-size: 16px; margin-bottom: 6px; }
.notify-box p { font-size: 13px; color: var(--muted); }
.notify-box .btn + .btn { margin-top: 8px; }

/* ---------- 検索・一覧 ---------- */
.search-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; }
.filter-row__label { color: var(--muted); font-weight: 700; min-width: 4em; }
.tag-status { margin: 0 0 20px; }
.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.result-bar strong { color: var(--ink); font-size: 15px; }

.empty {
  padding: 48px 20px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty h2 { color: var(--ink); font-size: 18px; margin-bottom: 8px; }
.empty .chip-list { justify-content: center; margin-top: 16px; }

/* ページネーション */
.pagination { margin-top: 32px; display: grid; justify-items: center; gap: 10px; }
.pagination__info { font-size: 12px; color: var(--muted); }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pagination a, .pagination span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .is-current span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .is-disabled span { color: #c9c2b9; }

/* ---------- カレンダー ---------- */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.month-nav a { font-size: 14px; font-weight: 700; }
.month-nav a:hover { color: var(--accent); }
.label-filter { margin-bottom: 20px; }

.day-block { margin-top: 28px; }
.day-block__head {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 calc(var(--gutter) * -1) 14px;
  padding: 10px var(--gutter);
  background: rgba(247, 245, 242, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.day-block__head h2 { font-size: 18px; }
.day-block__head .dow { font-size: 14px; }
.day-block__head .dow--sat { color: #2a6fdb; }
.day-block__head .dow--sun { color: var(--accent); }
.day-block__head .count { font-size: 12px; color: var(--muted); }
.day-block__head .badge { align-self: center; }

/* ---------- 書籍詳細 ---------- */
.book-hero { grid-template-columns: 200px 1fr; }

/* ---------- フォーム・認証 ---------- */
.auth-card {
  max-width: 440px;
  margin: 24px auto;
  padding: 32px 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.auth-card__lead { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.form-field small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; margin-bottom: 16px; }
.form-check input { margin-top: 5px; accent-color: var(--accent); }
.form-check small { display: block; color: var(--muted); font-size: 12px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert--error { background: var(--accent-soft); color: var(--accent-hover); }
.alert--success { background: var(--success-soft); color: var(--success); }
.alert--info { background: var(--surface-2); color: var(--ink-2); }
.alert ul { padding-left: 1.2em; list-style: disc; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--accent); font-weight: 700; }
.note-list { font-size: 12px; color: var(--muted); padding-left: 1.2em; list-style: disc; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* ---------- 試し読みモーダル ---------- */
.reader-dialog {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
}
.reader-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.reader-dialog iframe { width: 100%; height: 100%; border: 0; }
.reader-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #000;
  font-size: 22px;
  line-height: 1;
}

/* ---------- フッター ---------- */
.site-footer {
  padding: 40px 0 28px;
  background: var(--ink);
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
}
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 13px; color: #fff; margin-bottom: 10px; }
.site-footer li + li { margin-top: 6px; }
.site-footer .logo__mark { color: #fff; }
.site-footer__about { margin-top: 10px; line-height: 1.8; }
.site-footer__note { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 11px; color: rgba(255, 255, 255, .5); }

/* ---------- ユーティリティ ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ==========================================================
   レスポンシブ
   ========================================================== */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .content-grid__side { position: static; }
}

@media (max-width: 860px) {
  /* スマホではヘッダーを固定せず、ロゴ＋ナビ／検索の2段にする */
  :root { --header-h: 0px; }
  .site-header { position: relative; }
  .site-header__inner { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; gap: 6px 8px; }
  .logo__mark { font-size: 22px; }
  .logo__tagline { display: none; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .global-nav { margin-left: auto; }
  .global-nav ul { gap: 0; }
  .global-nav a { padding: 6px 7px; font-size: 12px; gap: 3px; }
  .global-nav a .icon { display: none; }
  .global-nav .nav-label-long { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .site-main { padding-top: 14px; }
  .page-head h1 { font-size: 21px; }
  .section { margin-top: 36px; }
  .section-head h2 { font-size: 17px; }
  .hero { margin-top: -14px; padding: 32px 0 28px; }
  .hero h1 { font-size: 24px; }
  .hero__lead { font-size: 13px; }
  .hero__stats { gap: 20px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .card-scroller { grid-auto-columns: 112px; gap: 10px; }
  .work-card__title { font-size: 12px; }
  .work-card__meta { font-size: 11px; }
  .work-card .stars { display: none; }
  .work-row-list { grid-template-columns: 1fr; }
  .work-row { grid-template-columns: 88px 1fr; padding: 12px; gap: 12px; }
  .work-hero, .book-hero { grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; }
  .work-hero__title { font-size: 19px; }
  .work-hero__main { display: contents; }
  .work-hero__head { grid-column: 2; }
  .work-hero__body { grid-column: 1 / -1; }
  .release-box__date { font-size: 21px; }
  .panel { padding: 18px 16px; }
  .cta-banner { grid-template-columns: 1fr; padding: 20px; }
  .volume-table .thumb { display: none; }
  .volume-table th, .volume-table td { padding: 8px 4px; font-size: 13px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .data-list { grid-template-columns: 5.5em 1fr; }
}

/* 作品カードの星はホバー時・評価済みのときだけ表示 */
@media (hover: hover) {
  .work-card .stars { opacity: 0; transition: opacity .15s; }
  .work-card:hover .stars, .work-card .stars:has(.is-star) { opacity: 1; }
}

/* 横スクロールはPCでは本文幅に揃える */
@media (min-width: 641px) {
  .card-scroller { margin: 0; padding-left: 0; padding-right: 0; }
}

/* 通知登録の案内（トースト） */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 100;
  width: min(440px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
}
.toast p { margin: 0 0 10px; }
.toast__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* レーベル一覧（出版社ごと） */
.label-groups { display: grid; grid-template-columns: 11em 1fr; gap: 12px 16px; margin: 0; }
.label-groups dt { font-weight: 700; font-size: 13px; padding-top: 3px; }
.label-groups dd { margin: 0; }
@media (max-width: 640px) {
  .label-groups { grid-template-columns: 1fr; gap: 4px; }
  .label-groups dd { margin-bottom: 12px; }
}

.label-filter__labels { margin-top: 10px; }
.label-filter__labels summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- 新刊通知のオン・オフ ---------- */
.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 12px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.follow-btn:hover { background: var(--accent-soft); }
.follow-btn__on { display: none; }
.follow-btn.is-following { background: var(--accent); color: #fff; }
.follow-btn.is-following .follow-btn__off { display: none; }
.follow-btn.is-following .follow-btn__on { display: inline; }
.follow-btn--lg { min-height: 44px; padding: 8px 20px; font-size: 15px; }

.follow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.follow-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.follow-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.follow-card__title { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.follow-card__meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.follow-card__status { font-size: 12px; color: var(--muted); }
.follow-card__status.is-upcoming { color: var(--accent); font-weight: 700; }
.follow-card__reason { font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.follow-card .follow-btn { margin-top: auto; }

/* ---------- 初めての人向け：作品を選ぶ ---------- */
.start-head { text-align: center; padding: 8px 0 20px; }
.start-head h1 { font-size: 26px; margin-top: 16px; }
.start-head .page-head__lead { max-width: 640px; margin: 8px auto 0; }
.steps { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--muted); }
.steps li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); }
.steps li span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--line); color: var(--ink-2); font-size: 11px; font-weight: 700; }
.steps li.is-current { background: var(--ink); color: #fff; }
.steps li.is-current span { background: var(--accent); color: #fff; }
.steps li.is-done span { background: var(--success); color: #fff; }
.start-search .suggest-results { margin-top: 16px; }
.start-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  margin-top: 32px;
  padding: 12px 0;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
  transform: translateY(100%);
  transition: transform .2s;
}
.start-bar.is-active { transform: none; }
.start-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.start-bar__count strong { font-size: 22px; color: var(--accent); margin-right: 2px; }
.notify-choice { text-align: center; }
.notify-choice h1 { font-size: 22px; margin-bottom: 8px; }
.notify-choice__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.notify-choice__buttons .btn--lg { min-width: 240px; flex-direction: column; gap: 0; }
.notify-choice__buttons .btn small { font-size: 11px; font-weight: 400; opacity: .85; }
.notify-choice__note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.notify-choice__note a { color: var(--accent); font-weight: 700; }
.notify-choice__or { margin: 20px 0 0; font-size: 13px; color: var(--muted); }
/* この端末への通知（Web Push） */
.push-panel { margin-top: 20px; }
.push-panel [data-push-state="off"] { display: flex; justify-content: center; }
.push-panel [data-push-state="off"][hidden], .push-panel [hidden] { display: none; }
.push-panel [data-push-enable] { flex-direction: column; gap: 0; min-width: 240px; }
.push-panel [data-push-enable] .icon { display: none; }
.push-panel [data-push-enable] small { font-size: 11px; font-weight: 400; opacity: .85; }
.push-panel__on { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--success); margin: 0; }
.push-panel__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.push-panel__note { font-size: 13px; line-height: 1.7; color: var(--ink-2, var(--ink)); background: var(--surface-2, #f1eee9); border-radius: 10px; padding: 12px 14px; margin: 0; text-align: left; }
.push-panel__message { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.panel .push-panel { text-align: left; }
.notify-choice .push-panel, .notify-choice .push-panel__on { text-align: center; }
.panel:not(.notify-choice) .push-panel [data-push-state="off"] { justify-content: flex-start; }
.panel:not(.notify-choice) .push-panel__actions { justify-content: flex-start; }
.notify-choice--done { border: 2px solid var(--success); }
.notify-choice--done h1 { color: var(--success); }
.sp-only { display: none; }
@media (max-width: 640px) {
  .start-head h1 { font-size: 20px; }
  .sp-only { display: inline; }
  .follow-grid { grid-template-columns: 1fr; }
  .start-bar__inner .btn--lg { min-height: 44px; padding: 8px 14px; font-size: 14px; }
  .notify-choice__buttons .btn--lg { min-width: 0; width: 100%; }
  .notify-choice .push-panel [data-push-enable] { min-width: 0; width: 100%; }
}

.hero__cta { margin-top: 18px; }

@media (max-width: 860px) {
  .logo__icon { width: 26px; height: 26px; border-radius: 7px; }
}
.site-footer .logo__icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }

/* 完結済み（新刊の通知なし） */
.follow-done {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.follow-done.follow-btn--lg { min-height: 44px; padding: 8px 20px; font-size: 15px; }

/* ---------- 初めての人向けの使い方 ---------- */
.howto { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.howto__backdrop { position: absolute; inset: 0; background: rgba(31, 28, 25, .5); opacity: 0; transition: opacity .2s; }
.howto__panel {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 26px 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  opacity: 0;
  transition: transform .2s, opacity .2s;
}
.howto.is-open .howto__backdrop { opacity: 1; }
.howto.is-open .howto__panel { transform: none; opacity: 1; }
.howto__close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 20px; line-height: 1; }
.howto__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.howto h2 { font-size: 22px; line-height: 1.45; margin-bottom: 18px; }
.howto__steps { display: grid; gap: 14px; margin-bottom: 22px; }
.howto__steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.howto__steps strong { font-size: 15px; }
.howto__steps p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.howto__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }
.howto__chip { display: inline-block; padding: 1px 10px; border: 1.5px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 13px; }
.howto__actions { display: grid; gap: 6px; }
body.howto-open { overflow: hidden; }
/* スマホは本文を覆い尽くさないよう、画面下から出すシートにする */
@media (max-width: 640px) {
  .howto { align-items: flex-end; padding: 0; }
  .howto__panel { width: 100%; max-height: 72vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 24px 20px 18px; transform: translateY(100%); }
  .howto h2 { font-size: 19px; margin-bottom: 14px; }
  .howto__steps { gap: 10px; margin-bottom: 16px; }
}

/* ---------- ご意見・不具合の報告 ---------- */
.feedback-fab { display: none; }
@media (min-width: 768px) {
  .feedback-fab {
    display: block; position: fixed; right: 16px; bottom: 16px; z-index: 90;
    padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 700;
    box-shadow: var(--shadow-md, 0 2px 8px rgba(31, 28, 25, .12)); cursor: pointer;
  }
  .feedback-fab:hover { border-color: var(--accent); color: var(--accent); }
  body.howto-open .feedback-fab, body:has(.toast) .feedback-fab, body:has([data-start-bar].is-active) .feedback-fab { display: none; }
}
.feedback-form__types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.feedback-chip input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-chip span { display: inline-block; padding: 5px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.feedback-chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.feedback-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.feedback-form__context { margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
.feedback-form__label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.feedback-form__label small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.feedback-form textarea, .feedback-form input[type="email"] {
  display: block; width: 100%; box-sizing: border-box; margin-bottom: 14px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
.feedback-form textarea { resize: vertical; min-height: 110px; }
.feedback-form textarea:focus, .feedback-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.feedback-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.feedback-form__error { margin: -4px 0 12px; font-size: 13px; color: var(--accent); font-weight: 700; }
.feedback-form__note { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.report-note { margin: 12px 0 0; text-align: right; }
.report-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.report-link:hover { color: var(--accent); }

/* ---------- 購入先（紙の本・電子書籍）といつも買うお店 ---------- */
.buy-box { display: grid; gap: 10px; margin-top: 14px; }
.buy-group { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.buy-group.is-preferred { border: 2px solid var(--accent); background: var(--accent-soft); }
.buy-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.buy-group__format { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; }
.buy-group__format .icon { width: 16px; height: 16px; }
.buy-group__date { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.buy-group__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.buy-group__links .btn:not(.btn--sm) { min-width: 180px; }
.buy-pref { font-size: 13px; color: var(--muted); }
.buy-pref summary { cursor: pointer; list-style: none; display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.buy-pref summary::-webkit-details-marker { display: none; }
.buy-pref summary strong { color: var(--ink); }
.buy-pref__change { color: var(--accent); text-decoration: underline; font-weight: 700; }
.buy-pref__lead { margin: 8px 0; font-size: 12px; }
.purchase-pref { display: grid; gap: 10px; }
.purchase-pref__group { display: grid; gap: 6px; }
.purchase-pref__label { font-size: 12px; font-weight: 700; color: var(--muted); }
.purchase-pref__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.purchase-pref__chip { padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.purchase-pref__chip:hover { border-color: var(--accent); }
.purchase-pref__chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.purchase-pref__saved { margin: 0; font-size: 12px; color: var(--success); font-weight: 700; }
.notify-choice .purchase-pref { text-align: left; max-width: 520px; margin: 0 auto; }
@media (max-width: 640px) {
  .buy-group__links .btn:not(.btn--sm) { width: 100%; min-width: 0; }
}
.notify-pref { margin-top: 24px; }
.notify-pref h2 { font-size: 18px; margin-bottom: 6px; }
.notify-pref .purchase-pref { margin-top: 12px; }
.buy-group__note { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* 巻の表紙が未公開のとき：作品の表紙を暗くぼかして巻数を重ねる */
.cover--pending { container-type: inline-size; background: var(--ink); }
.cover--pending img { filter: blur(3px) saturate(.6) brightness(.45); transform: scale(1.12); }
.cover__pending { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqi; color: #fff; text-align: center; padding: 8px; }
.cover__pending-vol { font-size: 30cqi; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.cover__pending-vol small { font-size: .45em; margin-left: 2px; font-weight: 700; }
.cover__pending-note { font-size: max(10px, 8cqi); font-weight: 700; padding: 2px 8px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; }
