:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #f8f8f6;
  --ink: #141414;
  --muted: #6d6d68;
  --line: #e3e3de;
  --line-strong: #cfcfc8;
  --accent: #141414;
  --accent-ink: #ffffff;
  --focus: #3b6cff;
  --ok: #1f8a4c;
  --ok-bg: #e8f5ed;
  --review: #a35d00;
  --review-bg: #fff4e0;
  --pending: #3d4f73;
  --pending-bg: #ebeff7;
  --error: #c0362c;
  --error-bg: #fdecea;
  --unset-bg: #fffbe8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .04);
  color-scheme: light;
}

/* お客さんの画面（always-light）は、黒い服の写真が見えるよう、スマホがダークモードでも白い背景のまま */
@media (prefers-color-scheme: dark) {
  :root:not(.always-light) {
    --bg: #0f0f10;
    --surface: #18181a;
    --surface-2: #1f1f22;
    --ink: #f2f2ef;
    --muted: #9b9b95;
    --line: #2b2b2f;
    --line-strong: #3a3a3f;
    --accent: #f2f2ef;
    --accent-ink: #111111;
    --focus: #7b9bff;
    --ok: #5fcf8d;
    --ok-bg: #15291d;
    --review: #f0b357;
    --review-bg: #2e2312;
    --pending: #a8b8dc;
    --pending-bg: #1b2232;
    --error: #ff8a80;
    --error-bg: #2f1715;
    --unset-bg: #2a2614;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- ヘッダー ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 20px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-mark { font-weight: 800; letter-spacing: .14em; font-size: .95rem; }
.brand-sub { color: var(--muted); font-size: .8rem; }
.nav { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.nav a { padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: .85rem; color: var(--muted); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.nav a, .brand-mark { white-space: nowrap; }
@media (max-width: 520px) {
  .site-header { padding: 16px; }
  .brand-sub { display: none; }
  .page, .footer { padding-left: 16px; padding-right: 16px; }
  .panel { padding: 18px; }
}

.page { max-width: 1120px; margin: 0 auto; padding: 0 20px 64px; }

.hero { padding: 28px 0 28px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.25; letter-spacing: -.01em; }
.hero p { margin: 0; color: var(--muted); max-width: 640px; }

/* ---- 告知 ---- */
.notices { display: grid; gap: 8px; margin-bottom: 20px; }
.notices:empty { display: none; }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem;
  background: var(--surface); border: 1px solid var(--line);
}
.notice strong { display: block; }
.notice p { margin: 2px 0 0; color: var(--muted); }
.notice .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex: none; background: var(--muted); }
.notice.error .dot { background: var(--error); }
.notice.review .dot { background: var(--review); }
.notice.pending .dot { background: var(--pending); }
.notice.ok .dot { background: var(--ok); }

/* ---- レイアウト ---- */
.grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
@media (max-width: 880px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 20px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.panel-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.step { font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.panel h2 { margin: 0; font-size: 1.05rem; letter-spacing: .01em; }
.panel-head .tag { margin-left: auto; }
.hint { color: var(--muted); font-size: .85rem; margin: 0 0 12px; }

/* ---- アップロード ---- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 180px; padding: 24px 16px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--ink); }
.dropzone-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-size: 1.2rem; }
.dropzone-main { font-weight: 600; }
.dropzone small { color: var(--muted); }

.thumbs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.thumb .remove {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: .9rem; cursor: pointer; line-height: 1;
}
.thumb figcaption { font-size: .72rem; color: var(--muted); padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- 入力 ---- */
.qty { display: flex; align-items: center; gap: 10px; }
.qty input[type="number"] { width: 140px; font-size: 1.4rem; font-weight: 700; padding: 8px 14px; font-variant-numeric: tabular-nums; }
.qty span { color: var(--muted); }

input[type="text"], input[type="number"], select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 7px 10px; min-width: 0; width: 100%;
}
input.unset, select.unset { background: var(--unset-bg); }
input.invalid { border-color: var(--error); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .9rem;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  text-decoration: none;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-large { width: 100%; padding: 14px 20px; font-size: 1rem; margin-top: 20px; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-text { border: 0; background: none; color: var(--error); padding: 4px 6px; font: inherit; font-size: .8rem; cursor: pointer; }
.btn-hint { margin: 10px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* ---- タグ ---- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.tag.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.tag.review { background: var(--review-bg); color: var(--review); border-color: transparent; }
.tag.pending { background: var(--pending-bg); color: var(--pending); border-color: transparent; }
.tag.error { background: var(--error-bg); color: var(--error); border-color: transparent; }

/* ---- 結果（空の状態） ---- */
.empty { text-align: center; color: var(--muted); padding: 40px 12px; }
.empty .shirt { width: 88px; height: 88px; margin: 0 auto 12px; opacity: .5; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 24px 0; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--ink); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- 解析結果 ---- */
.positions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .positions { grid-template-columns: minmax(0, 1fr); } }
.pos { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--surface-2); }
.pos.has { background: var(--surface); border-color: var(--line-strong); }
.pos.review { border-color: var(--review); background: var(--review-bg); }
.pos-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pos-name { font-weight: 700; }
.pos-size { font-size: 1.05rem; font-weight: 700; margin: 6px 0 2px; }
.pos-size.dim { color: var(--muted); font-weight: 500; font-size: .9rem; }
.pos-reason { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.pos-vis { font-size: .72rem; color: var(--muted); margin-top: 6px; }
.meta { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.extra { margin-top: 12px; }

/* ---- 見積もり ---- */
.result-card { border-radius: var(--radius-sm); padding: 20px; }
.result-card.review { background: var(--review-bg); }
.result-card.pending { background: var(--pending-bg); }
.result-card.error { background: var(--error-bg); }
.result-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
.result-card.review .result-title { color: var(--review); }
.result-card.pending .result-title { color: var(--pending); }
.result-card.error .result-title { color: var(--error); }
.result-card p { margin: 4px 0; }
.result-card ul { margin: 8px 0 4px; padding-left: 1.2em; }
.result-card .sub { color: var(--muted); font-size: .85rem; }

.order-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.order-line b { color: var(--ink); font-weight: 600; }

.total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 4px; }
.total-amount { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.total-note { color: var(--muted); font-size: .9rem; }
.per-shirt { color: var(--muted); margin: 0 0 16px; font-size: .9rem; }

.quote-table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.quote-table th, .quote-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.quote-table thead th { font-size: .75rem; color: var(--muted); font-weight: 600; }
.quote-table .num { text-align: right; white-space: nowrap; }
.quote-table tfoot th { text-align: right; font-weight: 500; color: var(--muted); }
.quote-table tfoot tr:last-child th, .quote-table tfoot tr:last-child td { color: var(--ink); font-weight: 800; border-bottom: 0; }

.footer { max-width: 1120px; margin: 0 auto; padding: 0 20px 40px; font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---- 管理者画面 ---- */
.toolbar { position: sticky; top: 10px; z-index: 2; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; }
.toolbar .buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.save-state { margin: 0; font-size: .85rem; color: var(--muted); }
.save-state.dirty { color: var(--review); font-weight: 600; }
.table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.price-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .88rem; }
.price-table th, .price-table td { padding: 5px 6px; text-align: left; }
.price-table thead th { font-size: .75rem; color: var(--muted); font-weight: 600; vertical-align: bottom; }
.price-table tbody th { font-weight: 500; white-space: nowrap; padding-right: 14px; }
.price-table tr.group th, .price-table tr.group td { border-top: 1px solid var(--line); padding-top: 10px; }
.price-table th .grp { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.price-table input { min-width: 84px; max-width: 160px; text-align: right; font-variant-numeric: tabular-nums; }
.tier-head { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.tier-head input { width: 60px; min-width: 60px; }
.tier-head .btn-text { padding: 2px 4px; }
.add-col { margin-top: 14px; }
.plus { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; }
.rules { display: grid; gap: 14px; }
.rule { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 16px; background: var(--surface-2); display: grid; gap: 12px; }
.rule-head { display: flex; align-items: center; gap: 10px; }
.rule-head input[type="text"] { font-weight: 700; max-width: 360px; }
.rule-head .btn-text { margin-left: auto; white-space: nowrap; }
.rule-cond { display: grid; gap: 6px; }
.rule-label { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.cond-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .9rem; }
.cond-line input[type="checkbox"] { width: 16px; height: 16px; }
.cond-line input.small { width: 64px; text-align: right; }
.cond-line select { width: auto; }
.add-cond { color: var(--ink); justify-self: start; padding-left: 0; }
.cond-line .or { color: var(--muted); font-size: .8rem; margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); cursor: pointer; }
.rule-cond .hint { margin: 0; }
.rule-per { display: flex; align-items: center; gap: 10px; }
.rule-per select { width: auto; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; font-size: .85rem; }
.field > span { color: var(--muted); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-weight: 600; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.check small { display: block; font-weight: 400; color: var(--muted); }
details summary { cursor: pointer; }
details ul { margin: 8px 0 0; padding-left: 1.2em; font-size: .85rem; }
.preview-out { margin-top: 16px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

/* 見積もりに含めたプリント */
.print-summary { margin: 4px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.print-summary-title { margin: 0 0 10px; font-size: .85rem; font-weight: 700; }
.print-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.print-chips li { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: .9rem; }
.print-chips li span { color: var(--muted); font-size: .82rem; }
.result-card + .print-summary { margin-top: 12px; }

/* 枚数の横の「アイテム」選択 */
.qty { flex-wrap: wrap; }
.garment { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 4px 6px 4px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.garment-label { color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.garment select { width: auto; border-radius: 999px; padding: 6px 10px; font-weight: 700; background: var(--surface); }
.garment-note { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.garment-note:empty { display: none; }
.garment-note .spinner { width: 12px; height: 12px; }
.print-summary-item { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.print-summary-item span { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* 見積もり：1枚あたりを大きく、合計はその下 */
.total-label { flex-basis: 100%; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.sum-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 2px 0 16px; color: var(--muted); font-size: .95rem; }
.sum-line b { color: var(--ink); font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 問い合わせ */
.inquiry { margin-top: 18px; }
.inquiry:empty { display: none; }
.result-card.done { background: var(--ok-bg); }
.result-card.done .result-title { color: var(--ok); }

/* 管理者：お客さん・問い合わせ */
.customer-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: end; }
@media (max-width: 720px) { .customer-form { grid-template-columns: minmax(0, 1fr); } }
.message-line { min-height: 1.4em; margin: 10px 0; font-size: .85rem; color: var(--ok); }
.customer { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 8px; }
.customer.inactive { opacity: .6; }
.customer-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.customer-head .hint { margin: 0; }
.customer-link { display: flex; gap: 8px; }
.customer-link input { font-size: .8rem; color: var(--muted); }
.customer-link .btn { white-space: nowrap; }
.customer-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.customer-actions .btn-text { color: var(--muted); }
.panel-head .btn { margin-left: auto; padding: 5px 12px; font-size: .8rem; }
.inquiry-card { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 10px; }
.inquiry-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.inquiry-head .tag { margin-left: auto; }
.inquiry-detail { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .9rem; }
.inquiry-detail dt { color: var(--muted); }
.inquiry-detail dd { margin: 0; }
.inquiry-images { display: flex; gap: 8px; flex-wrap: wrap; }
.inquiry-images img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }

/* お客さんの画面：見出しやロゴを置かず、すぐ「01 完成イメージ画像」から始める */
.page-simple { padding-top: 24px; padding-bottom: 40px; }

/* お客さんの画面：枠も線も使わず、余白も詰めて、縦の1画面に多く収める */
.page-simple { padding-top: 14px; padding-bottom: 24px; }
.page-simple .grid { gap: 0 24px; }
.page-simple .stack { gap: 0; }
.page-simple .panel { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 18px; }
.page-simple .panel-head { margin-bottom: 6px; }
.page-simple .panel h2 { font-size: .95rem; }
.page-simple .hint { font-size: .78rem; margin-bottom: 8px; line-height: 1.5; }
.page-simple .dropzone { min-height: 0; padding: 14px 12px; gap: 2px; flex-direction: row; flex-wrap: wrap; justify-content: center; }
.page-simple .dropzone-icon { width: 26px; height: 26px; font-size: 1rem; }
.page-simple .dropzone small { flex-basis: 100%; font-size: .72rem; }
.page-simple .thumbs { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin-top: 8px; }
.page-simple .thumb figcaption { display: none; }
.page-simple .thumb .remove { width: 22px; height: 22px; top: 4px; right: 4px; font-size: .8rem; }
.page-simple .qty { gap: 6px 8px; }
.page-simple .qty input[type="number"] { width: 96px; font-size: 1.15rem; padding: 5px 10px; }
.page-simple .garment { margin-left: 4px; }
.page-simple .btn-large { margin-top: 10px; padding: 11px 16px; }
.page-simple .btn-hint { margin-top: 4px; font-size: .75rem; }
.page-simple .btn-hint:empty { display: none; }
.page-simple .total { margin: 0; }
.page-simple .total-amount { font-size: 2rem; }
.page-simple .sum-line { margin: 0 0 10px; font-size: .88rem; }
.page-simple .sum-line b { font-size: 1.15rem; }
.page-simple .print-summary { padding: 10px 12px; margin: 0 0 8px; }
.page-simple .print-summary-item { margin-bottom: 6px; }
.page-simple .print-summary-title { margin-bottom: 6px; font-size: .8rem; }
.page-simple .print-chips li { padding: 3px 10px; font-size: .82rem; }
.page-simple .meta { margin-top: 6px; font-size: .72rem; line-height: 1.5; }
.page-simple .inquiry { margin-top: 10px; }
.page-simple .positions { gap: 6px; }
.page-simple .pos { padding: 10px; }
.page-simple .pos-size { margin: 2px 0 0; font-size: .95rem; }
.page-simple .pos-reason { font-size: .74rem; line-height: 1.45; }
.page-simple .pos-vis { margin-top: 2px; }

/* 上の行にアイテム（右にAIの案内）、下の行に枚数 */
.qty-row { flex-wrap: wrap; gap: 8px; }
.page-simple .qty-row input[type="number"] { width: 96px; flex: none; }
.qty-row > span:not(.garment-note):not(.qty-break) { flex: none; }
.qty-row .garment { flex: 0 1 auto; min-width: 0; margin-left: 0; padding: 3px 4px 3px 10px; gap: 6px; }
.qty-row .garment select { min-width: 0; max-width: 160px; padding: 5px 8px; }
.qty-row .garment-note { flex: 0 1 auto; }
.qty-break { flex-basis: 100%; height: 0; }

/* お客さんの画面の上の帯（ヘッダー画像）。横幅いっぱいに表示し、広い画面では中身と同じ幅までにする */
.banner { background: #00adbb; }  /* 画像の地の色と同じ */
.banner img { display: block; width: 100%; max-width: 1120px; height: auto; margin: 0 auto; }

/* ---- 画像あり／画像なしの切り替え ---- */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.mode-switch button { font: inherit; font-size: .85rem; font-weight: 600; padding: 8px 6px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.mode-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.mode-switch button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- 画像なし：場所と大きさ ---- */
.shirt-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 360px; margin: 0 auto 10px; }
.shirt { width: 100%; height: auto; display: block; }
.shirt-body { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; stroke-linejoin: round; }
.shirt-print { fill: var(--accent); opacity: .82; }
.shirt-photo .shirt-print { fill: #00adbb; opacity: .9; } /* 黒い服の写真の上では、看板の水色で見せる */
.shirt-detail { fill: none; stroke: var(--line-strong); stroke-width: .8; stroke-linejoin: round; stroke-linecap: round; }
.shirt-label { font-size: 6px; fill: var(--muted); }
.pos-picker { display: grid; gap: 6px; }
.pos-row { display: grid; grid-template-columns: 2.6em 1fr; align-items: center; gap: 8px; }
.pos-row-name { font-size: .85rem; font-weight: 600; }
.seg { display: grid; grid-template-columns: .8fr 1.3fr 1fr 1fr; gap: 3px; padding: 3px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.seg.seg-2 { grid-template-columns: .8fr 1.3fr; max-width: 62%; }
.seg.seg-3 { grid-template-columns: .8fr 1fr 1fr; }
.seg button { font: inherit; font-size: .78rem; padding: 7px 2px; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 1px var(--line-strong); }
.seg button:not([aria-pressed="true"]):first-child { color: var(--muted); }
.seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.size-guide { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; font-size: .74rem; color: var(--muted); }
.size-guide b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.inquiry-message { width: 100%; box-sizing: border-box; margin-top: 10px; padding: 8px 10px; font: inherit; font-size: .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); resize: vertical; }
.manual-garment { margin-bottom: 14px; }
.manual-garment .garment { margin-left: 0; }
.shirt-photo image { mix-blend-mode: multiply; } /* 写真の白い背景を、画面の背景色になじませる */
.manual-closing { margin: 14px 0 0; font-size: .9rem; line-height: 1.7; }

/* LINE で問い合わせるボタン（LINE の緑） */
.btn-line { display: block; text-align: center; text-decoration: none; background: #06c755; color: #fff; border-color: #06c755; }
.btn-line:hover { background: #05b34c; border-color: #05b34c; }
.mode-switch[hidden] { display: none; }
