/* assets/css/checklist.css */
.checklist-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: sans-serif;
}

/* 進捗バーのエリア */
.progress-sticky {
    position: sticky;
    top: 80px; /* ヘッダーの下 */
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    z-index: 10;
    border: 1px solid #e2e8f0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-bar-bg {
    background: #e2e8f0;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
}

#progress-fill {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

/* リストのデザイン */
.checklist-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 25px;
    margin-bottom: 25px;
}

.checklist-card h3 {
    margin-top: 0;
    color: #003366;
    border-left: 5px solid #f39c12;
    padding-left: 15px;
    font-size: 1.2rem;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: 0.2s;
}

.task-item:hover { background: #f8fafc; }
.task-item:last-child { border-bottom: none; }

.task-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 15px;
    cursor: pointer;
}

.task-item span {
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
}

/* チェックが入った時の文字色 */
.task-item input:checked + span {
    color: #94a3b8;
    text-decoration: line-through;
}

/* チェックリスト内のアクション（リンクと?ボタン） */
.task-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.task-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.doc-link {
    text-decoration: none;
    font-size: 1.2rem;
    filter: grayscale(1);
    transition: 0.2s;
}
.doc-link:hover { filter: grayscale(0); transform: scale(1.1); }

.info-trigger {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #64748b;
    color: white;
    border: none;
    font-size: 12px;
    cursor: pointer;
    line-height: 20px;
    text-align: center;
    padding: 0;
}

/* ポップアップのスタイル */
.info-popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.info-popup.is-show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
}

.popup-content p {
    color: #334155;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

#popup-close {
    background: #003366;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
}

/* 黒ナンバー取得ガイド専用のデザイン（ページ全体） */
.page-slug-guide-blacknumber .entry-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #334155;
}

/* 見出し2（H2）をステップ風に装飾 */
.page-slug-guide-blacknumber h2 {
    background: #f1f5f9;
    border-left: 8px solid #003366;
    padding: 20px;
    color: #003366;
    font-size: 1.5rem;
    margin: 40px 0 20px;
    border-radius: 0 8px 8px 0;
}

/* 見出し3（H3）を強調 */
.page-slug-guide-blacknumber h3 {
    color: #003366;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-top: 30px;
}

/* 箇条書き（UL）をチェックリスト風に */
.page-slug-guide-blacknumber ul {
    background: #fff;
    border: 2px solid #e2e8f0;
    padding: 25px 25px 25px 50px;
    border-radius: 12px;
    list-style-type: none;
    position: relative;
}

.page-slug-guide-blacknumber ul li {
    position: relative;
    margin-bottom: 12px;
}

.page-slug-guide-blacknumber ul li::before {
    content: "✅";
    position: absolute;
    left: -35px;
}

/* リンクボタンをボタンらしく */
.page-slug-guide-blacknumber a.wp-block-button__link {
    background-color: #003366;
    padding: 15px 40px;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.3s;
}