@charset "UTF-8";
/* --- ニュース --- */

.news-common {
    background: var(--color-bg-sub-green);
}

.news-common .contents-title {
    color: var(--color-deep-green);
    font-size: 2.4rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.news-common .contents {
    width: 100%;
    margin: 0 auto;
    padding: 30px 0 0;   
}

.contents-body {
    margin: 30px auto 20px;
    padding: 30px 40px 50px;
    background: #fff;
}

.news-common .contents-inner {
    position: relative;
    margin: 0 auto;
}

.news-list {
    max-width: 900px;
    margin: 0 auto 40px;
    border-top: 1px solid var(--color-deep-green);
    line-height: 1.6;
}

.news-list li {
    border-bottom: 1px solid var(--color-deep-green);
}

.news-list li a {
    position: relative;
    display: block;
    padding: 20px 0 15px;
}

.news-list .text-wrap {
    margin-bottom: 20px;
}

.news-detail .news-date-wrap,
.news-list .news-date-wrap {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
}

.news-detail .news-title,
.news-list .news-title {
    position: relative;
    display: -webkit-box;
    font-size: 1.6rem;
    font-weight: 500;
    padding: 0 35px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    transition: color 0.5s ease, transform 0.5s ease;
    line-height: 1.6;
}

.news-list .text-wrap .news-title::after {
    position: absolute;
    content: "";
    width: 20px;
    height: 28px;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-image: url(../images/common/arrow-news.svg);
    transition: transform 0.5s ease;
}

.news-list li a:hover .news-title {
    color: #19931E;
}

.news-list a:hover .news-title,
.news-list li a:hover::after {
    transform: translateX(10px);
}

.store-type {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-deep-green);
    padding: 0 6px;
    border: 1px solid var(--color-deep-green);
    background: #fff;
    border-radius: 2px;
}

.store-type.comprehensive {
    color: var(--color-dark-gray);
    border: 1px solid var(--color-dark-gray);
}

.news-date-wrap .news-date-wrap p {
    display: inline-block;
}

.news-date-wrap p.news-date {
    font-size: 1.6rem;
    font-weight: 300;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
}

.news-date-wrap p.news-date.important {
    position: relative;
    padding: 0 0 0 35px;
}

.news-date-wrap p.news-date.important::before {
    position: absolute;
    content: "";
    left: 0;
    width: 25px;
    height: 25px;
    background-image: url(../images/common/exclamation_mark.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.news-date-wrap .icon {
    position: relative;
    top: 4px;
    display: inline-block;
    color: #fff;
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
    background: #666;
    border-radius: 50px;
    text-align: center;
}

.news-list li .img-wrap {
    position: relative;
    height: 0;
    padding-bottom: 56.20%;
    border: 1px solid #ccc;
    overflow: hidden;
}

.news-list li .img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out;
}

.news-list li a:hover .img-wrap img {
    transform: scale(1.05);
}

.news-common .contents-footer {
    padding: 0 40px;
}

/* --- NEWS 詳細 --- */

.news-detail .contents-inner {
    line-height: 1.6;
}

.news-detail .news-title {
    font-size: 1.8rem;
    margin: 0 auto 30px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--color-deep-green);
}

.news-detail .main-image {
    border: 1px solid #ccc;
}

.news-detail .main-image img {
    width: 100%;
    height: auto;
}

.news-detail .news-contents {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 30px auto;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-deep-green);
}

.news-detail .news-contents.news-style h4 {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.6;
}

.news-detail .news-contents.news-style .center {
    text-align: center;
    margin: 0 auto;
}

.news-detail .news-contents.news-style .mb30-40 {
    margin-bottom: 30px;
}

.news-detail .news-contents.news-style .mb20 {
    margin-bottom: 20px;
}

.news-detail .news-contents.news-style .mb30 {
    margin-bottom: 30px;
}

.news-detail .news-contents.news-style a {
    position: relative;
    transition: color 0.2s ease-in;
    text-decoration: underline;
}
.news-detail .news-contents.news-style .link:after,
.news-detail .news-contents.news-style .pdf::after {
    position: absolute;
    content: "";
    margin-left: 2px;
    background-size: cover, 0;
    background-repeat: no-repeat;
    transition: background-image 0.2s ease-in;
}
.news-detail .news-contents.news-style .link:after {
    width: 24px;
    height: 24px;
    background-image: url(../images/common/news_link.svg),url(../images/common/news_link_on.svg);;
}
.news-detail .news-contents.news-style .pdf:after {
    width: 20px;
    height: 24px;
    background-image: url(../images/common/news_pdf.svg),url(../images/common/news_pdf_on.svg);;
}

.news-detail .news-contents.news-style a:hover {
    color: var(--color-deep-green);
}
.news-detail .news-contents.news-style .link:hover:after {
    background-image: url(../images/common/news_link_on.svg);

}
.news-detail .news-contents.news-style .pdf:hover:after {
    background-image: url(../images/common/news_pdf_on.svg);
}
  
.news-detail .news-contents.news-style .img-wrap img {
    max-width: 100%; /* 親要素の幅を超えないように */
    width: auto; /* 元のサイズを維持 */
    height: auto;
    object-fit: contain;
    max-height: 295px;
    border: 1px solid #ccc;
}

