/* カゴピコ 共通スタイル（色：ミルク白の背景・青・レモン黄。明るく買い物が楽しくなる印象） */
:root {
  --main: #2452D6;
  --main-dark: #1A3DA6;
  --accent: #FFD84D;
  --bg: #FFFCF2;
  --surface: #FFFFFF;
  --text: #1F2A44;
  --muted: #545E75;
  --line: #E4E2D6;
  --line-soft: #EFEDE3;
  --th: #FFF7D6;
  --on-main: #DCE5FF;
  --radius: 18px;
  --radius-btn: 999px;
  --font-body: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Yu Gothic UI', sans-serif;
  --font-head: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Yu Gothic UI', sans-serif;
  --font-logo: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Yu Gothic UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
}

a { color: var(--main); }
a:hover { color: var(--main-dark); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 48px 16px 64px; }
.small { font-size: 13px; }

/* ヘッダー */
.site-header { background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; flex-direction: column; gap: 2px; text-decoration: none; line-height: 1.3; color: var(--main); }
.logo-main { display: flex; align-items: center; gap: 10px; }
.logo-main svg { display: block; flex: none; }
.logo-text { font-family: var(--font-logo); color: var(--main); }
.logo-sub { font-size: 12px; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--main); text-decoration: underline; }

/* フッター */
.site-footer { background: var(--main); color: var(--on-main); font-size: 13px; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: var(--on-main); }
.site-footer .todo { color: #FFFFFF; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* 見出し・共通 */
h1, h2 { color: var(--main); line-height: 1.4; font-family: var(--font-head); }
h1 { margin: 0; }
h2 { margin: 0; font-size: 22px; }
.muted { color: var(--muted); }
.section { padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.section-first { padding-top: 48px; }
.section-title { font-size: 22px; }
.section-spec { margin-top: 56px; padding-bottom: 0; }
.page-product { padding-bottom: 64px; }

/* トップ */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.product-card { flex: 0 1 340px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.product-card:hover { color: var(--text); border-color: var(--main); }
.product-card img { width: 100%; height: 220px; object-fit: contain; background: #FFFFFF; border-bottom: 1px solid var(--line-soft); }
.product-card .body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.cat { font-size: 12px; color: var(--muted); }
.pname { font-size: 18px; font-weight: 700; color: var(--main); }
.price { color: var(--main); font-weight: 700; }
.price small { color: var(--muted); font-weight: 400; font-size: 12px; }
.grid3 { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid3 li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.step { font-size: 13px; font-weight: 700; color: var(--main); }
.grid3 b { font-weight: 700; }
.grid3 .desc { font-size: 14px; color: var(--muted); }
.x-box { margin-bottom: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: var(--radius-btn); background: var(--main); color: #FFFFFF; text-decoration: none; border: 0; font: inherit; font-weight: 700; }
.btn:hover { color: #FFFFFF; background: var(--main-dark); }
.btn-buy { display: flex; width: 100%; min-height: 56px; font-size: 18px; }
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover { background: #8B8F97; cursor: not-allowed; }

/* 商品ページ */
.crumb { padding: 20px 0; font-size: 13px; color: var(--muted); }
.product { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.product > div { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.product-head { display: flex; flex-direction: column; gap: 4px; }
.product-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery img { display: block; }
.gallery a { cursor: zoom-in; }
.photo-modal { padding: 0; border: 0; border-radius: 8px; background: #FFFFFF; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.photo-modal::backdrop { background: rgba(0, 0, 0, 0.7); }
.photo-modal img { display: block; max-width: min(92vw, 900px); max-height: 92vh; border-radius: 8px; }
.photo-modal-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--main); color: #FFFFFF; font-size: 24px; line-height: 1; cursor: pointer; }
.photo-modal-close:hover { background: var(--main-dark); }
.product h1 { font-size: 30px; }
.big-price { font-size: 34px; }
.facts { margin: 0; display: grid; grid-template-columns: 7em 1fr; row-gap: 8px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.note { font-size: 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; }

/* 表 */
.table-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { width: 13em; background: var(--th); }

/* 文章ページ */
.doc { display: flex; flex-direction: column; gap: 32px; font-size: 15px; line-height: 1.9; }
.doc h1 { font-size: 28px; }
.doc section { display: flex; flex-direction: column; gap: 8px; }
.doc h2.rule { font-size: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--main); }
.doc h2.plain { font-size: 18px; }
.doc ul { margin: 0; padding-left: 1.4em; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact dl { margin: 0; display: grid; grid-template-columns: 8em 1fr; row-gap: 8px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }

/* 写真が入るまでの仮枠・未記入の目印（公開前に消える想定） */
.ph { height: 220px; background: var(--th); border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.ph-square { height: auto; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius); }
.todo { color: #B45309; font-weight: 700; }

@media (max-width: 600px) {
  .facts, .contact dl { grid-template-columns: 1fr; row-gap: 2px; }
  .facts dd, .contact dd { margin-bottom: 8px; }
  /* スマホでは表を縦積みにして横スクロールをなくす */
  table, tbody, tr, th, td { display: block; width: 100%; }
  th { border-bottom: 0; padding: 10px 14px 4px; }
  td { padding: 4px 14px 12px; }
}

/* ── カゴピコ独自：レモンのお知らせ帯・丸い形・番号の丸印 ── */
.notice { background: var(--accent); color: var(--text); text-align: center; font-size: 13px; font-weight: 700; padding: 6px 16px; }
.logo-text { font-size: 28px; font-weight: 800; letter-spacing: 0.04em; }
h1, h2 { font-weight: 800; }
.section-title { align-self: flex-start; color: var(--text); background: linear-gradient(transparent 62%, var(--accent) 62%); padding: 0 4px; }
.site-nav a { font-weight: 700; }
.product-card { border-width: 2px; }
.product-card:hover { transform: translateY(-2px); }
.cat { align-self: flex-start; width: fit-content; background: var(--accent); color: var(--text); font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.steps li { position: relative; }
.step { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--main); color: #FFFFFF; font-size: 16px; }
.doc h2.rule { border-bottom: 3px solid var(--accent); }

/* ── 追加ページ（ご利用ガイド・よくある質問・お問い合わせ・注文完了・404。2026-11-10） ── */
.doc ol { margin: 0; padding-left: 1.4em; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 12px; padding: 16px 20px; font-weight: 700; color: var(--main); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; font-family: var(--font-head); }
.faq summary::after { content: "+"; flex: none; margin-left: auto; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 12px 20px 16px; border-top: 1px solid var(--line-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center-box { align-items: center; text-align: center; gap: 20px; padding-top: 88px; padding-bottom: 104px; }
.center-box .btn-row { justify-content: center; }
.contact h2.plain { margin-bottom: 4px; }
.contact > div { margin-top: 16px; }

/* 商品名を言葉の途中で折らない（Chrome/Edge の文節区切り。2026-11-13） */
.product h1, .pname { word-break: auto-phrase; }
