/* CSS Document /
/government/comm/future023.asp */

/* --- Base Elements --- */
em {
    color: #f00;
    font-weight: bold;
    font-style: normal;
    &.large { font-size: 1.25em; }
    &.highlight { color: #333; }
}

#scrl1 h3 {
    margin-bottom: .5em;
    padding-bottom: 0;
    border-bottom: 0;
    color: #f00;
}

#scrl2 h3, #scrl3 h3 {
    margin-bottom: .5em;
}

.secArticleDetail h4 {
    font-size: 18px !important;
}

/* --- Layout Components --- */
.idxBox_flex {
    margin-top: 32px;
    display: flex;
    flex-flow: row wrap;
    box-sizing: border-box;
    & * { box-sizing: border-box; }
    & .idxBox, & figure { width: 100%; }
    & figure img { width: 100%; height: auto; display: block; }
}

/* 矢印 */
.arrow {
    --base-width: 46px;
    --arrow-color: #89B63F;
    position: relative;
    width: var(--base-width);
    height: calc(var(--base-width) * 0.65);
    background: var(--arrow-color);
    margin: 20px auto 4em;
    display: block;
    &::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: solid transparent;
        border-width: calc(var(--base-width) * 0.9);
        border-top: calc(var(--base-width) * 0.85) solid var(--arrow-color);
        margin-top: -1px;
    }
}

#scrl1 .green_box {
    width: 100%;
    border: 2px solid #89B63F;
    margin-top: 1em;
    & h4 {
        background: #89B63F;
        color: #fff;
        padding: 0.2em 0.5em;
        margin: 0 !important;
    }
    & ol {
        padding: 1em;
        margin: 0;
        & li {
            line-height: 1.8;
            letter-spacing: .05em;
        }
    }
}

/* 吹き出し */
.flex_box {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 20px 0;
    max-width: 100%;
}

.balloon {
    position: relative;
    flex: 1;
    background: #FEE8A3;
    border-radius: 10px;
    padding: 30px;
    color: #333;
    &::after {
        content: "";
        position: absolute;
        inset: 50% -34px auto auto;
        transform: translateY(-50%);
        border: solid transparent;
        border-width: 18px 0 18px 35px;
        border-left-color: #FEE8A3;
    }
    & h4 {
        margin: 0 0 16px;
        font: bold 1.15rem sans-serif;
    }
    & p {
        margin: 0;
        line-height: 1.75;
        letter-spacing: 0.05em;
    }
}

#scrl3 .imgBox {
    flex-shrink: 0;
    width: 160px;
    & img { width: 100%; height: auto; display: block; }
}

/* --- 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: 10px;
        }
        & dd { line-height: 1.5; margin: 0; }
    }
    & .case_btn { text-align: right; }
    & .case_btn_link {
        width: 100%;
        display: inline-block;
        position: relative;
        padding: 8px 10px;
        background: #152768;
        color: #fff;
        text-align: center;
        border-radius: 4px;
        box-sizing: border-box;
        & span {
            font-size: 14px;
            &::after {
                content: "";
                position: absolute;
                inset: 50% 15px auto auto;
                width: 6px;
                height: 6px;
                border-top: 1px solid #fff;
                border-right: 1px solid #fff;
                transform: translateY(-50%) rotate(45deg);
            }
        }
    }
}

/* --- Media Queries --- */
@media (min-width: 1024px) {
    .idxBox_flex {
        margin-top: 48px;
        align-items: center;
        justify-content: space-between;
        & .idxBox { width: 60%; }
        & figure { width: 35%; }
    }
}

@media (max-width: 1024px) {
    .secArticleDetail h4 { font-size: 16px !important; }
    .flex_box {
        flex-direction: column;
        gap: 40px;
    }
    .balloon {
        & p { font-size: 14px; }
        &::after {
            inset: 98% 50% auto auto;
            transform: translateX(50%) rotate(90deg);
        }
    }
    #scrl1 .green_box ol li { font-size: 14px; }
}

@media (max-width: 767px) {
    .individual_cases_text { width: 100%; } /* モバイル時の調整 */
    .individual_cases a { flex-direction: column; }
    .individual_cases figure, .individual_cases_text { width: 100%; }
    .individual_cases figure { margin-bottom: 20px; }
    .individual_cases_text {
        font-size: 14px;
        & dl dt { font-size: 16px; }
    }
}