/* ボディ背景のオーバーライド（白いスペース除去） */
body {
    background-color: #000 !important;
}

/* ヘッダーのダークテーマ対応 */
header {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #333 !important;
}

/* ヘッダー内のテキスト色調整 */
header a,
header .text-gray-700,
header .text-gray-600 {
    color: #fff !important;
}

/* ヘッダー内のホバー効果 */
header a:hover {
    color: #ffcc00 !important;
}

/* ロゴの調整（必要に応じて） */
header .logo {
    filter: brightness(1.2);
}

/* Policy Page Dark Theme Styles */

/* 基本的なダークテーマスタイル */
.policy-container {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    line-height: 1.7;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* ページヘッダー */
.policy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #333;
}

.policy-title {
    font-size: 2.75rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.policy-description {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* プライバシーポリシー内容ボックス */
.policy-content-box {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.75rem;
    padding: 3rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

/* セクション */
.policy-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

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

/* セクションタイトル */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffcc00;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #ffcc00;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* セクション本文 */
.section-text {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.section-text:last-child {
    margin-bottom: 0;
}

/* リストスタイル */
.policy-list {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.7;
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.policy-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.policy-list li::before {
    content: "•";
    color: #ffcc00;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0.5rem;
    top: 0;
}

/* 連絡先情報 */
.contact-info {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-link {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #e6b800;
    text-decoration: underline;
}

/* 制定・改定日 */
.policy-dates {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.policy-dates p {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

.policy-dates p:last-child {
    margin-bottom: 0;
}

/* フッター情報 */
.policy-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #333;
}

.footer-text {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .policy-content {
        padding: 1.5rem 0.75rem 3rem;
    }
    
    .policy-title {
        font-size: 2.25rem;
    }
    
    .policy-description {
        font-size: 1rem;
    }
    
    .policy-content-box {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-text,
    .policy-list {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .policy-content {
        padding: 1rem 0.5rem 2rem;
    }
    
    .policy-title {
        font-size: 1.9rem;
    }
    
    .policy-content-box {
        padding: 1.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.2rem;
        padding-left: 0.75rem;
        border-left-width: 3px;
    }
    
    .policy-list li {
        padding-left: 1.5rem;
    }
    
    .contact-info,
    .policy-dates {
        padding: 1rem;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* セクションのスタッガードアニメーション */
.policy-section {
    animation: fadeInSection 0.6s ease-out forwards;
    opacity: 0;
}

.policy-section:nth-child(1) { animation-delay: 0.1s; }
.policy-section:nth-child(2) { animation-delay: 0.2s; }
.policy-section:nth-child(3) { animation-delay: 0.3s; }
.policy-section:nth-child(4) { animation-delay: 0.4s; }
.policy-section:nth-child(5) { animation-delay: 0.5s; }
.policy-section:nth-child(6) { animation-delay: 0.6s; }
.policy-section:nth-child(7) { animation-delay: 0.7s; }
.policy-section:nth-child(8) { animation-delay: 0.8s; }
.policy-section:nth-child(9) { animation-delay: 0.9s; }
.policy-section:nth-child(10) { animation-delay: 1.0s; }
.policy-section:nth-child(11) { animation-delay: 1.1s; }
.policy-section:nth-child(12) { animation-delay: 1.2s; }

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* スクロールバーのカスタマイズ（Webkit系ブラウザ） */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* テキスト選択時の色 */
::selection {
    background: #ffcc00;
    color: #000;
}

::-moz-selection {
    background: #ffcc00;
    color: #000;
}

/* 目次の追加（将来的に使用する場合） */
.policy-toc {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.policy-toc h3 {
    color: #ffcc00;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.policy-toc ul {
    list-style: none;
    padding: 0;
}

.policy-toc li {
    margin-bottom: 0.5rem;
}

.policy-toc a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.policy-toc a:hover {
    color: #ffcc00;
}

/* 利用規約専用スタイル */

/* 目次 */
.table-of-contents {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 3rem;
}

.table-of-contents h2 {
    color: #ffcc00;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    display: block;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    background-color: #444;
    color: #ffcc00;
    transform: translateX(8px);
}

/* 章タイトル */
.chapter-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffcc00;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 3px solid #ffcc00;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 条項タイトル */
.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0 1.5rem 0;
    padding-left: 1rem;
    border-left: 4px solid #66ccff;
}

.article {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.article:last-child {
    border-bottom: none;
}

/* 小見出し */
.subsection-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffcc00;
    margin: 1.5rem 0 1rem 0;
}

/* 定義テーブル */
.definition-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 0.5rem;
    overflow: hidden;
}

.definition-table th,
.definition-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.definition-table th {
    background-color: #2a2a2a;
    color: #ffcc00;
    font-weight: bold;
}

.definition-table td {
    color: #e0e0e0;
}

.definition-table tr:last-child th,
.definition-table tr:last-child td {
    border-bottom: none;
}

/* 権利・義務セクション */
.rights-obligations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.rights, .obligations {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.rights h5, .obligations h5 {
    color: #ffcc00;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* 機能セクション */
.feature-section {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.feature-section h5 {
    color: #66ccff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

/* 禁止事項ボックス */
.prohibition-box {
    background-color: #2a1a1a;
    border: 2px solid #cc4444;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.prohibition-box h5 {
    color: #ff6666;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* チェックリストボックス */
.checklist-box {
    background-color: #1a2a1a;
    border: 2px solid #44cc44;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.checklist-box h5 {
    color: #66ff66;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: #e0e0e0;
}

.checklist li::before {
    content: "✓";
    color: #66ff66;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0.5rem;
    top: 0;
}

/* 免責セクション */
.disclaimer-section {
    margin: 1.5rem 0;
}

.disclaimer-section h5 {
    color: #ffaa66;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* 情報開示セクション */
.info-disclosure {
    background-color: #1a1a2a;
    border: 1px solid #444;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-disclosure h5 {
    color: #aaccff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* セキュリティ対策セクション */
.security-measures {
    background-color: #2a2a1a;
    border: 1px solid #555;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.security-measures h5 {
    color: #ffcc66;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* 対応例セクション */
.response-examples {
    background-color: #1a2a2a;
    border: 1px solid #444;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.response-examples h5 {
    color: #ccaaff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* 注記テキスト */
.note-text {
    background-color: #2a2a1a;
    border-left: 4px solid #ffaa00;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.375rem 0.375rem 0;
    font-style: italic;
    color: #f0f0f0;
}

/* ポリシーリンク */
.policy-link {
    color: #66ccff;
    text-decoration: none;
    transition: color 0.3s;
}

.policy-link:hover {
    color: #99ddff;
    text-decoration: underline;
}

/* レスポンシブ対応 - 利用規約専用 */
@media (max-width: 768px) {
    .rights-obligations {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .table-of-contents {
        padding: 1.5rem;
    }
    
    .chapter-title {
        font-size: 1.5rem;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .subsection-title {
        font-size: 1.1rem;
    }
    
    .definition-table th,
    .definition-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .definition-table {
        font-size: 0.85rem;
    }
    
    .definition-table th,
    .definition-table td {
        padding: 0.5rem;
    }
    
    .rights, .obligations,
    .feature-section,
    .prohibition-box,
    .checklist-box,
    .info-disclosure,
    .security-measures,
    .response-examples {
        padding: 1rem;
    }
    
    .note-text {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* 印刷用スタイル */
@media print {
    .policy-container {
        background-color: white !important;
        color: black !important;
    }
    
    .policy-content-box {
        background-color: white !important;
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .section-title,
    .chapter-title,
    .article-title,
    .subsection-title {
        color: #000 !important;
        border-left-color: #000 !important;
        border-bottom-color: #000 !important;
    }
    
    .section-text,
    .policy-list,
    .contact-info p,
    .policy-dates p {
        color: black !important;
    }
    
    .policy-list li::before,
    .checklist li::before {
        color: #000 !important;
    }
    
    .contact-info,
    .policy-dates,
    .rights, .obligations,
    .feature-section,
    .prohibition-box,
    .checklist-box,
    .info-disclosure,
    .security-measures,
    .response-examples,
    .note-text {
        background-color: #f8f8f8 !important;
        border-color: #000 !important;
    }
    
    .definition-table {
        background-color: white !important;
        border-color: #000 !important;
    }
    
    .definition-table th {
        background-color: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .definition-table td {
        color: #000 !important;
    }
    
    .table-of-contents {
        background-color: #f8f8f8 !important;
        border-color: #000 !important;
    }
    
    .table-of-contents h2 {
        color: #000 !important;
    }
    
    .table-of-contents a {
        color: #000 !important;
    }
}