/* ============================================================
   めぐるわ — メインスタイルシート
   Design: 柔らかなパステル・温かみのある地域感
   Palette: Warm cream / Soft terracotta / 七地区パステル虹
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ベースカラー */
  --cream:        #faf7f2;
  --white:        #ffffff;
  --charcoal:     #3a3030;   /* 純黒→温かみのある濃茶 */
  --mid-gray:     #8a7e7a;   /* 温かいグレー */
  --light-gray:   #d4ccc6;
  --border:       #e8e0d8;   /* 温かみのあるボーダー */

  /* アクセントカラー（赤→柔らかいテラコッタ） */
  --accent:       #c9826e;
  --accent-light: #d89a88;
  --accent-pale:  #fdf4f2;

  /* 七地区パステルカラー */
  --nomozaki:  #ffb3ae;  /* 野母崎 — パステルコーラル */
  --miwa:      #ffd4a0;  /* 三和   — パステルオレンジ */
  --takashima: #fff2a0;  /* 高島   — パステルイエロー */
  --iojima:    #c4e8c4;  /* 伊王島 — パステルグリーン */
  --koyagi:    #a4d8f0;  /* 香焼   — パステルスカイ */
  --fukabori:  #b8b4f4;  /* 深堀   — パステルインディゴ */
  --doikubi:   #d4b0f4;  /* 土井首 — パステルバイオレット */

  /* その他 */
  --green:      #5aab7a;
  --font-serif: 'Noto Serif JP', 'Georgia', serif;
  --font-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --radius:     8px;
  --shadow:     0 2px 16px rgba(80,50,40,0.07);
  --shadow-lg:  0 8px 40px rgba(80,50,40,0.12);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Layout ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ---------- 七地区 カラーバー ---------- */
.district-bar {
  display: flex; height: 5px;
}
.district-bar span {
  flex: 1;
}
.district-bar .d1 { background: var(--nomozaki); }
.district-bar .d2 { background: var(--miwa); }
.district-bar .d3 { background: var(--takashima); }
.district-bar .d4 { background: var(--iojima); }
.district-bar .d5 { background: var(--koyagi); }
.district-bar .d6 { background: var(--fukabori); }
.district-bar .d7 { background: var(--doikubi); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(80,50,40,0.05);
}
/* ヘッダー上部に七地区カラーバー */
.site-header::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--nomozaki) 0%, var(--nomozaki) 14.28%,
    var(--miwa)      14.28%, var(--miwa)      28.56%,
    var(--takashima) 28.56%, var(--takashima) 42.84%,
    var(--iojima)    42.84%, var(--iojima)    57.12%,
    var(--koyagi)    57.12%, var(--koyagi)    71.40%,
    var(--fukabori)  71.40%, var(--fukabori)  85.68%,
    var(--doikubi)   85.68%, var(--doikubi)   100%
  );
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo { display: flex; flex-direction: column; gap: 2px; line-height: 1; text-decoration: none; }
.logo-ja {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.06em;
}
.logo-en {
  font-size: 9px; color: var(--mid-gray);
  letter-spacing: 0.05em;
}
.site-nav ul { display: flex; list-style: none; gap: 40px; align-items: center; }
.site-nav a {
  font-size: 13px; font-weight: 500;
  color: var(--charcoal);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.site-nav a:hover { color: var(--accent); border-color: var(--accent); opacity: 1; }
.nav-cta {
  background: var(--accent); color: var(--white) !important;
  display: inline-flex !important; align-items: center !important;
  padding: 10px !important; border-radius: 6px;
  font-size: 13px !important; font-weight: 600 !important;
  letter-spacing: .04em;
  border-bottom: none !important; line-height: 1 !important;
}
.nav-cta:hover { background: var(--accent-light); border-color: transparent !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--charcoal); border-radius: 1px;
  transition: transform .25s;
}

