/* 試食会評価システム 共通スタイル(デザイン見本 v6 / Initiate brand)
   チャコール(アプリバー)+ ライムグリーン(#9DBE2E系)アクセント・白基調。
   ページ個別のコンポーネント(試食カード・明細テーブル)は各テンプレートの
   インライン <style> 側に置き、ここには全画面で共有する土台と部品だけを定義する。
   フォントは _head_pwa.html で読み込む(Zen Kaku Gothic New / Archivo)。 */

:root {
  --bg:#F4F4F1;
  --surface:#FFFFFF;
  --ink:#1D1C1A;
  --ink-2:#5C5A57;
  --ink-3:#8B8985;
  --line:#E9E8E4;
  --line-2:#DAD8D3;
  --field:#F6F5F2;

  --char:#1F1E1B;
  --char-2:#34322E;

  --lime:#9DBE2E;
  --lime-deep:#86A621;
  --lime-text:#5E7A10;
  --lime-tint:#F1F7DE;
  --lime-tint-2:#E9F2CB;
  --lime-line:#D8E6AA;

  --ok:#177B49;    --ok-fill:#2EB67D;   --ok-bg:#E6F4EC;  --ok-line:#BFE6D2;
  --amber:#8A6611; --amber-fill:#ECB22E;--amber-bg:#FBF1D6;--amber-line:#EFD89C;
  --blue:#0B6E96;  --blue-fill:#36C5F0; --blue-bg:#E2F3FB; --blue-line:#B6E3F5;
  --red:#C0143F;   --red-fill:#E01E5A;  --red-bg:#FBE3EB;  --red-line:#F2BFD0;

  --r:13px; --r-sm:9px; --r-xs:7px;
  --sh:0 1px 2px rgba(29,28,26,.05),0 6px 16px rgba(29,28,26,.07);
  --ui:"Zen Kaku Gothic New",system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic UI","Meiryo",sans-serif;
  --fig:"Archivo","Zen Kaku Gothic New",sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; }

