
/* 電子書籍の値下がり帳：共通の base.css を使わない、このサイトだけの装い。
   2026-10-24 殿「一の案で進めて」→「かわいいサイトにして」：パステルのレシートに、マスキングテープと丸いシール。
   前の値段は横線で消さない（定価・元値に見せない）。字は Kiwi Maru と M PLUS Rounded 1c（ほかのサイトの Zen Maru Gothic と変える）。 */
:root {
  color-scheme: light;
  --desk: #fff7ef; --paper: #ffffff; --ink: #4b3f46; --muted: #8d7f87; --rule: #f0c9d4;
  --pink: #ff8fab; --pink-deep: #e2577d; --mint: #8fd9bf; --lemon: #ffe28a; --lilac: #c9b8f2;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif; --cute: "Kiwi Maru", "M PLUS Rounded 1c", serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: var(--round); line-height: 1.8; -webkit-text-size-adjust: 100%;
  background-color: var(--desk);
  background-image: radial-gradient(#ffd6e0 2px, transparent 2.5px), radial-gradient(#cdeee2 2px, transparent 2.5px);
  background-size: 34px 34px; background-position: 0 0, 17px 17px; }
a { color: inherit; }
img { max-width: 100%; }

/* PR の帯：ストライプのリボン */
.pr-bar { background: repeating-linear-gradient(-45deg, #ffe3ea 0 12px, #fff0f4 12px 24px); color: #7a5a67; font-size: 12px; text-align: center; padding: 8px 16px; }

/* 店名 */
.site-header { max-width: 1120px; margin: 0 auto; padding: 16px 16px 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--cute); font-weight: 500; font-size: 21px; color: var(--pink-deep); }
.brand img { width: 40px; height: 40px; transform: rotate(-6deg); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; font-weight: 700; }
.nav a { text-decoration: none; background: linear-gradient(transparent 62%, #ffe28a 0); padding: 0 2px; }
.nav a:hover { color: var(--pink-deep); }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 60px; }

/* 紙：ギザギザの下端・やわらかい影・マスキングテープ */
.paper, .slip, .box, .page-head { position: relative; background: var(--paper); border-radius: 6px 6px 0 0; filter: drop-shadow(0 6px 10px rgba(226, 87, 125, .14)); }
.paper::after, .slip::after, .box::after, .page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: conic-gradient(from -45deg at bottom, var(--paper) 90deg, transparent 0) 0 0 / 16px 100% repeat-x; }
.paper::before, .slip::before, .page-head::before {
  content: ""; position: absolute; z-index: 3; top: -11px; left: 50%; width: 92px; height: 22px; transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(90deg, rgba(255, 143, 171, .55) 0 8px, rgba(255, 255, 255, .55) 8px 14px); border-radius: 2px; }
.slips .slip:nth-child(3n+2)::before { background: repeating-linear-gradient(90deg, rgba(143, 217, 191, .6) 0 8px, rgba(255, 255, 255, .55) 8px 14px); transform: translateX(-50%) rotate(4deg); }
.slips .slip:nth-child(3n)::before { background: repeating-linear-gradient(90deg, rgba(255, 210, 90, .6) 0 8px, rgba(255, 255, 255, .55) 8px 14px); transform: translateX(-50%) rotate(-1deg); }
.slips .slip:nth-child(3n+1) { --paper: #fff8fa; }
.slips .slip:nth-child(3n+2) { --paper: #f6fffb; }
.slips .slip:nth-child(3n) { --paper: #fffdf3; }

/* トップ：大きなレシート */
.top-receipt { position: relative; max-width: 560px; margin: 30px auto 12px; }
.top-receipt .paper { --paper: #fff8fa; padding: 30px 26px 22px; }
.top-receipt .shop { text-align: center; margin: 0; font-size: 13px; letter-spacing: .3em; color: var(--pink-deep); }
.top-receipt .shop::before, .top-receipt .shop::after { content: " ♡ "; }
.top-receipt h1 { text-align: center; font-family: var(--cute); font-weight: 500; font-size: clamp(23px, 5vw, 31px); line-height: 1.5; margin: 8px 0 10px; word-break: keep-all; overflow-wrap: anywhere; }
.top-receipt .sub { font-size: 14px; color: var(--muted); margin: 0 0 12px; text-align: center; }
.top-receipt .thanks { text-align: center; font-size: 12px; color: var(--muted); margin: 12px 0 0; }

/* 行：左に名前、右に数字、間に点々 */
.rows { margin: 0; padding: 10px 0; border-top: 2px dotted var(--rule); border-bottom: 2px dotted var(--rule); }
.row { display: flex; align-items: baseline; margin: 3px 0; background: radial-gradient(circle, var(--rule) 1px, transparent 1.5px) left 68% / 7px 3px repeat-x; }
.row dt { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; background: var(--paper); }
.row dd { margin: 0 0 0 auto; padding-left: 6px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--paper); }

/* 丸いシール */
.stamp { position: absolute; z-index: 4; display: grid; place-items: center; text-align: center; font-weight: 800; color: #fff; line-height: 1.15;
  background: var(--pink); border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 6px 12px rgba(226, 87, 125, .3); transform: rotate(10deg); }
.stamp::after { content: ""; position: absolute; inset: 5px; border: 2px dashed rgba(255, 255, 255, .8); border-radius: 50%; }
.stamp.big { right: -12px; top: -18px; width: 92px; height: 92px; font-family: var(--cute); font-size: 16px; background: var(--mint); color: #2f6e5a; }
.stamp.big::after { border-color: rgba(255, 255, 255, .9); }
.slip .stamp { right: -10px; top: -16px; width: 72px; height: 72px; font-size: 19px; }
.slip .stamp small { display: block; font-size: 9px; font-weight: 700; }
.slips .slip:nth-child(3n+2) .stamp { background: #ff9f7a; transform: rotate(-8deg); }
.slips .slip:nth-child(3n) .stamp { background: #b79cf0; transform: rotate(6deg); }

/* つまみ */
.subnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 0; }
.subnav a, .chips-line a { text-decoration: none; font-weight: 700; font-size: 14px; background: #fff; border: 2px solid #ffc2d1; border-radius: 999px; padding: 6px 18px; box-shadow: 0 4px 0 #ffc2d1; }
.subnav a:hover, .chips-line a:hover { transform: translateY(2px); box-shadow: 0 2px 0 #ffc2d1; background: #fff0f4; }
.chips-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chips-line a { font-size: 13px; padding: 3px 12px; }

/* 見出し：点々のあいだに */
h2 { display: flex; align-items: center; gap: 12px; font-family: var(--cute); font-weight: 500; font-size: 21px; margin: 50px 0 6px; }
h2::before, h2::after { content: ""; flex: 1; height: 6px; background: radial-gradient(circle, var(--pink) 2px, transparent 2.5px) center / 12px 6px repeat-x; }
.lead { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 24px; }

/* 1冊のレシート */
.slips { list-style: none; padding: 0; margin: 0; display: grid; gap: 34px 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.slip { display: flex; flex-direction: column; gap: 4px; padding: 18px 14px 18px; }
.slip .cover { display: block; background: #fff; border-radius: 12px; border: 2px solid #fbe3ea; padding: 12px; margin-bottom: 6px; }
.slip .cover img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.slip .tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; font-size: 11px; font-weight: 700; }
.slip .tags span { background: #fff; border: 1.5px solid var(--rule); color: var(--muted); border-radius: 999px; padding: 0 9px; }
.slip .tags .low { background: var(--lemon); border-color: var(--lemon); color: #7a5b00; }
.slip .tags .low::before { content: "★ "; }
.slip h3 { margin: 4px 0 0; font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slip .meta { margin: 0; font-size: 12px; color: var(--muted); }
.slip .rows { margin-top: 6px; }
.slip .row.was dd { color: var(--muted); font-weight: 500; }
.slip .row.after dd { color: var(--pink-deep); font-size: 22px; }
.slip .row.now dd { font-size: 17px; }
.slip .free { font-size: 11px; color: #fff; background: var(--pink-deep); border-radius: 999px; padding: 1px 8px; margin-right: 6px; vertical-align: 3px; }
.slip .go { margin: auto 0 0; padding-top: 12px; }
.btn { display: block; text-align: center; text-decoration: none; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(90deg, #ff9db6, #ff7f9f); border-radius: 999px; padding: 9px 12px; box-shadow: 0 4px 0 #e2577d; }
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 #e2577d; }

/* 札・出版社・このサイトについて */
.box { padding: 8px 22px 24px; margin-top: 40px; border-radius: 16px 16px 0 0; }
.box h2 { margin-top: 16px; }
.box.kind { max-width: 520px; margin-left: auto; margin-right: auto; text-align: center; }
.box.kind:nth-of-type(odd) { --paper: #f6fffb; }
.box.kind b { color: var(--pink-deep); font-size: 22px; }
.box.kind .btn { display: inline-block; padding: 9px 26px; }
.box ul { color: var(--muted); font-size: 14px; padding-left: 1.2em; }
.pubs, .camps { list-style: none; padding: 0 !important; margin: 10px 0 0; color: var(--ink) !important; }
.pubs li, .camps li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding: 7px 0; border-bottom: 2px dotted #fbe3ea; }
.pubs b { margin-left: auto; color: var(--pink-deep); }
.pubs small, .camps small { width: 100%; color: var(--muted); font-size: 12px; }
.camps span { margin-left: auto; font-size: 13px; }

/* 下の頁の見出し */
.crumbs { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.page-head { --paper: #fff8fa; margin: 26px 0 12px; padding: 26px 24px 20px; border-radius: 16px 16px 0 0; }
.page-head h1 { margin: 0 0 6px; font-family: var(--cute); font-weight: 500; font-size: clamp(22px, 4.6vw, 32px); }
.page-head p { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer { max-width: 1120px; margin: 0 auto; padding: 22px 16px 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }

@media (max-width: 600px) {
  .top-receipt { margin-top: 24px; }
  .top-receipt .paper { padding: 26px 16px 18px; }
  .stamp.big { width: 70px; height: 70px; font-size: 13px; right: -4px; top: -14px; }
  .slips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .slip { padding: 16px 8px 14px; }
  .slip .cover { padding: 6px; }
  .slip .stamp { width: 58px; height: 58px; font-size: 13px; right: -6px; top: -16px; }
  .slip .stamp::after { inset: 4px; }
  .slip .stamp small { display: none; }
  .slip::before { width: 64px; }
  .slip .row dt { font-size: 11px; }
  .slip .row.after dd { font-size: 18px; }
  .btn { font-size: 12px; padding: 8px 6px; }
  h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .btn:hover, .subnav a:hover { transform: none; } }

/* 2026-10-24 15ジャンルに広げた：ジャンルのつまみ・棚・ぜんぶから探す */
.subnav a small { margin-left: 6px; font-size: 11px; color: var(--pink-deep); }
.shelves { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.shelves a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 16px 16px 14px; background: #fff; border: 2px solid #fbe3ea; border-radius: 18px; box-shadow: 0 4px 0 #fbe3ea; }
.shelves li:nth-child(3n+2) a { border-color: #cdeee2; box-shadow: 0 4px 0 #cdeee2; }
.shelves li:nth-child(3n) a { border-color: #ffeeb0; box-shadow: 0 4px 0 #ffeeb0; }
.shelves a:hover { transform: translateY(2px); box-shadow: 0 2px 0 #fbe3ea; }
.shelves b { font-family: var(--cute); font-weight: 500; font-size: 17px; }
.shelves span { font-size: 12px; color: var(--muted); }
.finder { display: grid; gap: 10px; margin: 0 0 26px; padding: 18px; background: #fff; border: 2px dashed #ffc2d1; border-radius: 20px; }
.finder input[type="search"] { font: inherit; padding: 10px 18px; border: 2px solid #ffc2d1; border-radius: 999px; background: #fff; }
.finder input[type="search"]:focus-visible, .seg button:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-size: 13px; cursor: pointer; background: #fff; color: var(--ink); border: 2px solid #fbe3ea; border-radius: 999px; padding: 3px 12px; }
.seg button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 800; }
.free-only { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.finder .lead { margin: 0; text-align: left; }
.more-wrap { text-align: center; margin: 22px 0 0; }
.more-wrap .btn { display: inline-block; padding: 9px 28px; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
@media (max-width: 600px) { .shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .shelves a { padding: 12px; } }

/* 2026-10-24 無料で読める本：シールをミントに */
.slip.freebook .stamp { background: var(--mint); color: #2f6e5a; font-size: 18px; }
.slip.freebook .stamp small { color: #2f6e5a; }
@media (max-width: 600px) { .slip.freebook .stamp { font-size: 13px; } }