/* ---------- Hero ---------- */
.hero {
  /* パステル七地区グラデーション */
  background: linear-gradient(150deg,
    #fefcf8 0%, #fef7ef 35%, #faf3fe 68%, #eef5fe 100%);
  color: var(--charcoal);
  padding: 96px 0 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
/* 中央の明るいグロー（やや明るめ効果を維持） */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.82) 0%, transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-label {
  display: inline-block;
  font-size: 11px; letter-spacing: .14em;
  color: var(--accent);
  border: 1px solid rgba(201,130,110,0.4);
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 24px; text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 700; line-height: 1.25;
  margin-bottom: 16px;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: 15px; color: var(--mid-gray);
  margin-bottom: 40px; max-width: 500px;
  margin-left: auto; margin-right: auto; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 24px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; border: none; transition: all .2s;
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-light); opacity: 1; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); opacity: 1; }
.btn-outline-dark {
  background: transparent; color: var(--charcoal);
  border: 1.5px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.btn-lg { padding: 15px 36px; font-size: 15px; }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Section Titles ---------- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700; color: var(--charcoal); line-height: 1.3;
}
.section-desc {
  margin-top: 16px; font-size: 14px; color: var(--mid-gray); max-width: 560px;
  margin-left: auto; margin-right: auto; line-height: 1.8;
}

