/**************************************
 お役立ちコンテンツ共通CSS
 prefix: content_

 想定用途:
 - Excel / PDF テンプレート配布
 - チェックリスト配布
 - 比較・解説ページ
 - ダウンロードコンテンツ
**************************************/

.content_page {
    --resource-green: var(--font-color-green, #16857d);
    --resource-green-dark: #08736b;
    --resource-green-pale: #eef8f6;
    --resource-orange: var(--font-color-orange, #e94609);
    --resource-text: #222;
    --resource-muted: #606a69;
    --resource-border: #d7e1df;
    --resource-bg: #f6f9f8;
    width: 100%;
    color: var(--resource-text);
}

.content_page * {
    box-sizing: border-box;
}

.content_container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.content_container_narrow {
    max-width: 980px;
}

.content_section {
    padding: 80px 0;
}

.content_section + .content_section {
    border-top: 1px solid #f0f0f0;
}

.content_section_bg {
    background: var(--resource-bg);
}

/* 見出し */
.content_section_title {
    margin: 0 0 42px;
}

.content_section_title h2 {
    margin: 0;
    padding: 0.8rem 0;
    font-size: var(--font-size-x-large, 40px);
    font-weight: var(--font-weight-SemiBold, 600);
    line-height: 1.45;
    background-image: linear-gradient(90deg, #1CA097 0 10%, #dedede 10%);
    background-repeat: no-repeat;
    background-size: 100% 5%;
    background-position: bottom;
}

.content_section_title p {
    margin: 18px 0 0;
    color: var(--resource-muted);
}

.content_subtitle {
    margin: 0 0 18px;
    padding: 0 0 0 12px;
    border-left: 5px solid #1CA097;
    font-size: var(--font-size-large, 22px);
    font-weight: var(--font-weight-SemiBold, 600);
    line-height: 1.55;
}

.content_lead {
    font-size: 18px;
    line-height: 2;
}

.content_text p + p {
    margin-top: 1.3em;
}

/* バッジ */
.content_badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.content_badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #a8d8d3;
    border-radius: 999px;
    background: #fff;
    color: var(--resource-green-dark);
    font-size: var(--font-size-small, 14px);
    font-weight: var(--font-weight-SemiBold, 600);
}

/* ボタン */
.content_button_area {
    text-align: center;
}

.content_button {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border: 2px solid var(--resource-green-dark);
    border-radius: 5px;
    background: var(--resource-green-dark);
    color: #fff !important;
    font-weight: var(--font-weight-SemiBold, 600);
    line-height: 1.4;
    transition: .25s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.content_button:hover {
    background: #fff;
    color: var(--resource-green-dark) !important;
    transform: translateY(-2px);
}

.content_button_download {
    border-color: var(--resource-orange);
    background: var(--resource-orange);
}

.content_button_download:hover {
    color: var(--resource-orange) !important;
}

.content_button_download::after {
    content: "↓";
    margin-left: 12px;
    font-size: 18px;
}

.content_button_note {
    margin: 12px 0 0;
    color: var(--resource-muted);
    font-size: var(--font-size-small, 14px);
}

/* カード */
.content_card_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.content_card_grid_2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content_card {
    padding: 28px;
    border: 1px solid var(--resource-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(24, 80, 74, .05);
}

.content_card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: var(--font-weight-SemiBold, 600);
    line-height: 1.55;
}

.content_card p {
    margin: 0;
    color: var(--resource-muted);
}

.content_card p + p {
    margin-top: 12px;
}

/* チェックリスト */
.content_check_list {
    margin: 0;
    padding: 0;
}

.content_check_list li {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 0 30px;
    list-style: none;
}

.content_check_list li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--resource-green);
    font-weight: bold;
}

/* 注記・ポイント */
.content_note,
.content_point {
    margin: 28px 0 0;
    padding: 22px 24px;
    border-radius: 6px;
}

.content_note {
    border: 1px solid var(--resource-border);
    background: #fff;
}

.content_point {
    border-left: 5px solid var(--resource-green);
    background: var(--resource-green-pale);
}

.content_note strong,
.content_point strong {
    display: block;
    margin-bottom: 6px;
}

.content_note p,
.content_point p {
    margin: 0;
}

.content_small {
    font-size: var(--font-size-small, 14px);
    color: var(--resource-muted);
}

/* 表 */
.content_table_wrap {
    width: 100%;
    overflow-x: auto;
}

.content_table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.content_table th,
.content_table td {
    padding: 14px 16px;
    border: 1px solid #cbcbcb;
    text-align: left;
    vertical-align: top;
}

.content_table thead th {
    background: #dcefeb;
    font-weight: var(--font-weight-SemiBold, 600);
}

.content_table tbody th {
    width: 28%;
    background: #edf6f4;
    font-weight: var(--font-weight-SemiBold, 600);
}

/* 手順 */
.content_steps {
    margin: 0;
    padding: 0;
}

.content_step {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 25px 0;
    border-bottom: 1px solid var(--resource-border);
    list-style: none;
}

.content_step:first-child {
    border-top: 1px solid var(--resource-border);
}

.content_step_no {
    flex: 0 0 90px;
    color: var(--resource-green);
    font-weight: var(--font-weight-Bold, 700);
}

.content_step_body h3 {
    margin: 0 0 7px;
    font-size: 19px;
    font-weight: var(--font-weight-SemiBold, 600);
}

.content_step_body p {
    margin: 0;
    color: var(--resource-muted);
}

/* FAQ: details/summary を使用しJS不要 */
.content_faq {
    border-top: 1px solid var(--resource-border);
}

.content_faq details {
    border-bottom: 1px solid var(--resource-border);
}

.content_faq summary {
    position: relative;
    padding: 20px 46px 20px 42px;
    cursor: pointer;
    font-weight: var(--font-weight-SemiBold, 600);
    list-style: none;
}

.content_faq summary::-webkit-details-marker {
    display: none;
}

.content_faq summary::before {
    content: "Q";
    position: absolute;
    left: 8px;
    color: #1CA097;
    font-size: 20px;
    font-weight: bold;
}

.content_faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 12px;
    color: #1CA097;
    font-size: 24px;
    font-weight: normal;
    transform: translateY(-50%);
}

.content_faq details[open] summary::after {
    content: "−";
}

.content_faq_answer {
    position: relative;
    padding: 0 20px 22px 42px;
    color: var(--resource-muted);
}

.content_faq_answer::before {
    content: "A";
    position: absolute;
    left: 8px;
    color: var(--resource-orange);
    font-size: 18px;
    font-weight: bold;
}

.content_faq_answer p {
    margin: 0;
}

/* 汎用2カラム */
.content_columns_2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

@media screen and (max-width: 767px) {
    .content_section {
        padding: 50px 0;
    }

    .content_section_title {
        margin-bottom: 28px;
    }

    .content_section_title h2 {
        font-size: var(--font-size-x-large, 20px);
        background-image: linear-gradient(90deg, #1CA097 0 20%, #dedede 20%);
    }

    .content_lead {
        font-size: 16px;
    }

    .content_card_grid,
    .content_card_grid_2,
    .content_columns_2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .content_card {
        padding: 22px 20px;
    }

    .content_button {
        width: 100%;
        padding: 14px 20px;
    }

    .content_step {
        display: block;
    }

    .content_step_no {
        margin-bottom: 8px;
    }

    .content_table {
        min-width: 650px;
    }

    .content_faq summary {
        padding-right: 38px;
    }
}
