

:root {
  --c-bg:     #FAF7F2;
  --c-fg:     #2C2018;
  --c-muted:  #9B8E7E;
  --c-accent: #E05C2A;
  --c-alt:    #EFE8DC;
  --c-dark:   #1A1008;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 2rem;
  --space-5: 4rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --font-body: 'Noto Sans JP', sans-serif;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(44, 32, 24, 0.97);
  border-top: 1px solid rgba(224, 92, 42, 0.25);
  backdrop-filter: blur(10px);
  padding: var(--space-4);
  font-family: var(--font-body);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
}

.cookie-text h3 {
  color: #FAF7F2;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.cookie-text p {
  color: #9B8E7E;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.cookie-text p a {
  color: #E05C2A;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
  min-width: fit-content;
}

.btn-cookie {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: all 200ms ease;
  white-space: nowrap;
}

.btn-cookie-accept {
  background: #E05C2A;
  color: #FAF7F2;
}

.btn-cookie-accept:hover {
  background: #D14A18;
  box-shadow: 0 4px 12px rgba(224, 92, 42, 0.3);
}

.btn-cookie-reject {
  background: transparent;
  color: #9B8E7E;
  border: 1px solid #9B8E7E;
}

.btn-cookie-reject:hover {
  border-color: #FAF7F2;
  color: #FAF7F2;
}

.btn-cookie-customize {
  background: transparent;
  color: #9B8E7E;
  border: 1px solid #9B8E7E;
  padding: var(--space-2) var(--space-3);
}

.btn-cookie-customize:hover {
  border-color: #FAF7F2;
  color: #FAF7F2;
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: var(--space-4);
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal-content {
  background: #FAF7F2;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal-content h2 {
  color: #2C2018;
  font-size: 1.3rem;
  margin-bottom: var(--space-3);
  font-weight: 700;
}

.cookie-category {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid #EFE8DC;
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-category h3 {
  color: #2C2018;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cookie-category p {
  color: #9B8E7E;
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.cookie-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #9B8E7E;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  flex-shrink: 0;
  transition: all 150ms ease;
}

.cookie-checkbox:checked {
  background: #E05C2A;
  border-color: #E05C2A;
}

.cookie-checkbox:checked::after {
  content: '✓';
  display: block;
  color: #FAF7F2;
  text-align: center;
  line-height: 14px;
  font-weight: 700;
  font-size: 0.75rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.cookie-option:last-child {
  margin-bottom: 0;
}

.cookie-option label {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  cursor: pointer;
  flex: 1;
}

.cookie-option-name {
  color: #2C2018;
  font-size: 0.85rem;
  font-weight: 600;
}

.cookie-option-desc {
  color: #9B8E7E;
  font-size: 0.77rem;
  line-height: 1.5;
}

.cookie-modal-buttons {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.cookie-modal-buttons button {
  flex: 1;
  min-width: 120px;
}

.btn-modal-save {
  background: #E05C2A;
  color: #FAF7F2;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 200ms ease;
}

.btn-modal-save:hover {
  background: #D14A18;
}

.btn-modal-cancel {
  background: transparent;
  color: #9B8E7E;
  border: 1px solid #9B8E7E;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 200ms ease;
}

.btn-modal-cancel:hover {
  border-color: #2C2018;
  color: #2C2018;
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: var(--space-3);
  }

  .cookie-content {
    flex-direction: column;
    gap: var(--space-3);
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .btn-cookie {
    width: 100%;
    text-align: center;
  }

  .cookie-modal-content {
    padding: var(--space-4);
    border-radius: var(--radius-md);
  }

  .cookie-modal-content h2 {
    font-size: 1.1rem;
  }

  .cookie-modal-buttons {
    flex-direction: column;
  }

  .cookie-modal-buttons button {
    width: 100%;
  }
}




/* wh-contrast-fix */
/* Auto-injected: text color did not meet 4.5:1 against declared background. */
.btn-cookie-accept { color: #ffffff !important; }
.btn-modal-save { color: #ffffff !important; }