/* ---------- Challenge Cards ---------- */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.challenge-card {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden; transition: box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
}
.challenge-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px); opacity: 1;
}
.card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--cream); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.challenge-card:hover .card-image img { transform: scale(1.04); }
.card-body { padding: 20px 20px 16px; flex: 1; display: flex; flex-direction: column; }
.card-area {
  font-size: 10px; letter-spacing: .1em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 8px; font-weight: 600;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 700; line-height: 1.45;
  color: var(--charcoal); margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-catch { font-size: 12px; color: var(--mid-gray); flex: 1; line-height: 1.6; margin-bottom: 16px; }
.card-footer { border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto; }
.progress-bar-wrap { height: 5px; background: var(--border); border-radius: 3px; margin-bottom: 10px; }
.progress-bar { height: 100%; background: linear-gradient(to right, var(--accent), var(--accent-light)); border-radius: 3px; transition: width 1s ease; }
.card-stats {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; color: var(--mid-gray);
}
.card-amount { font-size: 15px; font-weight: 700; color: var(--charcoal); }
.card-days { font-size: 12px; }
.card-days .num { font-size: 18px; font-weight: 700; color: var(--accent); }

/* ---------- 地区バッジカラー ---------- */
.area-badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-bottom: 8px; }
.area-nomozaki  { background: var(--nomozaki);  color: #6a3030; }
.area-miwa      { background: var(--miwa);      color: #6a4010; }
.area-takashima { background: var(--takashima); color: #6a5010; }
.area-iojima    { background: var(--iojima);    color: #206a20; }
.area-koyagi    { background: var(--koyagi);    color: #10508a; }
.area-fukabori  { background: var(--fukabori);  color: #302880; }
.area-doikubi   { background: var(--doikubi);   color: #502880; }

/* ---------- Challenge Detail ---------- */
.challenge-detail { padding: 48px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; }
.detail-main-image { border-radius: 12px; overflow: hidden; margin-bottom: 32px; }
.detail-main-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.detail-organizer {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px; padding: 16px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.organizer-label { font-size: 10px; letter-spacing: .1em; color: var(--mid-gray); }
.organizer-name { font-weight: 700; font-size: 14px; }
.detail-body { font-size: 14px; line-height: 1.95; color: #4a3c3c; }
.detail-body p + p { margin-top: 1em; }

/* Sidebar */
.detail-sidebar { position: sticky; top: 76px; align-self: start; }
.sidebar-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.sidebar-amount-label { font-size: 11px; color: var(--mid-gray); margin-bottom: 4px; }
.sidebar-amount { font-size: 30px; font-weight: 700; font-family: var(--font-serif); color: var(--charcoal); }
.sidebar-amount .unit { font-size: 16px; }
.sidebar-goal { font-size: 12px; color: var(--mid-gray); margin-top: 4px; }
.sidebar-progress { margin: 16px 0 8px; }
.sidebar-rate { font-size: 20px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.sidebar-meta {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--mid-gray);
  padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 16px 0;
}
.sidebar-meta-item { text-align: center; }
.sidebar-meta-num { font-size: 20px; font-weight: 700; color: var(--charcoal); display: block; }

/* ---------- Products（返礼品）----------  */
.products-section { margin-top: 48px; }
.products-title {
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 20px; margin-bottom: 16px;
  display: grid;
  grid-template-columns: 100px 1fr;  /* 画像列を固定、テキスト列を可変 */
  gap: 16px;
  align-items: start;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.product-card:hover  { border-color: var(--accent); box-shadow: 0 2px 12px rgba(201,130,110,0.12); }
.product-card.selected {
  border-color: var(--accent);
  background: var(--accent-pale);
  box-shadow: 0 2px 12px rgba(201,130,110,0.15);
}

.product-img-wrap {
  width: 100px; height: 100px;
  flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  background: var(--cream);
}
.product-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.no-product-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--light-gray); font-size: 11px;
  background: var(--cream);
}

.product-info {
  min-width: 0;  /* グリッド内テキストのはみ出し防止 */
  display: flex; flex-direction: column; gap: 4px;
}
.product-badge {
  display: inline-block; font-size: 9px; letter-spacing: .08em;
  background: var(--accent-pale); color: var(--accent);
  border: 1px solid rgba(201,130,110,0.3); border-radius: 4px;
  padding: 2px 7px; width: fit-content;
}
.product-name {
  font-weight: 700; font-size: 15px;
  color: var(--charcoal); line-height: 1.4;
  word-break: break-all;
}
.product-desc {
  font-size: 12px; color: var(--mid-gray);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price-wrap {
  display: flex; align-items: baseline; gap: 8px;
  flex-wrap: wrap; margin-top: 4px;
}
.product-support-price { font-size: 22px; font-weight: 700; color: var(--accent); }
.product-support-price-unit { font-size: 13px; color: var(--mid-gray); }
.product-producer-price { font-size: 11px; color: var(--mid-gray); }
.product-stock { font-size: 11px; color: var(--mid-gray); }
.product-stock.low { color: #d07a30; font-weight: 600; }

/* スマホでは縦並び */
@media (max-width: 520px) {
  .product-card {
    grid-template-columns: 1fr;
  }
  .product-img-wrap {
    width: 100%; height: 160px;
  }
}

/* ---------- Forms ---------- */
.form-section { max-width: 640px; margin: 0 auto; padding: 56px 24px; }
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px;
  box-shadow: var(--shadow);
}
.form-title { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.form-desc { font-size: 13px; color: var(--mid-gray); margin-bottom: 32px; line-height: 1.7; }
.form-group { margin-bottom: 24px; }
.form-label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--charcoal); margin-bottom: 6px;
}
.form-label .required {
  color: var(--accent); font-size: 10px;
  background: var(--accent-pale); padding: 1px 6px;
  border-radius: 4px; margin-left: 6px;
}
.form-control {
  display: block; width: 100%;
  padding: 11px 14px; font-size: 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--white); color: var(--charcoal);
  transition: border-color .2s, box-shadow .2s; font-family: inherit;
  appearance: none;
}
.form-control:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,130,110,0.12);
}
.form-control::placeholder { color: #c0b8b4; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-error { font-size: 12px; color: var(--accent); margin-top: 4px; }
.form-hint { font-size: 11px; color: var(--mid-gray); margin-top: 4px; line-height: 1.6; }

/* 振込情報ボックス */
.bank-info {
  background: var(--accent-pale); border: 1px solid rgba(201,130,110,0.25);
  border-radius: 10px; padding: 20px 24px; margin: 24px 0;
}
.bank-info-title { font-weight: 700; font-size: 14px; margin-bottom: 12px; color: var(--accent); }
.bank-info dl { display: grid; grid-template-columns: 80px 1fr; gap: 6px 16px; font-size: 13px; }
.bank-info dt { color: var(--mid-gray); }
.bank-info dd { font-weight: 500; }

/* ---------- How it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.how-item { text-align: center; }
.how-num {
  font-family: var(--font-serif); font-size: 40px; font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: 16px;
  opacity: .25;
}
.how-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.how-desc { font-size: 13px; color: var(--mid-gray); line-height: 1.75; }

/* Money flow diagram */
.money-flow {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px; text-align: center;
}
.money-bar { display: flex; height: 48px; border-radius: 6px; overflow: hidden; margin: 20px 0 14px; }
.money-bar-seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white; transition: flex .8s;
  white-space: nowrap; overflow: hidden;
}
.bar-organizer  { background: var(--accent); flex: 60; }
.bar-operator   { background: #b0a090; flex: 10; }
.bar-producer   { background: #c0b4a8; flex: 30; }
.bar-local-only { background: var(--iojima); flex: 50; color: #1a5a1a; }
.bar-outside    { background: #d4ccc6; flex: 50; color: #6a5a50; }
.bar-all-local  { background: var(--accent); flex: 100; }
.money-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--mid-gray); }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-serif); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: 12px; color: var(--mid-gray); margin-top: 6px; }

/* ---------- Alerts ---------- */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 13px; margin-bottom: 20px; border: 1px solid;
  line-height: 1.6;
}
.alert-success { background: #f0faf4; border-color: #b0dfc0; color: #2a6a40; }
.alert-error   { background: var(--accent-pale); border-color: rgba(201,130,110,.4); color: #8a3a28; }
.alert-info    { background: #f0f6fc; border-color: #b0ccec; color: #2a4a7a; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block; font-size: 10px; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 20px; font-weight: 600;
  vertical-align: middle;
}
.badge-active { background: #eef8f2; color: #2a7a48; }
.badge-closed { background: #f4f0ec; color: #9a8a80; }
.badge-funded { background: var(--accent-pale); color: var(--accent); }

/* ---------- The Loop diagram (about.php) ---------- */
.loop-diagram {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 36px 28px; text-align: center;
}
.loop-grid {
  display: grid;
  grid-template-areas:
    "n1 a1 n2 a2 n3"
    ".  .  da .  . "
    ".  .  n4 .  . ";
  grid-template-columns: auto auto auto auto auto;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
}
.lg-n1 { grid-area: n1; }
.lg-a1 { grid-area: a1; }
.lg-n2 { grid-area: n2; }
.lg-a2 { grid-area: a2; }
.lg-n3 { grid-area: n3; }
.lg-da { grid-area: da; display: flex; flex-direction: column; align-items: center; color: var(--accent); line-height: 1.2; }
.lg-n4 { grid-area: n4; }
.loop-node-card {
  border: 2px solid var(--border); border-radius: 8px;
  padding: 16px 0; font-size: 14px; font-weight: 700;
  width: 130px; text-align: center; flex-shrink: 0;
}
.loop-node-card--core { border-color: var(--accent); color: var(--accent); }
.loop-node-desc {
  display: block; font-size: 11px; color: var(--mid-gray);
  font-weight: 400; margin-top: 4px;
}
.loop-arr {
  display: flex; flex-direction: column; align-items: center; color: var(--accent);
}
.la-h     { font-size: 22px; line-height: 1; display: block; }
.la-v     { font-size: 22px; line-height: 1; display: none; }
.la-label { font-size: 10px; color: var(--mid-gray); white-space: nowrap; display: none; }
.loop-caption {
  font-size: 12px; color: var(--mid-gray); margin-top: 20px; line-height: 1.75;
}

@media (max-width: 600px) {
  .loop-diagram { padding: 24px 12px; }
  .loop-node-card { width: 84px; font-size: 12px; padding: 12px 0; }
  .loop-node-desc { font-size: 10px; }
  .loop-grid {
    grid-template-areas:
      ".  .  n1 .  . "
      ".  .  a1 .  . "
      ".  .  n2 a2 n3"
      ".  .  da .  . "
      ".  .  n4 .  . ";
    gap: 6px;
  }
  /* a1（協賛者→めぐるわ）のみ縦矢印に切り替え */
  .lg-a1 .la-h     { display: none; }
  .lg-a1 .la-v     { display: block; }
  .lg-a1 .la-label { display: block; }
  /* a2（めぐるわ→地域事業者）は横矢印のみ、ラベルはスペース節約のため非表示 */
  .lg-a2 .la-label { display: none; }
}

/* ---------- About page ---------- */
.about-lead {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.65; font-weight: 700;
}
.about-lead .accent { color: var(--accent); }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.role-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  transition: box-shadow .2s;
}
.role-card:hover { box-shadow: var(--shadow); }
.role-en { font-size: 9px; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.role-ja { font-size: 20px; font-weight: 700; font-family: var(--font-serif); margin-bottom: 4px; }
.role-sub { font-size: 11px; color: var(--mid-gray); margin-bottom: 12px; }
.role-desc { font-size: 13px; color: #5a4c4c; line-height: 1.75; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: #2e2418;
  color: var(--white);
  padding: 48px 0 40px;
}
.page-header::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--nomozaki) 0%, var(--nomozaki) 14.28%,
    var(--miwa) 14.28%, var(--miwa) 28.56%,
    var(--takashima) 28.56%, var(--takashima) 42.84%,
    var(--iojima) 42.84%, var(--iojima) 57.12%,
    var(--koyagi) 57.12%, var(--koyagi) 71.40%,
    var(--fukabori) 71.40%, var(--fukabori) 85.68%,
    var(--doikubi) 85.68%, var(--doikubi) 100%
  );
  margin-bottom: 40px;
}
.page-header-label {
  font-size: 10px; letter-spacing: .22em;
  color: var(--accent-light); text-transform: uppercase; margin-bottom: 10px;
}
.page-header-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 38px); font-weight: 700;
}
.page-header-desc { font-size: 14px; color: rgba(255,255,255,.55); margin-top: 10px; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2e2418;
  color: rgba(255,255,255,.75);
  margin-top: 0;
}

/* 七地区カラーバー（フッター上部） */
.site-footer::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--nomozaki) 0%, var(--nomozaki) 14.28%,
    var(--miwa) 14.28%, var(--miwa) 28.56%,
    var(--takashima) 28.56%, var(--takashima) 42.84%,
    var(--iojima) 42.84%, var(--iojima) 57.12%,
    var(--koyagi) 57.12%, var(--koyagi) 71.40%,
    var(--fukabori) 71.40%, var(--fukabori) 85.68%,
    var(--doikubi) 85.68%, var(--doikubi) 100%
  );
}

