/* CSS Document /
/government/comm/future022.asp */

/* --- Base Elements --- */
em {
    color: #f00;
    font-weight: bold;
    font-style: normal;
    &.large { font-size: 1.25em; }
    &.highlight { color: #333; }
}

/* 章見出し（下線解除） */
#scrl2 h3, #scrl3 h3 {
    margin-bottom: .5em;
    padding-bottom: 0;
    border-bottom: 0;
}

.secArticleDetail h4 {
    font-size: 18px !important;
}

/* --- Layout Components --- */
.idxBox_flex {
    box-sizing: border-box;
    & * { box-sizing: border-box; }
    .idxBox, figure { width: 100%; }
}

.voice_box {
    margin-top: 24px;
    .voice_item {
        display: flex;
        flex-direction: column;
        gap: 12px;
        border-radius: 12px;
        padding: 16px 16px 0;
        & + .voice_item { margin-top: 16px; }

        /* 背景バリエーション */
        &.accounting { background: #edf7f7; }
        &.asset { background: #fef3f3; }
        &.business { background: #fcf4e0; }
        &.public { background: #f8ebf7; }

        .voice_text {
            ul {
                margin-left: 1em;
                li { font-size: 14px; }
            }
            .voice_note {
                margin-top: 1em;
                font-size: 0.85em;
                line-height: 1.25;
            }
            &.text { margin-top: 0; }
        }
        .voice_person {
            display: flex;
            align-items: center;
            gap: 12px;
            figcaption { font: bold 14px sans-serif; }
            img { width: 56px; }
        }
    }
}

.merit_img {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-inline: auto;
    .arrow_triangle {
        display: inline-block;
        background: #666;
        height: 24px;
        width: 64px;
        clip-path: polygon(0 0, 100% 0, 50% 100%);
    }
    figure, img { margin-bottom: 0; }
}

.mb { margin-bottom: 48px; }

/* --- Individual Cases (インタビューリンク) --- */
.individual_cases {
    & a {
        width: 100%;
        border: 1px solid #d9e0de;
        border-radius: 4px;
        margin-top: 30px;
        padding: 15px;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        transition: 0.3s;
        text-decoration: none;
        color: inherit;
        &:hover { opacity: 0.7; }
    }
    figure {
        width: 35%;
        margin: 0;
        img { width: 100%; height: 100%; object-fit: cover; }
    }
}

.individual_cases_text {
    width: 60%;
    dl {
        margin-bottom: 20px;
        dt { font-size: 18px; font-weight: bold; margin-bottom: 20px; }
        dd { line-height: 1.5; margin: 0; }
    }
    .case_btn { text-align: right; }
    .case_btn_link {
        width: 100%;
        display: inline-block;
        position: relative;
        padding: 7px 10px 8px;
        background: #152768;
        border: 1px solid #152768;
        border-radius: 4px;
        text-align: center;
        box-sizing: border-box;
        span {
            color: #fff;
            font-size: 14px;
            &::after {
                content: "";
                position: absolute;
                inset: 50% 10px auto auto;
                width: 5px;
                height: 5px;
                margin-top: -0.25em;
                border: solid #fff;
                border-width: 1px 1px 0 0;
                transform: rotate(45deg);
            }
        }
    }
}

/* --- Media Queries --- */
@media (min-width: 1024px) {
    .idxBox_flex {
        display: flex;
        justify-content: space-between;
        .idxBox { width: 60%; }
        figure { width: 35%; }
    }
    .voice_box .voice_item {
        flex-direction: row;
        align-items: center;
        gap: 24px;
        padding: 1.5em 1.5em 1.5em .5em;
        .voice_text {
            order: 2;
            flex: 1;
            li { font-size: 16px; }
        }
        .voice_person {
            flex-direction: column;
            width: 114px;
            gap: 4px;
            order: 1;
            img { width: 72px; order: 2; }
            figcaption { order: 1; }
        }
    }
    .merit_img { max-width: inherit; }
}

@media (max-width: 767px) {
    .individual_cases_text {
        width: 60%;
        font-size: 14px;
        dl dt { font-size: 16px; }
    }
    .secArticleDetail h4 { font-size: 16px !important; }
}

@media screen and (min-width: 48em) and (max-width: 64em), (max-width: 580px) {
    .individual_cases {
        a { flex-direction: column; }
        figure { width: 100%; margin-bottom: 20px; }
    }
    .individual_cases_text { width: 100%; }
}