/* =============================================================
   cookie-consent.css — Cookie 同意バナー
   - 外部依存ゼロ / 自作
   - baseline-ui 準拠：transform/opacity アニメ、単一アクセント、
     紫/多色グラデ不使用、safe-area-inset 尊重、固定 z-index
   - fixing-accessibility 準拠：ネイティブ button、フォーカス可視化
   ============================================================= */

.cc-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 1050; /* header(1030) / progress(1040) より上 */
  width: min(440px, calc(100% - 32px));
  margin-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease-out;
  background: rgba(9, 20, 28, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.7);
  color: #eef3f6;
  padding: 26px 28px 24px;
}
.cc-banner.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
}
/* 広い画面では画面左下の定位置に（よりおしゃれに） */
@media (min-width: 768px) {
  .cc-banner {
    left: 24px;
    transform: translate(0, calc(100% + 40px));
  }
  .cc-banner.is-open { transform: translate(0, 0); }
}

.cc-title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  color: #fff;
  text-wrap: balance;
}
.cc-title .cc-ico {
  font-size: 1.35rem;
  line-height: 1;
}

.cc-text {
  font-size: 0.92rem;
  line-height: 1.9;
  margin: 0 0 22px;
  color: #b9c6cf;
  text-wrap: pretty;
}
.cc-text a {
  color: var(--fx-accent, #43BAFF);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cc-btn {
  flex: 1 1 0;
  min-width: 130px;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease-out, background-color 0.18s ease-out,
    border-color 0.18s ease-out, color 0.18s ease-out;
}
/* 主要アクション：許可する（単一アクセント） */
.cc-btn--accept {
  background: var(--fx-accent, #43BAFF);
  color: #04141d;
}
@media (hover: hover) and (pointer: fine) {
  .cc-btn--accept:hover { transform: translateY(-2px); }
  .cc-btn--reject:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
}
.cc-btn--accept:active { transform: translateY(0); }
/* 副次アクション：必要なものだけ */
.cc-btn--reject {
  background: transparent;
  color: #c2cdd5;
  border-color: rgba(255, 255, 255, 0.22);
}

.cc-btn:focus-visible {
  outline: 2px solid var(--fx-accent, #43BAFF);
  outline-offset: 3px;
}

/* フッターの「Cookie設定」リンク用（任意で再表示） */
.cc-reopen { cursor: pointer; }

@media (max-width: 480px) {
  .cc-banner { padding: 18px 16px 16px; }
  .cc-actions { flex-direction: column-reverse; }
  .cc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner { transition: opacity 0.2s linear; }
  .cc-btn { transition: background-color 0.15s linear, color 0.15s linear; }
  .cc-btn--accept:hover,
  .cc-btn--accept:active { transform: none; }
}
