/* tsukichiyo textures - marketplace theme (EC標準文法に準拠)
   tokens: 白地 / 濃文字 #0f1111 / 青リンク #007185 / 価格 #b12704 / CTA橙 #ffa41c
   shape: カード8px / ボタンpill / 控えめな枠線 */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --line: #e3e6e6;
  --line-strong: #d5d9d9;
  --text: #0f1111;
  --text-dim: #565959;
  --link: #007185;
  --price: #b12704;
  --cta: #ffa41c;
  --cta-hover: #fa8900;
  --cta-ink: #0f1111;
  --brand: #a96f14;
  --radius: 8px;
  --shadow: 0 2px 5px rgb(15 17 17 / .08);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 16px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.head-row {
  display: flex; align-items: center; gap: 18px;
  height: 60px;
}
.brand {
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  color: var(--text); white-space: nowrap;
}
.brand span { color: var(--brand); }
.brand:hover { text-decoration: none; }
.search-box { flex: 1; max-width: 560px; position: relative; }
.search-box input {
  width: 100%; height: 38px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--bg-soft);
  padding: 0 38px 0 14px;
  font-family: var(--font); font-size: 14px; color: var(--text);
}
.search-box input:focus { outline: 2px solid var(--cta); border-color: transparent; background: #fff; }
.search-box::after {
  content: ""; position: absolute; right: 12px; top: 50%;
  width: 14px; height: 14px; transform: translateY(-62%);
  border: 2px solid var(--text-dim); border-radius: 50%;
}
.search-box::before {
  content: ""; position: absolute; right: 8px; top: 58%;
  width: 7px; height: 2px; background: var(--text-dim);
  transform: rotate(45deg);
}
.head-nav { display: flex; gap: 18px; align-items: center; margin-left: auto; font-size: 13px; white-space: nowrap; }
.head-nav a { color: var(--text); }
.lang-switch {
  font-size: 12px; font-family: var(--mono);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 4px 12px; color: var(--text-dim);
}
.lang-switch:hover { text-decoration: none; color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  font-family: var(--font); font-weight: 600; font-size: 14px;
  padding: 10px 26px;
  transition: background .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-buy { background: var(--cta); color: var(--cta-ink); }
.btn-buy:hover { background: var(--cta-hover); }
.btn-sub {
  background: #fff; color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.btn-sub:hover { background: var(--bg-soft); }
.btn[disabled] { background: var(--bg-soft); color: var(--text-dim); cursor: default; }
.btn-lg { width: 100%; padding: 12px 26px; font-size: 15px; }

/* ---------- promo banner ---------- */
.promo {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.promo .wrap {
  display: flex; align-items: center; gap: 16px;
  padding-block: 10px; font-size: 13px; color: var(--text);
}
.promo b { font-size: 14px; }
.promo small { color: var(--text-dim); }

/* ---------- sections ---------- */
main section { padding-block: 28px; }
.sec-title { font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.sec-title small { font-weight: 400; font-size: 13px; color: var(--text-dim); margin-left: 10px; }

/* ---------- product grid ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prod-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden;
  display: flex; flex-direction: column;
}
.prod-card:hover { box-shadow: var(--shadow); }
.prod-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); position: relative; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--price); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
}
.prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-body .prod-cta { margin-top: auto; padding-top: 12px; }
.prod-title { font-size: 15px; font-weight: 600; line-height: 1.45; }
.prod-title a { color: var(--link); }
.prod-meta { font-size: 12px; color: var(--text-dim); }
.prod-price { margin-top: 6px; }
.prod-price .yen { font-size: 13px; color: var(--price); }
.prod-price .num { font-size: 24px; font-weight: 700; color: var(--price); letter-spacing: -0.01em; }
.prod-price s { color: var(--text-dim); font-size: 12px; margin-left: 8px; }
.prod-price small { color: var(--text-dim); font-size: 11px; margin-left: 4px; }
.prod-note { font-size: 11.5px; color: var(--text-dim); }

/* ---------- benefit bar ---------- */
.benefits { background: var(--bg-soft); border-block: 1px solid var(--line); padding-block: 14px !important; }
.benefit-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.benefit-row b { display: block; font-size: 13px; }
.benefit-row small { color: var(--text-dim); font-size: 11.5px; line-height: 1.5; display: block; }

/* ---------- contents preview ---------- */
.contents-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contents-row figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contents-row figcaption { font-size: 12.5px; color: var(--text-dim); padding: 10px 14px; border-top: 1px solid var(--line); }

/* ---------- how to ---------- */
.howto-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: hstep; }
.howto-list li {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 14px 52px; position: relative; font-size: 13px; color: var(--text-dim);
}
.howto-list li b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.howto-list li::before {
  counter-increment: hstep; content: counter(hstep);
  position: absolute; left: 14px; top: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--line-strong);
  font-weight: 700; font-size: 13px; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; background: #fff; }
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 12px 16px; font-weight: 600; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::after { content: "+"; color: var(--text-dim); font-family: var(--mono); }
.faq-list details[open] summary::after { content: "-"; }
.faq-list details p { color: var(--text-dim); font-size: 13px; padding: 0 16px 14px; max-width: 65ch; }

/* ---------- PDP ---------- */
.crumbs { font-size: 12px; color: var(--text-dim); padding-block: 12px; }
.crumbs a { color: var(--text-dim); }
.pdp { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; padding-block: 8px 36px; }
.pdp-gallery .main-img {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; background: var(--bg-soft);
}
.pdp-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.pdp-thumbs button {
  border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden;
  padding: 0; cursor: pointer; background: none; aspect-ratio: 16/9;
}
.pdp-thumbs button[aria-current="true"] { outline: 2px solid var(--cta); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 18px 18px 20px; position: sticky; top: 76px;
  display: flex; flex-direction: column; gap: 10px;
}
.buy-box h1 { font-size: 19px; line-height: 1.4; }
.buy-box .meta { font-size: 12.5px; color: var(--text-dim); }
.buy-box .price { color: var(--price); }
.buy-box .price .yen { font-size: 14px; }
.buy-box .price .num { font-size: 30px; font-weight: 700; }
.buy-box .price small { color: var(--text-dim); font-size: 12px; margin-left: 6px; }
.buy-box ul { list-style: none; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.buy-box ul li { padding-left: 20px; position: relative; }
.buy-box ul li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 10px; height: 5px; transform: rotate(-45deg);
  border-left: 2px solid #067d62; border-bottom: 2px solid #067d62;
}
.buy-box .assure { font-size: 11.5px; color: var(--text-dim); }
.pdp-desc { max-width: 860px; padding-bottom: 40px; }
.pdp-desc h2 { font-size: 17px; margin: 26px 0 8px; }
.pdp-desc p { font-size: 13.5px; color: var(--text-dim); max-width: 70ch; }
.pdp-desc img { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 10px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 24px; }
.site-foot .wrap {
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  font-size: 12px; color: var(--text-dim);
}
.site-foot nav { display: flex; gap: 18px; margin-left: auto; }
.site-foot a { color: var(--text-dim); }

/* ---------- inner pages (success / dl / legal) ---------- */
.page { max-width: 720px; margin-inline: auto; padding: 48px 16px 80px; }
.page h1 { font-size: 24px; margin-bottom: 14px; }
.page p { color: var(--text-dim); margin-bottom: 12px; font-size: 13.5px; }
.dl-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.dl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 16px 18px; background: #fff;
}
.dl-item b { font-size: 14.5px; }
.dl-item small { display: block; color: var(--text-dim); font-size: 12px; }
.dl-item .btn { background: var(--cta); color: var(--cta-ink); }
.status-note { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .benefit-row { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .contents-row { grid-template-columns: 1fr; }
  .howto-list { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .buy-box { position: static; }
}
@media (max-width: 640px) {
  .head-row { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 8px; }
  .search-box { order: 3; max-width: none; flex-basis: 100%; }
  .head-nav { gap: 12px; }
  .prod-grid { grid-template-columns: 1fr; }
}
