:root {
  --cb-bg: #ffffff;
  --cb-text: #333333;
  --cb-primary: #091A2C;
  --cb-primary-hover: #9299a2;
  --cb-border: #e0e0e0;
  --cb-overlay: rgba(0, 0, 0, 0.5);
  --cb-radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cb-bg: #222222;
    --cb-text: #f0f0f0;
    --cb-border: #444444;
  }
}

/* Utilities */
.hidden { display: none !important; }

/* Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--cb-bg);
  color: var(--cb-text);
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
  border-top: 1px solid var(--cb-border);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-buttons {
    flex-shrink: 0;
  }
}

.cookie-content h3 { margin: 0 0 8px 0; font-size: 1.6rem; }
.cookie-content p { margin: 0; font-size: 1.3rem; line-height: 1.4; }
.cookie-content a { color: var(--cb-primary); text-decoration: underline; }

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 8px 16px;
  border-radius: var(--cb-radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2rem;
  transition: opacity 0.2s;
}

.btn-primary { background-color: var(--cb-primary); color: #fff; }
.btn-primary:hover { background-color: var(--cb-primary-hover); }

.btn-outline { background-color: transparent; border: 1px solid var(--cb-border); color: var(--cb-text); }
.btn-link { background: none; color: var(--cb-text); text-decoration: underline; padding: 8px 0; }

/* Modal Styles */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--cb-overlay);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--cb-bg);
  color: var(--cb-text);
  padding: 24px;
  border-radius: var(--cb-radius);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0px; }
.close-icon { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--cb-text); }

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--cb-border);
}

.option-title { display: block; font-weight: bold; margin-bottom: 4px; }
.option-desc { display: block; font-size: 1.0modal-headerrem; opacity: 0.8; }

/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 40px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; transition: .4s; border-radius: 24px;
}
.slider:before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--cb-primary); }
input:checked + .slider:before { transform: translateX(16px); }
.slider.disabled { opacity: 0.5; cursor: not-allowed; }



/* 埋め込み要素（動画・マップ等）の共通プレースホルダー */
.cookie-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f3f3f3; /* サイトの雰囲気に合わせて調整 */
  box-shadow: inset 0 0 0 2px #000;
  display: flex;
  flex-direction: column; /* テキストとボタンを縦並びにする */
  align-items: center;
  justify-content: center;
  z-index: 2; /* iframeの上に被せる */
  text-align: center;
  padding: 20px;
}

.cookie-placeholder p {
  margin-bottom: 15px;
  color: #333;
}

/* プレースホルダー内のボタン用スタイル（必要に応じて調整） */
.cookie-placeholder button {
  padding: 8px 16px;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.cookie-placeholder button:hover {
  opacity: 0.8;
}

/* 同意後にJSで非表示にするためのクラス */
.cookie-placeholder.hidden {
  display: none !important;
}



/* 公開時に日本語表記を消すためのクラス */

.text-jp {
display: none;
}