.num { font-family: var(--fig); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.eyebrow { font-family: var(--fig); font-weight: 800; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

/* 画面の中央寄せコンテナ(モバイル優先の1カラム) */
.device { width: 100%; max-width: 480px; margin: 0 auto; padding-bottom: 28px; }
.wrap { padding: 14px; }

/* ===== ヒーロー(トップ/ログイン/完了の見出し) ===== */
.hero {
  background: var(--char); color: #fff;
  padding: 28px 22px 24px; text-align: center;
  border-radius: 0 0 var(--r) var(--r);
}
.hero-logo {
  display: block; width: 62%; max-width: 240px;
  margin: 0 auto; background: #fff; border-radius: 14px; padding: 14px 18px;
}
.hero .rule { width: 42px; height: 2px; background: var(--lime); margin: 16px auto 14px; border-radius: 2px; }
.hero .tool-eye { color: #C8D89A; display: block; margin-bottom: 5px; font-size: 10px; }
.hero h1 { font-weight: 900; font-size: 23px; letter-spacing: .05em; margin: 0; }
.hero .pre { display: block; font-family: var(--fig); font-weight: 700; font-size: 9px; letter-spacing: .34em; color: #9C998F; margin-bottom: 6px; }
.hero .sub { font-family: var(--fig); font-size: 9px; letter-spacing: .3em; color: #86847B; margin-top: 7px; }

/* ===== アプリバー(試食会/事前登録の見出し) ===== */
.appbar { background: var(--char); color: #fff; padding: 13px 18px 14px; border-radius: 0 0 var(--r) var(--r); }
.appbar .brandline { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #36332E; padding-bottom: 10px; margin-bottom: 11px; }
.appbar .crumb { font-size: 11.5px; color: #B8B5AE; font-weight: 500; text-decoration: none; }
.appbar .crumb:active { opacity: .7; }
.appbar .row2 { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.appbar h1 { font-weight: 900; font-size: 20px; letter-spacing: .04em; margin: 0; }
.appbar .live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fig); font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #D6E2A8; text-transform: uppercase; }
.appbar .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(157,190,46,.32); }
.appbar .meta { display: flex; align-items: center; gap: 9px; margin-top: 11px; flex-wrap: wrap; }
.appbar .pill { display: inline-flex; align-items: center; gap: 7px; background: var(--char-2); border: 1px solid #45423C; border-radius: 8px; padding: 5px 10px; font-size: 13px; color: #EEEDE7; }
.appbar .pill .lab { font-family: var(--fig); font-size: 9px; font-weight: 700; letter-spacing: .1em; color: #A8A59C; text-transform: uppercase; margin: 0; }
.appbar .pill .num { font-weight: 700; color: #fff; }
.bar-logo { height: 26px; width: auto; background: #fff; border-radius: 7px; padding: 4px 9px; }

/* ===== 入口エントリ(トップの2リンク) ===== */
.entry { display: flex; align-items: center; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 14px; margin-bottom: 11px; text-decoration: none; color: var(--ink); }
.entry:active { opacity: .85; }
.entry .ei { flex: none; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.entry .ei svg { width: 20px; height: 20px; fill: none; stroke-width: 1.8; }
.entry.a .ei { background: var(--lime-tint); } .entry.a .ei svg { stroke: var(--lime-deep); }
.entry.b .ei { background: var(--blue-bg); } .entry.b .ei svg { stroke: var(--blue); }
.entry .et { flex: 1; }
.entry .et b { font-size: 16px; font-weight: 700; display: block; }
.entry .et span { font-size: 12px; color: var(--ink-3); }
.entry .chev { color: var(--ink-3); font-size: 20px; }

/* ===== パネル/入力部品 ===== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; margin-bottom: 12px; }
.panel h1 { font-weight: 900; font-size: 20px; letter-spacing: .02em; margin: 0 0 4px; }
.lead { color: var(--ink-2); margin: 0 0 16px; font-size: 14px; }
.lab { font-family: var(--fig); font-size: 9.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 4px; }
.field { margin-bottom: 12px; }

.inp, .sel, .input {
  width: 100%; font-family: var(--ui); font-size: 15px; color: var(--ink);
  background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 11px 12px;
}
.sel {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B8985' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input { font-size: 1.05rem; }

/* ===== ボタン ===== */
.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--ui); font-size: 15px; font-weight: 800; line-height: 1.15;
  border-radius: var(--r-sm); padding: 12px 16px; border: 1px solid transparent;
  width: 100%; cursor: pointer;
}
.btn-cta, .button { background: var(--lime); color: var(--ink); }
.btn-out { background: var(--surface); color: var(--ink); border-color: var(--line-2); font-weight: 700; }
.btn:active, .button:active { opacity: .88; }
.btn .ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* ===== 見出しの区切り ===== */
.sect { display: flex; align-items: center; gap: 8px; margin: 14px 0 9px; }
.sect .eyebrow { flex: none; color: var(--lime-text); display: inline-flex; align-items: center; gap: 6px; }
.sect .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }
.sect::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== 補助テキスト/通知 ===== */
.foot-note { font-size: 11px; color: var(--ink-3); text-align: center; padding: 2px 0; }
.hint { font-size: 12px; color: var(--ink-3); margin: 6px 2px; }
.note { color: var(--ink-3); font-size: 12px; margin-top: 16px; text-align: center; }
.error { background: var(--red-bg); color: var(--red); padding: 11px 12px; border: 1px solid var(--red-line); border-radius: var(--r-sm); margin-bottom: 12px; }
.notice { background: var(--lime-tint); color: var(--lime-text); padding: 11px 12px; border: 1px solid var(--lime-line); border-radius: var(--r-sm); margin-bottom: 12px; }

/* ===== ナビ(完了画面のリンク群) ===== */
.menu { display: flex; flex-direction: column; gap: 11px; margin-top: 6px; }
.navlink { display: block; text-align: center; padding: 14px; border-radius: var(--r-sm); background: var(--lime); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 800; }
.navlink.alt { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); font-weight: 700; }
.navlink:active { opacity: .88; }
