/* 地震対応の臨時お知らせ画面（TOPページの前に表示する全画面オーバーレイ）
   一時的な機能のため、既存 style.css には手を入れずこのファイルに閉じている。
   撤去する際は index.html の2行とこのファイル/js を消すだけでよい。 */

#quake-notice {
  position: fixed;
  inset: 0;
  z-index: 5000;
  /* TOPページのメイン画像を背景に使う。
     営業状況が読みづらくならないよう、暗幕を重ねて輝度を落としている。 */
  background-color: #0a0e1a;
  background-image:
    linear-gradient(rgba(8, 11, 20, 0.78), rgba(8, 11, 20, 0.87)),
    url("../images/food_bar.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#quake-notice[hidden] {
  display: none;
}

body.quake-notice-open {
  overflow: hidden;
}

.qn-inner {
  width: 100%;
  max-width: 640px;
  padding: 48px 24px 56px;
  box-sizing: border-box;
  text-align: center;
}

/* ロゴと店名を「ひとかたまり」として中央に置く */
.qn-brandline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 32px;
}

.qn-logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.qn-brand {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.625rem;
  /* 24px(18pt) → 26px(19.5pt) */
  color: #d4a574;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  /* ロゴと縦中心を揃えるため、行の余白を持たせない */
  margin: 0;
}

.qn-headline {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.45rem;
  line-height: 1.55;
  color: #fff;
  margin: 0 0 18px;
}

.qn-headline::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: #d4a574;
  margin: 18px auto 0;
}

.qn-message {
  font-size: 0.95rem;
  line-height: 2;
  color: #ccc;
  text-align: left;
  margin: 0 0 34px;
  white-space: pre-wrap;
}

/* --- 店舗ごとの営業状況 --- */

.qn-store {
  /* 背景に写真が入るため、店舗情報が沈まないよう下地を少し濃くしている */
  background: rgba(8, 11, 20, 0.62);
  border: 1px solid rgba(212, 165, 116, 0.22);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  text-align: left;
}

.qn-store-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.qn-store-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem;
  color: #d4a574;
  font-weight: 700;
}

.qn-store-name small {
  display: block;
  font-size: 0.7rem;
  color: #888;
  margin-top: 3px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

.qn-badge {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}

.qn-badge.is-normal {
  color: #7fd6a2;
  border-color: rgba(127, 214, 162, 0.5);
  background: rgba(127, 214, 162, 0.1);
}

.qn-badge.is-closed {
  color: #ff8f8f;
  border-color: rgba(255, 143, 143, 0.5);
  background: rgba(255, 143, 143, 0.1);
}

.qn-badge.is-opens {
  color: #f0c274;
  border-color: rgba(240, 194, 116, 0.5);
  background: rgba(240, 194, 116, 0.1);
}

.qn-store-note {
  font-size: 0.85rem;
  color: #bbb;
  line-height: 1.7;
  margin-top: 10px;
}

.qn-tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #d4a574 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
}

.qn-tel::before {
  content: "\260E";
  font-size: 0.95rem;
}

/* --- 下部 --- */

.qn-updated {
  font-size: 0.75rem;
  color: #777;
  margin: 22px 0 30px;
}

.qn-enter {
  display: inline-block;
  min-width: 220px;
  padding: 16px 40px;
  background: transparent;
  color: #d4a574;
  border: 1px solid #d4a574;
  border-radius: 4px;
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.qn-enter:hover,
.qn-enter:focus-visible {
  background: #d4a574;
  color: #0a0e1a;
}

.qn-enter-sub {
  display: block;
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 0.1em;
  margin-top: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

.qn-loading {
  color: #888;
  font-size: 0.9rem;
  padding: 60px 0;
}

/* --- ENTER で閉じたあと、いつでも営業状況を開き直せる常設バー --- */

#qn-reopen {
  position: fixed;
  top: 70px;
  /* ヘッダー(高さ70px)の真下 */
  left: 0;
  right: 0;
  z-index: 900;
  /* ヘッダー/メニュー(1000)より下 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 11px 16px;
  background: rgba(10, 14, 26, 0.96);
  border: none;
  border-bottom: 1px solid rgba(212, 165, 116, 0.45);
  color: #d4a574;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* ゆっくり点滅させて気づいてもらう。
   Bar Price Manager の一括選択（opacity 1→0.7 の明滅）と
   ランクバッジのネオン発光（box-shadow）を合わせた表現。 */
@keyframes qn-bar-neon {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 18px rgba(240, 194, 116, 0.32), inset 0 0 22px rgba(240, 194, 116, 0.07);
    border-bottom-color: rgba(212, 165, 116, 0.75);
  }

  50% {
    opacity: 0.72;
    box-shadow: 0 0 5px rgba(240, 194, 116, 0.10), inset 0 0 0 rgba(240, 194, 116, 0);
    border-bottom-color: rgba(212, 165, 116, 0.3);
  }
}

#qn-reopen {
  animation: qn-bar-neon 2.8s ease-in-out infinite;
}

@keyframes qn-dot-neon {

  0%,
  100% {
    box-shadow: 0 0 9px 2px rgba(240, 194, 116, 0.85);
  }

  50% {
    box-shadow: 0 0 2px 0 rgba(240, 194, 116, 0.25);
  }
}

#qn-reopen .qn-bar-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0c274;
  animation: qn-dot-neon 2.8s ease-in-out infinite;
}

/* 「視差効果を減らす」設定の端末では、文字が薄くなる明滅はやめ、
   発光だけをゆっくり脈打たせる（気づいてもらう目的は残す）。 */
@keyframes qn-bar-neon-soft {

  0%,
  100% {
    box-shadow: 0 0 18px rgba(240, 194, 116, 0.32), inset 0 0 22px rgba(240, 194, 116, 0.07);
    border-bottom-color: rgba(212, 165, 116, 0.75);
  }

  50% {
    box-shadow: 0 0 5px rgba(240, 194, 116, 0.10), inset 0 0 0 rgba(240, 194, 116, 0);
    border-bottom-color: rgba(212, 165, 116, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  #qn-reopen {
    animation: qn-bar-neon-soft 4s ease-in-out infinite;
  }

  #qn-reopen .qn-bar-dot {
    animation: qn-dot-neon 4s ease-in-out infinite;
  }
}

#qn-reopen .qn-bar-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#qn-reopen .qn-bar-cta {
  flex-shrink: 0;
  border: 1px solid rgba(212, 165, 116, 0.6);
  border-radius: 3px;
  padding: 2px 9px;
  font-size: 0.72rem;
}

@media (max-width: 600px) {
  #qn-reopen {
    font-size: 0.74rem;
    padding: 10px 12px;
    gap: 7px;
  }
}

@media (max-width: 600px) {
  .qn-inner {
    padding: 36px 18px 48px;
  }

  .qn-headline {
    font-size: 1.2rem;
  }

  .qn-store-head {
    align-items: flex-start;
  }
}
