/*
  Earth Point mockup — THE J.V. Brand Guide 準拠
  公式カラー: #141414 (60%) / #646464 (30%) / #B4B4B4 (10%) / base #FFFFFF
  参照: /Users/koiso/Documents/Claude/Projects/1.Philosophy/thejv-Brand.md
*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --brand-1: #141414;
  --brand-2: #646464;
  --brand-3: #B4B4B4;
  --bg: #FFFFFF;
  --surface: #FAFAFA;
  --surface-alt: #F2F2F2;
  --border: #E5E5E5;
  --text: #141414;
  --text-muted: #646464;
  --text-soft: #8A8A8A;

  --navy: var(--brand-1);
  --navy-light: #2B2B2B;
  --navy-pale: var(--surface-alt);
  --orange: var(--brand-1);
  --orange-light: var(--brand-2);
  --gold: var(--brand-2);

  /* 三医 — Member Tier Colors（下医=入会 → 上医=最上位） */
  --tier-gei: #1A1A1A;  /* 下医 — 病を医す */
  --tier-chui: #C8C8C8; /* 中医 — 人を医す */
  --tier-joi: #8E5CB5;  /* 上医 — 国を医す */
}

/* === 会員ランクバッジ === */
.rank-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 2px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
}
.rank-badge .dot { width: 8px; height: 8px; border-radius: 50%; display:inline-block; }
.rank-badge.tier-gei  .dot { background: var(--tier-gei); }
.rank-badge.tier-chui .dot { background: var(--tier-chui); border: 1px solid #999; }
.rank-badge.tier-joi  .dot { background: var(--tier-joi); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: var(--text); }
button, .btn { cursor: pointer; font-family: inherit; }

/* Tabular / number font — 金額・ポイントの視認性 */
.num, .money, .points, .tabular {
  font-family: "Inter", "IBM Plex Sans", "Noto Sans JP", sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "lnum";
}

/* ===== Header ===== */
.app-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.app-header .brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; border: none;
}
.app-header .brand:hover { border: none; }
.logo-mark { height: 28px; width: auto; display: block; }
.sub-brand {
  font-size: 13px; color: var(--text);
  font-weight: 600; letter-spacing: 0.02em;
  border-left: 1px solid var(--border);
  padding-left: 14px;
}
.admin-tag {
  background: var(--brand-1); color: white;
  font-size: 10px; padding: 2px 7px; border-radius: 2px;
  margin-left: 8px; letter-spacing: 0.15em; font-weight: 600;
}
.app-header .user-meta {
  display: flex; align-items: center; gap: 20px; font-size: 13px;
}
.app-header .balance-pill {
  background: var(--brand-1); color: white;
  padding: 7px 16px; border-radius: 2px;
  font-weight: 600; font-size: 12px; letter-spacing: 0.05em;
}
.app-header .balance-pill .num { font-family: inherit; }
.app-header .user-name { color: var(--text-muted); font-size: 13px; }

/* ===== Layout ===== */
.app-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 63px); }
.sidebar {
  background: var(--bg); border-right: 1px solid var(--border);
  padding: 28px 0;
}
.sidebar .nav-section { padding: 0 16px; margin-bottom: 28px; }
.sidebar .nav-section .label {
  font-size: 10px; color: var(--text-soft); letter-spacing: 0.15em;
  text-transform: uppercase; padding: 0 10px 10px; font-weight: 600;
}
.sidebar a {
  display: block; padding: 10px 12px;
  color: var(--text-muted); font-size: 14px;
  border: none; border-left: 2px solid transparent;
}
.sidebar a:hover { color: var(--text); border-left-color: var(--border); }
.sidebar a.active { color: var(--text); border-left-color: var(--brand-1); font-weight: 600; }

.main { padding: 40px 48px; max-width: 1200px; }

/* ===== Typography ===== */
.page-title {
  font-size: 28px; font-weight: 700; color: var(--text);
  margin: 0 0 10px; letter-spacing: 0.02em; line-height: 1.4;
}
.page-lead { color: var(--text-muted); margin: 0 0 36px; font-size: 14px; }
h2.section-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding-bottom: 10px; border-bottom: 1px solid var(--brand-1);
  margin: 44px 0 20px;
}

