/* ============================================================
   DemoShop MEMBERS — 別デザイン版（マニュアル／MNCT系の世界観）
   syncflows-manual と同じデザイン言語を会員アプリUIへ移植：
   ・モノクロ（墨・ペーパー・muted・罫線）／差し色の背景ボックスは使わない
   ・和文ゴシック（Hiragino Kaku Gothic系）／セリフは使わない
   ・角は立てる（border-radius 0）／影は使わない／細罫線と余白のリズムで区切る
   ・見出し・価格は太字＋広めのレタースペーシング、タブラー数字
   ※クラス名は本番CSS(style.css)と共通。dist-monoでは本ファイルをstyle.cssとして配信する。
   ============================================================ */

:root {
  --bg: #f7f6f3;        /* paper */
  --paper: #ffffff;     /* card */
  --ink: #0a0a0a;
  --ink-soft: #6a6a68;  /* muted */
  --line: #dad9d5;
  --line-dark: #c4c2bc;
  --ghost: #e3e1dc;
  --danger: #9a3630;
  --ok: #3f5c46;
  --line-green: #06c755; /* LINEのブランド色だけは機能識別のため残す */
  --sans: "Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic Medium","Yu Gothic",Arial,"Helvetica Neue",sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

/* ===== 認証画面 ===== */
#auth-screen { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 20px; }
.auth-card { width: 100%; max-width: 400px; background: var(--paper); border: 1px solid var(--line); padding: 48px 34px 38px; }
.auth-logo { margin-bottom: 34px; }
.brand-mark { font-size: 30px; font-weight: 700; letter-spacing: .12em; line-height: 1.1; }
.brand-sub { font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--ink-soft); margin-top: 10px; }
.brand-note { font-size: 11.5px; color: var(--ink-soft); margin-top: 18px; letter-spacing: .04em; padding-top: 16px; border-top: 1px solid var(--line); }

.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.auth-tab {
  flex: 1; padding: 12px 0; background: none; border: none;
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: var(--ink-soft); cursor: pointer; border-bottom: 1px solid transparent; margin-bottom: -1px;
}
.auth-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.auth-help { font-size: 11px; color: var(--ink-soft); text-align: center; margin-top: 18px; letter-spacing: .03em; }

