/* 共通スタイル: 和テイストの落ち着いたミニマル */
:root {
  --bg: #fafaf8;
  --card: #ffffff;
  --border: #e5e1d8;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --accent-green: #16a34a;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-orange: #ea580c;
  --accent-red: #dc2626;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.03);
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Meiryo", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  font-size: 14px;
}

/* スマホ等での意図しない横スクロール抑制: 絶対配置のツールチップ等が viewport を
   超えても はみ出させない (スクロールルート html とbody両方でクリップ)。
   表示時のツールチップは JS が viewport 内へ再配置するため隠れない。
   広いテーブルは .table-wrap が独自に横スクロールするので影響なし。 */
html, body { overflow-x: hidden; }

a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.card h2 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.1s ease;
}
.btn:hover { background: #f3f1ec; text-decoration: none; }
.btn-primary {
  background: var(--accent-green);
  color: #fff;
  border-color: var(--accent-green);
}
.btn-primary:hover { background: #128a3f; }
.btn-blue { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.btn-blue:hover { background: #1d4ed8; }
.btn-purple { background: var(--accent-purple); color: #fff; border-color: var(--accent-purple); }
.btn-purple:hover { background: #6d28d9; }
.btn-orange { background: var(--accent-orange); color: #fff; border-color: var(--accent-orange); }
.btn-orange:hover { background: #c2410c; }
.btn-ghost { background: transparent; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.input, .select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
}
.input:focus, .select:focus, textarea:focus {
  outline: 2px solid var(--accent-green);
  outline-offset: -1px;
}

.label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  margin-top: 8px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.col { flex: 1; min-width: 200px; }

.muted { color: var(--muted); font-size: 12px; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background: #eef3ee;
  color: var(--accent-green);
  font-size: 11px;
  font-weight: 600;
}
.badge-orange { background: #fff1e7; color: var(--accent-orange); }
.badge-purple { background: #f3ecff; color: var(--accent-purple); }
.badge-blue { background: #e8f0ff; color: var(--accent-blue); }
.badge-gray { background: #eee; color: #555; }

h1 {
  margin: 12px 0 4px 0;
  font-size: 1.5rem;
}
.subtitle { color: var(--muted); margin-top: 0; }

.grid-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .grid-buttons { grid-template-columns: repeat(4, 1fr); }
}

/* ========== Phase 6: 共通テーブル / タブ / モーダル ========== */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
.table th, .table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.table thead th {
  background: #f7f4ee;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tbody tr:hover { background: #fafaf5; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.tabs-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  font-family: inherit;
}
.tab-btn:hover { background: #f3f1ec; color: var(--text); }
.tab-btn.active {
  background: #fff;
  color: var(--accent-purple);
  font-weight: 700;
  border-color: var(--border);
  border-bottom-color: #fff;
  margin-bottom: -1px;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* KPI カード */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 720px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}
.kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.kpi .lbl {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.kpi .val {
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.kpi .val.small { font-size: 1rem; }
.kpi .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.info-icon {
  position: relative;
  display: inline-block;
  cursor: help;
  color: #888;
  font-size: 11px;
  margin-left: 2px;
  user-select: none;
  outline: none;
}
.info-icon:hover, .info-icon:focus { color: #333; }
.info-icon .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #2a2a2a;
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  width: 280px;
  max-width: calc(100vw - 32px);
  white-space: pre-line;
  text-align: left;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: opacity 0.12s ease, visibility 0.12s ease;
}
.info-icon .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: var(--arrow-x, 8px);
  border: 6px solid transparent;
  border-top-color: #2a2a2a;
}
/* 上にスペースが無いときは tooltip を下側に flip。
   data-flip="below" は positionInfoTooltip(JS) が動的に付与する */
.info-icon[data-flip="below"] .tooltip-text {
  bottom: auto;
  top: calc(100% + 8px);
}
.info-icon[data-flip="below"] .tooltip-text::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #2a2a2a;
}
.info-icon:hover .tooltip-text,
.info-icon:focus .tooltip-text,
.info-icon:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ステータスバッジ */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: #eee;
  color: #555;
}
.status-pending_payment { background: #f3ecff; color: var(--accent-purple); }
.status-paid { background: #eef3ee; color: var(--accent-green); }
.status-label_issued, .status-farmer_notified { background: #fff1e7; color: var(--accent-orange); }
.status-shipped, .status-in_transit { background: #e8f0ff; color: var(--accent-blue); }
.status-delivered { background: #e4f7e4; color: #127c3a; }
.status-cancelled, .status-refunded { background: #fde7e7; color: var(--accent-red); }
.status-active, .status-paid-inv { background: #eef3ee; color: var(--accent-green); }
.status-past_due, .status-payment_failed { background: #fde7e7; color: var(--accent-red); }
.status-canceled, .status-inactive { background: #eee; color: #666; }

/* モーダル */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-back.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 720px;
  width: calc(100% - 24px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.modal h3 { margin: 0 0 8px; font-size: 1.1rem; }
.modal .close-x {
  float: right;
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.modal pre {
  background: #f7f4ee;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 300px;
  overflow: auto;
}

/* ミニチャート (バー) */
.bar-chart { display: flex; flex-direction: column; gap: 6px; }
.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.bar-track {
  background: #f3efe4;
  border-radius: 6px;
  height: 14px;
  overflow: hidden;
}
.bar-fill {
  background: linear-gradient(90deg, var(--accent-green), #22c55e);
  height: 100%;
}
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; }

/* フィルタ行 */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  align-items: end;
}
.filters .col { min-width: 160px; }
.filters .input, .filters .select { padding: 6px 8px; font-size: 13px; }

/* ハブ専用ヘッダ */
.hub-header {
  background: linear-gradient(180deg, #fbf6ff, #f3e7ff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.hub-header h1 { margin: 0 0 4px; font-size: 1.4rem; }
.hub-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.hub-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* ========== hub 管理画面: スマホ最適化 (約560px以下) ========== */
@media (max-width: 560px) {
  .hub-container { padding: 14px 10px; }
  .hub-header { padding: 14px; }
  .hub-header h1 { font-size: 1.2rem; }
  .hub-meta { gap: 8px; font-size: 11px; }
  /* タブは折返し済み。 タップ性を保ちつつ詰める */
  .tabs-bar { gap: 3px; }
  .tab-btn { padding: 7px 10px; font-size: 12px; }
  /* フィルタ各列は行内で伸縮 + 折返し (固定160px幅をやめる) */
  .filters { gap: 6px; }
  .filters .col { min-width: 0; flex: 1 1 140px; }
  /* テーブルセルを少し詰めて横スクロール量を減らす (それでも .table-wrap で横スクロール可) */
  .table th, .table td { padding: 6px 8px; }
  .card { padding: 16px 14px; }
  /* KPI ラベルの長い説明が詰まりすぎないよう余白確保済み (kpi-grid は2列のまま) */
}

/* 小さいボタン */
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* 警告 */
.alert {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 10px;
}
.alert-warn { background: #fff6df; border: 1px solid #f1d07b; color: #8a5a00; }
.alert-info { background: #eff4ff; border: 1px solid #b9cdf1; color: #1e3d7a; }
.alert-error { background: #fde7e7; border: 1px solid #f5a8a8; color: #8a1a1a; }

.diff-pos { color: var(--accent-green); font-weight: 600; }
.diff-neg { color: var(--accent-red); font-weight: 600; }

.chip {
  display: inline-block;
  padding: 1px 8px;
  font-size: 11px;
  border-radius: 10px;
  background: #eef0f5;
  color: #333;
  margin-right: 4px;
}
.chip-green { background: #eef3ee; color: var(--accent-green); }
.chip-red { background: #fde7e7; color: var(--accent-red); }
.chip-blue { background: #e8f0ff; color: var(--accent-blue); }

/* ================================================================
 * LP (ランディングページ) 専用スタイル
 * 和テイスト + 余白たっぷり + モバイル優先
 * ================================================================ */
.lp-body {
  background: #faf8f3;
  color: #2a2a2a;
  font-size: 15px;
  line-height: 1.8;
  padding-bottom: 96px; /* fixed footer CTA 分 */
}
.lp-body h1, .lp-body h2, .lp-body h3 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.lp-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 18px;
}

/* スクロール出現アニメーション (初期 opacity 0 → reveal で 1) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------ トップナビ ------ */
.lp-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid #e7e0cf;
}
.lp-topbar-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  color: #2a2a2a;
  font-size: 15px;
}
.lp-brand svg { flex: none; }
.lp-topbar a.lp-back {
  color: #6b6b6b;
  font-size: 12px;
  text-decoration: none;
}
.lp-topbar a.lp-back:hover { color: var(--accent-green); }

/* ------ ヒーロー ------ */
.hero-section {
  padding: 56px 0 48px;
}
.hero-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}
.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #eef3ee;
  box-shadow: 0 10px 28px rgba(30, 30, 20, 0.08);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e7f3ea;
  color: var(--accent-green);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1e2a1e;
}
@media (min-width: 760px) { .hero-title { font-size: 2.4rem; } }
.hero-catchphrase {
  font-size: 1.05rem;
  color: #4a5a4a;
  margin: 0 0 22px;
  line-height: 1.8;
}
.hero-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0 6px;
}
.hero-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-green);
  font-family: "Noto Serif JP", serif;
}
.hero-price-note { color: #6b6b6b; font-size: 12px; }
.hero-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.lp-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f2ede0;
  color: #5d4e2e;
  font-size: 12px;
  border: 1px solid #e2d8bf;
}
.hero-cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.lp-btn-primary {
  background: var(--accent-green);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28);
}
.lp-btn-primary:hover { background: #128a3f; transform: translateY(-1px); text-decoration: none; }
.lp-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.lp-btn-ghost {
  background: transparent;
  color: #2a2a2a;
  border-color: #c9c1ae;
}
.lp-btn-ghost:hover { background: #f2ede0; text-decoration: none; }

/* ------ 農家紹介カード ------ */
.farmer-card {
  background: linear-gradient(180deg, #fbf7ec, #f2ecdc);
  border: 1px solid #e7dcbd;
  border-radius: 18px;
  padding: 28px 22px;
  margin: 24px 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 640px) {
  .farmer-card { grid-template-columns: 120px 1fr; }
}
.farmer-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(30, 30, 20, 0.1);
}
.farmer-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.farmer-name { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; color: #3b3018; }
.farmer-pref {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7a6a44;
  font-size: 13px;
  margin-bottom: 8px;
}
.farmer-quote {
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  color: #5a4a30;
  border-left: 3px solid #c9a85a;
  padding-left: 12px;
  margin: 10px 0 0;
  line-height: 1.8;
}

/* ------ 汎用セクション ------ */
.lp-section {
  padding: 52px 0;
  border-top: 1px solid #ece4d2;
}
.lp-section:first-of-type { border-top: 0; }
.section-kicker {
  display: block;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent-green);
  margin-bottom: 8px;
  font-weight: 700;
}
.section-title {
  text-align: center;
  font-size: 1.6rem;
  margin: 0 0 28px;
  color: #2a2a2a;
}
.section-lead {
  max-width: 680px;
  margin: 0 auto 30px;
  color: #4a4a4a;
  text-align: center;
  font-size: 15px;
  line-height: 2;
}

/* ------ ストーリー ------ */
.story-text {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 16px;
  color: #2e2e2e;
  line-height: 2.1;
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}

/* ------ 特徴グリッド ------ */
.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: #ffffff;
  border: 1px solid #e7e0cf;
  border-radius: 14px;
  padding: 22px 18px;
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  box-shadow: 0 8px 22px rgba(30, 30, 20, 0.06);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef3ee;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #2a2a2a;
}
.feature-body {
  color: #5a5a5a;
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}

/* ------ ギャラリー ------ */
.gallery-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .gallery-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }
.gallery-cell {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #eef3ee;
  box-shadow: 0 4px 14px rgba(30, 30, 20, 0.05);
}
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ------ レビュー ------ */
.review-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
.review-card {
  background: #ffffff;
  border: 1px solid #e7e0cf;
  border-radius: 14px;
  padding: 20px;
}
.review-stars {
  color: #d9a13a;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 8px;
}
.review-name { font-size: 12px; color: #7a6a44; margin-bottom: 6px; }
.review-date { font-size: 11px; color: #a39674; margin-bottom: 10px; }
.review-comment { color: #333; font-size: 14px; line-height: 1.9; margin: 0; }

/* ------ FAQ ------ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: #ffffff;
  border: 1px solid #e7e0cf;
  border-radius: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: inherit;
  line-height: 1.6;
}
.faq-q:hover { background: #fbf7ec; }
.faq-q-mark {
  display: inline-block;
  margin-right: 10px;
  color: var(--accent-green);
  font-weight: 700;
  font-family: "Noto Serif JP", serif;
}
.faq-toggle {
  transition: transform 0.2s ease;
  color: #6b6b6b;
}
.faq-item.open .faq-toggle { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  color: #4a4a4a;
  font-size: 14px;
  line-height: 2;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
  padding: 0 20px 18px;
  max-height: 600px;
}
.faq-a-mark {
  display: inline-block;
  margin-right: 10px;
  color: #c58726;
  font-weight: 700;
  font-family: "Noto Serif JP", serif;
}

/* ------ 購入セクション ------ */
.checkout-section {
  padding: 56px 0;
  background: linear-gradient(180deg, #faf8f3, #f2ecdc);
  border-top: 1px solid #e7dcbd;
}
.checkout-card {
  background: #ffffff;
  border: 1px solid #e7e0cf;
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 12px 30px rgba(30, 30, 20, 0.06);
  max-width: 680px;
  margin: 0 auto;
}
.checkout-card h3 {
  margin: 20px 0 10px;
  font-size: 1.05rem;
  color: #2a2a2a;
  border-bottom: 1px solid #ece4d2;
  padding-bottom: 6px;
}
.checkout-card h3:first-child { margin-top: 0; }
.lp-field { display: block; margin-bottom: 14px; }
.lp-field-label {
  display: block;
  font-size: 12px;
  color: #7a6a44;
  margin-bottom: 6px;
  font-weight: 600;
}
.lp-field-input,
.lp-field-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8cdb4;
  border-radius: 10px;
  font-size: 15px;
  background: #fffdf7;
  font-family: inherit;
  color: #2a2a2a;
}
.lp-field-input:focus,
.lp-field-select:focus {
  outline: 2px solid var(--accent-green);
  outline-offset: -1px;
  background: #fff;
}
.lp-field-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .lp-field-row { grid-template-columns: 1fr 1fr; }
}

.summary-block {
  margin-top: 16px;
  padding: 16px 18px;
  background: #faf4e4;
  border: 1px solid #ecdfba;
  border-radius: 12px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
  color: #3b3018;
}
.summary-line.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e2a1e;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed #c9a85a;
}
.summary-note {
  margin-top: 6px;
  font-size: 11px;
  color: #7a6a44;
}

.lp-alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 14px;
}
.lp-alert-error {
  background: #fde7e7;
  border: 1px solid #f5a8a8;
  color: #8a1a1a;
}

/* ------ 固定フッターCTA ------ */
.lp-fixed-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid #e7e0cf;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
  box-shadow: 0 -4px 16px rgba(30, 30, 20, 0.06);
}
.lp-fixed-cta .price-small {
  font-weight: 700;
  color: var(--accent-green);
  font-size: 15px;
  flex: 0 0 auto;
}
.lp-fixed-cta .price-small small {
  display: block;
  font-size: 10px;
  color: #6b6b6b;
  font-weight: 400;
}
.lp-fixed-cta .cta-btn {
  flex: 1 1 auto;
  justify-content: center;
  padding: 12px 18px;
}

/* ------ フッター ------ */
.lp-footer {
  padding: 40px 0 60px;
  background: #2a2a2a;
  color: #eae3d1;
  margin-top: 40px;
}
.lp-footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 18px;
}
@media (min-width: 640px) {
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
}
.lp-footer h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 1rem;
  margin: 0 0 10px;
  color: #fff;
}
.lp-footer p { margin: 4px 0; color: #c6beac; font-size: 13px; }
.lp-footer a { color: #9ed4a8; }
.lp-qr-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #3b3b3b;
  border: 1px solid #4a4a4a;
  border-radius: 12px;
  padding: 14px;
}
.lp-qr-card img { width: 100px; height: 100px; border-radius: 6px; background: #fff; }
.lp-footer-fine {
  text-align: center;
  color: #8a8270;
  font-size: 11px;
  margin-top: 30px;
  padding: 0 18px;
}

/* ------ トップナビ (右側リンク群) ------ */
.lp-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.lp-nav a {
  color: #5a5a5a;
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
}
.lp-nav a:hover { color: var(--accent-green); border-bottom-color: var(--accent-green); text-decoration: none; }
.lp-nav a.lp-nav-cta {
  background: var(--accent-green);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  border: 0;
}
.lp-nav a.lp-nav-cta:hover { background: #128a3f; border-bottom-color: transparent; }
@media (max-width: 520px) {
  .lp-nav { gap: 10px; font-size: 12px; }
  .lp-nav a:not(.lp-nav-cta) { display: none; }
}

/* lp-body 内の .price は LP 用の太字に寄せる */
.lp-body .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-green);
  font-family: "Noto Serif JP", serif;
}
