
* { box-sizing: border-box; }
body { margin: 0; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #2b2126; background: #faf7f8; line-height: 1.6; }
a { color: #5a1220; }
.site-header { background: #5a1220; color: #fff; }
.header-inner { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; max-width: 1100px; margin: 0 auto; }
.logo { color: #fff; font-size: 22px; font-weight: bold; text-decoration: none; }
.subtitle { font-size: 13px; opacity: .85; }
.rta { margin-left: auto; border: 1px solid #fff; padding: 0 6px; font-size: 11px; border-radius: 3px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; padding: 0 16px 10px; max-width: 1100px; margin: 0 auto; }
.site-nav a { color: #fff; text-decoration: none; font-size: 14px; padding: 4px 10px; border-radius: 3px; }
.site-nav a.on, .site-nav a:hover { background: #7a2436; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h1 { font-size: 24px; margin: 8px 0 12px; }
.h1-sub { display: block; font-size: 14px; color: #5a1220; margin-top: 2px; }
h2 { font-size: 18px; margin: 0; }
.stats-band { background: #f3e3e8; border-left: 4px solid #5a1220; padding: 8px 12px; font-size: 14px; }
.stats-line { font-size: 13px; color: #7a5a63; margin: 4px 0 10px; }
details.fold summary { font-size: 17px; font-weight: bold; color: #5a1220; cursor: pointer;
  border-bottom: 2px solid #5a1220; padding-bottom: 4px; margin-bottom: 10px; list-style: none; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "＋"; float: right; font-weight: normal; }
details.fold[open ] summary::after { content: "－"; }
.top-search { display: flex; gap: 8px; margin: 10px 0; }
.top-search input { flex: 1; padding: 10px; font-size: 16px; border: 1px solid #c9a7b1; border-radius: 4px; }
.top-search button, .btn { background: #5a1220; color: #fff; border: 0; padding: 10px 18px;
  font-size: 15px; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.sub { background: #fff; color: #5a1220; border: 1px solid #5a1220; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { background: #fff; border: 1px solid #c9a7b1; color: #5a1220; border-radius: 20px;
  padding: 3px 12px; font-size: 13px; text-decoration: none; cursor: pointer; }
.chip.on { background: #5a1220; color: #fff; }
.shelf { margin: 26px 0; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid #5a1220; padding-bottom: 4px; margin-bottom: 10px; }
.shelf-head a { font-size: 13px; }
.rail { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.rail .card { flex: 0 0 200px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid #e5d3d9; border-radius: 6px; overflow: hidden; position: relative; }
.card a { text-decoration: none; color: inherit; display: block; }
.card img { width: 100%; object-fit: cover; display: block; background: #eee; }
.card.k-doujin img { aspect-ratio: 4/3; }
.card.k-comics img { aspect-ratio: 3/4; }
.card h3 { font-size: 13px; margin: 8px 8px 2px; line-height: 1.4; height: 2.8em; overflow: hidden; }
.card-rate { font-size: 12px; color: #7a5a63; margin: 0 8px 8px; }
.card-price { margin: 4px 8px 2px; }
.card-price .now { font-size: 17px; font-weight: bold; color: #5a1220; }
.card-price .listp { font-size: 12px; color: #999; margin-left: 4px; }
.off { background: #5a1220; color: #fff; font-size: 11px; padding: 1px 5px; border-radius: 3px; margin-left: 4px; }
.card-meta { font-size: 11px; color: #7a5a63; margin: 0 8px 8px; }
.badge { position: absolute; top: 6px; left: 6px; background: #5a1220; color: #fff;
  font-size: 11px; padding: 2px 6px; border-radius: 3px; }
.card-img { position: relative; display: block; }
.off-badge { position: absolute; top: 6px; right: 6px; background: #c8102e; color: #fff;
  font-size: 14px; font-weight: bold; padding: 3px 8px; border-radius: 3px; }
.rank-badge { position: absolute; top: 6px; left: 6px; background: #2b2126; color: #fff;
  font-size: 14px; font-weight: bold; min-width: 26px; text-align: center; padding: 3px 0; border-radius: 3px; }
.card-tags { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; }
.tag { background: rgba(255,255,255,.92); color: #5a1220; font-size: 11px; font-weight: bold;
  padding: 2px 6px; border-radius: 3px; }
.tag.low { background: #5a1220; color: #fff; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tools input, .tools select { padding: 9px; font-size: 15px; border: 1px solid #c9a7b1; border-radius: 4px; }
.tools input { flex: 1; min-width: 200px; }
.work-main { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.cover { width: 420px; max-width: 100%; height: auto; border: 1px solid #e5d3d9; border-radius: 6px; }
.price-big .now { font-size: 30px; font-weight: bold; color: #5a1220; }
.price-big .listp { color: #999; margin-left: 6px; }
.price-big .off { font-size: 14px; }
.btn.buy { font-size: 17px; padding: 12px 26px; margin: 8px 8px 8px 0; }
.pr { background: #fff; color: #5a1220; font-size: 11px; padding: 1px 5px; border-radius: 3px; margin-left: 6px; }
.block { margin: 26px 0; }
.block h2 { border-bottom: 2px solid #5a1220; padding-bottom: 4px; margin-bottom: 10px; }
.spec { border-collapse: collapse; width: 100%; background: #fff; }
.spec th, .spec td { border: 1px solid #e5d3d9; padding: 7px 10px; font-size: 14px; text-align: left; }
.spec th { background: #f3e3e8; width: 130px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gallery img { width: 100%; height: auto; display: block; border: 1px solid #e5d3d9; border-radius: 4px; }
.lowest-banner { background: #5a1220; color: #fff; padding: 8px 12px; font-weight: bold; border-radius: 4px; }
.note { font-size: 12px; color: #7a5a63; }
.editorial { background: #fff; border: 1px solid #e5d3d9; border-radius: 6px; padding: 12px; }
.crumb { font-size: 13px; }
.circle-list { list-style: none; padding: 0; }
.circle-list li { background: #fff; border: 1px solid #e5d3d9; border-radius: 6px; padding: 10px 12px; margin: 8px 0; }
.circle-list a { font-weight: bold; text-decoration: none; }
.site-footer { background: #2b2126; color: #d8cdd1; padding: 22px 16px; margin-top: 40px; font-size: 13px; }
.site-footer a { color: #fff; }
.age-gate { position: fixed; inset: 0; background: rgba(20, 5, 10, .88); z-index: 50;
  display: flex; align-items: center; justify-content: center; }
.age-gate[hidden] { display: none; }
.age-box { background: #fff; border-radius: 8px; padding: 26px; max-width: 420px; margin: 16px; text-align: center; }
.age-title { font-size: 20px; font-weight: bold; color: #5a1220; }
.age-box button { background: #5a1220; color: #fff; border: 0; padding: 12px 26px; font-size: 16px; border-radius: 4px; cursor: pointer; display: block; margin: 14px auto 8px; }
.age-no { font-size: 13px; }
.hidden-card { display: none; }
@media (max-width: 640px) {
  .rail .card { flex-basis: 152px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .gallery { grid-template-columns: 1fr; }
  .work-main { flex-direction: column; }
  .cover { width: 100%; }
}
