/* Cookie同意バナー・設定画面 (HP-COOKIE / TSK2026-7188・directcloud.jp と同じデザイン) */

/* ---- バナー表示中: 本文の下余白・ページトップをバナーの高さ分上げる ---- */
html.dc-cc-banner-open body { padding-bottom: var(--dc-cookie-banner-h, 0px); }
html.dc-cc-banner-open #page_top { transform: translateY(calc(-1 * var(--dc-cookie-banner-h, 0px))); }

/* ---- ボタン ---- */
.dc-cc-btn {
  height: 37px;
  padding: 0 20px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.dc-cc-btn--primary { background: #2563EB; border: 1px solid #2563EB; color: #fff; }
.dc-cc-btn--primary:hover { background: #1D4ED8; border-color: #1D4ED8; }
.dc-cc-btn--outline-blue { background: #fff; border: 1px solid #2563EB; color: #2563EB; }
.dc-cc-btn--outline-gray { background: #fff; border: 1px solid #C5CCDB; color: #333; }
.dc-cc-btn--outline-blue:hover, .dc-cc-btn--outline-gray:hover { background: #F2F4FA; }

/* サイト共通の a:link (#1e93e4・下線なし) より優先させる */
.dc-cc-link, .dc-cc-link:link, .dc-cc-link:visited { color: #2563EB; text-decoration: underline; }

/* ---- バナー ---- */
.dc-cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid #E4E7F0;
  box-shadow: 0 -4px 16px rgba(9, 17, 36, 0.08);
  box-sizing: border-box;
}
.dc-cc-banner__text { margin: 0; font-size: 14px; line-height: 1.7; color: #333; max-width: 820px; }
.dc-cc-banner__buttons { display: flex; gap: 10px; flex-shrink: 0; }

@media screen and (max-width: 768px) {
  .dc-cc-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .dc-cc-banner__buttons .dc-cc-btn { flex: 1; padding: 0 8px; }
}

/* ---- 設定画面 ---- */
.dc-cc-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(9, 17, 36, 0.6);
  box-sizing: border-box;
}
.dc-cc-modal__dialog {
  width: 520px;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-sizing: border-box;
  color: #050707;
}
.dc-cc-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dc-cc-modal__title { margin: 0; font-size: 19px; line-height: 1.55; font-weight: 700; color: #050707; }
.dc-cc-modal__close { display: flex; margin: -4px; padding: 4px; border: 0; background: none; color: #949494; cursor: pointer; }
.dc-cc-modal__notice { margin: 0 0 14px; font-size: 13px; line-height: 1.65; color: #555; }
.dc-cc-cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid #D1D5DB; border-radius: 8px; }
.dc-cc-cat + .dc-cc-cat { margin-top: 10px; }
.dc-cc-cat__title { margin: 0 0 4px; font-size: 15px; line-height: 1.5; font-weight: 700; color: #050707; }
.dc-cc-cat__desc { margin: 0; font-size: 12px; line-height: 1.5; color: #777; }
.dc-cc-cat__control { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dc-cc-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; background: #EEF4FF; color: #2563EB; font-size: 11px; white-space: nowrap; }
.dc-cc-modal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 12.5px; }
.dc-cc-modal__buttons { display: flex; gap: 8px; }
.dc-cc-modal__buttons .dc-cc-btn { height: 44px; min-width: 112px; }

/* スイッチ */
.dc-cc-switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; cursor: pointer; }
.dc-cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dc-cc-switch input:disabled { cursor: default; }
.dc-cc-switch__slider { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 999px; background: #D1D5DB; transition: background .2s; pointer-events: none; }
.dc-cc-switch__slider::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(9, 17, 36, 0.2); transition: transform .2s; }
.dc-cc-switch input:checked + .dc-cc-switch__slider { background: #2563EB; }
.dc-cc-switch input:checked + .dc-cc-switch__slider::before { transform: translateX(20px); }
.dc-cc-switch input:disabled + .dc-cc-switch__slider { opacity: .45; }
.dc-cc-switch input:focus-visible + .dc-cc-switch__slider { outline: 2px solid #2563EB; outline-offset: 2px; }

@media screen and (max-width: 768px) {
  .dc-cc-modal__buttons { width: 100%; }
  .dc-cc-modal__buttons .dc-cc-btn { flex: 1; min-width: 0; }
}

/* ---- トースト ---- */
.dc-cc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2147483002;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 8px;
  background: #00B54F;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(9, 17, 36, 0.16);
  white-space: nowrap;
}

/* ---- 地図の代わりの枠 (同意前) ---- */
.dc-cc-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  padding: 24px 16px;
  background: #F2F4FA;
  border: 1px solid #D1D5DB;
  box-sizing: border-box;
  color: #333;
  text-align: center;
}
.dc-cc-placeholder__text { margin: 0 0 14px; font-size: 14px; line-height: 1.7; }
/* 16:9 にしない枠 (TimeRex の日程調整カレンダーなど横幅いっぱいのもの) */
.dc-cc-placeholder--compact { aspect-ratio: auto; margin: 20px 0; }
/* 会社情報 (/company) の地図: iframe と同じ高さ 480px */
.dc-cc-placeholder--map { aspect-ratio: auto; height: 480px; }