/* ===== Cards ===== */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 2px; padding: 28px;
}
.card + .card { margin-top: 16px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 2px;
  border: 1px solid transparent; font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em; transition: all 0.15s ease;
  text-decoration: none; min-height: 48px; /* タッチターゲット確保 */
  line-height: 1.4;
}
.btn:hover { border-bottom: 1px solid transparent; }
.btn-primary { background: var(--brand-1); color: white; }
.btn-primary:hover { background: #000; color: white; }
.btn-accent { background: var(--brand-1); color: white; }
.btn-accent:hover { background: #000; color: white; }
.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--brand-1);
}
.btn-outline:hover { background: var(--brand-1); color: white; }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ===== Forms ===== */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 2px; font-size: 15px; font-family: inherit;
  background: white; color: var(--text); min-height: 48px;
}
textarea { min-height: auto; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand-1);
}
label {
  display: block; font-size: 12px; font-weight: 600;
  margin-bottom: 8px; color: var(--text);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.field { margin-bottom: 20px; }
.help-text { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ===== Product grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 2px;
  overflow: hidden; transition: border-color 0.15s ease;
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
}
.product-card:hover { border-color: var(--brand-1); border-bottom-color: var(--brand-1); }
.product-card .thumb {
  height: 160px;
  background: var(--brand-1);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.25em; font-weight: 500;
}
.product-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card .category {
  font-size: 10px; color: var(--text-soft); letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 8px; font-weight: 600;
}
.product-card .name {
  font-weight: 700; font-size: 15px; margin-bottom: 16px; line-height: 1.6;
  color: var(--text);
}
.product-card .price-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
}
.product-card .price {
  font-weight: 700; font-size: 18px; color: var(--text);
  font-family: "Inter", "IBM Plex Sans", "Noto Sans JP", sans-serif;
  font-variant-numeric: tabular-nums;
}
.product-card .reward {
  background: var(--surface-alt); color: var(--text);
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 2px;
  letter-spacing: 0.05em;
  font-family: "Inter", "IBM Plex Sans", "Noto Sans JP", sans-serif;
  font-variant-numeric: tabular-nums;
}