.footer-main {
  padding: 56px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

/* ブランドエリア */
.footer-brand { grid-column: 1; }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 700;
  color: var(--white); letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.footer-tagline {
  font-size: 12px; line-height: 1.7;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
  max-width: 220px;
}
.footer-by {
  font-size: 11px; color: rgba(255,255,255,.35);
}

/* 七地区タグ */
.footer-districts {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 20px;
}
.footer-district-tag {
  font-size: 10px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  color: rgba(46,36,24,.8);
  letter-spacing: .02em;
}

/* ナビエリア */
.footer-nav-group { }
.footer-nav-title {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 16px; font-weight: 600;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a {
  font-size: 13px; color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--white); opacity: 1; }

/* フッターボトム */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-copy {
  font-size: 11px; color: rgba(255,255,255,.3);
}
.footer-legal {
  display: flex; gap: 20px;
}
.footer-legal a {
  font-size: 11px; color: rgba(255,255,255,.35);
}
.footer-legal a:hover { color: rgba(255,255,255,.7); opacity: 1; }

/* ---------- Support form — plan toggle ---------- */
.plan-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 28px;
}
.plan-option {
  background: var(--white);
  border: 2px solid var(--border); border-radius: 12px;
  padding: 18px 20px; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .2s, background .2s;
}
.plan-option:hover { border-color: var(--accent-light); }
.plan-option.active {
  border-color: var(--accent);
  background: var(--accent-pale);
}
/* ラジオ風インジケーター */
.plan-option-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.plan-option.active .plan-option-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--accent-pale);
}
.plan-option-title { font-size: 13px; font-weight: 700; color: var(--charcoal); }
.plan-option-desc  { font-size: 11px; color: var(--mid-gray); margin-top: 3px; line-height: 1.5; }

