/* かべがみ見本帖 — 白×チャコール、見本帳のスウォッチ */
:root {
  --bg: #f6f6f4;
  --paper: #ffffff;
  --ink: #2f3236;
  --char: #3a3d40;
  --sub: #6f7378;
  --line: #d9dad7;
  --hair: #e8e8e5;
  --accent: #b5895b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: 'IBM Plex Sans JP', 'Hiragino Sans', sans-serif; font-size: 15px; line-height: 1.85; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* header */
header.site { background: var(--char); color: #fff; }
header.site .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark { display: grid; grid-template-columns: repeat(2, 13px); gap: 3px; }
.logo .mark i { width: 13px; height: 13px; display: block; background: #fff; }
.logo .mark i:nth-child(2) { background: #c9ced2; } .logo .mark i:nth-child(3) { background: var(--accent); } .logo .mark i:nth-child(4) { background: #8a8d90; }
.logo b { display: block; font-size: 19px; letter-spacing: .12em; font-weight: 600; line-height: 1.2; }
.logo small { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .2em; color: #b9bcbf; }
.gnav { margin-left: auto; display: flex; gap: 26px; font-size: 13px; letter-spacing: .08em; }
.gnav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.listlink { display: flex; align-items: center; gap: 10px; border: 1px solid #8a8d90; padding: 7px 8px 7px 14px; font-size: 13px; letter-spacing: .06em; }
.listlink .list-n { font-family: 'IBM Plex Mono', monospace; background: #fff; color: var(--char); min-width: 26px; text-align: center; font-weight: 600; }
.infobar { background: var(--paper); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--sub); }
.infobar .wrap { padding-top: 7px; padding-bottom: 7px; }
.infobar span { margin-left: 6px; }

/* roll-edge headings: ロール紙の端 */
.roll { display: flex; align-items: stretch; margin-bottom: 26px; }
.roll .core { width: 34px; flex: none; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--bg) 0 5px, #c9c9c5 6px 8px, var(--paper) 9px 12px, #c9c9c5 13px 14px, var(--paper) 15px); border: 1px solid var(--line); aspect-ratio: 1; align-self: center; }
.roll .sheet { flex: 1; margin-left: -6px; background: var(--paper); border: 1px solid var(--line); border-left: 0; padding: 10px 20px 10px 22px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%); }
.roll h2 { font-size: 22px; font-weight: 600; letter-spacing: .1em; }
.roll .en { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--sub); letter-spacing: .18em; }

/* hero */
.hero { padding: 56px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.hero .ed { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .25em; color: var(--sub); }
.hero h1 { font-size: 40px; font-weight: 600; line-height: 1.45; letter-spacing: .06em; margin-top: 14px; }
.hero p { color: var(--sub); margin-top: 18px; max-width: 30em; }
.hero .go { display: inline-block; margin-top: 26px; background: var(--char); color: #fff; padding: 13px 30px; letter-spacing: .12em; font-size: 14px; }
.fan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fan a { background: var(--paper); padding: 8px 8px 0; border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); }
.fan a:nth-child(2) { transform: translateY(26px); }
.fan img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.fan span { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; padding: 6px 2px; color: var(--sub); }

/* filters: color chips */
.sec { padding: 46px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { display: inline-flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line); padding: 8px 14px 8px 8px; font-size: 13px; }
.chips button em { font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--sub); }
.chips button.on { border-color: var(--char); box-shadow: inset 0 0 0 1px var(--char); }
.chip { display: inline-block; width: 22px; height: 22px; border: 1px solid rgba(0, 0, 0, .12); flex: none; }
.ct .chip { width: 10px; height: 10px; }
.tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 16px; flex-wrap: wrap; font-size: 13px; color: var(--sub); }
.tools select { border: 1px solid var(--line); background: var(--paper); padding: 6px 10px; }

/* swatch grid */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.swatch { background: var(--paper); display: flex; flex-direction: column; transition: background .15s; }
.swatch:hover { background: #fbfbfa; }
.swatch .ph { display: block; aspect-ratio: 1; overflow: hidden; margin: 10px 10px 0; }
.swatch .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.swatch:hover .ph img { transform: scale(1.04); }
.swatch .lab { display: flex; flex-direction: column; padding: 10px 12px 14px; flex: 1; }
.swatch .no { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: .08em; border-bottom: 1px solid var(--hair); padding-bottom: 4px; }
.swatch .ct { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--sub); margin-top: 6px; }
.swatch .nm { font-size: 13px; line-height: 1.6; margin-top: 4px; font-weight: 500; }
.swatch .pr { margin-top: auto; padding-top: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 16px; font-weight: 600; }
.swatch .pr small { display: block; font-family: 'IBM Plex Sans JP', sans-serif; font-size: 11px; color: var(--sub); font-weight: 400; }

/* how to order */
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--paper); }
.howto div { padding: 22px 24px; border-right: 1px solid var(--line); }
.howto div:last-child { border-right: 0; }
.howto b { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.howto h3 { font-size: 16px; font-weight: 600; margin: 4px 0 6px; }
.howto p { font-size: 13px; color: var(--sub); }

/* footer */
footer.site { margin-top: 60px; background: var(--char); color: #d4d6d8; font-size: 13px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 44px 0 26px; }
footer.site .fname { color: #fff; font-size: 18px; letter-spacing: .1em; font-weight: 600; }
footer.site .co { margin-top: 12px; font-size: 12px; opacity: .8; }
footer.site h4 { color: #fff; font-size: 12px; letter-spacing: .15em; margin-bottom: 8px; font-weight: 600; }
footer.site li { list-style: none; margin: 4px 0; }
footer.site a:hover { text-decoration: underline; }
footer.site .copy { border-top: 1px solid rgba(255, 255, 255, .15); padding: 16px 0 26px; font-size: 11px; opacity: .7; }

/* buttons, toast */
.btn { display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--char); background: var(--char); color: #fff; padding: 13px 26px; letter-spacing: .1em; font-size: 14px; }
.btn:hover { background: #222; }
.btn.line { background: var(--paper); color: var(--ink); }
.btn.full { display: flex; width: 100%; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--char); color: #fff; padding: 12px 22px; opacity: 0; transition: .25s; pointer-events: none; z-index: 60; max-width: calc(100% - 32px); font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* product */
.crumb { font-size: 12px; color: var(--sub); padding: 22px 0 16px; }
.crumb a { text-decoration: underline; }
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.main-img { background: var(--paper); border: 1px solid var(--line); padding: 12px; }
.main-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.cap { font-size: 12px; color: var(--sub); margin-top: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.thumbs button { border: 1px solid var(--line); padding: 0; background: var(--paper); aspect-ratio: 1; overflow: hidden; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.on { border-color: var(--char); box-shadow: inset 0 0 0 1px var(--char); }
.pinfo .no { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; letter-spacing: .1em; display: flex; align-items: center; gap: 10px; }
.pinfo .no span { font-family: 'IBM Plex Sans JP', sans-serif; font-weight: 400; font-size: 12px; color: var(--sub); display: inline-flex; gap: 6px; align-items: center; }
.pinfo h1 { font-size: 24px; font-weight: 600; line-height: 1.55; margin-top: 10px; letter-spacing: .03em; }
.pinfo .price { margin-top: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 30px; font-weight: 600; }
.pinfo .price small { font-family: 'IBM Plex Sans JP', sans-serif; font-size: 13px; font-weight: 400; color: var(--sub); margin-left: 8px; }
.pinfo .desc { margin-top: 16px; white-space: pre-line; }
.opt { margin-top: 20px; }
.opt .t, .pick label { font-size: 13px; font-weight: 600; }
.opt .vals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opt .vals button { border: 1px solid var(--line); background: var(--paper); padding: 7px 14px; font-size: 13px; }
.opt .vals button.on { border-color: var(--char); background: var(--char); color: #fff; }
.pick { margin-top: 20px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 14px 16px; }
.pick p { font-size: 12px; color: var(--sub); margin: 2px 0 8px; }
.pick input { width: 100%; border: 1px solid var(--line); padding: 10px 12px; background: var(--bg); font-family: 'IBM Plex Mono', 'IBM Plex Sans JP', monospace; }
.buy { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--paper); }
.qty button { border: 0; background: none; width: 42px; height: 48px; font-size: 18px; }
.qty input { width: 46px; border: 0; text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 16px; background: none; }
.qty .u { font-size: 11px; color: var(--sub); padding-right: 10px; }
.buy .btn { flex: 1; min-width: 190px; }
.msg { color: #a33; font-size: 13px; min-height: 1.6em; margin-top: 6px; }
.ship { margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; list-style: none; font-size: 13px; }
.ship li { padding-left: 16px; position: relative; }
.ship li::before { content: ''; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; background: var(--accent); }
.spec { margin-top: 26px; }
.spec h3 { font-size: 14px; letter-spacing: .12em; font-weight: 600; margin-bottom: 8px; }
.spec table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--paper); border: 1px solid var(--line); }
.spec th { text-align: left; width: 9em; background: #efefec; padding: 9px 12px; font-weight: 500; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec td { padding: 9px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.note { margin-top: 16px; font-size: 12px; color: var(--sub); }
.note p + p { margin-top: 6px; }
.note .warn { color: var(--ink); background: #f1ece5; padding: 10px 12px; }
.related { margin-top: 60px; }
.related .grid { grid-template-columns: repeat(4, 1fr); }
.empty { text-align: center; padding: 70px 0; }
.empty p { margin-bottom: 18px; }

/* page title / cart / legal */
.ptitle { padding: 40px 0 26px; }
.ptitle .wrap > p { font-size: 13px; color: var(--sub); margin-top: -12px; }
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.rows { background: var(--paper); border: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); align-items: start; }
.row:last-child { border-bottom: 0; }
.row img { width: 90px; height: 90px; object-fit: cover; }
.row .nm { font-weight: 500; text-decoration: underline; }
.row .op { font-size: 12px; color: var(--sub); }
.row .qty { margin-top: 8px; }
.row .qty button { height: 34px; width: 34px; font-size: 15px; }
.row .qty input { width: 38px; }
.row .rm { border: 0; background: none; color: var(--sub); text-decoration: underline; font-size: 12px; margin-top: 6px; }
.row .sub { font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.sum { background: var(--paper); border: 1px solid var(--char); padding: 22px; position: sticky; top: 20px; }
.sum dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14px; }
.sum dd { text-align: right; font-family: 'IBM Plex Mono', monospace; }
.sum .total { font-size: 17px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 10px; }
.sum .free { font-size: 12px; color: var(--sub); margin: 14px 0; }
.modal { position: fixed; inset: 0; background: rgba(30, 32, 34, .55); display: none; align-items: center; justify-content: center; z-index: 80; padding: 16px; }
.modal.show { display: flex; }
.modal .box { background: var(--paper); padding: 28px 24px; max-width: 440px; width: 100%; border-top: 6px solid var(--char); }
.modal h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.modal p { font-size: 14px; margin-bottom: 18px; }
.legal { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.legal .lead { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 14px 18px; font-size: 14px; margin-bottom: 20px; }
.legal table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); font-size: 14px; }
.legal th { width: 13em; text-align: left; background: #efefec; padding: 12px 14px; font-weight: 500; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal td { padding: 12px 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.legal h2 { font-size: 16px; font-weight: 600; margin: 26px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.legal ul { padding-left: 1.4em; }
.legal p, .legal li { font-size: 14px; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .gnav { display: none; }
  .listlink { margin-left: auto; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  header.site .wrap { height: 60px; gap: 10px; }
  .logo b { font-size: 16px; letter-spacing: .06em; }
  .logo small { letter-spacing: .1em; }
  .listlink { padding: 6px 6px 6px 10px; font-size: 12px; gap: 6px; }
  .infobar span { display: block; margin: 0; }
  .hero { padding: 34px 0 30px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 28px; }
  .fan { padding-bottom: 26px; }
  .grid, .related .grid { grid-template-columns: repeat(2, 1fr); }
  .swatch .ph { margin: 8px 8px 0; }
  .swatch .lab { padding: 8px 10px 12px; }
  .swatch .nm { font-size: 12px; }
  .swatch .pr { font-size: 14px; }
  .roll h2 { font-size: 18px; }
  .howto { grid-template-columns: 1fr; }
  .howto div { border-right: 0; border-bottom: 1px solid var(--line); }
  .howto div:last-child { border-bottom: 0; }
  footer.site .cols { grid-template-columns: 1fr; gap: 20px; }
  .pd { grid-template-columns: 1fr; gap: 24px; }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
  .pinfo h1 { font-size: 20px; }
  .cart { grid-template-columns: 1fr; }
  .sum { position: static; }
  .row { grid-template-columns: 70px 1fr; }
  .row img { width: 70px; height: 70px; }
  .row .sub { grid-column: 2; }
  .legal th, .legal td { display: block; width: auto; }
  .legal th { border-bottom: 0; padding-bottom: 4px; }
  .spec th { width: 6.5em; }
}

:root{--review-accent:var(--accent);--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}}