/* ===== Category pills ===== */
/* Global tabs strip — outside main column */
.global-tabs {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.global-tabs-inner {
  max-width: 1380px; margin: 0 auto; padding: 0 24px;
}

/* === タブで絞り込んだ時の表示制御 === */
/* 「すべて以外」のフィルタ中は、ヒーロー類を隠す */
body[data-filter]:not([data-filter="all"]) .page-eyebrow,
body[data-filter]:not([data-filter="all"]) h1.page-title,
body[data-filter]:not([data-filter="all"]) main .page-lead,
body[data-filter]:not([data-filter="all"]) .featured-strip {
  display: none;
}
/* 該当しないセクションは隠す */
body[data-filter="community"]   .cat-section:not([data-cat="community"]),
body[data-filter="training"]    .cat-section:not([data-cat="training"]),
body[data-filter="consulting"]  .cat-section:not([data-cat="consulting"]),
body[data-filter="analysis"]    .cat-section:not([data-cat="analysis"]),
body[data-filter="tools"]       .cat-section:not([data-cat="tools"]),
body[data-filter="food"]        .cat-section:not([data-cat="food"]),
body[data-filter="goods"]       .cat-section:not([data-cat="goods"]) {
  display: none;
}

/* NEW バッジ（タブ用） */
.category-pill .new-badge {
  position: absolute; top: 6px; left: 8px;
  font-family: Inter, sans-serif; font-size: 8px; font-weight: 700;
  color: #fff; background: #141414; padding: 1px 5px; border-radius: 1px;
  letter-spacing: 0.1em;
}
/* 該当セクションは番号を消してすっきり見せる */
body[data-filter]:not([data-filter="all"]) .cat-section-head .num {
  display: none;
}
body[data-filter]:not([data-filter="all"]) .cat-section-head {
  grid-template-columns: 1fr auto;
}
body[data-filter]:not([data-filter="all"]) .cat-section {
  margin-top: 32px;
}

.category-pills {
  display: flex; gap: 0; margin: 0;
  padding: 0;
  overflow-x: auto;
}
.category-pill {
  flex: 1 1 0; min-width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 10px 14px;
  background: transparent; border: 0;
  border-bottom: 2px solid transparent;
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.04em; text-decoration: none;
  position: relative;
  transition: color 0.15s, border-color 0.15s;
}
.category-pill .ic {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); transition: color 0.15s, transform 0.2s;
}
.category-pill .ic svg { width: 100%; height: 100%; }
.category-pill .label-jp {
  font-family: "Noto Sans JP", sans-serif; font-size: 13px; letter-spacing: 0.06em;
  margin-top: 2px;
}
.category-pill .label-en {
  font-family: Inter, sans-serif; font-size: 9px; letter-spacing: 0.25em;
  color: var(--text-soft); text-transform: uppercase; font-weight: 600;
  margin-top: -2px;
}
.category-pill .count {
  position: absolute; top: 12px; right: 14px;
  font-family: Inter, sans-serif; font-size: 10px; font-weight: 700;
  color: var(--text-soft); letter-spacing: 0.05em;
  padding: 1px 6px; background: var(--surface); border-radius: 8px; min-width: 16px; text-align: center;
}
.category-pill:hover { color: var(--text); border-bottom-color: transparent; }
.category-pill:hover .ic { color: var(--text); transform: translateY(-1px); }
.category-pill:hover .label-en { color: var(--text-muted); }
.category-pill.active { color: var(--text); border-bottom-color: var(--text); }
.category-pill.active .ic { color: var(--text); }
.category-pill.active .label-en { color: var(--text); }
.category-pill.active .count { background: var(--text); color: #fff; }
@media (max-width: 720px) {
  .category-pill .label-en { display: none; }
  .category-pill { min-width: 78px; padding: 14px 6px 10px; }
  .category-pill .ic { width: 28px; height: 28px; }
  .category-pill .label-jp { font-size: 12px; }
}

/* ===== 今月のおすすめ ヒーロー特集 ===== */
.featured-strip { margin: 0 0 36px; }
.featured-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.featured-head .h {
  font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 26px;
  letter-spacing: 0.03em; color: var(--text); margin: 0;
}
.featured-head .lead { font-size: 13px; color: var(--text-muted); margin: 0; max-width: 480px; line-height: 1.85; }
.featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 580px;
}
.featured-card.big { grid-row: 1 / 3; }
.featured-card.big .vis { height: 100%; min-height: 380px; }
.featured-card.big .body { padding: 24px 28px; }
.featured-card.big .vis-overlay .ttl { font-size: 22px; line-height: 1.5; }
.featured-card.big .price-row .p { font-size: 24px; }
@media (max-width: 980px) {
  .featured-grid { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .featured-card.big { grid-row: auto; }
  .featured-card.big .vis { min-height: 240px; }
}

.featured-card {
  position: relative; overflow: hidden; text-decoration: none; color: var(--text);
  border: 1px solid var(--border); transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.featured-card:hover { border-color: var(--brand-1); transform: translateY(-2px); border-bottom-color: var(--brand-1); }
.featured-card .vis {
  position: relative; height: 240px; overflow: hidden;
  background-size: cover; background-position: center; background-color: #141414;
}
.featured-card .vis::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  pointer-events: none;
}
.featured-card .vis-overlay {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1;
  display: flex; flex-direction: column; gap: 8px;
}
.featured-card .vis-overlay .pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  background: rgba(255,255,255,0.95); color: #141414; border-radius: 2px; align-self: flex-start;
}
.featured-card .vis-overlay .ttl {
  color: #fff; font-weight: 700; font-size: 16px; line-height: 1.55;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.featured-card .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.featured-card .meta { font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.featured-card .desc { font-size: 13px; color: var(--text); line-height: 1.85; margin: 0; }
.featured-card .price-row {
  display: flex; justify-content: space-between; align-items: end;
  border-top: 1px solid var(--border); padding-top: 14px;
}
.featured-card .price-row .p { font-family: Inter, sans-serif; font-weight: 700; font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.featured-card .price-row .r { font-size: 11px; color: var(--text-muted); padding: 4px 10px; background: var(--surface-alt); border-radius: 2px; font-weight: 600; }

/* ===== 動画埋め込み（商品詳細用） ===== */
.video-embed { position: relative; width: 100%; padding-top: 56.25%; background: #141414; border:1px solid var(--border); margin: 16px 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.7; }

/* ===== カテゴリ・セクション見出し ===== */
.cat-section { margin: 0 0 64px; padding-top: 8px; }
.cat-section:last-child { margin-bottom: 0; }
.cat-section-head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline; gap: 18px;
  padding: 0 0 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cat-section-head .num {
  font-family: Inter, sans-serif; font-weight: 700;
  font-size: 32px; letter-spacing: 0; color: var(--text-soft);
  line-height: 1; font-variant-numeric: tabular-nums;
  align-self: end;
}
.cat-section-head .num .total {
  font-size: 12px; color: var(--text-soft); margin-left: 2px; font-weight: 500;
}
.cat-section-head .titlewrap { display: flex; flex-direction: column; gap: 6px; }
.cat-section-head .h {
  font-family: "Noto Serif JP", serif; font-weight: 700;
  font-size: 24px; letter-spacing: 0.04em; color: var(--text); margin: 0; line-height: 1.4;
}
.cat-section-head .en {
  font-family: Inter, sans-serif; font-size: 11px; letter-spacing: 0.3em;
  color: var(--text-soft); text-transform: uppercase; font-weight: 600;
}
.cat-section-head .lead {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.85; max-width: 320px; text-align: right;
  align-self: end; margin: 0;
}
@media (max-width: 720px) {
  .cat-section-head { grid-template-columns: 48px 1fr; }
  .cat-section-head .lead { grid-column: 1 / 3; text-align: left; max-width: 100%; }
  .cat-section-head .num { font-size: 24px; }
}

/* ===== テキストベースのサムネ（画像なし時）===== */
.product-card .thumb:not([style*="background-image"]) {
  background: linear-gradient(135deg, #141414 0%, #2a2a2a 60%, #1a1a1a 100%);
  position: relative; overflow: hidden;
  font-family: Inter, sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: 0.32em;
}
.product-card .thumb:not([style*="background-image"])::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.product-card .thumb:not([style*="background-image"])::after {
  content: ""; position: absolute; left: 16px; bottom: 16px;
  width: 24px; height: 1px; background: rgba(255,255,255,0.4);
}

/* 商品名タイポ強化 */
.product-card .name {
  font-weight: 700; font-size: 15px; line-height: 1.6;
  letter-spacing: 0.01em; color: var(--text);
}

/* ===== 締めのコンテンプレーション ===== */
.shop-coda {
  margin-top: 80px; padding: 56px 0; text-align: center;
  border-top: 1px solid var(--border);
}
.shop-coda .eyebrow {
  font-family: Inter, sans-serif; font-size: 11px; letter-spacing: 0.3em;
  color: var(--text-soft); text-transform: uppercase; font-weight: 600;
  margin-bottom: 16px;
}
.shop-coda .h {
  font-family: "Noto Serif JP", serif; font-weight: 700;
  font-size: 22px; line-height: 1.7; letter-spacing: 0.04em;
  color: var(--text); margin: 0 0 14px; max-width: 640px; margin-left: auto; margin-right: auto;
}
.shop-coda .lead {
  font-size: 13px; line-height: 2; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 28px;
}
.shop-coda .actions { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.shop-coda .ghost-btn {
  padding: 12px 22px; font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  border: 1px solid var(--text); color: var(--text); background: #fff;
  text-decoration: none; transition: all 0.2s;
}
.shop-coda .ghost-btn:hover { background: var(--text); color: #fff; border-bottom-color: var(--text); }
.shop-coda .ghost-btn.solid { background: var(--text); color: #fff; }
.shop-coda .ghost-btn.solid:hover { background: #000; border-color: #000; }

/* ===== 商品カードの磨き込み ===== */
.product-card { transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,20,20,0.06); }
.product-card .thumb {
  overflow: hidden; position: relative;
}
.product-card .thumb[style*="background-image"] {
  transition: background-size 0.5s ease;
}
.product-card:hover .thumb[style*="background-image"] {
  filter: brightness(1.04);
}

/* featured-card さらに洗練 */
.featured-card .vis { transition: transform 0.5s ease; }
.featured-card:hover .vis { transform: scale(1.02); }
.featured-card { transition: transform 0.25s, border-color 0.2s, box-shadow 0.25s; }
.featured-card:hover { box-shadow: 0 12px 32px rgba(20,20,20,0.08); }

/* ページタイトル直下の small lead */
.page-eyebrow {
  font-family: Inter, sans-serif; font-size: 11px; letter-spacing: 0.3em;
  color: var(--text-soft); text-transform: uppercase; font-weight: 600;
  margin: 0 0 8px;
}

/* ===== Tables ===== */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border);
}
th {
  font-weight: 600; color: var(--text); background: var(--surface);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
tr:hover td { background: var(--surface); }
.num { text-align: right; }
.pt-pos { font-weight: 700; color: var(--text); }
.pt-neg { font-weight: 700; color: var(--text-muted); }

/* ===== Status badges ===== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 2px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-pending { background: var(--surface-alt); color: var(--text-muted); }
.badge-paid { background: var(--brand-1); color: white; }
.badge-fulfilled { background: var(--bg); color: var(--text); border: 1px solid var(--brand-1); }
.badge-cancelled { background: var(--bg); color: var(--text-soft); border: 1px solid var(--border); }
.badge-refunded { background: var(--bg); color: var(--text-muted); border: 1px dashed var(--text-muted); }

/* ===== Payment options ===== */
.payment-option {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--border); padding: 18px 20px;
  margin-bottom: 12px; cursor: pointer;
  transition: all 0.15s ease; position: relative;
  border-radius: 2px;
}
.payment-option:hover { border-color: var(--text-muted); }
.payment-option.selected { border-color: var(--brand-1); background: var(--surface); }
.payment-option input[type="radio"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-1); }
.payment-option .recommended-tag {
  position: absolute; top: -10px; left: 16px;
  background: var(--brand-1); color: white;
  font-size: 9px; letter-spacing: 0.15em; font-weight: 700;
  padding: 3px 10px; text-transform: uppercase;
}
.slider-box {
  background: var(--surface); padding: 20px;
  border: 1px solid var(--border); margin-top: 14px;
}
.slider-box input[type="range"] { width: 100%; accent-color: var(--brand-1); height: 6px; }
.slider-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* ===== Summary (checkout) ===== */
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.summary-row.total {
  border-top: 2px solid var(--brand-1); margin-top: 12px; padding-top: 16px;
  font-weight: 700; font-size: 20px;
}

/* ===== Trust signals ===== */
.trust-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0; border: 1px solid var(--border); margin: 24px 0;
}
.trust-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 18px 20px; border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border: 1px solid var(--brand-1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.trust-text .t { font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: 0.05em; }
.trust-text .d { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.6; }
@media (max-width: 600px) { .trust-item { border-right: none; border-bottom: 1px solid var(--border); } .trust-item:last-child { border-bottom: none; } }

/* ===== Stepper (納品までの流れ) ===== */
.stepper {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 20px 0; border: 1px solid var(--border);
}
.stepper-item {
  padding: 20px; border-right: 1px solid var(--border); position: relative;
}
.stepper-item:last-child { border-right: none; }
.stepper-item .step-num {
  width: 28px; height: 28px;
  background: var(--brand-1); color: white;
  font-size: 12px; font-weight: 700;
  font-family: "Inter", sans-serif;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.stepper-item .step-title { font-weight: 700; font-size: 13px; color: var(--text); }
.stepper-item .step-desc { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.7; }
@media (max-width: 768px) {
  .stepper { grid-template-columns: 1fr; }
  .stepper-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stepper-item:last-child { border-bottom: none; }
}

/* ===== Person card (担当者紹介) ===== */
.person-card {
  display: flex; gap: 20px; align-items: center;
  padding: 24px; background: var(--surface);
  border: 1px solid var(--border); margin: 20px 0;
}
.person-avatar {
  width: 80px; height: 80px;
  background: var(--brand-1); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 500; letter-spacing: 0.05em;
  flex-shrink: 0;
}
.person-info .role { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.person-info .name { font-size: 17px; font-weight: 700; margin: 4px 0; }
.person-info .message { font-size: 13px; color: var(--text-muted); line-height: 1.8; }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item .q {
  font-weight: 700; color: var(--text); font-size: 14px;
  position: relative; padding-left: 28px; line-height: 1.7;
}
.faq-item .q::before {
  content: "Q"; position: absolute; left: 0; top: 0;
  color: var(--brand-1); font-weight: 700; font-size: 14px;
  font-family: "Inter", sans-serif;
}
.faq-item .a {
  color: var(--text-muted); font-size: 13px;
  margin-top: 10px; padding-left: 28px; line-height: 1.8;
  position: relative;
}
.faq-item .a::before {
  content: "A"; position: absolute; left: 0; top: 0;
  color: var(--text-soft); font-weight: 700; font-size: 14px;
  font-family: "Inter", sans-serif;
}

/* ===== Chart ===== */
.chart-box {
  padding: 24px; background: var(--bg);
  border: 1px solid var(--border); margin-top: 16px;
}
.chart-box .chart-title {
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  font-weight: 600; margin-bottom: 16px;
}
.chart-line { width: 100%; height: 140px; display: block; overflow: visible; }
.chart-line .gridline { stroke: var(--border); stroke-width: 1; }
.chart-line .dataline { stroke: var(--brand-1); stroke-width: 2; fill: none; }
.chart-line .dataarea { fill: var(--brand-1); fill-opacity: 0.05; }
.chart-line .datapoint { fill: var(--brand-1); }
.chart-line .axis-label { font-size: 10px; fill: var(--text-soft); font-family: "Inter", sans-serif; }

/* ===== Empty state ===== */
.empty-state {
  text-align: center; padding: 60px 20px;
  background: var(--surface); border: 1px dashed var(--border);
}
.empty-state-icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border: 1.5px solid var(--text-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); font-size: 24px;
}
.empty-state h3 { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.empty-state p { margin: 0 0 24px; color: var(--text-muted); font-size: 14px; max-width: 360px; margin-left: auto; margin-right: auto; }

/* ===== Metric cards ===== */
.metric-card {
  background: var(--bg); border: 1px solid var(--border);
  padding: 22px; flex: 1; min-width: 180px; border-radius: 2px;
}
.metric-card .k { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.metric-card .v {
  font-size: 28px; font-weight: 700; color: var(--text); margin-top: 6px;
  font-family: "Inter", sans-serif; font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.metric-card .trend { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px 24px;
  background: var(--surface);
  font-size: 13px; color: var(--text-muted);
  margin-top: 60px;
}
.site-footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  color: var(--text); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin: 0 0 14px; font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; font-size: 12px; line-height: 1.7; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); border-bottom-color: var(--text-muted); }
.site-footer-bottom {
  max-width: 1200px; margin: 36px auto 0;
  padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
@media (max-width: 768px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer { padding: 32px 20px 20px; }
}

/* ===== Mobile bottom nav ===== */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg); border-top: 1px solid var(--border);
  z-index: 100;
}
.mobile-nav a {
  flex: 1; text-align: center; padding: 10px 4px;
  font-size: 10px; color: var(--text-muted); letter-spacing: 0.05em;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: none; border-top: 2px solid transparent; border-bottom: 0;
}
.mobile-nav a svg { color: var(--text-muted); }
.mobile-nav a.active { color: var(--text); font-weight: 700; border-top-color: var(--brand-1); }
.mobile-nav a.active svg { color: var(--text); }

@media (max-width: 768px) {
  .mobile-nav { display: flex; }
  .main { padding-bottom: 80px; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app-header { padding: 14px 20px; }
  .app-header .user-meta { gap: 10px; font-size: 12px; }
  .app-header .user-name { display: none; }
  .page-title { font-size: 24px; }
  .main { padding: 24px 20px 80px; }
}

/* ===== Helpers ===== */
.row { display: flex; gap: 24px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 220px; }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.divider { height: 1px; background: var(--border); border: none; margin: 24px 0; }

/* ===== Login (centered) ===== */
.centered-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: var(--bg);
}
.centered-wrap .card {
  width: 100%; max-width: 420px;
  border: 1px solid var(--border);
  padding: 48px 36px;
}

/* ========================================================================
   旧 static HTML（product-detail-*.html）の inline <style> から集約した
   商品詳細ページ専用のクラス群。product.php / 既存 static HTML 両方で使う。
   ======================================================================== */
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
@media(max-width:900px){.detail-grid{grid-template-columns:1fr}}
.hero-img{height:420px;background:#141414;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px}
.hero-img .label{font-size:11px;letter-spacing:0.3em;color:#888}
.hero-img .h{font-family:"Noto Serif JP",serif;font-size:38px;font-weight:900;margin:12px 0 8px;line-height:1.3}
.hero-img .sub{font-size:13px;color:#aaa;line-height:1.85;max-width:360px}
.price-block{display:flex;gap:28px;align-items:flex-end;margin:20px 0;flex-wrap:wrap}
.feature-list{list-style:none;padding:0;margin:12px 0}
.feature-list li{padding:12px 16px;border:1px solid var(--border);border-bottom:0;font-size:13px;line-height:1.85}
.feature-list li:last-child{border-bottom:1px solid var(--border)}
.feature-list li b{display:inline-block;min-width:130px;color:var(--text);font-weight:700}
.badge-tag{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;font-size:11px;font-weight:700;letter-spacing:0.08em;border-radius:2px}
.badge-tag.muted{background:#f4f4f4;color:#646464;border:1px solid #d8d8d8}
.slot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0 22px}
.slot-grid .s{padding:8px;text-align:center;border:1px solid var(--border);font-size:11px;background:#fff}
.slot-grid .s.taken{background:#f4f4f4;color:#999;text-decoration:line-through}
.badge-tag.outline{background:#fff;color:#141414;border:1px dashed #141414}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.recommend-badge { display:inline-flex; align-items:center; gap:6px; padding: 5px 11px; font-size: 11px; font-weight: 700; background: #141414; color: #fff; letter-spacing: 0.08em; border-radius: 2px; }
.point-status-chip { display:inline-flex; align-items:center; gap:6px; padding: 4px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; border-radius: 2px; }
.point-status-chip.ok { background: #f0f7f0; color: #2a6f2a; border:1px solid #cfe3cf; }
.point-status-chip .dot { width:8px; height:8px; border-radius:50%; background: currentColor; }
.three-c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.three-c .c { padding: 16px; border:1px solid var(--border); background: var(--surface); }
.three-c .c .h { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.three-c .c .l { font-family: "Noto Serif JP", serif; font-size: 18px; font-weight: 700; margin: 4px 0 8px; }
.three-c .c .d { font-size: 12px; color: var(--text); line-height: 1.7; }
.badge-private { display:inline-flex; align-items:center; gap:6px; padding: 5px 11px; font-size: 11px; font-weight: 700; background: #fff; color: #141414; border:1px dashed #141414; letter-spacing: 0.08em; border-radius: 2px; }
.badge-tag.solid { background: #141414; color: #fff; }
.session-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.session-grid .s { padding: 14px; border:1px solid var(--border); }
.session-grid .s .m { font-family: Inter, sans-serif; font-weight: 700; font-size: 18px; color: var(--text); }
.session-grid .s .t { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.6; }
/* .hero-img::before は元 ai 商品の青紫 gradient 装飾。dedup で全商品に乗ってしまう問題があったため無効化 */
.hero-img::before { content: none; }
.hero-img .ai-pills { display: flex; gap: 8px; margin-top: 22px; position: relative; }
.hero-img .ai-pill { font-size: 10px; letter-spacing: 0.2em; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.25); color: #fff; }
.scope-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 22px; }
@media (max-width: 700px) { .scope-grid { grid-template-columns: 1fr; } }
.scope-grid .s { padding: 18px; border:1px solid var(--border); }
.scope-grid .s .k { font-family: Inter, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.2em; color: var(--text-muted); }
.scope-grid .s .h { font-weight: 700; font-size: 15px; margin: 6px 0 8px; color: var(--text); }
.scope-grid .s .d { font-size: 12px; color: var(--text-soft); line-height: 1.85; }
.hero-img .badge-ribbon { position: absolute; top: 18px; left: 18px; background: #fff; color: #d8473a; padding: 5px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; border-radius: 2px; }
.breakdown { width: 100%; border-collapse: collapse; margin: 12px 0 6px; }
.breakdown th, .breakdown td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: top; }
.breakdown th { text-align: left; background: var(--surface); font-weight: 600; color: var(--text); width: 40%; }
.breakdown td { font-family: Inter, sans-serif; font-variant-numeric: tabular-nums; text-align: right; color: var(--text); }
.breakdown td.note { text-align: left; font-family: inherit; color: var(--text-muted); font-size: 12px; line-height: 1.7; padding-top: 4px; }
.breakdown tr.total th, .breakdown tr.total td { background: #141414; color: #fff; font-size: 15px; font-weight: 700; border-bottom: 0; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 22px; }
.timeline .t { padding: 14px; border:1px solid var(--border); }
.timeline .t .w { font-family: Inter, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.2em; color: var(--text-muted); }
.timeline .t .h { font-weight: 700; font-size: 14px; margin: 6px 0 6px; color: var(--text); }
.timeline .t .d { font-size: 12px; color: var(--text-soft); line-height: 1.7; }
.character-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 18px; }
.character-strip .c { padding: 4px 10px; font-size: 11px; font-weight: 600; background: var(--surface); border:1px solid var(--border); color: var(--text); }
.seats-bar { display:flex; gap:6px; margin: 8px 0 0; }
.seats-bar .seat { width: 26px; height: 26px; border:1px solid var(--border); border-radius: 50%; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; color: var(--text-muted); background: #fff; font-family: Inter, sans-serif; }
.seats-bar .seat.taken { background: #141414; color: #fff; border-color: #141414; }
.schedule { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 8px 0 22px; }
.schedule .m { padding: 12px 6px; text-align: center; border:1px solid var(--border); background: #fff; }
.schedule .m .month { font-family: Inter, sans-serif; font-weight: 700; font-size: 13px; color: var(--text); }
.schedule .m .topic { font-size: 10px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.thumb-strip { display:flex; gap:8px; margin-top:12px; flex-wrap: wrap; }
.thumb-strip .t { width: 90px; height: 68px; border:2px solid var(--border); background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden; cursor:pointer; transition: border-color 0.15s; }
.thumb-strip .t img { width:100%; height:100%; object-fit:cover; }
.thumb-strip .t:hover { border-color: var(--brand-2); }
.thumb-strip .t.active { border-color: var(--brand-1); }
.info-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; font-size: 13px; line-height: 1.9; padding: 14px 16px; border:1px solid var(--border); background: var(--surface); }
.info-row dt { color: var(--text-muted); font-weight: 600; }
.info-row dd { margin: 0; color: var(--text); }
.event-meta { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin: 4px 0 16px; }
.event-chip { display:inline-flex; align-items:center; gap:6px; padding: 6px 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; border-radius: 2px; background: #141414; color: #fff; }
.event-chip.outline { background: #fff; color: var(--text); border: 1px solid var(--brand-1); }
.event-chip .dot { width:6px; height:6px; border-radius:50%; background: currentColor; }
.course-list { display:flex; flex-direction: column; gap: 8px; margin: 6px 0 18px; }
.course-option { display:flex; gap:14px; align-items:center; padding:14px 16px; border:1px solid var(--border); cursor:pointer; user-select:none; transition: border-color 0.15s, background 0.15s; background: #fff; }
.course-option:hover { border-color: var(--brand-2); }
.course-option.selected { border-color: var(--brand-1); background: #fafafa; }
.course-option input[type=radio] { accent-color: var(--brand-1); flex-shrink: 0; }
.course-option .ci-info { flex:1; min-width: 0; }
.course-option .ci-name { font-weight:700; font-size:14px; }
.course-option .ci-desc { font-size:12px; color:var(--text-muted); margin-top: 2px; }
.course-option .ci-price { font-family: Inter, sans-serif; font-weight: 700; font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.course-option .ci-pt { font-size: 11px; color:#646464; padding: 3px 8px; background: var(--surface-alt); border-radius: 2px; white-space: nowrap; }
.chef-card { display:flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border:1px solid var(--border); background: var(--surface); margin: 24px 0; }
.chef-card .chef-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-1); color: #fff; display:flex; align-items:center; justify-content:center; font-family: "Noto Serif JP", serif; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.chef-card .chef-meta .role { font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.chef-card .chef-meta .name { font-weight: 700; font-size: 16px; margin: 2px 0 6px; }
.chef-card .chef-meta .quote { font-size: 13px; line-height: 1.85; color: var(--text); }
.qty-row { display:flex; gap:8px; align-items: center; margin: 8px 0 24px; }
.qty-btn { width: 36px; height: 36px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--text); font-family: Inter, sans-serif; }
.qty-input { width: 56px; height: 36px; text-align: center; font-size: 14px; font-weight: 700; border: 1px solid var(--border); border-left: 0; border-right: 0; font-family: Inter, sans-serif; }
.point-status-chip.na { background: #f4f4f4; color: #646464; border:1px solid #d8d8d8; }
.pay-notice { background: #fafafa; border:1px solid var(--border); border-left: 3px solid #646464; padding: 16px 20px; margin: 8px 0 24px; font-size:13px; line-height:1.85; color: var(--text); }
.pay-notice .h { font-weight: 700; margin-bottom: 4px; font-size: 13px; letter-spacing: 0.02em; }
.pay-only-card { background: var(--surface); border:1px solid var(--border); padding: 16px 20px; font-size:14px; }
.pay-only-card .h { font-weight: 700; margin-bottom: 4px; }
.size-row { display:flex; gap:8px; flex-wrap:wrap; margin: 8px 0 24px; }
.size-chip {
    border:1px solid var(--border); padding: 10px 18px; font-size:13px; font-weight:600;
    cursor:pointer; user-select:none; background:#fff; color:var(--text);
    font-family:Inter, sans-serif;
  }
.size-chip.selected { border-color: var(--brand-1); background: var(--brand-1); color:#fff; }
.size-chip.disabled { color: var(--text-soft); background: var(--surface-alt); cursor:not-allowed; text-decoration: line-through; }

