/* ------------------------------------------------------------------
   Cookie Banner — BEM
   IDセレクタ（#cookie-banner）との組み合わせで詳細度を確保し
   !important を使わずにテーマCSSを上書きする
------------------------------------------------------------------ */

/* Block */
#cookie-banner.cookie-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 34px;
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  z-index: 9999;
  writing-mode: horizontal-tb;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* Block modifier — 表示状態 */
#cookie-banner.cookie-banner--visible {
  opacity: 1;
  pointer-events: auto;
}

/* Element — テキスト */
#cookie-banner .cookie-banner__text {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: #fff;
  text-align: center;
  writing-mode: horizontal-tb;
  overflow-wrap: break-word;
}

#cookie-banner .cookie-banner__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cookie-banner .cookie-banner__text a:hover {
  opacity: 0.7;
}

/* Element — 同意ボタン */
#cookie-banner .cookie-banner__btn {
  display: block;
  align-self: center;
  width: fit-content;
  background: #fff;
  color: #2b2b2b;
  border: none;
  padding: 12px 64px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  writing-mode: horizontal-tb;
  transition: opacity 0.2s ease;
}

#cookie-banner .cookie-banner__btn:hover {
  opacity: 0.75;
}

/* レスポンシブ */
@media (max-width: 767px) {
  #cookie-banner.cookie-banner {
    padding: 24px 24px 32px;
    gap: 14px;
  }
  #cookie-banner .cookie-banner__text {
    font-size: 12px;
    text-align: left;
  }
  #cookie-banner .cookie-banner__btn {
    width: 100%;
    text-align: center;
    padding: 14px 0;
  }
}
