/* Cookie Consent Banner Styles */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(33, 37, 41, 0.98);
  color: white;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-content {
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-consent-text {
  flex: 1;
  min-width: 0;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.cookie-consent-text .small {
  font-size: 12px;
  opacity: 0.8;
}

.cookie-consent-text a {
  color: #87ceeb;
  text-decoration: underline !important;
}

.cookie-consent-text a:hover {
  color: #add8e6;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-consent-actions .btn {
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 500;
  min-width: 80px;
  transition: all 0.2s ease;
}

.cookie-consent-actions .btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.cookie-consent-actions .btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.cookie-consent-actions .btn-outline-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cookie-consent-actions .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

/* アイコンスタイル */
.cookie-consent-text .bi {
  color: #17a2b8;
  font-size: 16px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }
  
  .cookie-consent-text {
    text-align: center;
  }
  
  .cookie-consent-actions {
    justify-content: center;
    gap: 12px;
  }
  
  .cookie-consent-actions .btn {
    flex: 1;
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .cookie-consent-content {
    padding: 12px;
  }
  
  .cookie-consent-text p {
    font-size: 13px;
  }
  
  .cookie-consent-text .small {
    font-size: 11px;
  }
  
  .cookie-consent-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .cookie-consent-actions .btn {
    max-width: none;
    min-width: 0;
  }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .cookie-consent-banner {
    background: rgba(13, 17, 23, 0.98);
    border-top-color: rgba(255, 255, 255, 0.15);
  }
}

/* アニメーション効果 */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

/* アクセシビリティ */
.cookie-consent-banner:focus-within {
  outline: 2px solid #007bff;
  outline-offset: -2px;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
  .cookie-consent-banner {
    background: #000;
    border-top: 2px solid #fff;
  }
  
  .cookie-consent-text a {
    color: #fff;
    text-decoration: underline;
  }
  
  .cookie-consent-actions .btn-outline-secondary {
    border-color: #fff;
    color: #fff;
  }
}

/* 動きを抑制したいユーザー向け */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner {
    transition: none;
  }
  
  .cookie-consent-actions .btn {
    transition: none;
  }
  
  .cookie-consent-actions .btn:hover {
    transform: none;
  }
}