/* ★ Clean Beffy Concierge Styles (v834.7.4.1148) - Root Architecture */

/* 1. 別ページ（card.html 等）用の右上ミニBeffyボタン */
.gl-beffy-mini-btn {
  position: fixed;
  top: max(8px, env(safe-area-inset-top, 8px));
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fffdf7, #f3ead3);
  border: 2px solid #d4af37;
  box-shadow: 0 2px 8px rgba(15, 61, 38, 0.22);
  z-index: 100015;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 2px;
  -webkit-tap-highlight-color: transparent;
}
.gl-beffy-mini-btn.is-subview-active {
  display: flex;
}

/* 2. スコア入力パネル（HOLE X の横）に正式組み込みされたインラインBeffyボタン */
.gl-cls-panel-beffy-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fffdf7, #f3ead3);
  border: 2px solid #d4af37;
  box-shadow: 0 2px 6px rgba(15, 61, 38, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 2px;
  margin: 0 auto 0 8px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.gl-cls-panel-beffy-btn:active {
  transform: scale(0.94);
}

/* ガーリーテーマ時のボタン枠（浮きボタン＆入力パネル内ボタン共通） */
html[data-theme="girly"] .gl-beffy-mini-btn,
.gl-beffy-mini-btn.is-girly-mode,
html[data-theme="girly"] .gl-cls-panel-beffy-btn {
  background: linear-gradient(145deg, #fff8fa, #ffe4ec) !important;
  border-color: #f472b6 !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.22) !important;
}

.gl-beffy-mini-btn__icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gl-beffy-mini-btn__icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.gl-beffy-mini-btn .gl-beffy-mini-btn__icon--classic,
.gl-cls-panel-beffy-btn .gl-beffy-mini-btn__icon--classic { display: flex; }
.gl-beffy-mini-btn .gl-beffy-mini-btn__icon--girly,
.gl-cls-panel-beffy-btn .gl-beffy-mini-btn__icon--girly   { display: none; }

html[data-theme="girly"] .gl-beffy-mini-btn .gl-beffy-mini-btn__icon--girly,
.gl-beffy-mini-btn.is-girly-mode .gl-beffy-mini-btn__icon--girly,
html[data-theme="girly"] .gl-cls-panel-beffy-btn .gl-beffy-mini-btn__icon--girly {
  display: flex !important;
}
html[data-theme="girly"] .gl-beffy-mini-btn .gl-beffy-mini-btn__icon--classic,
.gl-beffy-mini-btn.is-girly-mode .gl-beffy-mini-btn__icon--classic,
html[data-theme="girly"] .gl-cls-panel-beffy-btn .gl-beffy-mini-btn__icon--classic {
  display: none !important;
}

/* 3. 入力パネル内の「1/1人目」と「📶 135KB」の縦2段スタック */
.gl-cls-panel-meta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
.gl-cls-panel-header .gl-cls-panel-meta-stack .gl-cls-panel-progress {
  font-size: 11px !important;
  line-height: 1.15 !important;
  padding: 2px 7px !important;
  margin: 0 !important;
}
.gl-cls-panel-header .gl-cls-panel-meta-stack .gl-cls-datameter {
  margin: 0 !important;
  padding: 2px 7px !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
}

/* 4. コンシェルジュ・5ステップ吹き出しモーダル（白抜き文字・1行ヘッダー完全保護） */
.gl-hatchy-bubble-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100025;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gl-hatchy-bubble {
  width: 100%;
  max-width: 365px;
  background: #fffdf7;
  border: 2.5px solid #d4af37;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  color: #162a20;
}
html[data-theme="girly"] .gl-hatchy-bubble,
.gl-hatchy-bubble.is-girly-mode {
  background: #fff9fb;
  border-color: #f472b6;
  color: #4c0519;
}
.gl-hb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.gl-hb-badge,
.gl-hb-badge * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.gl-hb-badge {
  background: #1a5f3f !important;
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}
html[data-theme="girly"] .gl-hb-badge,
.gl-hatchy-bubble.is-girly-mode .gl-hb-badge {
  background: #e11d48 !important;
  color: #ffffff !important;
}
.gl-hb-body {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}
.gl-hb-steps {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto;
}
.gl-hb-step-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 10px;
  padding: 7px 9px;
  text-align: left;
  cursor: pointer;
}
html[data-theme="girly"] .gl-hb-step-card,
.gl-hatchy-bubble.is-girly-mode .gl-hb-step-card {
  border-color: rgba(244, 114, 182, 0.5);
}
.gl-hb-step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1a5f3f;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
html[data-theme="girly"] .gl-hb-step-num,
.gl-hatchy-bubble.is-girly-mode .gl-hb-step-num {
  background: #e11d48;
}
.gl-hb-step-body {
  flex: 1;
  font-size: 12.4px;
  line-height: 1.4;
  font-weight: 700;
}
.gl-hb-step-title {
  font-size: 12.8px;
  font-weight: 900;
  color: #1a5f3f;
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
}
html[data-theme="girly"] .gl-hb-step-title,
.gl-hatchy-bubble.is-girly-mode .gl-hb-step-title {
  color: #be123c;
}
.gl-hb-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.gl-hb-btn-speak, .gl-hb-btn-close {
  border: none;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.gl-hb-btn-speak {
  background: rgba(26, 95, 63, 0.12);
  color: #1a5f3f;
}
html[data-theme="girly"] .gl-hb-btn-speak,
.gl-hatchy-bubble.is-girly-mode .gl-hb-btn-speak {
  background: rgba(225, 29, 72, 0.12);
  color: #be123c;
}
.gl-hb-btn-close {
  background: #1a5f3f;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="girly"] .gl-hb-btn-close,
.gl-hatchy-bubble.is-girly-mode .gl-hb-btn-close {
  background: #e11d48;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* === UI101_4_ESCORT_STYLES === */
.gl-beffy-mini-btn.is-bottom-float {
  top: auto !important;
  bottom: max(76px, calc(env(safe-area-inset-bottom, 12px) + 68px)) !important;
  right: 12px !important;
}
.gl-beffy-voice-choice-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 20, 0.58);
  z-index: 100030;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.gl-beffy-voice-choice-card {
  width: 100%;
  max-width: 368px;
  background: #fffdf7;
  border: 2.5px solid #d4af37;
  border-radius: 22px;
  padding: 18px 16px 15px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
  color: #162a20;
  text-align: center;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
}
.gl-bvc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1a5f3f;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 11.5px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
}
.gl-bvc-title {
  margin: 10px 0 6px;
  font-size: 18.5px;
  font-weight: 900;
  line-height: 1.38;
  color: #0f291e;
}
.gl-bvc-desc {
  font-size: 12.8px;
  line-height: 1.55;
  color: #475569;
  font-weight: 700;
  margin-bottom: 14px;
}
.gl-bvc-btn-on {
  display: block;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a5f3f, #12452c);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 15.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(18, 69, 44, 0.28);
}
.gl-bvc-btn-on small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.92;
  margin-top: 2px;
  color: #fde68a !important;
  -webkit-text-fill-color: #fde68a !important;
}
.gl-bvc-btn-off {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 11px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}
.gl-bvc-note {
  margin-top: 9px;
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}

/* 当日ステップ自動エスコート・ミニ吹き出しバー */
.gl-beffy-escort-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(14px, env(safe-area-inset-bottom, 14px));
  width: calc(100% - 24px);
  max-width: 400px;
  background: #fffdf7;
  border: 2px solid #d4af37;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  z-index: 100022;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #162a20;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
}
.gl-beb-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.gl-beb-text {
  flex: 1;
  font-size: 12.2px;
  font-weight: 800;
  line-height: 1.42;
  text-align: left;
}
.gl-beb-replay {
  border: 1.5px solid #1a5f3f;
  background: #eef8f2;
  color: #1a5f3f;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}
.gl-beb-close {
  border: 0;
  background: #f1f5f9;
  color: #475569;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
}
.gl-hb-voice-toggle {
  border: 1.5px solid #1a5f3f;
  background: #f0fdf4;
  color: #15803d;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.gl-hb-voice-toggle.is-off {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #64748b;
}


/* 情報バー（時計は左隅・ロッカーは右隅・🐝はロッカー直前で長文カウントダウンとも絶対重ならない設計） */
.gl-cls-info-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
  padding: 7px 9px !important;
}
.gl-cls-info-bar > .gl-cls-info-item[data-info="afternoon"] {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 4px !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
}
.gl-cls-info-bar [data-info="afternoon"] .gl-cls-info-item__count {
  font-size: 11.5px !important;
  letter-spacing: -0.03em !important;
  white-space: nowrap !important;
}
.gl-cls-info-bar > .gl-cls-info-item[data-info="locker"] {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 2px !important;
  justify-content: flex-end !important;
  border-left: none !important;
  white-space: nowrap !important;
}
.gl-cls-info-bar > .gl-cls-info-item[data-info="locker"] .gl-cls-info-item__value {
  font-size: 15.5px !important;
}
.gl-cls-infobar-beffy-btn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50%;
  background: linear-gradient(145deg, #fffdf7, #f3ead3);
  border: 2px solid #d4af37;
  box-shadow: 0 2px 5px rgba(15, 61, 38, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 1px;
  margin: 0 3px 0 auto !important;
  flex: 0 0 28px !important;
  font-size: 15px;
  line-height: 1;
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.gl-cls-infobar-beffy-btn:active {
  transform: scale(0.93);
}
@media (max-width: 380px) {
  .gl-cls-info-bar {
    padding: 6px 7px !important;
    gap: 3px !important;
  }
  .gl-cls-info-bar [data-info="afternoon"] .gl-cls-info-item__value {
    font-size: 15.5px !important;
  }
  .gl-cls-info-bar [data-info="afternoon"] .gl-cls-info-item__count {
    font-size: 10.5px !important;
  }
  .gl-cls-info-bar > .gl-cls-info-item[data-info="locker"] .gl-u-81 {
    display: none !important; /* 超小型画面のみ 🔑＋番号 にして絶対に被らせない */
  }
}
html[data-theme="girly"] .gl-cls-infobar-beffy-btn {
  background: linear-gradient(145deg, #fff8fa, #ffe4ec) !important;
  border-color: #f472b6 !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.22) !important;
}
.gl-cls-infobar-beffy-btn .gl-beffy-mini-btn__icon--classic { display: flex; }
.gl-cls-infobar-beffy-btn .gl-beffy-mini-btn__icon--girly   { display: none; }
html[data-theme="girly"] .gl-cls-infobar-beffy-btn .gl-beffy-mini-btn__icon--girly { display: flex !important; }
html[data-theme="girly"] .gl-cls-infobar-beffy-btn .gl-beffy-mini-btn__icon--classic { display: none !important; }


/* === UI102.4: ガーリー(Girly)テーマ完全連動（音声選択モーダル・自動エスコートバー・情報バーSVGサイズ最適化） === */
html[data-theme="girly"] .gl-beffy-voice-choice-backdrop,
body[data-theme="girly"] .gl-beffy-voice-choice-backdrop {
  background: rgba(60, 12, 30, 0.52);
}
html[data-theme="girly"] .gl-beffy-voice-choice-card,
body[data-theme="girly"] .gl-beffy-voice-choice-card,
.gl-beffy-voice-choice-card.is-girly-mode {
  background: #fff9fb !important;
  border-color: #f472b6 !important;
  color: #4c0519 !important;
  box-shadow: 0 16px 38px rgba(190, 18, 60, 0.24) !important;
}
html[data-theme="girly"] .gl-bvc-badge,
body[data-theme="girly"] .gl-bvc-badge,
.gl-beffy-voice-choice-card.is-girly-mode .gl-bvc-badge {
  background: #e11d48 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="girly"] .gl-bvc-title,
body[data-theme="girly"] .gl-bvc-title,
.gl-beffy-voice-choice-card.is-girly-mode .gl-bvc-title {
  color: #881337 !important;
}
html[data-theme="girly"] .gl-bvc-desc,
body[data-theme="girly"] .gl-bvc-desc,
.gl-beffy-voice-choice-card.is-girly-mode .gl-bvc-desc {
  color: #6b2139 !important;
}
html[data-theme="girly"] .gl-bvc-btn-on,
body[data-theme="girly"] .gl-bvc-btn-on,
.gl-beffy-voice-choice-card.is-girly-mode .gl-bvc-btn-on {
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  box-shadow: 0 5px 14px rgba(225, 29, 72, 0.30) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="girly"] .gl-bvc-btn-on small,
body[data-theme="girly"] .gl-bvc-btn-on small,
.gl-beffy-voice-choice-card.is-girly-mode .gl-bvc-btn-on small {
  color: #ffe4e6 !important;
  -webkit-text-fill-color: #ffe4e6 !important;
}
html[data-theme="girly"] .gl-bvc-btn-off,
body[data-theme="girly"] .gl-bvc-btn-off,
.gl-beffy-voice-choice-card.is-girly-mode .gl-bvc-btn-off {
  border-color: #fbcfe8 !important;
  background: #ffffff !important;
  color: #881337 !important;
}

/* 自動エスコート・ミニ吹き出しバーのガーリー配色 */
html[data-theme="girly"] .gl-beffy-escort-bar,
body[data-theme="girly"] .gl-beffy-escort-bar,
.gl-beffy-escort-bar.is-girly-mode {
  background: #fff9fb !important;
  border-color: #f472b6 !important;
  color: #4c0519 !important;
  box-shadow: 0 10px 26px rgba(190, 18, 60, 0.22) !important;
}
html[data-theme="girly"] .gl-beb-replay,
body[data-theme="girly"] .gl-beb-replay,
.gl-beffy-escort-bar.is-girly-mode .gl-beb-replay {
  border-color: #f472b6 !important;
  background: #fff1f2 !important;
  color: #be123c !important;
}
html[data-theme="girly"] .gl-beb-close,
body[data-theme="girly"] .gl-beb-close,
.gl-beffy-escort-bar.is-girly-mode .gl-beb-close {
  background: #ffe4e6 !important;
  color: #9f1239 !important;
}

/* 5ステップモーダル内の音声ON/OFFトグルのガーリー配色 */
html[data-theme="girly"] .gl-hb-voice-toggle,
body[data-theme="girly"] .gl-hb-voice-toggle,
.gl-hatchy-bubble.is-girly-mode .gl-hb-voice-toggle {
  border-color: #f472b6 !important;
  background: #fff1f2 !important;
  color: #be123c !important;
}
html[data-theme="girly"] .gl-hb-voice-toggle.is-off,
body[data-theme="girly"] .gl-hb-voice-toggle.is-off,
.gl-hatchy-bubble.is-girly-mode .gl-hb-voice-toggle.is-off {
  border-color: #e2e8f0 !important;
  background: #f8fafc !important;
  color: #64748b !important;
}

/* 情報バー（28px丸枠）内のガーリーSVGアイコン・パネル内36px枠アイコンの精密サイズ調整 */
.gl-cls-infobar-beffy-btn .gl-beffy-mini-btn__icon,
.gl-cls-infobar-beffy-btn .gl-beffy-mini-btn__icon svg {
  width: 22px !important;
  height: 22px !important;
}
.gl-cls-panel-beffy-btn .gl-beffy-mini-btn__icon,
.gl-cls-panel-beffy-btn .gl-beffy-mini-btn__icon svg {
  width: 28px !important;
  height: 28px !important;
}

@media print {
  .gl-beffy-mini-btn,
  .gl-cls-panel-beffy-btn,
  .gl-cls-infobar-beffy-btn,
  .gl-hatchy-bubble-backdrop,
  .gl-beffy-voice-choice-backdrop,
  .gl-beffy-escort-bar {
    display: none !important;
  }
}

.gl-beffy-mini-btn.is-watch-top {
  top: calc(54px + env(safe-area-inset-top, 0px)) !important;
  bottom: auto !important;
  right: 12px !important;
}