.news-detail .news-contents.news-style ol {
    list-style-type: decimal;
    list-style-position: inside;
    line-height: 1.6;
}

.news-detail .news-contents.news-style ul {
    list-style: disc;
    list-style-position: inside;
    line-height: 1.6;
    padding-left: 0;
}
.news-detail .news-contents.news-style ul li::marker {
    font-size: 0.7em; 

}
.news-detail .news-contents.news-style ul li {
    word-break: break-word;
}

.news-detail .news-contents.news-style .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 */
    height: 0;
    overflow: hidden;
    max-width: 898px;
    /* margin: 0 auto; */
    border: 1px solid #ccc;
}

.news-detail .news-contents.news-style .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-navigation {
    display: flex;
    justify-content: space-between;
}

.page-navigation a {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    color: var(--color-deep-green);
    border: 1px solid var(--color-deep-green);
    border-radius: 5px;
    text-align: center;
    line-height: 1.6;
    padding: 1px 0;
    font-size: 1.8rem;
    font-weight: 600;
    transition: background-color 0.3s ease-in, 0.3s ease-out;
    background: #fff;
    letter-spacing: 0.05em;
}

.page-navigation .list-button {
    width: fit-content;
    padding: 0 8px;
}

.page-navigation .prev-button::after {
    position: absolute;
    content: '';
    top: 6px;
    left: 10px;
    width: 16px;
    height: 28px;
    background: url(../images/common/arrow_back.svg) no-repeat 0 0;
    background-size: 12px 22px;
}

.page-navigation .next-button::after {
    position: absolute;
    content: '';
    top: 0px;
    left: 8px;
    width: 16px;
    height: 28px;
    background: url(../images/common/arrow_back.svg) no-repeat 0 0;
    background-size: 12px 22px;
    transform: rotate(180deg);
}

.page-navigation a:hover {
    color: #fff;
    background-color: var(--color-deep-green);
}

.page-navigation .prev-button:hover::after,
.page-navigation .next-button:hover::after {
    background: url(../images/common/arrow_back_on.svg) no-repeat 0 0;
    background-size: 12px 22px;
}


@media screen and (min-width: 744px) {

    .news-common .contents-title {
        font-size: 3.0rem;
    }

    .contents-body {
        padding: 55px 40px 70px;
    }

    .news-list {
        margin: 0 auto 55px;
    }

    .news-list li a {
        padding: 30px 0 27px;
    }

    .news-list .news-box-flex {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row-reverse;
        gap: 0 30px;
    }

    .news-list .text-wrap {
        flex: 1;
        margin-bottom: 0;
    }

    .news-date-wrap p.news-date {
        display: flex;
        align-items: center;
        font-size: 1.8rem;
    }

    .news-date-wrap p.news-date.important::before {
        width: 24px;
        height: 24px;
    }

    .store-type {
        font-size: 1.6rem;
    }

    .news-list .news-date-wrap {
        margin-bottom: 12px;
    }

    .news-detail .news-title,
    .news-list .news-title {
        font-size: 2.0rem;
        padding: 0 60px 0 0;
        -webkit-line-clamp: 2;
    }

    .news-detail .news-title {
        margin: 0 auto 40px;
        padding: 0 0 24px 0;
    }

    .news-list .text-wrap .news-title::after {
        right: 12px;
    }
  
    .news-list li .img-wrap {
        position: relative;
        overflow: hidden;
        width: 250px;
        height: 140px;
        padding: 0;
    }

    .news-list li .img-wrap img {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center center;
    }

    /* --- NEWS 詳細 --- */
    
    .news-detail .contents-inner {
        max-width: 900px;
        margin: 0 auto;
    }

    .news-detail .news-contents {
        font-size: 1.6rem;
        margin: 40px auto 50px;
        padding-bottom: 50px;
    }

    .news-detail .news-contents.news-style h4 {
        font-size: 1.8rem;
    }

    .news-detail .news-contents.news-style .img-wrap {
        max-width: 898px;
        max-height: 898px;
    }

    .news-detail .news-contents.news-style .img-wrap img {
        max-width: 100%;
        max-height: 898px;
    }

    .page-navigation a {
        width: 46px;
        height: 46px;
        line-height: 1.6;
        padding: 2px 0;
        font-size: 2.4rem;
    }

    .page-navigation .list-button {
        padding-top: 2px;
    }

    .page-navigation .prev-button::after {
        top: 9px;
        left: 12px;
        width: 16px;
        height: 28px;
        background-size: 16px 28px;
    }

    .page-navigation .next-button::after {
        top: 9px;
        left: 16px;
        width: 16px;
        height: 28px;
        background-size: 16px 28px;
    }

    .page-navigation .prev-button:hover::after,
    .page-navigation .next-button:hover::after {
        background-size: 16px 28px;
    }

    .news-detail .news-contents.news-style .mb30-40 {
        margin-bottom: 40px;
    }
}

@media screen and (min-width: 1000px) {

    .news-common .contents-footer {
        padding: 0 40px;
    }
      
    .news-common .contents-footer .back-btn {
        max-width: 900px;
        margin: 0 auto;
    }

    .news-detail .news-contents.news-style .img-wrap img {
        max-width: 898px; /* 最大幅の制限 */
    }

    
}
