/* TRY CROSS ONLINE STORE（お客さん用）
   色・角丸は管理ページの「ストアデザイン」から :root の変数に入る。
   書体はヒラギノ。太さ（W3＝300 / W6＝600）と大きさで、見出し・本文・説明文の差をつける。 */
:root {
  --accent: #111; --text: #222; --sub: #777; --bg: #fff; --line: #e6e6e6; --soft: #f6f6f6; --radius: 4px;
  --hd-bg: #fff; --hd-text: #111; --grid-pc: 4; --ng: #d33a3a; --ok: #1a8f5a;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "ヒラギノ角ゴ ProN W3", "ヒラギノ角ゴシック", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  /* 文字の大きさ */
  --fs-h1: clamp(22px, 3.2vw, 30px); --fs-h2: clamp(20px, 2.6vw, 26px); --fs-h3: 17px; --fs-body: 15px; --fs-desc: 14px; --fs-cap: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 300; font-size: var(--fs-body); line-height: 1.8; color: var(--text); background: var(--bg); letter-spacing: .03em; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, b, strong { font-weight: 600; }
.loading { text-align: center; color: var(--sub); padding: 80px 0; font-size: var(--fs-desc); }
.center { text-align: center; }
.err { color: var(--ng); font-size: var(--fs-desc); white-space: pre-line; }
.empty { text-align: center; color: var(--sub); padding: 40px 0; font-size: var(--fs-desc); }
.note { color: var(--sub); font-size: var(--fs-cap); line-height: 1.7; }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #bbb; font-size: var(--fs-cap); font-weight: 600; letter-spacing: .1em; background: var(--soft); }

/* ---------- ヘッダー ---------- */
.notice { background: var(--accent); color: #fff; text-align: center; font-size: var(--fs-cap); font-weight: 600; padding: 7px 12px; letter-spacing: .06em; }
.hd { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: 64px; padding: 0 8px; background: var(--hd-bg); color: var(--hd-text); border-bottom: 1px solid var(--line); }
.hd-btn { width: 44px; height: 44px; display: grid; place-items: center; position: relative; color: var(--hd-text); }
.hd-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hd-logo { justify-self: center; font-weight: 600; font-size: clamp(15px, 2.2vw, 19px); letter-spacing: .14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hd-logo img { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.hd-cart b { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; padding: 0 4px; }
.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer.on { opacity: 1; pointer-events: auto; }
.drawer-in { position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 85vw); background: #fff; padding: 56px 28px 40px; overflow-y: auto; transform: translateX(-100%); transition: transform .25s; }
.drawer.on .drawer-in { transform: none; }
.drawer-x { position: absolute; top: 10px; right: 14px; font-size: 28px; line-height: 1; padding: 6px; }
.drawer-h { font-size: var(--fs-cap); font-weight: 600; letter-spacing: .16em; color: var(--sub); margin: 26px 0 6px; }
.drawer-in a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-desc); }

/* ---------- スライドバナー ---------- */
.slider { position: relative; overflow: hidden; background: var(--soft); }
.sl-track { display: flex; transition: transform .6s ease; }
.sl-item { flex: 0 0 100%; display: block; }
.sl-item img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 640px) { .sl-item img { aspect-ratio: 4 / 3; } }
.sl-prev, .sl-next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.85); font-size: 26px; line-height: 38px; color: #111; }
.sl-prev { left: 12px; } .sl-next { right: 12px; }
.sl-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.sl-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.sl-dots button.on { background: #fff; width: 22px; border-radius: 4px; }
@media (max-width: 640px) { .sl-prev, .sl-next { display: none; } }

/* ---------- トップ ---------- */
.hero { text-align: center; padding: 48px 20px 8px; }
.hero h1 { font-size: var(--fs-h1); letter-spacing: .16em; margin: 0; line-height: 1.4; }
.hero p { font-size: var(--fs-desc); color: var(--sub); margin: 10px 0 0; }
.closed { text-align: center; background: var(--soft); padding: 18px; margin: 24px auto; max-width: 760px; font-size: var(--fs-desc); border-radius: var(--radius); }
.sec { max-width: 1160px; margin: 0 auto; padding: 48px 20px 8px; }
.sec-h { text-align: center; margin-bottom: 28px; }
.sec-h h2 { font-size: var(--fs-h2); letter-spacing: .2em; margin: 0; line-height: 1.3; }
.sec-h p { font-size: var(--fs-cap); color: var(--sub); margin: 6px 0 0; letter-spacing: .08em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px 40px; }
.wrap.narrow { max-width: 640px; }

/* アーティスト一覧 */
.agrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 16px; }
.agrid .acard { width: calc((100% - 16px) / 2); }
@media (min-width: 720px) { .agrid { gap: 36px 24px; } .agrid .acard { width: calc((100% - 24px * (var(--grid-pc) - 1)) / var(--grid-pc)); } }
.acard { text-align: center; }
.acard-img { aspect-ratio: 1; overflow: hidden; background: var(--soft); border-radius: var(--radius); }
.shape-circle .acard-img { border-radius: 50%; }
.shape-wide .acard-img { aspect-ratio: 16 / 9; }
.acard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.acard:hover .acard-img img { transform: scale(1.04); }
.acard-img .noimg { font-size: 36px; }
.acard-name { font-weight: 600; font-size: var(--fs-h3); margin: 12px 0 0; letter-spacing: .08em; line-height: 1.5; }
.acard-sub { font-size: var(--fs-cap); color: var(--sub); margin: 2px 0 0; }