/* ---------- Support form — product selector ---------- */
.product-select-list { margin-bottom: 16px; }
.product-select-card {
  background: var(--white);
  border: 2px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px; align-items: center;
  transition: border-color .2s, background .2s;
}
.product-select-card.selected {
  border-color: var(--accent);
  background: var(--accent-pale);
}
.product-select-thumb {
  width: 72px; height: 72px; border-radius: 8px;
  overflow: hidden; background: var(--cream); flex-shrink: 0;
}
.product-select-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-select-thumb .no-product-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--light-gray);
}
.product-select-name  { font-size: 13px; font-weight: 700; color: var(--charcoal); line-height: 1.4; }
.product-select-price { font-size: 16px; font-weight: 700; color: var(--accent); margin-top: 2px; }
.product-select-meta  { font-size: 11px; color: var(--mid-gray); margin-top: 2px; }

/* Qty stepper */
.qty-stepper {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 24px;
  overflow: hidden; user-select: none; flex-shrink: 0;
}
.qty-btn {
  background: none; border: none;
  width: 36px; height: 36px; cursor: pointer;
  font-size: 20px; font-weight: 300;
  color: var(--mid-gray); line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.qty-btn:hover { background: var(--cream); color: var(--accent); }
.qty-display {
  min-width: 32px; text-align: center;
  font-size: 15px; font-weight: 700; color: var(--charcoal);
}

/* Order total bar */
.order-total-bar {
  background: var(--accent-pale);
  border: 1.5px solid rgba(201,130,110,0.25);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; margin-bottom: 28px;
}
.order-total-label { font-size: 13px; color: var(--mid-gray); }
.order-total-amount {
  font-size: 24px; font-weight: 700; color: var(--accent);
  font-family: var(--font-serif);
}

@media (max-width: 520px) {
  .plan-toggle { grid-template-columns: 1fr; }
  .product-select-card { grid-template-columns: 60px 1fr; gap: 10px; }
  .product-select-thumb { width: 60px; height: 60px; }
  .qty-stepper { grid-column: 1 / -1; justify-self: end; }
}

/* ---------- Admin styles ---------- */
body.admin-body { background: #f4f0ec; font-family: var(--font-sans); }
.admin-header {
  background: #2e2418; padding: 0 24px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-logo { color: white; font-weight: 700; font-size: 15px; }
.admin-logo span { color: var(--accent-light); }
.admin-logout { color: rgba(255,255,255,.5); font-size: 13px; }
.admin-layout { display: flex; min-height: calc(100vh - 56px); }
.admin-sidebar {
  width: 220px; background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 0; flex-shrink: 0;
}
.admin-sidebar nav ul { list-style: none; }
.admin-sidebar nav li a {
  display: block; padding: 10px 24px;
  font-size: 13px; color: var(--mid-gray);
  transition: background .15s, color .15s;
}
.admin-sidebar nav li a:hover,
.admin-sidebar nav li a.active {
  background: var(--accent-pale); color: var(--accent); opacity: 1;
}
.admin-sidebar nav li.nav-heading {
  font-size: 9px; letter-spacing: .15em; color: #c0b4ac;
  text-transform: uppercase; padding: 16px 24px 6px;
}
.admin-content { flex: 1; padding: 32px; overflow-x: auto; }
.admin-title { font-size: 20px; font-weight: 700; margin-bottom: 24px; color: var(--charcoal); }
.admin-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.admin-card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 14px;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  background: #faf6f2; padding: 10px 16px; text-align: left;
  font-weight: 600; color: var(--mid-gray);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fdf9f6; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 24px;
}
.admin-stat-label { font-size: 12px; color: var(--mid-gray); margin-bottom: 8px; }
.admin-stat-num { font-size: 28px; font-weight: 700; font-family: var(--font-serif); color: var(--charcoal); }
.admin-stat-num.red { color: var(--accent); }
.admin-form { max-width: 640px; }
.admin-form .form-group { margin-bottom: 20px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 12px; color: var(--mid-gray); padding: 12px 0; }
.breadcrumb a { color: var(--mid-gray); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); font-size: 13px; color: var(--charcoal);
}
.page-link:hover, .page-link.active {
  background: var(--accent); color: var(--white);
  border-color: var(--accent); opacity: 1;
}

/* ---------- Complete page ---------- */
.complete-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #eef8f2; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 24px; font-size: 28px;
}

/* ---------- No-image placeholder ---------- */
.no-image {
  background: var(--cream); display: flex;
  align-items: center; justify-content: center;
  color: var(--light-gray); font-size: 12px; width: 100%; height: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav {
    display: none; position: fixed; inset: 64px 0 0;
    background: var(--white); z-index: 99; padding: 24px;
    overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav a { display: block; padding: 14px 0; font-size: 15px; border-bottom: none; }
  .nav-toggle { display: flex; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 24px; }
  .admin-sidebar { display: none; }
  .admin-layout { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: 1; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Top CTA grid (Organizer / Producer) ---------- */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 600px) {
  .cta-grid   { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 0 52px; }
  .challenge-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .money-bar-seg span { display: none; }
  .form-section { padding: 40px 16px; }
}
