
/* ジロミル ワイヤーフレーム共通スタイル
   ※配色は「デザインメモ/配色案.md」の候補Aを仮適用したもの。正式色ではない。
   方針：作り込みすぎない。情報が素早く読めることを優先（要件定義書8.0.6） */

:root {
  /* 仮の配色（候補A）。のれん・看板の実物写真で運営者が最終確認するまでの仮値 */
  --jiro-yellow: #FFCC00;      /* テーマカラー：二郎のれん風イエロー（仮） */
  --jiro-yellow-dark: #E0B400; /* ボーダー・強調用の濃いイエロー（仮） */
  --jiro-red: #D7000F;         /* 差し色：二郎の赤（仮） */
  --ink: #222222;              /* 基本文字色 */
  --ink-sub: #666666;          /* 補足文字色 */
  --bg: #FAF8F3;               /* ページ背景（生成りに近い薄黄） */
  --card-bg: #FFFFFF;
  --border: #E0DCD0;
  --tag-bg: #FFF3C4;
  --tag-text: #7A5B00;
  --warn-bg: #FFF0E8;
  --warn-border: #E8A06A;
  --note-bg: #F1F6FF;
  --note-border: #9FC0E8;
  --closed-bg: #F2F2F2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  background: #DDD8C8;
  color: var(--ink);
  display: flex;
  justify-content: center;
}

.device {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  background: var(--bg);
  box-shadow: 0 0 24px rgba(0,0,0,0.15);
  padding-bottom: 90px; /* 固定下部バー分の余白 */
}

/* ===== ワイヤーフレーム注記（実際のUIではなく説明） ===== */
.wf-banner {
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  line-height: 1.6;
}
.wf-banner b { color: var(--jiro-yellow); }

.note {
  background: var(--note-bg);
  border: 1px dashed var(--note-border);
  color: #2a4b73;
  font-size: 11.5px;
  line-height: 1.6;
  padding: 8px 10px;
  margin: 8px 12px;
  border-radius: 4px;
}
.note b { color: #16345c; }

/* ===== ヘッダー ===== */
header.site {
  background: var(--jiro-yellow);
  border-bottom: 3px solid var(--jiro-red);
  padding: 10px 14px;
}
.site-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-row .icon { font-size: 20px; width: 28px; text-align: center; }
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.tagline {
  font-size: 11px;
  color: #5a4a00;
  margin-top: 4px;
  text-align: center;
}
.back-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.back-row .icon { font-size: 18px; }

/* ===== 検索窓 ===== */
.search-box {
  margin: 10px 12px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink-sub);
  gap: 6px;
}

/* ===== 折りたたみ（details/summary） ===== */
details.accordion {
  margin: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
details.accordion > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFBEF;
}
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion > summary::after { content: "▼"; font-size: 10px; color: var(--ink-sub); }
details.accordion[open] > summary::after { content: "▲"; }
.accordion-body { padding: 10px 12px; font-size: 12.5px; }

/* ===== 見出し ===== */
h2.section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 18px 12px 8px;
  padding-left: 8px;
  border-left: 4px solid var(--jiro-red);
}
h3.sub-title {
  font-size: 12.5px;
  font-weight: 700;
  margin: 10px 0 6px;
  color: var(--ink);
}

