/*  Cookie Consent Banner - Styles 
============================================================ */
/* ── バナー本体（フッター固定） */
#cookie-consent-banner { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 99999; background-color: rgba(18, 18, 18, 0.96); color: #e8e8e8; font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif; font-size: 14px; line-height: 1.75; padding: 18px 28px; box-sizing: border-box; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: space-between; gap: 20px;
 /* 表示アニメーション */
 transition: transform 0.35s ease, opacity 0.35s ease;}
/* 非表示状態（選択後に JS が付与するクラス） */
#cookie-consent-banner.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none;}
/* ── テキストエリア */
#cookie-consent-banner .ccb-text { flex: 1; min-width: 0;}
#cookie-consent-banner .ccb-text p { margin: 0;}
#cookie-consent-banner .ccb-text a { color: #7ab8f5; text-decoration: underline; text-underline-offset: 2px;}
#cookie-consent-banner .ccb-text a:hover { color: #aed3fa;}
/* ── ボタングループ */
#cookie-consent-banner .ccb-buttons { display: flex; align-items: center; gap: 10px; flex-shrink: 0;}
/* ── ボタン基本スタイル */
.ccb-btn { display: inline-block; cursor: pointer; border: none; border-radius: 5px; padding: 9px 22px; font-size: 14px; font-weight: 700; font-family: inherit; line-height: 1.4; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease; -webkit-appearance: none; appearance: none;}
/* 同意ボタン（Primary） */
.ccb-btn--accept { background-color: #0078d4; color: #fff; padding: 9px 30px;}
.ccb-btn--accept:hover, .ccb-btn--accept:focus-visible { background-color: #005a9e; outline: none;}
/* 拒否ボタン（Secondary） */
.ccb-btn--reject { background-color: transparent; color: #ccc; border: 1px solid rgba(200, 200, 200, 0.4);}
.ccb-btn--reject:hover, .ccb-btn--reject:focus-visible { background-color: rgba(255, 255, 255, 0.08); color: #fff; outline: none;}
/* 設定ボタン（Tertiary / テキストリンク風） */
.ccb-btn--settings { background-color: transparent; color: #aaa; padding: 9px 10px; text-decoration: underline; text-underline-offset: 2px;}
.ccb-btn--settings:hover, .ccb-btn--settings:focus-visible { color: #ddd; outline: none;}
/* ── 設定モーダル：オーバーレイ */
#cookie-consent-modal-overlay { display: none;
 /* JS が .is-open を付与するまで非表示 */
 position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); z-index: 100000; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box;}
#cookie-consent-modal-overlay.is-open { display: flex;}
/* ── 設定モーダル：ウィンドウ */
#cookie-consent-modal { background: #fff; color: #222; border-radius: 10px; padding: 32px; width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif; font-size: 14px; line-height: 1.75;}
#cookie-consent-modal h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #111;}
#cookie-consent-modal > p { margin: 0 0 20px; color: #555; font-size: 13px;}
/* ── トグル行 */
.ccb-toggle-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #ebebeb; gap: 20px;}
.ccb-toggle-row:last-of-type { border-bottom: none;}
.ccb-toggle-info { flex: 1; min-width: 0;}
.ccb-toggle-label { font-weight: 700; font-size: 14px; color: #1a1a1a; margin-bottom: 4px;}
.ccb-toggle-description { font-size: 12px; color: #666; line-height: 1.6;}
/* ── トグルスイッチ（iOSスタイル） */
.ccb-toggle { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; margin-top: 2px;}
.ccb-toggle input[type="checkbox"] { opacity: 0; width: 0; height: 0; position: absolute;}
.ccb-toggle-slider { position: absolute; inset: 0; background-color: #ccc; border-radius: 26px; cursor: pointer; transition: background-color 0.2s ease;}
.ccb-toggle-slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: #fff; border-radius: 50%; transition: transform 0.2s ease; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);}
/* ON 状態 */
.ccb-toggle input:checked + .ccb-toggle-slider { background-color: #0078d4;}
.ccb-toggle input:checked + .ccb-toggle-slider::before { transform: translateX(18px);}
/* 無効（必須Cookie） */
.ccb-toggle input:disabled + .ccb-toggle-slider { opacity: 0.55; cursor: not-allowed;}
/* フォーカスリング */
.ccb-toggle input:focus-visible + .ccb-toggle-slider { outline: 2px solid #0078d4; outline-offset: 2px;}
/* ── モーダル下部のアクションボタン */
.ccb-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap;}
/* モーダル内の拒否ボタン（ダーク背景ではないので色調整） */
#cookie-consent-modal .ccb-btn--reject { color: #555; border-color: #bbb;}
#cookie-consent-modal .ccb-btn--reject:hover { background-color: #f5f5f5; color: #222;}
/* ── レスポンシブ（スマホ）*/
@media (max-width: 640px) {
 #cookie-consent-banner {  flex-direction: column;  align-items: stretch;  padding: 16px 20px;  gap: 14px; }
 #cookie-consent-banner .ccb-buttons {  width: 100%;  justify-content: flex-end; } .ccb-btn--settings {  padding: 9px 6px; }
 #cookie-consent-modal {  padding: 24px 20px; } .ccb-modal-actions {  flex-direction: column-reverse; } .ccb-modal-actions .ccb-btn {  width: 100%;  text-align: center; }
}