/* 商品一覧 */
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
@media (min-width: 720px) { .pgrid { grid-template-columns: repeat(var(--grid-pc), 1fr); gap: 40px 24px; } }
.pcard-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--soft); border-radius: var(--radius); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; padding: 2px 8px; border-radius: 2px; }
.badge.sold { background: #888; }
.badge.inline { position: static; display: inline-block; margin: 0 0 6px; }
.pcard-ar { font-size: var(--fs-cap); color: var(--sub); margin: 10px 0 0; line-height: 1.4; }
.pcard-name { font-size: var(--fs-desc); margin: 2px 0 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-price { font-weight: 600; font-size: var(--fs-desc); margin: 4px 0 0; }

/* 関連リンク */
.lgrid { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
@media (min-width: 720px) { .lgrid { grid-template-columns: 1fr 1fr; } }
.lcard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); transition: background .2s; }
.lcard:hover { background: var(--soft); }
.lcard img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius); flex: none; }
.lcard span { flex: 1; min-width: 0; }
.lcard b { display: block; font-size: var(--fs-desc); letter-spacing: .06em; }
.lcard small { display: block; font-size: var(--fs-cap); color: var(--sub); }
.lcard i { font-style: normal; font-size: 22px; color: var(--sub); }

/* ---------- アーティストページ ---------- */
.cover img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
@media (max-width: 640px) { .cover img { aspect-ratio: 16 / 9; } }
.crumbs { font-size: var(--fs-cap); color: var(--sub); padding: 14px 0; }
.crumbs span { margin: 0 4px; }
.artist-h { text-align: center; padding: 16px 0 0; }
.artist-thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 0 auto 12px; }
.artist-h h1 { font-size: var(--fs-h1); letter-spacing: .14em; margin: 0; line-height: 1.4; }
.artist-sub { font-size: var(--fs-desc); color: var(--sub); margin: 4px 0 0; }
.artist-desc { font-size: var(--fs-desc); max-width: 640px; margin: 16px auto 0; text-align: left; line-height: 1.9; }
.artist-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.artist-links a { border: 1px solid var(--text); border-radius: 999px; padding: 4px 16px; font-size: var(--fs-cap); font-weight: 600; letter-spacing: .06em; }