/* ===== フォーム ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--ink-soft); margin-bottom: 7px; }
.form-input {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line-dark); border-radius: 0;
  font-family: var(--sans); font-size: 16px; background: var(--paper); color: var(--ink);
  transition: border-color .2s; appearance: none; -webkit-appearance: none;
}
.form-input:focus { outline: none; border-color: var(--ink); }
.form-input::placeholder { color: #b6b3ab; }
.form-note { font-size: 11px; color: var(--ink-soft); margin-top: 5px; letter-spacing: .03em; }
.form-row { display: flex; gap: 8px; }
.form-group.half { flex: 1; }

.primary-btn {
  display: inline-block; padding: 15px 24px; background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: 0;
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-indent: .18em;
  cursor: pointer; transition: opacity .2s;
}
.primary-btn:active { opacity: .82; }
.primary-btn:disabled { background: #b8b6ae; border-color: #b8b6ae; }
.primary-btn.full { width: 100%; margin-top: 10px; }

.error-msg { color: var(--danger); font-size: 12.5px; text-align: center; margin-top: 14px; min-height: 1.2em; letter-spacing: .03em; }

.consent-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ink); margin: 4px 2px 16px; cursor: pointer; }
.consent-row input { margin-top: 4px; flex: 0 0 auto; }
.consent-row a { color: var(--ink); text-underline-offset: 2px; }

/* ===== ヘッダー ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(247, 246, 243, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 15px 18px 13px;
}
.header-title { font-size: 20px; font-weight: 700; letter-spacing: .1em; line-height: 1.1; }
.header-members { font-size: 9px; font-weight: 700; letter-spacing: .34em; color: var(--ink-soft); vertical-align: 2px; margin-left: 3px; }
.header-sub { font-size: 11px; color: var(--ink-soft); letter-spacing: .06em; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { background: none; border: 1px solid var(--line-dark); border-radius: 0; width: 32px; height: 30px; font-size: 15px; color: var(--ink-soft); cursor: pointer; line-height: 1; }
.logout-btn { background: none; border: 1px solid var(--line-dark); border-radius: 0; padding: 7px 14px; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--ink-soft); cursor: pointer; }
.env-badge { display: inline-block; border: 1px solid var(--ink-soft); color: var(--ink-soft); background: none; font-size: 9px; font-weight: 700; letter-spacing: .18em; padding: 1px 7px; vertical-align: 3px; margin-left: 6px; }

/* ===== レイアウト ===== */
.container { max-width: 820px; margin: 0 auto; padding: 16px 14px 92px; }
.screen-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 16px 2px 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.item-count { font-size: 10.5px; font-weight: 700; color: var(--ink-soft); letter-spacing: .14em; margin: 14px 4px 12px; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--ink-soft); padding: 56px 12px; font-size: 13px; letter-spacing: .06em; }
.loading { text-align: center; padding: 56px 0; color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.spinner { width: 24px; height: 24px; margin: 0 auto 12px; border: 1px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== フィルター ===== */
.filter-bar { position: sticky; top: 60px; z-index: 40; background: var(--bg); padding: 12px 0 4px; }
.search-input { margin-bottom: 8px; background: var(--paper); }
.filter-row { display: flex; gap: 8px; }
.filter-select {
  flex: 1; min-width: 0; padding: 10px 26px 10px 11px;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .03em;
  border: 1px solid var(--line-dark); border-radius: 0; color: var(--ink);
  background: var(--paper) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' stroke='%236a6a68' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none; -webkit-appearance: none;
}
.gender-chips { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gender-chip {
  padding: 7px 18px; background: var(--paper); border: 1px solid var(--line-dark); border-radius: 0;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--ink-soft); cursor: pointer; transition: all .2s;
}
.gender-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ===== 商品グリッド ===== */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); overflow: hidden; cursor: pointer; transition: border-color .2s; }
.card:active { border-color: var(--ink); }
.card-image { aspect-ratio: 3 / 3.4; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.card-image.noimg { background: var(--ghost); border-bottom-color: transparent; }
.card-image.noimg::after { content: "DemoShop"; font-weight: 700; letter-spacing: .3em; color: #b7b3aa; font-size: 11px; }
.new-badge { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--ink); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .16em; padding: 3px 8px; }
.fav-heart {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 0;
  background: rgba(255,255,255,.9); color: #b7b3aa; cursor: pointer;
  font-size: 15px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.fav-heart.on { color: var(--ink); border-color: var(--ink); }

.fav-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.fav-filter-chip {
  padding: 7px 16px; background: var(--paper); border: 1px solid var(--line-dark); border-radius: 0;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--ink-soft); cursor: pointer;
}
.fav-filter-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.share-btn {
  margin-top: 8px; width: 100%; padding: 9px;
  background: none; border: 1px dashed var(--line-dark); border-radius: 0;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-soft); cursor: pointer;
}
.fav-brand-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fav-brand-chip {
  padding: 6px 12px; background: var(--paper); border: 1px solid var(--ink); border-radius: 0;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink); cursor: pointer;
}
.card-body { padding: 12px 13px 15px; }
.card-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--ink); text-transform: uppercase; }
.card-name { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.55; letter-spacing: .03em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 11px; color: var(--ink-soft); margin-top: 3px; letter-spacing: .05em; }
.card-sizes { font-size: 10.5px; color: var(--ink-soft); margin-top: 3px; letter-spacing: .06em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-price { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.price-row { display: flex; align-items: baseline; gap: 7px; }
.price-retail { font-size: 11.5px; color: #ada99f; text-decoration: line-through; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-off { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); border: 1px solid var(--line-dark); padding: 1px 5px; white-space: nowrap; }
.price-sale { font-size: 16px; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-tax { font-size: 10px; color: var(--ink-soft); letter-spacing: .02em; font-weight: 400; white-space: nowrap; }

/* ===== モーダル ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 10, .42); display: none; align-items: flex-end; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal.sheet { width: 100%; max-width: 580px; max-height: 90dvh; overflow-y: auto; background: var(--paper); border-top: 1px solid var(--line); padding: 26px 24px calc(24px + env(safe-area-inset-bottom)); animation: slideup .26s cubic-bezier(.2,.7,.3,1); }
@keyframes slideup { from { transform: translateY(48px); opacity: .5; } to { transform: none; opacity: 1; } }
.modal-title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.modal-product { font-size: 13px; letter-spacing: .03em; background: var(--bg); border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 16px; }

.detail-image { background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
.detail-image img { width: 100%; max-height: 340px; object-fit: contain; display: block; }
.detail-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.detail-thumbs:empty { display: none; }
.thumb { flex: 0 0 56px; width: 56px; height: 56px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 0; cursor: pointer; overflow: hidden; opacity: .6; transition: all .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active { border-color: var(--ink); opacity: 1; }
.detail-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-brand { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; color: var(--ink); text-transform: uppercase; cursor: pointer; }
.brand-star {
  background: none; border: 1px solid var(--line-dark); border-radius: 0;
  padding: 5px 12px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-soft); cursor: pointer; white-space: nowrap;
}
.brand-star.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-brand { cursor: pointer; }
.detail-desc {
  font-size: 12.5px; color: var(--ink); line-height: 1.9;
  letter-spacing: .02em; margin: 12px 2px 6px;
  padding: 12px 14px; background: var(--bg); border: 1px solid var(--line);
}
.detail-table { margin: 12px 0 4px; }
.detail-row { display: flex; justify-content: space-between; font-size: 13px; padding: 11px 2px; border-bottom: 1px solid var(--line); letter-spacing: .03em; }
.detail-row span { color: var(--ink-soft); letter-spacing: .1em; font-size: 10.5px; font-weight: 700; }
.detail-row b { font-weight: 700; }

.detail-size-group { margin: 18px 0 6px; }
.detail-size-group .form-label { margin-bottom: 10px; }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip { min-width: 52px; padding: 11px 15px; background: #fff; border: 1px solid var(--line-dark); border-radius: 0; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); cursor: pointer; text-align: center; font-variant-numeric: tabular-nums; transition: all .18s; }
.size-chip.selected { background: var(--ink); border-color: var(--ink); color: #fff; }

.detail-price { margin: 18px 2px 6px; display: flex; flex-direction: column; gap: 6px; }
.detail-price .price-row { gap: 10px; }
.detail-price .price-retail { font-size: 13.5px; }
.detail-price .price-sale { font-size: 24px; }

/* ゲスト（会場iPad）閲覧モード */
.guest-banner {
  display: block; text-align: center; text-decoration: none;
  background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; padding: 11px 14px;
}
.guest-banner b { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.primary-btn.line-cta { background: var(--line-green); border-color: var(--line-green); color: #fff; text-decoration: none; text-align: center; }

.recv-row { display: flex; gap: 8px; }
.recv-chip {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 8px; border: 1px solid var(--line-dark); border-radius: 0;
  font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: center;
}
.recv-chip input { accent-color: var(--ink); }

.confirm-terms { background: var(--bg); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 18px; }
.confirm-term { font-size: 12.5px; padding: 6px 0 6px 16px; letter-spacing: .03em; position: relative; }
.confirm-term::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 1px; background: var(--ink); }
.confirm-term b { color: var(--ink); font-weight: 700; }

.modal-actions { display: flex; gap: 10px; margin-top: 12px; }
.modal-actions.column { flex-direction: column; }
.modal-actions .primary-btn { width: 100%; }
.modal-cancel { flex: 1; padding: 14px; background: none; border: 1px solid var(--line-dark); border-radius: 0; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ink-soft); cursor: pointer; }
.modal-confirm { flex: 2; padding: 14px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; cursor: pointer; transition: opacity .2s; }
.modal-confirm:active { opacity: .82; }
.modal-confirm:disabled { background: #b8b6ae; border-color: #b8b6ae; }
.modal-confirm.full { flex: 1; }

.tel-link { display: block; width: 100%; padding: 13px; text-align: center; background: none; border: 1px solid var(--line-dark); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ink); text-decoration: none; }
.tel-link span { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.tel-link.line { background: var(--line-green); border-color: var(--line-green); color: #fff; }

/* ===== 取り置き一覧 ===== */
.reserve-note { font-size: 12px; color: var(--ink-soft); letter-spacing: .03em; background: var(--paper); border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 14px; }
.reserve-card { background: var(--paper); border: 1px solid var(--line); padding: 16px; margin-bottom: 12px; }
.reserve-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.reserve-date { font-size: 11px; color: var(--ink-soft); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.status-badge { font-size: 9.5px; font-weight: 700; letter-spacing: .16em; padding: 3px 11px; border: 1px solid; border-radius: 0; }
.status-badge.active { border-color: var(--ink); color: var(--ink); background: none; }
.status-badge.done { border-color: var(--ok); color: var(--ok); background: none; }
.status-badge.cancel { border-color: var(--line-dark); color: var(--ink-soft); background: none; }
.reserve-body { display: flex; gap: 13px; align-items: flex-start; }
.reserve-thumb { flex: 0 0 76px; width: 76px; height: 92px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.reserve-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reserve-thumb.noimg { background: var(--ghost); }
.reserve-thumb.noimg::after { content: "DemoShop"; font-size: 8px; font-weight: 700; letter-spacing: .16em; color: #b7b3aa; }
.reserve-info { flex: 1; min-width: 0; }
.reserve-name { font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.reserve-meta { font-size: 12px; color: var(--ink-soft); margin-top: 3px; letter-spacing: .04em; }
.reserve-price { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.reserve-deadline { font-size: 12px; margin-top: 8px; letter-spacing: .04em; }
.reserve-deadline b { font-weight: 700; font-variant-numeric: tabular-nums; }

.contact-row { display: flex; gap: 8px; margin-top: 14px; }
.contact-btn { flex: 1; padding: 11px 8px; text-align: center; text-decoration: none; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.contact-btn.line { background: var(--line-green); border-color: var(--line-green); }
.contact-icon { font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.contact-btn.tel .contact-icon { font-size: 14px; }
.contact-hours { font-size: 10.5px; color: var(--ink-soft); text-align: center; margin-top: 6px; letter-spacing: .06em; }
.cancel-btn { margin-top: 10px; width: 100%; padding: 10px; background: none; border: 1px solid var(--line-dark); border-radius: 0; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--danger); cursor: pointer; }

/* ===== 会員設定・規約 ===== */
.settings-info { font-size: 15px; font-weight: 700; letter-spacing: .05em; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.settings-links { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.settings-links a { font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; }
.settings-links .withdraw-link { color: var(--danger); }
.terms-body { white-space: pre-wrap; font-size: 12.5px; line-height: 1.9; color: var(--ink); max-height: 60vh; overflow-y: auto; background: var(--bg); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 16px; }

/* ===== ボトムナビ ===== */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: flex; background: rgba(247, 246, 243, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav-item { flex: 1; padding: 10px 0 8px; background: none; border: none; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-indent: .09em; color: var(--ink-soft); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; transition: color .2s; }
.nav-item.active { color: var(--ink); }
.nav-icon { width: 21px; height: 21px; }
.nav-badge { position: absolute; top: 5px; right: calc(50% - 26px); min-width: 15px; height: 15px; line-height: 14px; background: var(--ink); color: #fff; border-radius: 0; font-size: 9px; letter-spacing: 0; text-indent: 0; text-align: center; padding: 0 4px; font-variant-numeric: tabular-nums; }
.nav-badge:empty { display: none; }

/* ===== トースト ===== */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(16px); background: var(--ink); color: #fff; font-size: 12.5px; letter-spacing: .05em; padding: 12px 22px; max-width: 90vw; opacity: 0; pointer-events: none; transition: all .26s ease; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }
