@charset "UTF-8";

/* under_header for news single
***************************************************************/
.under_header {
    background: var(--blue);
    background: linear-gradient(135deg, #3059AC 0%, #1D4C9E 100%);
        .inner{
            display: flex;
            align-items: center;
            height: 100%;
            padding-bottom: 1em;

            .under_header_ttl{
                padding-top: 0;
            }
        }
}

/* news_single_sec
***************************************************************/
.news_single_sec {
    padding: 60px 0;
    background-color: var(--white);
}

.news_single_header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    /* border-bottom: 1px solid #ddd; */
}

.news_single_meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news_single_date {
    font-size: 16px;
    color: var(--black);
    margin-right: 15px;
    font-weight: 700;
}

.news_single_cat {
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    background-color: #004D91; /* デフォルト色（紺、common.cssのクラスで上書き可能） */
    padding: 0.2em 0.7em;
    white-space: nowrap;
}

.news_single_title {
    font-size: clamp(20px, 3.5vw, 24px);
    font-weight: 700;
    color: var(--black);
    line-height: 1.5;
    margin: 0;
}

.news_single_content {
    margin-bottom: 60px;
}

/* .news_single_thumbnail {
    margin-bottom: 30px;
} */

/* .news_single_thumbnail img {
    width: 100%;
    height: auto;
    display: block;
} */

.news_single_body {
    font-size: 16px;
    line-height: 2;
    color: var(--black);
}

.news_single_body p {
    margin-bottom: 1.5em;
}
.news_single_body p:has(img) {
    max-width: 77%;
    margin: 0 auto;
}
.news_single_body p:has(img + img) {
    display: flex;
    gap: 5%;
}
.news_single_body p:has(img + img) img {
    width: calc(95% / 2);
}

.news_single_body h2,
.news_single_body h3,
.news_single_body h4 {
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--blue);
}

.news_single_body h2 {
    font-size: clamp(20px, 3.5vw, 24px);
    border-left: 8px solid var(--blue);
    background-color: #EEEEEE;
    padding-left: 15px;
}
.news_single_body h3 {
    font-size: clamp(20px, 3.5vw, 24px);
    border-left: 8px solid var(--blue);
    background-color: #EEEEEE;
    padding-left: 15px;
}

/* .news_single_body h3 {
    font-size: 24px;
} */

.news_single_body h4 {
    font-size: 20px;
}

.news_single_body img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
    width: auto;
}

.news_single_body ul,
.news_single_body ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.news_single_body li {
    margin-bottom: 0.5em;
}


.news_single_body a{
    color: #cc3333;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.news_single_back {
    text-align: center;
    margin-top: 60px;
}

/*--------------------PC--------------------*/
@media all and (min-width:768px) {
    .news_single_sec {
        padding: 80px 0 200px;
    }
    
    .news_single_header {
        margin-bottom: 50px;
        padding-bottom: 40px;
    }
    
    .news_single_content {
        margin-bottom: 80px;
    }
    .news_single_back {
        /* margin-top: 80px; */
        display: table;
        margin: 80px auto 0;
    }
    .news_single_body a:hover{
        text-decoration: none;
    }
}

/*--------------------SP--------------------*/
@media all and (max-width:767px) {
    .news_single_sec {
        padding: 40px 0 100px;
    }
    
    .news_single_header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .news_single_meta {
        margin-bottom: 15px;
    }
    
    .news_single_date {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .news_single_cat {
        margin-bottom: 10px;
    }
    
    .news_single_content {
        margin-bottom: 40px;
    }
    
    .news_single_body {
        font-size: 15px;
    }
    
    .news_single_body h2 {
        font-size: 24px;
    }
    
    .news_single_body h3 {
        font-size: 20px;
    }
    
    .news_single_body h4 {
        font-size: 18px;
    }
    
    .news_single_back {
        margin-top: 40px;
    }
    .news_single_body p:has(img) {
        max-width: 90%;
    }
    .news_single_body p:has(img + img) {
        display: flex;
        flex-direction: column;
            img + img{
                margin-top: 0;
            }
    }
    .news_single_body p:has(img + img) img {
        width: 100%;
    }
}