/* ===== 店舗カード（トップページ・一覧） ===== */
.store-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 8px 12px;
  padding: 10px 12px;
}
.store-card .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.store-card .name a {
  color: inherit;
  text-decoration: none;
}
.line {
  font-size: 12px;
  color: var(--ink-sub);
}
.store-card .line {
  margin-top: 3px;
}
.store-card .tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.tag.red { background: #FCE4E4; color: var(--jiro-red); }
.eta-row {
  margin-top: 6px;
  font-size: 11px;
  color: #999;
  border-top: 1px dashed var(--border);
  padding-top: 6px;
}

/* ===== 「本日の営業」の見出し直下の目立つテキスト（.noticeの小さい注記とは別、2026-11-02追加） ===== */
.status-highlight {
  margin: 0 12px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ===== 営業状況バッジ（店舗一覧ページ専用） ===== */
.status-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}
.status-open      { background: #E3F3E1; color: #2A7D2A; }
.status-closed-reg{ background: var(--closed-bg); color: #777; }
.status-closed-tmp{ background: #FCE4E4; color: var(--jiro-red); }
.status-earlyend  { background: #FFF0E8; color: #B65B1F; }
.status-break     { background: #EFEAF8; color: #6A4FB0; }
.status-outofhour { background: var(--closed-bg); color: #999; }
.status-longterm  { background: var(--closed-bg); color: #777; } /* 長期休業中の可能性あり（2026-10-25追加） */

/* ===== 注記アイコン（公式X未保有店舗向け。2026-10-25追加）
   見た目のみ確定。ツールチップ本文は22_法務総務が確定するまでの仮置き（プレースホルダー）。 ===== */
.x-unverified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  border-radius: 50%;
  background: #EFEFEF;
  border: 1px solid #ccc;
  color: #666;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  cursor: help;
}

/* ===== タブ（地域タブ） ===== */
.tabs {
  display: flex;
  margin: 10px 12px 0;
  border-bottom: 2px solid var(--border);
}
.tab {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  padding: 8px 2px;
  color: var(--ink-sub);
}
.tab.active {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 3px solid var(--jiro-red);
  margin-bottom: -2px;
}

/* ===== 並び替えピル ===== */
.sort-row {
  display: flex;
  gap: 6px;
  margin: 10px 12px;
  flex-wrap: wrap;
}
.pill {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-sub);
}
.pill.active {
  background: var(--jiro-yellow);
  border-color: var(--jiro-yellow-dark);
  color: var(--ink);
  font-weight: 700;
}

/* ===== 特徴バー ===== */
.trait-row { margin: 10px 0; }
.trait-label { font-size: 11.5px; color: var(--ink-sub); margin-bottom: 3px; }
.trait-bar {
  position: relative;
  height: 20px;
  background: linear-gradient(to right, #FFE9A8, #FFFFFF, #FFD9D9);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.trait-bar .ends {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-sub);
  padding: 0 8px;
}
.trait-bar .marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--jiro-red);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--jiro-red);
  transform: translate(-50%, -50%);
}

/* ===== 記号テーブル（注意ポイント） ===== */
table.mark-table, table.trend-table, table.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 12px;
}
table.mark-table td, table.mark-table th,
table.trend-table td, table.trend-table th,
table.hours-table td, table.hours-table th {
  border: 1px solid var(--border);
  padding: 7px 8px;
  text-align: center;
}
table.mark-table th, table.trend-table th, table.hours-table th {
  background: #FFFBEF;
  font-weight: 700;
}
table.mark-table td:first-child, table.hours-table td:first-child {
  text-align: left;
  width: 42%;
}
.ok   { color: #2A7D2A; font-weight: 700; }
.ng   { color: var(--jiro-red); font-weight: 700; }
.dash { color: #aaa; }

/* ===== 新着情報ボックス ===== */
.news-box {
  margin: 10px 12px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
}
.news-box .news-item { margin: 3px 0; }
.news-box .news-item b { color: #B65B1F; }
.news-box.empty {
  background: var(--card-bg);
  border: 1px dashed var(--border);
  color: var(--ink-sub);
}

/* ===== メニュー表 ===== */
table.menu-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.menu-table td { padding: 7px 4px; border-bottom: 1px solid var(--border); }
table.menu-table td.price { text-align: right; white-space: nowrap; }

/* ===== 広告枠 ===== */
.ad-slot {
  margin: 14px 12px;
  border: 1px dashed #999;
  background: #EFEFEF;
  color: #888;
  font-size: 11px;
  text-align: center;
  padding: 18px 8px;
  border-radius: 4px;
}

/* ===== 地図ダミー ===== */
.map-dummy {
  margin: 8px 12px;
  height: 140px;
  background: repeating-linear-gradient(45deg, #e6e2d4, #e6e2d4 10px, #ded9c8 10px, #ded9c8 20px);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 12px;
}

/* ===== ボタン ===== */
.btn {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin: 8px 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}
.btn.primary { background: var(--jiro-red); color: #fff; border-color: var(--jiro-red); }
.btn.outline { background: #fff; color: var(--jiro-red); border-color: var(--jiro-red); }

/* Googleログインボタン：公式配布の完成品画像（背景・枠線・文言まで内包）をそのまま表示する。
   画像自体がボタンの見た目を完結させているため、.btnのような背景・枠線は付けない
   （Googleブランドガイドライン：ロゴの改変・独自デザインとの重畳を禁止）。 */
.google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 8px 0;
  padding: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.google-signin-btn img { height: 40px; width: auto; max-width: 100%; display: block; }

/* ===== 固定下部アクションバー（店舗ページ） ===== */
.bottom-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 420px;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}
.bottom-bar .btn { flex: 1; margin: 0; }

/* ===== フッター ===== */
footer.site {
  background: #2A2A2A;
  color: #ccc;
  font-size: 11px;
  padding: 16px 14px 24px;
  margin-top: 20px;
  line-height: 1.9;
}
footer.site .disclaim { color: #f0d060; font-weight: 700; margin-bottom: 6px; }
footer.site a { color: #ccc; text-decoration: underline; margin-right: 10px; }

/* 折りたたみ内のリスト */
ul.plain { margin: 4px 0; padding-left: 18px; font-size: 12px; }
ul.plain li { margin: 3px 0; }


a.store-card { display:block; color:inherit; text-decoration:none; }
.logo-icon { vertical-align:middle; margin-right:6px; }

/* Shared dropdown navigation */
header.site { position:relative; min-height:44px; }
header.site > .logo, header.site > .back-row { padding-right:50px; }
.menu-toggle { display:flex; align-items:center; justify-content:center; position:fixed; top:8px; right:10px; width:44px; height:44px; padding:0; border:1px solid var(--border); border-radius:5px; background:var(--jiro-yellow); color:var(--ink); font:inherit; font-size:24px; line-height:1; cursor:pointer; z-index:102; }
.menu-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.3); z-index:100; }
.menu-panel { position:absolute; top:100%; left:0; right:0; padding:8px 0; background:#fff; border-bottom:1px solid var(--border); z-index:101; }
.menu-overlay[hidden], .menu-panel[hidden] { display:none; }
.menu-panel ul.site-list { margin:0 12px 4px; padding:0; list-style:none; border-top:1px solid var(--border); }
.menu-panel ul.site-list li { border-bottom:1px solid var(--border); }
.menu-panel ul.site-list li a { display:block; padding:8px 4px; font-size:12.5px; color:var(--ink); text-decoration:underline; }

.news-box .news-sub-heading { margin-top: 1rem; font-weight: 600; color: #526777; }
.news-box .announcement-item { margin-top: .5rem; padding-left: .75rem; border-left: 3px solid #879EAE; color: #526777; }

table.menu-table th:nth-child(2), table.menu-table th:nth-child(3),
table.menu-table td:nth-child(2), table.menu-table td:nth-child(3) { text-align: center; }
body[data-page="guide"] ul.plain,
body[data-page="guide"] ol,
body[data-page="guide"] p { margin-left: 12px; margin-right: 12px; }

/* ===== コール対話デモ（チャット形式） ===== */
.chat-demo { margin: 10px 12px 4px; }
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 6px 0;
}
.chat-row.user { justify-content: flex-end; }
.chat-avatar { font-size: 18px; flex: 0 0 22px; text-align: center; }
.bubble {
  max-width: 76%;
  font-size: 12.5px;
  line-height: 1.6;
  padding: 8px 12px;
  border-radius: 14px;
}
.bubble.staff {
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.bubble.user {
  background: var(--jiro-yellow);
  border: 1px solid var(--jiro-yellow-dark);
  color: var(--ink);
  font-weight: 700;
  border-bottom-right-radius: 4px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.7;
  margin: 8px 12px 4px;
}
.call-check-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 6px 0 10px;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.call-check {
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.call-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--jiro-red);
}