/* ---------- 商品ページ ---------- */
.pd { display: grid; gap: 28px; }
@media (min-width: 860px) { .pd { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } .pd-gal { position: sticky; top: 84px; } }
.pd-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1; background: var(--soft); border-radius: var(--radius); }
.pd-main::-webkit-scrollbar { display: none; }
.pd-main img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.pd-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.pd-thumbs button { aspect-ratio: 1; overflow: hidden; border-radius: 2px; opacity: .5; outline: 1px solid transparent; }
.pd-thumbs button.on { opacity: 1; outline-color: var(--text); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-ar { font-size: var(--fs-desc); color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.pd-name { font-size: var(--fs-h1); line-height: 1.45; margin: 6px 0 10px; letter-spacing: .06em; }
.pd-price { font-size: 24px; font-weight: 600; margin: 0 0 20px; }
.pd-price small { font-size: var(--fs-cap); font-weight: 300; color: var(--sub); margin-left: 4px; }
.opt { margin: 0 0 18px; }
.opt-h { font-size: var(--fs-cap); font-weight: 600; letter-spacing: .1em; margin: 0 0 8px; }
.opt-h span { font-weight: 300; margin-left: 10px; color: var(--sub); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-width: 52px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-desc); line-height: 1.3; }
.chips button.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); font-weight: 600; }
.chips button.out { color: #bbb; text-decoration: line-through; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty button { width: 42px; height: 40px; font-size: 18px; }
.qty span { min-width: 40px; text-align: center; font-weight: 600; }
.qty.sm button { width: 34px; height: 32px; font-size: 15px; } .qty.sm span { min-width: 30px; font-size: var(--fs-desc); }
.stock { color: var(--ng); font-size: var(--fs-cap); min-height: 1.6em; margin: 0 0 6px; }
.pd-ship { font-size: var(--fs-cap); color: var(--sub); margin: 12px 0 0; }
.pd-desc { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.pd-desc-h { font-weight: 600; font-size: var(--fs-desc); letter-spacing: .1em; margin: 0 0 10px; }
.pd-desc div { font-size: var(--fs-desc); line-height: 2; }

/* ---------- ボタン ---------- */
.btn { display: block; width: 100%; text-align: center; padding: 15px 16px; border-radius: var(--radius); font-weight: 600; font-size: var(--fs-body); letter-spacing: .1em; margin-top: 10px; transition: opacity .2s; }
.btn-main { background: var(--accent); color: #fff; }
.btn-main:hover { opacity: .85; }
.btn-main:disabled, .btn.disabled { background: #c8c8c8; cursor: not-allowed; pointer-events: none; }
.btn-sub { border: 1px solid var(--text); background: #fff; }
.link { color: var(--sub); text-decoration: underline; font-size: var(--fs-cap); }

/* ---------- カート・購入手続き ---------- */
.pg-h { font-size: var(--fs-h2); letter-spacing: .1em; margin: 8px 0 16px; line-height: 1.4; }
.lead { font-size: var(--fs-desc); color: var(--sub); margin: -6px 0 20px; }
.steps { display: flex; list-style: none; padding: 0; margin: 20px 0 24px; gap: 4px; }
.steps li { flex: 1; text-align: center; font-size: 11px; color: #aaa; border-top: 3px solid var(--line); padding-top: 6px; line-height: 1.4; }
.steps li b { display: block; font-size: 13px; }
.steps li.done { color: var(--sub); border-color: #999; }
.steps li.now { color: var(--text); border-color: var(--accent); font-weight: 600; }
.clist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.clist li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cl-img { width: 88px; height: 88px; flex: none; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.clist.small .cl-img { width: 60px; height: 60px; }
.cl-img img { width: 100%; height: 100%; object-fit: cover; }
.cl-body { flex: 1; min-width: 0; }
.cl-body p { margin: 0; }
.cl-ar { font-size: var(--fs-cap); color: var(--sub); }
.cl-name { font-size: var(--fs-desc); font-weight: 600; line-height: 1.5; display: block; }
.cl-var { font-size: var(--fs-cap); color: var(--sub); }
.cl-price { font-size: var(--fs-desc); margin-top: 2px !important; }
.cl-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.sum { background: var(--soft); padding: 16px 18px; border-radius: var(--radius); margin: 18px 0 8px; }
.sum div { display: flex; justify-content: space-between; font-size: var(--fs-desc); padding: 3px 0; }
.sum .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 17px; }
.sum .total b { font-size: 22px; }
.sum .note { margin: 6px 0 0; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; font-size: var(--fs-desc); letter-spacing: .1em; padding: 0; margin-bottom: 8px; border-left: 3px solid var(--accent); padding-left: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: flex; align-items: center; gap: 6px; font-size: var(--fs-cap); font-weight: 600; margin-bottom: 4px; }
.fld em { font-style: normal; font-size: 10px; background: var(--ng); color: #fff; padding: 0 5px; border-radius: 2px; letter-spacing: .04em; }
.fld.ok em { background: var(--ok); }
.fld input, .fld select { width: 100%; font: inherit; font-size: 16px; font-weight: 300; padding: 11px 12px; border: 1px solid #cfcfcf; border-radius: var(--radius); background: #fff; color: var(--text); }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--text); }
.fld.ng input, .fld.ng select { border-color: var(--ng); background: #fff6f6; }
.ferr { display: block; color: var(--ng); font-size: 11px; min-height: 0; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-desc); margin: 6px 0 4px; }
.agree input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); }
.agree a { text-decoration: underline; }
.remain { text-align: center; font-size: var(--fs-cap); color: var(--sub); margin: 14px 0 0; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; font-size: var(--fs-desc); }
.box-h { display: flex; justify-content: space-between; font-weight: 600; margin: 0 0 6px; }
.box p { margin: 0; }
.demo { background: #fff8e1; border: 1px solid #f0d68a; padding: 10px 12px; font-size: var(--fs-cap); border-radius: var(--radius); }
.doc { font-size: var(--fs-desc); line-height: 2; }
.doc h3 { font-size: var(--fs-desc); margin: 22px 0 4px; }
.law { display: grid; grid-template-columns: 9em 1fr; border-top: 1px solid var(--line); margin: 0; }
.law dt, .law dd { padding: 12px 6px; border-bottom: 1px solid var(--line); margin: 0; }
.law dt { font-weight: 600; font-size: var(--fs-cap); background: var(--soft); }
@media (max-width: 560px) { .law { grid-template-columns: 1fr; } .law dt { border-bottom: 0; padding-bottom: 2px; } }

/* ---------- フッター ---------- */
.ft { background: #111; color: #ddd; margin-top: 64px; }
.ft-in { max-width: 1160px; margin: 0 auto; padding: 44px 20px 28px; display: grid; gap: 24px; }
@media (min-width: 860px) { .ft-in { grid-template-columns: 1.4fr 1fr; } .ft-copy { grid-column: 1 / -1; } }
.ft-name { font-weight: 600; font-size: var(--fs-h3); color: #fff; letter-spacing: .1em; margin: 0 0 10px; }
.ft dl { display: grid; grid-template-columns: 4.5em 1fr; gap: 4px 10px; margin: 0; font-size: var(--fs-cap); line-height: 1.8; }
.ft dt { color: #999; font-weight: 600; }
.ft dd { margin: 0; }
.ft a { color: #ddd; }
.ft a:hover { color: #fff; text-decoration: underline; }
.ft-links { list-style: none; margin: 0; padding: 0; font-size: var(--fs-cap); display: grid; gap: 6px; align-content: start; }
.ft-copy { font-size: 11px; color: #888; text-align: center; border-top: 1px solid #333; padding-top: 18px; margin: 0; letter-spacing: .08em; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: rgba(17,17,17,.92); color: #fff; padding: 11px 22px; border-radius: 999px; font-size: var(--fs-desc); font-weight: 600; z-index: 60; }
/* バリエーションの選択（STORES と同じプルダウン） */
.opt label.opt-h { display: block; }
.sel-wrap { position: relative; }
.sel-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel-wrap select { width: 100%; appearance: none; -webkit-appearance: none; font: inherit; font-size: 16px; font-weight: 300; color: var(--text); background: #fff; border: 1px solid #cfcfcf; border-radius: var(--radius); padding: 12px 40px 12px 14px; }
.sel-wrap select:focus { outline: none; border-color: var(--text); }
/* 購入時の入力項目（宛名など） */
.opt-h .req, .opt-h .opt-any { font-style: normal; font-size: 10px; color: #fff; background: var(--ng); padding: 0 5px; border-radius: 2px; margin-left: 8px; letter-spacing: .04em; vertical-align: 1px; }
.opt-h .opt-any { background: #999; }
.pd-in { width: 100%; font: inherit; font-size: 16px; font-weight: 300; padding: 11px 12px; border: 1px solid #cfcfcf; border-radius: var(--radius); background: #fff; color: var(--text); }
.pd-in:focus { outline: none; border-color: var(--text); }
.pd-in-n { display: block; font-size: 11px; color: var(--sub); margin-top: 2px; }

.badge.soon{background:#111;color:#fff;letter-spacing:.08em}
.sale-note{margin:14px 0 4px;padding:14px;border:2px solid currentColor;border-radius:10px;text-align:center;font-weight:800;letter-spacing:.1em;font-size:18px;line-height:1.5}
.sale-note small{display:block;font-size:13px;letter-spacing:0;font-weight:700}
