/* スパイラルターンのテーマ(スキル spiralturn-theme): 白とブラッシュの面・主役だけグラデーション・文字は Zen Kaku Gothic New / 数字は Inter(2026-10-29 冨永社長「丸い字は子供っぽく信頼性に欠ける・大人っぽい字に」) */
:root {
  --st-grad: linear-gradient(110deg, #e3007f 0%, #ff4f8b 45%, #ff8a7a 80%, #ffb38a 100%);
  --st-pink: #e3007f; --st-pink-dark: #c4006d; --st-coral: #ff6f91; --st-blush: #fdf2f7;
  --st-line: #f6dbe8; --st-rule: #efe2ea; --st-navy: #12204f; --st-ink: #23253a; --st-muted: #6b6e80;
  --round: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --num: "Inter", "Zen Kaku Gothic New", sans-serif;
  --read: "Noto Sans JP", "Hiragino Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { word-break: auto-phrase; text-wrap: pretty; margin: 0; background: #fff; color: var(--st-ink); font-family: var(--round); font-weight: 500; font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--st-pink-dark); }
.st-num { font-family: var(--num); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.top { padding: 14px 16px; border-bottom: 1px solid var(--st-rule); }
.brand { text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; }
.brand-en { font-family: var(--num); font-weight: 700; letter-spacing: .12em; color: var(--st-navy); font-size: 15px; }
.brand-ja { color: var(--st-muted); font-size: 13px; }

main { max-width: 1040px; margin: 0 auto; padding: 16px 16px 40px; }

.hero { display: grid; gap: 16px; margin: 8px 0 24px; }
.hero-photo { margin: 0; border-radius: 20px; overflow: hidden; background: var(--st-blush); aspect-ratio: 4 / 3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.eyebrow { margin: 0; font-family: var(--num); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--st-coral); }
h1 { margin: 4px 0 8px; font-weight: 700; letter-spacing: .03em; color: var(--st-navy); font-size: 26px; line-height: 1.35; }
.price { margin: 0 0 12px; white-space: nowrap; }
.price .st-num { font-size: 34px; background-image: var(--st-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price .yen { font-weight: 700; font-size: 18px; margin-left: 2px; color: var(--st-navy); }
.price .tax { font-size: 14px; color: var(--st-muted); margin-left: 4px; }
.price .ship { display: block; font-family: var(--read); font-size: 15px; color: var(--st-muted); margin-top: 2px; }
.notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--st-blush); color: var(--st-navy); font-weight: 700; }
.nw { white-space: nowrap; }
.features { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.features li { position: relative; padding-left: 18px; font-size: 15px; }
.features li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--st-coral); }

.card { border: 1px solid var(--st-line); border-radius: 20px; background: #fff; padding: 20px 16px; margin-bottom: 20px; }
h2 { margin: 0 0 6px; font-weight: 700; letter-spacing: .03em; color: var(--st-navy); font-size: 19px; }
.card h2:not(:first-child) { margin-top: 26px; }
.note { margin: 0 0 12px; color: var(--st-muted); font-family: var(--read); font-size: 15px; }
.small { font-size: 14px; }
.center { text-align: center; }
.loading { color: var(--st-muted); }

.plans { display: grid; gap: 10px; }
.plan { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name head" "sub sub"; align-items: baseline;
  gap: 2px 12px; padding: 14px 16px 14px 46px; border: 2px solid var(--st-rule); border-radius: 16px; cursor: pointer; background: #fff; }
.plan input { position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; accent-color: var(--st-pink); margin: 0; }
.plan-name { grid-area: name; font-weight: 700; font-size: 17px; color: var(--st-navy); }
.plan-head { grid-area: head; font-size: 20px; color: var(--st-navy); white-space: nowrap; }
.plan-sub { grid-area: sub; color: var(--st-muted); font-family: var(--read); font-size: 15px; }
.plan.off { opacity: .55; cursor: not-allowed; }
.plan:has(input:checked) { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--st-grad) border-box; box-shadow: 0 4px 16px rgba(227, 0, 127, .12); }
.plan:has(input:focus-visible) { outline: 3px solid #ffb38a; outline-offset: 2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
@media (max-width: 379px) { .fields .f.half { grid-column: 1 / -1; } }   /* 360px では郵便番号と都道府県を縦に(「お選びください」が切れないように) */
.f { grid-column: 1 / -1; display: grid; gap: 4px; }
.f.half { grid-column: auto; }
.f > span { font-weight: 700; font-size: 15px; color: var(--st-navy); }
.f b { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--st-pink-dark); background: var(--st-blush); border-radius: 6px; padding: 1px 6px; }
input, select { font: 500 16px var(--read); color: var(--st-ink); padding: 12px; border: 1px solid #d9d4dc; border-radius: 12px; background: #fff; width: 100%; min-height: 48px; }
input:focus, select:focus { outline: none; border-color: var(--st-pink); box-shadow: 0 0 0 3px rgba(227, 0, 127, .12); }

.terms { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--st-blush); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--st-pink); }
.terms .note { margin: 8px 0 0; }

.summary { margin: 20px 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; justify-content: center; }
.summary strong { font-size: 26px; color: var(--st-navy); }
.error { color: #b42318; background: #fef3f2; border-radius: 10px; padding: 10px 12px; font-family: var(--read); font-size: 14px; margin: 8px 0; }
.btn-main { display: block; width: 100%; min-height: 56px; margin: 8px 0 10px; border: 0; border-radius: 999px; background-image: var(--st-grad); color: #fff;
  font: 700 18px var(--round); letter-spacing: .04em; cursor: pointer; box-shadow: 0 6px 18px rgba(227, 0, 127, .25); }
.btn-main:disabled { background: #e7e2e8; box-shadow: none; color: #8a8597; cursor: not-allowed; }

.info p { margin: 6px 0 0; font-family: var(--read); font-size: 15px; }

.foot { border-top: 1px solid var(--st-rule); padding: 20px 16px 32px; text-align: center; font-size: 13px; color: var(--st-muted); }
.foot a { display: inline-block; margin: 0 8px 6px; color: var(--st-muted); }
.foot p { margin: 8px 0 0; font-family: var(--num); }

body.testmode::before { content: "テストモード(実際の請求はされません)"; display: block; text-align: center; background: #fff7e6; color: #8a5a00; font-size: 13px; padding: 4px; }

/* 読み物のページ(規約・特商法) */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; font-family: var(--read); font-size: 15px; line-height: 1.85; }
.doc h1 { font-family: var(--round); font-size: 22px; }
.doc h2 { font-family: var(--round); font-size: 17px; margin-top: 24px; }
.doc table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.doc td, .doc th, .doc p, .doc li { overflow-wrap: anywhere; }
.doc h1 { max-width: 100%; }
#order-body > h2:first-child { margin-top: 28px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid var(--st-rule); }
.doc th { width: 34%; color: var(--st-navy); font-weight: 700; }
.done { text-align: center; padding: 48px 16px; }
.done h1 { background-image: var(--st-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* PC(768px 以上): 写真と文字を横に並べ、文字を少し大きく */
@media (min-width: 768px) {
  main { padding: 24px 24px 56px; }
  .hero { grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; margin: 16px 0 32px; }
  h1 { font-size: 34px; }
  .price .st-num { font-size: 44px; }
  .features li { font-size: 16px; }
  #order { max-width: 720px; margin: 0 auto 24px; padding: 28px 32px; }
  .info { max-width: 720px; margin: 0 auto; padding: 24px 32px; }
  h2 { font-size: 21px; }
  .plan-head { font-size: 22px; }
  .doc { font-size: 16px; }
  .doc h1 { font-size: 28px; }
}

/* 番号・住所・日付は途中で折らない */
#no, .doc .addr { white-space: nowrap; }

/* ============ 2026-10-29 パーツ全体のサイト化(一覧・商品・カート) ============ */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--st-line); border-radius: 999px;
  text-decoration: none; color: var(--st-navy); font-weight: 700; font-size: 15px; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background-image: var(--st-grad); color: #fff; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; }
.cart-count[hidden] { display: none; }
br.pc { display: none; }

.shop-hero { padding: 12px 0 8px; }
.shop-hero .lead { margin: 4px 0 0; font-family: var(--read); font-size: 15px; color: var(--st-muted); }
.cat-nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin: 4px 0 8px; position: sticky; top: 0; background: #fff; z-index: 2; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--st-blush); color: var(--st-navy); text-decoration: none; font-weight: 700; font-size: 14px; }
.cat { scroll-margin-top: 64px; margin-bottom: 28px; }
.cat h2 { margin-bottom: 12px; }
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--st-line); border-radius: 16px; text-decoration: none; color: var(--st-ink); background: #fff; }
.p-card:hover { box-shadow: 0 4px 16px rgba(227, 0, 127, .10); }
.p-photo { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; }
.p-photo img { width: 100%; height: 100%; object-fit: contain; }
.p-name { font-weight: 700; font-size: 15px; line-height: 1.45; color: var(--st-navy); margin-top: 4px; }
.p-price { font-size: 14px; color: var(--st-navy); }
.p-price .st-num { font-size: 18px; }
.p-price small { margin-left: 2px; color: var(--st-muted); font-size: 12px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 6px; background: #f3f1f5; color: var(--st-muted); font-weight: 700; }
.tag-hot { background: var(--st-blush); color: var(--st-pink-dark); }

.crumb { margin: 0 0 8px; font-size: 13px; color: var(--st-muted); font-family: var(--read); }
.crumb a { color: var(--st-muted); }
.item-photo { aspect-ratio: 1; background: #fff; border: 1px solid var(--st-rule); }
.item-photo img { object-fit: contain; }
.pick-title { margin: 8px 0 6px; font-weight: 700; color: var(--st-navy); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 2px solid var(--st-rule); border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--st-navy); background: #fff; }
.chip input:checked + span { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--st-grad) border-box; box-shadow: 0 3px 12px rgba(227, 0, 127, .12); }
.chip input:focus-visible + span { outline: 3px solid #ffb38a; outline-offset: 2px; }
.buy { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #d9d4dc; border-radius: 999px; flex: none; }
.qty .st-num { min-width: 32px; text-align: center; font-size: 18px; }
.qty-btn { width: 48px; height: 48px; border: 0; background: none; font-size: 22px; color: var(--st-navy); cursor: pointer; border-radius: 999px; }
.qty-btn:disabled { color: #c9c4cc; cursor: not-allowed; }
.btn-add { margin: 0; flex: 1; }
.added { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--st-blush); color: var(--st-navy); font-weight: 700; }
.item-info .desc { margin: 0 0 4px; font-family: var(--read); font-size: 15px; }
.item-info h2 { margin-top: 18px; font-size: 17px; }
.usage { margin: 14px 0 0; font-family: var(--read); font-size: 14px; color: var(--st-muted); }

.cart-main h1 { font-size: 24px; margin: 8px 0 12px; }
.lines { display: grid; gap: 10px; margin-bottom: 16px; }
.line { display: grid; grid-template-columns: 72px 1fr; grid-template-areas: "photo body" "photo total"; gap: 4px 12px; padding: 12px; border: 1px solid var(--st-line); border-radius: 16px; }
.line-photo { grid-area: photo; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #fff; }
.line-photo img { width: 100%; height: 100%; object-fit: contain; }
.line-body { grid-area: body; min-width: 0; }
.line-name { margin: 0; font-weight: 700; font-size: 15px; color: var(--st-navy); line-height: 1.45; }
.line-unit { margin: 2px 0 6px; font-size: 14px; color: var(--st-muted); }
.line-ctl { display: flex; align-items: center; gap: 12px; }
.qty-sm .qty-btn { width: 44px; height: 44px; }
.line-del { min-height: 44px; border: 0; background: none; color: var(--st-muted); text-decoration: underline; font: 500 14px var(--read); cursor: pointer; padding: 0 4px; }
.line-total { grid-area: total; margin: 0; text-align: right; color: var(--st-navy); }
.line-total .st-num { font-size: 18px; }
.more { margin: 6px 0 0; }
.tl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 8px; font-size: 16px; }
.tl dt { color: var(--st-muted); }
.tl dd { margin: 0; text-align: right; color: var(--st-navy); font-weight: 700; }
.empty { text-align: center; }
.empty p { margin: 8px 0 16px; }
.btn-sub { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--st-pink); color: var(--st-pink-dark); text-decoration: none; font-weight: 700; }

@media (min-width: 768px) {
  br.sp { display: none; }
  br.pc { display: inline; }
  .shop-hero { padding: 24px 0 8px; }
  .shop-hero .lead { font-size: 16px; }
  .p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .p-name { font-size: 16px; }
  .item-hero { grid-template-columns: 1fr 1fr; }
  .item-info { max-width: 720px; margin: 0 auto 24px; padding: 24px 32px; }
  .cart-main { max-width: 760px; }
  .cart-main h1 { font-size: 30px; }
  .line { grid-template-columns: 96px 1fr auto; grid-template-areas: "photo body total"; align-items: center; padding: 14px 18px; }
  .line-photo { width: 96px; height: 96px; }
  .line-name { font-size: 16px; }
  .cart-main #order { max-width: none; }
}
/* 360px でヘッダーの名前が2行に割れないように(確認者③ 2026-10-29) */
.brand, .cart-link { white-space: nowrap; }
@media (max-width: 379px) {
  .top { padding: 12px 12px; gap: 8px; }
  .brand { gap: 6px; }
  .brand-en { font-size: 14px; letter-spacing: .08em; }
  .brand-ja { font-size: 12px; }
  .cart-link { padding: 0 10px; font-size: 14px; }
}
/* 特商法の最終確認の表示(カート・お支払いの直前) */
.final { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 20px 0 4px; padding: 14px 16px; border-radius: 14px; background: #faf8fa; font-family: var(--read); font-size: 14px; }
.final dt { font-weight: 700; color: var(--st-navy); }
.final dd { margin: 0; color: var(--st-ink); }
/* 写真の並び・動画・品切れ(コンソールで入れた物・migration 331) */
.item-photo { aspect-ratio: auto; border: 0; background: transparent; overflow: visible; }
#main-photo { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--st-rule); border-radius: 20px; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid var(--st-rule); border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.on { border-color: var(--st-pink); }
.item-videos .video { margin: 12px 0 0; }
.item-videos video { width: 100%; border-radius: 12px; background: #000; }
.item-videos figcaption { font-size: 14px; color: var(--st-muted); margin-top: 4px; }
.chip.out span { color: #9a95a0; background: #f6f4f7; text-decoration: none; }
.chip.out input { cursor: not-allowed; }
.tag-out { background: #fef3f2; color: #b42318; }
@media (min-width: 768px) { .item-videos { max-width: 720px; margin: 0 auto 24px; padding: 24px 32px; } .thumb { width: 72px; height: 72px; } }
