/* 背景の暗幕 */
.notice-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.notice-overlay.is-open {
  display: flex;
}

/* ポップアップ本体 */
.notice-popup {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}
.notice-popup:hover {
  transform: translateY(-2px);
}

/* リンク部分(ポップアップ全体をクリック可能にする) */
.notice-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
}
.notice-link:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 3px;
}

/* 上部の赤い帯 */
.notice-header {
  display: flex;                 /* アイコンと文字を横並びにする */
  align-items: center;           /* 上下の中央をそろえる */
  justify-content: center;       /* 全体を中央寄せにする */
  gap: 10px;                     /* アイコンと文字の間隔 */
  background: #d60000;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  padding: 14px 20px;
  letter-spacing: 0.1em;
  border-radius: 8px 8px 0 0;
}

/* 白い四角の「!」アイコン */
.notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;                  /* 四角の大きさ(縦横同じ) */
  height: 1.2em;
  background: #fff;              /* 白背景 */
  color: #d60000;                /* 「!」は赤 */
  border-radius: 0;            /* 角を少しだけ丸める(0にすると完全な四角) */
  font-size: 1.8rem;
  font-weight: bolder;
  line-height: 1;
  letter-spacing: 0;             /* 帯の文字間隔の影響を受けないようにする */
  flex-shrink: 0;                /* 画面が狭くてもアイコンが縮まないようにする */
}

/* 中央のタイトル */
.notice-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px 20px;
  text-align: center;
}
.notice-title {
  margin: 0;
  font-size: 3.6rem;
  font-weight: bold;
  color: #222;
  line-height: 1.5;
}
.notice-hint {
  margin: 0;
  padding: 0 0 18px;
  text-align: center;
  font-size: 1.6rem;
  color: #666;
}

/* 右上の×ボタン(外側に少しはみ出す) */
.notice-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border: 2px solid #d60000;
  border-radius: 50%;
  background: #fff;
  color: #d60000;
  font-size: 22px;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.notice-close:hover {
  background: #ffe5e5;
}