

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background-color: #122852;
  border-top: 3px solid #E07020;
  padding: 18px 0;
  box-shadow: 0 -4px 28px rgba(0,0,0,0.22);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__inner {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background-color: rgba(224,112,32,0.18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner__text {
  flex: 1;
  min-width: 220px;
}

.cookie-banner__title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  font-family: 'Noto Sans JP', sans-serif;
}

.cookie-banner__desc {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  font-family: 'Noto Sans JP', sans-serif;
}

.cookie-banner__desc a {
  color: #E07020;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__desc a:hover {
  color: #f09040;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
  line-height: 1.2;
}

.cookie-btn--accept {
  background-color: #E07020;
  color: #fff;
  border-color: #E07020;
}
.cookie-btn--accept:hover {
  background-color: #C05C10;
  border-color: #C05C10;
}

.cookie-btn--reject {
  background-color: transparent;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
}
.cookie-btn--reject:hover {
  background-color: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.cookie-btn--customize {
  background-color: transparent;
  color: rgba(255,255,255,0.55);
  border-color: transparent;
  padding-inline: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 12px;
}
.cookie-btn--customize:hover {
  color: #fff;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background-color: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.is-hidden {
  display: none;
}

.cookie-modal__box {
  background-color: #fff;
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 36px 32px 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
}

.cookie-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.cookie-modal__title {
  font-size: 18px;
  font-weight: 700;
  color: #1B3A6B;
  line-height: 1.3;
  font-family: 'Noto Sans JP', sans-serif;
}

.cookie-modal__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #6B6561;
  border-radius: 6px;
  margin-top: -4px;
}
.cookie-modal__close:hover {
  background-color: #F6F4EF;
  color: #1A1A1A;
}

.cookie-modal__intro {
  font-size: 13px;
  color: #6B6561;
  line-height: 1.65;
  margin-bottom: 4px;
  font-family: 'Noto Sans JP', sans-serif;
}

.cookie-modal__intro a {
  color: #E07020;
  text-decoration: underline;
}

.cookie-modal__divider {
  height: 1px;
  background-color: #DED9D2;
  margin: 20px 0;
}

.cookie-category {
  padding: 16px 0;
  border-bottom: 1px solid #F0EDE8;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cookie-category:last-of-type {
  border-bottom: none;
}

.cookie-category__body {
  flex: 1;
}

.cookie-category__name {
  font-size: 14px;
  font-weight: 700;
  color: #1B3A6B;
  margin-bottom: 4px;
  font-family: 'Noto Sans JP', sans-serif;
}

.cookie-category__desc {
  font-size: 12px;
  color: #6B6561;
  line-height: 1.6;
  font-family: 'Noto Sans JP', sans-serif;
}

.cookie-toggle {
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__label {
  display: block;
  width: 44px;
  height: 24px;
  background-color: #DED9D2;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

.cookie-toggle__label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cookie-toggle input:checked + .cookie-toggle__label {
  background-color: #E07020;
}

.cookie-toggle input:checked + .cookie-toggle__label::after {
  left: 23px;
}

.cookie-toggle input:disabled + .cookie-toggle__label {
  background-color: #4CAF50;
  cursor: not-allowed;
  opacity: 0.85;
}

.cookie-toggle input:disabled + .cookie-toggle__label::after {
  left: 23px;
}

.cookie-category__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4CAF50;
  background-color: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
  font-family: 'Noto Sans JP', sans-serif;
}

.cookie-modal__footer {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-modal__btn-save {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid #1B3A6B;
  background-color: #1B3A6B;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}
.cookie-modal__btn-save:hover {
  background-color: #122852;
  border-color: #122852;
}

.cookie-modal__btn-accept-all {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid #E07020;
  background-color: #E07020;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}
.cookie-modal__btn-accept-all:hover {
  background-color: #C05C10;
  border-color: #C05C10;
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-btn--accept,
  .cookie-btn--reject {
    flex: 1;
  }
  .cookie-modal__box {
    padding: 24px 18px 20px;
  }
  .cookie-modal__footer {
    flex-direction: column;
  }
}
