/* すくすく帖：杏（アプリコット）×淡い空色。手帳と綴じ紐、丸ゴシック */
:root {
  --apri: #f2a36b;
  --apri-d: #c9672f;
  --apri-l: #fde6d4;
  --sky: #d6ebf6;
  --sky-m: #9fcbe4;
  --sky-d: #4f8fb6;
  --paper: #fffaf4;
  --ink: #4b3a30;
  --mute: #8a766a;
  --line: #f0dccd;
  --r: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'ヒラギノ丸ゴ ProN', sans-serif;
  font-size: 15px; line-height: 1.85; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ヘッダー：下端にステッチ */
.hd { background: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 2px dashed var(--apri); }
.hdin { max-width: 1160px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo b { display: block; font-size: 21px; letter-spacing: .08em; color: var(--apri-d); line-height: 1.2; }
.logo small { display: block; font-size: 10px; letter-spacing: .22em; color: var(--sky-d); }
.book { width: 26px; height: 32px; border-radius: 3px 7px 7px 3px; background: var(--apri); position: relative; box-shadow: inset 5px 0 0 var(--sky-m); flex: none; }
.book::after { content: ''; position: absolute; right: 6px; top: -4px; width: 2px; height: 40px; background: var(--apri-d); border-radius: 2px; }
.gnav { display: flex; gap: 18px; margin-left: auto; font-size: 14px; }
.gnav a { text-decoration: none; }
.gnav a:hover { color: var(--apri-d); }
.pouch { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--sky); color: var(--ink); font-weight: 700; font-size: 14px; padding: 9px 16px 9px 14px; border-radius: 22px 22px 14px 14px; position: relative; white-space: nowrap; }
.pouch .zip { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--sky-d); }
.pouch .n { background: var(--apri-d); color: #fff; min-width: 22px; height: 22px; border-radius: 11px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* ヒーロー：空色と雲 */
.hero { background: var(--sky); position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: #fff; opacity: .55; }
.hero::before { width: 280px; height: 120px; left: -60px; top: 40px; }
.hero::after { width: 220px; height: 90px; right: 8%; bottom: -30px; }
.hero-in { max-width: 1160px; margin: 0 auto; padding: 56px 20px 64px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hello { display: inline-block; background: #fff; color: var(--sky-d); font-weight: 700; font-size: 13px; padding: 4px 14px; border-radius: 20px; margin: 0 0 14px; }
.hero h1 { font-size: 56px; margin: 0; letter-spacing: .1em; color: var(--apri-d); line-height: 1.2; }
.lead { font-size: 17px; margin: 18px 0 20px; }
.hero-chips { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li { background: rgba(255,255,255,.75); border-radius: 14px; padding: 2px 12px; font-size: 13px; }
.go { display: inline-block; background: var(--apri-d); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 34px; border-radius: 30px; box-shadow: 0 4px 0 #a5521f; }
.go:hover { transform: translateY(1px); box-shadow: 0 3px 0 #a5521f; }
.hero-p { position: relative; padding: 0 0 30px 0; }
.hero-book { display: block; position: relative; border-radius: 8px 22px 22px 8px; overflow: hidden; background: #fff; padding: 10px 10px 10px 26px; box-shadow: 0 14px 30px rgba(79,143,182,.25); width: 82%; }
.hero-book img { border-radius: 4px 14px 14px 4px; aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.hero-book.s { position: absolute; width: 42%; right: 0; bottom: 26px; transform: rotate(4deg); padding-left: 18px; }
.hero-cap { position: absolute; left: 0; bottom: 0; font-size: 11px; color: var(--mute); margin: 0; }

/* 手帳の背（綴じ穴）と綴じ紐 */
.spine { position: absolute; left: 0; top: 0; bottom: 0; width: 16px; background: var(--sky-m) radial-gradient(circle, #fff 2.4px, transparent 3px) center 10px / 16px 26px repeat-y; z-index: 2; }
.cord { position: absolute; right: 26px; top: -6px; bottom: 26px; width: 3px; background: var(--apri-d); border-radius: 3px; z-index: 3; }
.cord::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--apri); border: 2px solid var(--apri-d); }

/* 一覧 */
.techo { max-width: 1160px; margin: 0 auto; padding: 60px 20px 30px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-h h2, .yakusoku h2, .more h2 { font-size: 26px; margin: 0; letter-spacing: .06em; position: relative; padding-left: 20px; }
.sec-h h2::before, .yakusoku h2::before, .more h2::before { content: ''; position: absolute; left: 0; top: .35em; width: 10px; height: 1.1em; border-radius: 3px; background: var(--apri); box-shadow: 4px 0 0 var(--sky-m); }
.count { color: var(--mute); margin: 0; font-size: 14px; }

/* しおり紐の絞り込み：上の糸からしおりがぶら下がる */
.shiori { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 30px; padding-top: 14px; border-top: 3px solid var(--sky-m); }
.shiori button { position: relative; border: 0; cursor: pointer; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; padding: 10px 14px 20px; min-width: 92px; text-align: center; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); box-shadow: inset 0 0 0 2px var(--line); }
.shiori button::before { content: ''; position: absolute; left: 50%; top: -14px; width: 2px; height: 16px; background: var(--sky-m); }
.shiori button i { font-style: normal; display: block; font-size: 11px; color: var(--mute); line-height: 1.2; }
.shiori button.on { background: var(--apri); color: #fff; }
.shiori button.on i { color: #fff; }
.shiori button:hover:not(.on) { background: var(--apri-l); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 22px; }
.nb { position: relative; display: flex; flex-direction: column; text-decoration: none; background: #fff; border-radius: 8px var(--r) var(--r) 8px; padding: 10px 10px 16px 26px; box-shadow: 0 2px 0 var(--line), 0 8px 18px rgba(201,103,47,.08); transition: transform .15s; }
.nb:hover { transform: translateY(-3px) rotate(-.4deg); }
.nb .ph { display: block; border-radius: 4px 12px 12px 4px; overflow: hidden; background: var(--sky); }
.nb .ph img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.nb .tx { display: block; padding: 10px 26px 0 2px; }
.nb .kind { display: block; font-size: 11px; color: var(--sky-d); font-weight: 700; }
.nb .nm { display: block; font-size: 14px; line-height: 1.55; margin: 4px 0 6px; font-weight: 500; }
.nb .pr { display: block; font-weight: 700; color: var(--apri-d); font-size: 17px; }
.nb .pr small { font-size: 11px; color: var(--mute); margin-left: 4px; font-weight: 400; }

/* お約束：罫線の手帳ページ */
.yakusoku { max-width: 1160px; margin: 0 auto; padding: 50px 20px 70px; }
.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
.pg { position: relative; background: #fff repeating-linear-gradient(transparent 0 29px, var(--sky) 29px 30px); border-radius: 6px 16px 16px 6px; padding: 18px 22px 22px 34px; border-left: 10px solid var(--apri); }
.pg .no { position: absolute; left: -24px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--sky-d); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pg h3 { margin: 0 0 6px; font-size: 17px; color: var(--apri-d); line-height: 1.6; }
.pg p { margin: 0; font-size: 14px; line-height: 30px; }

/* フッター */
.ft { background: var(--apri-d); color: #fff; margin-top: 30px; border-top: 6px solid var(--sky-m); }
.ftin { max-width: 1160px; margin: 0 auto; padding: 40px 20px 30px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px 40px; }
.fname { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: .1em; }
.tag, .ship { margin: 4px 0; font-size: 13px; }
.ft-n { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ft-n a { text-decoration: none; }
.ft-n a:hover { text-decoration: underline; }
.ft .co { font-size: 12px; margin: 10px 0 0; opacity: .92; }
.copy { font-size: 11px; margin: 10px 0 0; opacity: .8; align-self: end; }

/* 商品ページ */
.page { max-width: 1160px; margin: 0 auto; padding: 24px 20px 40px; }
.crumb { font-size: 12px; color: var(--mute); margin-bottom: 18px; overflow-wrap: anywhere; }
.crumb a { color: var(--sky-d); }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd > * { min-width: 0; }
.main-img { position: relative; background: #fff; border-radius: 8px 22px 22px 8px; padding: 12px 12px 12px 28px; box-shadow: 0 10px 24px rgba(79,143,182,.18); }
.main-img img { border-radius: 4px 14px 14px 4px; width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.cap { font-size: 12px; color: var(--mute); margin: 8px 0; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.thumbs button { border: 2px solid transparent; padding: 0; background: #fff; border-radius: 10px; overflow: hidden; cursor: pointer; }
.thumbs button img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.thumbs button.on { border-color: var(--apri); }
.pinfo .kind { display: inline-block; background: var(--sky); color: var(--sky-d); font-weight: 700; font-size: 12px; border-radius: 12px; padding: 2px 12px; }
.pinfo h1 { font-size: 24px; line-height: 1.5; margin: 10px 0 6px; }
.price { font-size: 28px; font-weight: 700; color: var(--apri-d); }
.price small { font-size: 13px; color: var(--mute); font-weight: 400; }
.desc { white-space: pre-line; margin: 14px 0 18px; }
.opt { margin: 14px 0; }
.opt .t { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.opt .t span { color: var(--apri-d); }
.vals { display: flex; flex-wrap: wrap; gap: 6px; }
.vals button { border: 2px solid var(--line); background: #fff; border-radius: 18px; padding: 5px 13px; font-size: 13px; cursor: pointer; color: var(--ink); }
.vals button.on { border-color: var(--apri); background: var(--apri-l); font-weight: 700; }
.free { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 16px; font-family: inherit; background: #fff; }
.varies, .noret { font-size: 13px; background: var(--sky); border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.noret { background: var(--apri-l); }
.buy { display: flex; gap: 12px; align-items: center; margin: 20px 0 8px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 24px; overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 44px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty input { width: 42px; text-align: center; border: 0; font-size: 16px; font-family: inherit; background: transparent; color: var(--ink); }
.btn { display: inline-block; border: 0; cursor: pointer; background: var(--apri-d); color: #fff; font-weight: 700; font-size: 15px; padding: 13px 28px; border-radius: 26px; text-decoration: none; text-align: center; box-shadow: 0 4px 0 #a5521f; font-family: inherit; }
.btn.line { background: #fff; color: var(--apri-d); box-shadow: inset 0 0 0 2px var(--apri); }
.btn.block { display: block; width: 100%; }
.buy .btn { flex: 1; min-width: 200px; }
.msg { color: #c0392b; font-size: 13px; min-height: 1.4em; }
.ship { list-style: none; padding: 14px 16px; margin: 10px 0 18px; background: #fff; border-radius: 14px; border: 2px dashed var(--sky-m); font-size: 13px; }
.ship li { padding-left: 16px; position: relative; }
.ship li::before { content: ''; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--apri); }
.spec h2 { font-size: 17px; margin: 0 0 8px; }
.spec dl { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.spec dl div { display: grid; grid-template-columns: 8.5em 1fr; border-top: 1px solid var(--line); }
.spec dl div:first-child { border-top: 0; }
.spec dt { background: var(--apri-l); padding: 9px 12px; font-size: 13px; font-weight: 700; }
.spec dd { margin: 0; padding: 9px 12px; font-size: 13px; overflow-wrap: anywhere; }
.note { font-size: 12px; color: var(--mute); margin-top: 14px; }
.note .warn { color: var(--ink); background: #fff; border-left: 4px solid var(--sky-m); padding: 8px 12px; border-radius: 0 10px 10px 0; }
.more { margin-top: 60px; }
.more h2 { font-size: 21px; margin-bottom: 20px; }
.grid.small { grid-template-columns: repeat(4, 1fr); }
.empty { text-align: center; padding: 60px 0; }

/* お出かけポーチ・法務ページ */
.ptitle { background: var(--sky); text-align: center; padding: 34px 20px 28px; }
.ptitle h1 { margin: 0; font-size: 26px; color: var(--apri-d); letter-spacing: .08em; }
.ptitle p { margin: 4px 0 0; font-size: 13px; }
.cart { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.cart > * { min-width: 0; }
.row { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; background: #fff; border-radius: 8px 16px 16px 8px; padding: 12px 14px; margin-bottom: 12px; border-left: 8px solid var(--sky-m); }
.row img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; }
.row .nm { font-weight: 700; text-decoration: none; font-size: 14px; }
.row .op { font-size: 12px; color: var(--mute); }
.row .warnc { color: var(--apri-d); }
.row .qty { margin-top: 6px; }
.row .qty button { height: 32px; width: 32px; }
.row .qty input { width: 32px; font-size: 14px; }
.row .sub { font-weight: 700; color: var(--apri-d); white-space: nowrap; }
.rm { background: none; border: 0; color: var(--sky-d); text-decoration: underline; cursor: pointer; font-size: 12px; padding: 4px 0; }
.sum { background: #fff; border-radius: 18px; padding: 20px; border: 2px dashed var(--apri); position: sticky; top: 80px; }
.sum dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0 0 12px; }
.sum dt { font-size: 14px; }
.sum dd { margin: 0; text-align: right; font-weight: 700; }
.sum .total { font-size: 15px; color: var(--apri-d); border-top: 1px solid var(--line); padding-top: 8px; }
.sum dd.total { font-size: 20px; }
.sum .free { border: 0; padding: 0; font-size: 12px; color: var(--mute); background: none; margin: 0 0 10px; }
.modal { position: fixed; inset: 0; background: rgba(75,58,48,.45); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal.show { display: flex; }
.modal .box { background: #fff; border-radius: 22px; padding: 26px; max-width: 440px; width: 100%; border-top: 8px solid var(--apri); }
.modal h2 { margin: 0 0 10px; font-size: 19px; }
.modal p { font-size: 14px; }
.legal { max-width: 860px; margin: 0 auto; padding: 30px 20px 50px; }
.legal h2 { font-size: 17px; margin: 28px 0 6px; color: var(--apri-d); }
.legal p, .legal li { font-size: 14px; }
.toku { margin: 0; }
.toku div { background: #fff; border-radius: 6px 14px 14px 6px; border-left: 6px solid var(--sky-m); padding: 12px 16px; margin-bottom: 10px; }
.toku dt { font-weight: 700; font-size: 14px; color: var(--apri-d); }
.toku dd { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 80px); background: var(--ink); color: #fff; padding: 11px 22px; border-radius: 24px; font-size: 14px; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .grid, .grid.small { grid-template-columns: repeat(3, 1fr); }
  .pd { grid-template-columns: 1fr; gap: 24px; }
  .cart { grid-template-columns: 1fr; }
  .sum { position: static; }
}
@media (max-width: 720px) {
  .gnav { display: none; }
  .pouch { margin-left: auto; font-size: 12px; padding: 7px 10px; }
  .hdin { padding: 8px 14px; gap: 10px; }
  .logo b { font-size: 18px; }
  .hero-in { grid-template-columns: 1fr; padding: 34px 16px 40px; gap: 26px; }
  .hero h1 { font-size: 42px; }
  .hero-p { padding-bottom: 50px; }
  .hero-book.s { bottom: 52px; }
  .lead { font-size: 15px; }
  .grid, .grid.small { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .nb { padding: 8px 8px 12px 20px; }
  .nb .tx { padding-right: 18px; }
  .nb .nm { font-size: 13px; }
  .cord { right: 16px; }
  .spine { width: 12px; background-size: 12px 22px; }
  .techo, .yakusoku { padding-left: 16px; padding-right: 16px; }
  .pages { grid-template-columns: 1fr; gap: 18px; padding-left: 14px; }
  .ftin { grid-template-columns: 1fr; }
  .page { padding: 18px 16px 30px; }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
  .shiori button { min-width: 0; padding: 8px 10px 18px; font-size: 13px; }
  .row { grid-template-columns: 70px 1fr; }
  .row img { width: 70px; height: 70px; }
  .row .sub { grid-column: 2; }
  .spec dl div { grid-template-columns: 6.5em 1fr; }
}

:root{--review-accent:var(--apri-d);--review-line:var(--line);--review-ink:var(--ink);--review-paper:var(--paper)}
/* Purchase reviews inherit each shop's type, colors and buttons. */
.reviews-section{margin-block:48px;padding-block:24px;max-width:100%}
.reviews-section[hidden],.rv[hidden],.rv-sheet[hidden]{display:none!important}
.reviews-section h2{font-size:1.35rem;margin-bottom:20px}
.rv-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.stars{white-space:nowrap;letter-spacing:.08em;opacity:.8}.stars .on{color:var(--review-accent);opacity:1}
.rv-avg{font-size:1.5rem;font-weight:bold}.rv-count,.rv-meta{font-size:.85rem;opacity:.75}
.rv-list{list-style:none;padding:0;margin:0}.rv{padding:22px 0;border-top:1px solid var(--review-line)}
.rv-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.rv-badge{font-size:.7rem;border:1px solid currentColor;padding:2px 6px;border-radius:3px;opacity:.8}
.rv h4{margin:12px 0 8px;font-size:1rem}.rv p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;margin:8px 0}
.rv-meta,.rv-item{margin-top:8px}.rv-item{font-size:.85rem;overflow-wrap:anywhere}
.rv-more{margin-top:20px;cursor:pointer;font:inherit}.product-review-rating{display:inline-flex;gap:10px;align-items:center;margin:10px 0;font-size:.9rem}
.card-w{min-width:0;display:flex;flex-direction:column}.card-w>a{flex:1}.card-rv{background:transparent;color:inherit;border:1px solid var(--review-line);padding:10px 6px;font:inherit;font-size:.8rem;cursor:pointer;display:flex;gap:7px;justify-content:center;align-items:center;flex-wrap:wrap;width:100%}
.rv-sheet{position:fixed;inset:0;z-index:10000;background:#0008;display:flex;align-items:center;justify-content:center;padding:16px;color:var(--review-ink)}
.rv-sheet-box{width:640px;max-width:100%;max-height:85vh;overflow:auto;background:var(--review-paper);padding:24px;border:1px solid var(--review-line);border-radius:8px}
.rv-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.rv-sheet-head h3{font-size:1.1rem;overflow-wrap:anywhere}
.rv-sheet-x{font:inherit;font-size:1.8rem;line-height:1;background:transparent;color:inherit;border:0;cursor:pointer;padding:0 4px}.rv-sheet-go{margin-top:16px;display:inline-block}
@media(max-width:480px){.rv-sheet-box{padding:18px}.reviews-section{margin-block:28px}.card-rv{font-size:.72rem}}
