/* 2026-11-19 UI点検（番号9〜16）の修正。
   引き継いだCSS（style.css / atelier.css / neon-map.css）は書き換えず、このファイルを最後に読み込んで上書きする。
   上書きを確実にするため、文字の大きさと色には !important を使っている。 */
:root { --ink-soft: #5c4d63; }

/* ---- 番号10：文字の大きさ（本文16px、操作ボタン14px、補足12px以上） ---- */
.panel .bubble, .map-callout .bubble, .panel .desc, .map-callout .desc,
.item-name, .category-name, .card h3, .card h4, .facility h4, .facility .lead,
.guide dd, #guideLine, .contact-how p, .question, .mini-name, .panel-body > p:not(.count):not(.note):not(.step) { font-size: 16px !important; }
#panelTitle, .map-callout h2 { font-size: 17px !important; }
.btn, .opt, .chip, .tab, #searchBtn, .ghost-btn, .swap-guide, .speech-swap, .item-open,
.chip-btn, .map-callout-close, .panel summary, .map-callout summary, .search-label, .sec-title, .contact-how h4 { font-size: 14px !important; }
.count, .meta, .note, .who, .search-help, .guide-eyebrow, .phone-top span, .local-mark, .category-number,
.speech-source, .btn .sub, .step, .tag, .credits p, .panel dt, .map-callout dt, .brand-sub, .alert, .map-callout-count,
.badge { font-size: 12px !important; }
.item-open .ext, .btn .ext { font-size: 12px !important; }
.search input { font-size: 16px !important; }
.search input::placeholder { font-size: 14px !important; }

/* ---- 番号10：補足文の色（通常の文字はコントラスト比4.5:1以上） ---- */
.panel .count, .panel .note, .search-help, .guide-eyebrow, .phone-top span, .local-mark, .category-number,
.panel .who, .map-callout .who, .speech-source, .map-callout-count, .panel .meta, .map-callout .meta,
.panel dt, .map-callout dt, .panel .tag, .map-callout .tag, .step, .credits p, .category-caret,
.category-group .count { color: var(--ink-soft) !important; }

/* ---- 番号10：長い正式名称は折り返して全文を出す ---- */
.item-name, .category-name, .card h3, .card h4, .facility h4, #panelTitle, .map-callout h2, .question,
.btn .sub, .meta { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; }
.category-group { height: auto !important; min-height: 55px; }
.panel-head { flex-wrap: wrap; row-gap: 6px; }
.ghost-btn { white-space: normal !important; text-align: left; max-width: 100%; line-height: 1.3; }

/* ---- 番号13：押しやすさ（縦横44px以上、間隔8px以上） ---- */
@media (max-width: 820px) {
  .btn, .opt, .chip, .tab, .ghost-btn, .chip-btn, .speech-swap, .swap-guide, .item-open, .item-toggle,
  .panel summary, .map-callout summary, #searchBtn, .map-callout-close { min-height: 44px !important; min-width: 44px; }
  .top > .chip-btn { min-height: 44px !important; padding: 0 12px !important; }
  .row, .chips, .options { gap: 10px !important; }
  .panel summary, .map-callout summary { display: flex; align-items: center; }
  .tab { font-size: 13px !important; }
  #mapWrap .map-tools .chip-btn, .map-search-btn { font-size: 13px !important; }
  #mapWrap .map-tools { gap: 8px; }
}

/* ---- 番号11：スマホの地図タブに置く検索の入口 ---- */
.map-search-btn { display: none; }
@media (max-width: 820px) {
  body.mobile-map:not(.no-map) .map-search-btn {
    display: inline-flex; align-items: center; gap: 6px; position: absolute; left: 12px; top: 20px; z-index: 3;
    min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #ffdeea; background: #f4c2d4; color: #3e2536; font-weight: 700;
  }
}

/* ---- 番号9・17：目的別の案内、今日の運勢、ほめて、相談先 ---- */
.guide-node, .mini { display: grid; gap: 12px; margin-bottom: 14px; }
.guide-node .question { margin: 0; }
.mini-name { margin: 0; font-weight: 700; color: #6d2f52; }
.contact-how { border: 1px dashed #b9a3c0; border-radius: 12px; padding: 10px 14px; background: #fffaf5; }
.contact-how h4 { margin: 0 0 4px; color: #4a3a52; }
.contact-how p { margin: 0; color: #392d42; line-height: 1.7; }

/* 戻るボタンの文言が長いときは、見出しを次の行へ送る */
#panelTitle { flex: 1 1 9em; min-width: 0; }

/* ---- 2026-11-19 追加：PCでも、パネル上部の案内係の枠（大きい立ち絵・ひとこと・担当を交代）を出さない ----
   スマホ幅では以前から出していない。担当の交代は、各セリフの立ち絵の下にある「交代」ボタンで行う */
.panel .guide-intro { display: none !important; }
@media (min-width: 821px) {
  .speech-swap {
    display: block; width: 100%; min-height: 32px; margin: 6px 0 0; padding: 2px 4px; border: 1px solid #cfb5c8; border-radius: 10px;
    background: #fff8fc; color: #6f4660; line-height: 1.3; cursor: pointer; white-space: nowrap;
  }
  .speech-swap:hover { background: #f6e3ee; }
}
