/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #2d2d2d; /* ダーク背景 */
    line-height: 1.6;
    color: #e0e0e0;            /* 明るい文字色 */
}

/* ヘッダー（全幅化） */
.header {
    position: static; /* 追従しない */
    top: 0;
    right: 0;
    z-index: 100;
    padding: 20px;
    left: 0;
}

/* ヘッダー内コンテナ（左右分割） */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 変更: 左右に分散 */
    gap: 10px;
    flex-wrap: nowrap;             /* 変更: 折り返し禁止 */
}

/* 左ナビ（Blog/Help ピル型） */
.nav-icons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;                /* 追加: 縮小禁止 */
}

.nav-icons .circle-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    background-color: rgba(255,255,255,0.9);
    border: 1px solid #ccc;
    border-radius: 9999px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    transition: opacity .3s ease, transform .2s ease;
    white-space: nowrap;          /* 追加: テキスト折り返し禁止 */
}

.nav-icons .circle-link:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.social-icons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;               /* 追加: 縮小禁止 */
    align-items: center;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 50%;
    transition: opacity 0.3s ease;
    flex-shrink: 0;               /* 追加: アイコン縮小禁止 */
}

.social-icons a:hover { opacity: 0.7; }

.social-icons img {
    width: 24px;
    height: auto;
}

.YouTube {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* レイアウト（blog.cssの一覧ページ構造を踏襲） */
.help-page-container {
    display: flex;
    max-width: 1200px;
    margin: 100px auto 20px auto; /* 固定ヘッダー分の余白 */
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
}

.help-main-content {
    flex: 3;
    background: #424242; /* ダーク背景 */
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    color: #ffffff; /* 本文色 */
}

.help-main-content h2 {
    font-size: 24px;
    margin-bottom: 14px;
    border-bottom: 2px solid #ffffff; /* 明るい線色 */
    padding-bottom: 10px;
    color: #9bc6e9; /* ダークテーマのh2色 */
}

.lead {
    margin-bottom: 18px;
    color: #b0c4d4; /* サブテキストも明るめに */
}

/* 目次 */
.help-toc {
    background: #303030;
    border: 1px solid #424242;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: #e0e0e0;
}
.help-toc h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #66b3ff;
}
.help-toc ul {
    list-style: none;
}
.help-toc li + li { margin-top: 6px; }
.help-toc a {
    color: #66b3ff;
    text-decoration: none;
}
.help-toc a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

/* セクション */
.help-section {
    margin: 26px 0;
}
.help-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ce8787;
}
.help-section ol,
.help-section ul {
    margin-left: 18px;
}
.help-section li { margin: 6px 0; }

/* FAQ（details/summary） */
details {
    background: #303030;
    border: 1px solid #424242;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 10px 0;
    color: #e0e0e0;
}
details summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    color: #66b3ff;
}
details[open] {
    background: #424242;
    border-color: #66b3ff;
}
.details-body {
    margin-top: 8px;
    color: #e0e0e0;
}

/* お問い合わせ */
.contact-list {
    list-style: none;
    margin-top: 8px;
}
.contact-list li + li { margin-top: 6px; }
.contact-list a {
    color: #66b3ff;
    text-decoration: none;
}
.contact-list a:hover {
    color: #0004ff;
    text-decoration: underline;
}

/* サイドバー */
.help-sidebar {
    flex: 1;
    background-color: #424242; /* ダーク背景 */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
    color: #e0e0e0;
}
.help-sidebar h3 {
    font-size: 18px;
    color: #66b3ff;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #66b3ff;
    padding-bottom: 8px;
}
.help-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.help-sidebar li { margin-bottom: 8px; }
.help-sidebar a {
    text-decoration: none;
    color: #66b3ff;
    transition: color 0.2s;
}
.help-sidebar a:hover {
    color: #375183;
    text-decoration: underline;
}

/* フッター */
.footer {
    text-align: center;
    padding: 24px 12px;
    background-color: #232323;
    color: #e0e0e0;
}

/* 補助スタイル */
.adblock-steps {
    margin-left: 18px;
}
.small {
    font-size: 0.9em;
    color: #b0b0b0;
}
.policy-list {
    margin-left: 18px;
}
.policy-list > li {
    margin: 12px 0;
}
.policy-list strong {
    display: block;
    margin-bottom: 6px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header {
        padding: 15px 10px;       /* 余白調整 */
    }
    
    .header-inner {
        gap: 8px;                 /* 間隔調整 */
    }
    
    .nav-icons {
        gap: 8px;
    }
    
    .nav-icons .circle-link {
        height: 38px;             /* サイズ調整 */
        padding: 0 12px;
        font-size: 12px;
    }
    
    .social-icons {
        gap: 8px;                 /* アイコン間隔調整 */
    }
    
    .social-icons a {
        width: 38px;              /* アイコンサイズ調整 */
        height: 38px;
    }
    
    .social-icons img {
        width: 22px;              /* 画像サイズ調整 */
    }
    
    .YouTube {
        width: 24px;
        height: 24px;
    }

    .help-page-container {
        flex-direction: column;
        margin-top: 80px;
    }
    
    .help-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 12px 8px;        /* さらに余白調整 */
    }
    
    .header-inner {
        gap: 6px;                 /* 間隔調整 */
    }
    
    .nav-icons {
        gap: 6px;
    }
    
    .nav-icons .circle-link {
        height: 36px;             /* サイズ調整 */
        padding: 0 10px;
        font-size: 11px;
    }
    
    .social-icons {
        gap: 6px;                 /* アイコン間隔調整 */
    }
    
    .social-icons a {
        width: 36px;              /* アイコンサイズ調整 */
        height: 36px;
    }
    
    .social-icons img {
        width: 20px;              /* 画像サイズ調整 */
    }
    
    .YouTube {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 6px;        /* 最小余白 */
    }
    
    .header-inner {
        gap: 4px;                 /* 最小間隔 */
    }
    
    .nav-icons {
        gap: 4px;
    }
    
    .nav-icons .circle-link {
        height: 34px;             /* 最小サイズ */
        padding: 0 8px;
        font-size: 10px;
    }
    
    .social-icons {
        gap: 4px;                 /* アイコン間隔調整 */
    }
    
    .social-icons a {
        width: 34px;              /* アイコンサイズ調整 */
        height: 34px;
    }
    
    .social-icons img {
        width: 18px;              /* 画像サイズ調整 */
    }
    
    .YouTube {
        width: 20px;
        height: 20px;
    }
}

/* 超小画面対応 */
@media (max-width: 360px) {
    .header {
        padding: 8px 4px;         /* 超小画面用余白 */
    }
    
    .header-inner {
        gap: 3px;                 /* 超小画面用間隔 */
    }
    
    .nav-icons {
        gap: 3px;
    }
    
    .nav-icons .circle-link {
        height: 32px;             /* 超小画面用サイズ */
        padding: 0 6px;
        font-size: 9px;
    }
    
    .social-icons {
        gap: 3px;                 /* アイコン間隔調整 */
    }
    
    .social-icons a {
        width: 32px;              /* アイコンサイズ調整 */
        height: 32px;
    }
    
    .social-icons img {
        width: 16px;              /* 画像サイズ調整 */
    }
    
    .YouTube {
        width: 18px;
        height: 18px;
    }
}
