/* Cookie同意バナー
   UIKit使用サイト向け。UIKitのボタン(.uk-button)はそのまま活かし、
   コンテナ部分のみ独自スタイルで固定表示します。 */

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050; /* UIKitのnavbar/modalより手前に */
  background: #1e2530;
  color: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
  padding: 16px 0;
}

/* hidden属性が付いている間は確実に非表示 */
.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-consent__text {
  margin: 0;
  flex: 1 1 320px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color:#eee;
}

.cookie-consent__text a {
  color: #7fb2ff;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* 「拒否する」ボタンをダーク背景で見やすく調整 */
.cookie-consent .uk-button-default {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-consent .uk-button-default:hover,
.cookie-consent .uk-button-default:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

/* 表示アニメーション */
.cookie-consent {
  animation: cookie-consent-up 0.4s ease;
}

@keyframes cookie-consent-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* スマホ表示 */
@media (max-width: 639px) {
  .cookie-consent__inner {
    justify-content: center;
  }
  .cookie-consent__actions {
    width: 100%;
    justify-content: center;
  }
  .cookie-consent__actions .uk-button {
    flex: 1 1 auto;
  }
}