/* お知らせ告知リンク（クラスは全て nn- 接頭辞） */

/* 固定ヘッダー分のスクロール位置補正（値はJSが --nn-header-h を設定） */
#information { scroll-margin-top: var(--nn-header-h, 90px); }

.nn-wrap[hidden] { display: none; }
.nn-wrap { margin: 1.25rem 0 1rem; }

/* 帯バナー型リンク */
.nn-link {
  display: flex; align-items: center; gap: .75rem; min-height: 48px; box-sizing: border-box;
  padding: .75rem 1rem; border-radius: 8px; background: #b5524f; color: #fff;
  text-decoration: none; font-weight: 700; font-size: 1.1rem; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
.nn-link:hover, .nn-link:focus { color: #fff; }
.nn-link:focus-visible { outline: 3px solid #333; outline-offset: 3px; }
.nn-text { min-width: 0; flex: 1 1 auto; }
.nn-icon { display: block; width: 28px; height: 28px; }
.nn-bell { flex: 0 0 auto; display: inline-flex; transform-origin: 50% 2px; }
.nn-chev {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #fff; display: flex; align-items: center; justify-content: center;
}
.nn-chev svg { width: 16px; height: 16px; }

@media (min-width: 768px) { .nn-link { font-size: 1.2rem; } }
/* 狭い画面 */
@media (max-width: 374px) {
  .nn-link { gap: .5rem; padding: .75rem; font-size: 1rem; }
  .nn-icon { width: 24px; height: 24px; }
  .nn-chev { width: 28px; height: 28px; }
}

/* ベルが3回揺れる */
@keyframes nn-swing {
  0% { transform: rotate(0); } 25% { transform: rotate(16deg); }
  50% { transform: rotate(-14deg); } 75% { transform: rotate(7deg); } 100% { transform: rotate(0); }
}
.nn-bell { animation: nn-swing .8s ease-in-out .5s 3 both; }

@media (hover: hover) {
  .nn-link:hover { background: #a24744; }
  .nn-link:hover .nn-chev { background: rgba(255,255,255,.2); }
}

/* 到達後、新着お知らせのタイトル行の背景を一度だけ淡く光らせる(JSが nn-flash を付け外し) */
@keyframes nn-flash {
  0%   { background-color: rgba(191,164,115,0); }
  35%  { background-color: rgba(191,164,115,.2); }
  100% { background-color: rgba(191,164,115,0); }
}
#information .accordion-button.nn-flash { animation: nn-flash 1.2s ease-in-out 1; }

@media (prefers-reduced-motion: reduce) {
  .nn-bell, #information .accordion-button.nn-flash { animation: none; }
}

/* 移動後に読み上げ用としてフォーカスを移す「お知らせ」見出しの枠線を消す
   (tabindex="-1" の見出しはキーボード操作の対象ではないため、枠を出さなくても操作性に影響なし) */
#information h1[tabindex="-1"]:focus,
#information h1[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
