/*
 * Cookie 同意バナー専用スタイル
 * このファイルは SCSS パイプライン（style.scss）を経由せず直接編集する。
 * 同意バナーはサイト横断の独立ウィジェットであり、LP 本体 style.css とは
 * 分離して管理する（コンパイル環境に依存せず確実に反映させるため）。
 * カラーは css/_variable.scss の $navy/$aqua に対応。
 */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #3e4553; /* $navy */
  color: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.7;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.consent-banner__text {
  margin: 0;
  flex: 1 1 auto;
}

.consent-banner__link {
  color: #6fd0ec; /* lighten($aqua) 相当・濃紺背景で視認性確保 */
  text-decoration: underline;
  white-space: nowrap;
}

.consent-banner__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
}

.consent-banner__btn {
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 24px;
  border-radius: 4px;
  border: 2px solid #fff;
  line-height: 1.2;
  white-space: nowrap;
  transition: opacity .2s ease, background-color .2s ease;
}

/* 「拒否」と「同意」は対等な視認性（ダークパターン回避） */
.consent-banner__btn--reject {
  background: transparent;
  color: #fff;
}

.consent-banner__btn--reject:hover {
  background: rgba(255, 255, 255, .15);
}

.consent-banner__btn--accept {
  background: #009bc9; /* $aqua */
  border-color: #009bc9;
  color: #fff;
}

.consent-banner__btn--accept:hover {
  opacity: .85;
}

.consent-banner__btn:focus-visible {
  outline: 3px solid #6fd0ec;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .consent-banner {
    padding: 14px 16px;
    font-size: 13px;
  }

  .consent-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .consent-banner__actions {
    justify-content: center;
  }

  .consent-banner__btn {
    flex: 1 1 0;
    padding: 12px 16px;
  }
}
