* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1f2937;
    --secondary-color: #4b5563;
    --accent-color: #3b82f6;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --text-color: #1f2937;
    --light-text: #6b7280;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* コンテナ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
}

.header-content .subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

/* メインコンテンツ */
.main-content {
    display: flex;
    flex: 1;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* サイドバー */
.sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.toc {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.toc h3 {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--primary-color);
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* メインコンテンツ */
.content {
    flex: 1;
    min-width: 0;
}

.policy-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.policy-section h3 {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.policy-section p {
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 1em;
    line-height: 1.8;
}

.policy-section ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.policy-section li {
    margin-bottom: 10px;
    color: var(--light-text);
}

/* インフォボックス */
.info-box {
    background-color: #e0f2fe;
    border-left: 4px solid #0ea5e9;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.95em;
    color: #0c4a6e;
}

.warning-box {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.95em;
    color: #78350f;
}

.contact-box {
    background-color: var(--light-bg);
    border: 2px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-box p {
    margin-bottom: 15px;
}

.contact-box strong {
    color: var(--primary-color);
}

/* フッター */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-links a {
    color: #93c5fd;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2em;
    }

    .header-content .subtitle {
        font-size: 1em;
    }

    .main-content {
        flex-direction: column;
        gap: 30px;
        padding: 20px 15px;
    }

    .sidebar {
        flex: 1;
        position: static;
        order: 2;
    }

    .content {
        order: 1;
    }

    .toc {
        padding: 20px;
    }

    .policy-section h2 {
        font-size: 1.5em;
    }

    .policy-section h3 {
        font-size: 1.1em;
    }

    .policy-section ul {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 15px;
    }

    .header-content h1 {
        font-size: 1.5em;
    }

    .main-content {
        padding: 15px 10px;
    }

    .policy-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .policy-section h2 {
        font-size: 1.3em;
    }
    
}/* クッキーバナー全体のスタイル */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1a1a1a; /* ダークテーマに合わせた背景色 */
  color: #ffffff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  padding: 15px 20px;
  box-sizing: border-box;
  display: none; /* 初期状態は非表示（JSで制御） */
}

/* コンテンツのレイアウト（横並び調整） */
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* ボタンエリア */
.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* ボタン共通スタイル */
.cookie-buttons button {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s;
}

/* 同意するボタン（目立たせる） */
.btn-accept {
  background-color: #007bff;
  color: white;
}

.btn-accept:hover {
  background-color: #0056b3;
}

/* 同意しないボタン（控えめ） */
.btn-decline {
  background-color: #444444;
  color: #cccccc;
}

.btn-decline:hover {
  background-color: #555555;
}

/* スマホ用のレスポンシブ対応 */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: flex-end;
  }
}
