/* お知らせバー（トップページ ヘッダー内）
   配置：.front .header 内、.logo と .front-nav の間、ページ中央（PC）
   　　　768px以下では .front .header 自体が非表示になるため、
   　　　固定ヘッダー（.nav-2）の直下に独自レイアウトで表示する（スマートフォン / iPhone 16 基準）
   表示期間：2026年11月30日まで（制御は functions.php の spring_notice_bar_is_active() ） */

.notice-bar {
  visibility: visible; /* 768px以下で親 .front .header の visibility:hidden を上書きするため常に指定 */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: min(90vw, 620px);
  display: flex;
  align-items: center;
  gap: 16px;
  max-height: 100px;
  padding: 10px 20px;
  background-color: #e0b4c5;
  border-radius: 8px;
  color: rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.notice-bar__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.notice-bar__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.8);
}

.notice-bar__label {
  font-weight: 600;
}

.notice-bar .notice-bar__title {
  display: inline-block;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: underline;
}

.notice-bar .notice-bar__title:hover {
  opacity: 0.7;
}

.notice-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.notice-bar .notice-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.8);
  background-color: #ffffff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.notice-bar .notice-bar__btn:hover {
  opacity: 0.8;
}

.notice-bar.is-closed {
  display: none;
}

/* 769px〜1024px（タブレット）：.front .header の幅が可変になりロゴ／ナビとの
   衝突を避けづらいため、今回のスマホ対応の対象外として従来通り非表示のまま。 */
@media (min-width: 769px) and (max-width: 1024px) {
  .notice-bar {
    display: none;
  }
}

/* ============================================================
   768px以下（スマートフォン / iPhone 16 = 393px 基準）
   .front .header が visibility:hidden になるため、お知らせバーは
   固定ヘッダー（.nav-2 / 高さは JS で --nav2-height に反映）の直下に
   画面幅いっぱいの帯として独自配置する。
   ============================================================ */
@media (max-width: 768px) {
  .notice-bar.is-closed {
    display: none;
  }

  .notice-bar {
    position: fixed;
    top: var(--nav2-height, 68px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-height: none;
    padding: 12px 16px;
    border-radius: 0;
    z-index: 900;
  }

  .notice-bar__body {
    width: 100%;
  }

  .notice-bar .notice-bar__title {
    font-size: 13px;
  }

  .notice-bar__actions {
    width: 100%;
    justify-content: flex-start;
  }
}
