/*ニュース詳細ページMVここから*/
.news-detail-mv {
    margin-top: 4.25rem;
    display: flex;
    align-items: center;
    gap: 5%;
    width: 100%;
}

.news-detail-mv picture,
.news-detail-mv img {
    flex: 0 1 auto;
    width: clamp(16rem, 33vw, 25.5rem);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 297 / 198;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--c-gray-10);
}

.news-detail-mv img {
    width: 100%;
    height: 100%;
    object-position: center center;
}

.news-detail-mv-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 2vw;
}

.news-detail-mv-time {
    font-weight: 300;
}

.news-detail-mv-text h1 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.6;
    font-weight: 500;
}

.news-meta-categories {
    display: flex;
    gap: 0.5rem;
    color: var(--c-gray-60);
    line-height: 100%;
}

/*デスクトップサイズ以下ここから*/
@media only screen and (max-width: 991.98px) {
    .news-detail-mv {
        margin-top: 4rem;
    }
}

/*タブレットサイズ以下ここから*/
@media screen and (max-width: 767.98px) {
    .news-detail-mv {
        gap: 1.5rem;
        flex-direction: column;
    }

    .news-detail-mv picture,
    .news-detail-mv img {
        width: 100%;
    }

    .news-detail-mv-text {
        gap: 0.5rem;
    }

    .news-detail-mv-time {
        font-size: 0.875rem;
    }

    .news-meta-categories {
        font-size: 0.875rem;
    }
}

/*ニュース詳細ページMVここまで*/

/*.news-detail-content {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap:1rem;*/
/*}*/

.news-detail-content > * {
    margin-top: 1rem;
}


/*.news-detail-content > *:first-child {*/
/*    margin-top: 0;*/
/*}*/

@media screen and (max-width: 767.98px) {
    .news-detail-content img {
        min-width: 0 !important;
        width: 100%;
    }
}

/*共通パーツ*/
.news-detail-content p {
    line-height: 175%;
}

/*.wp-caption picture {*/
/*    background: var(--c-white);*/
/*    display: block;*/
/*    width: 100%;*/
/*    img {*/
/*        margin-inline: auto;*/
/*        object-fit: contain;*/
/*    }*/
/*}*/


/*h1*/
.news-detail-content h1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    border-left: 2px solid var(--c-gray-120);
    padding-left: 1.5rem;
    font-style: normal;
    font-weight: 500;
    font-size: 2rem;
}

@media only screen and (max-width: 767.98px) {
    .news-detail-content h1 {
        margin-block: 1.5rem 0.5rem;
    }
}

/*h2*/
.news-detail-content h2 {
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background: linear-gradient(transparent 0%, #ebebeb 1px);
    padding: 0.5rem;
    font-style: normal;
    font-weight: 500;
    font-size: 1.75rem;
}

@media only screen and (max-width: 767.98px) {
    .news-detail-content h2 {
        margin-block: 1rem 0;
    }
}

.news-detail-content h2 + * {
    margin-top: 1rem;
    display: block;
}

.news-detail-content *:has(+ h2) {
    margin-bottom: 1rem;
}

/*h3*/
.news-detail-content h3 {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-style: normal;
    font-weight: 500;
    font-size: 1.5rem;
    margin-top: 1rem;
}

.news-detail-content h3::before {
    display: inline-block;
    background-image: url(/assets/home/icon_title.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 0.5rem;
    height: 0.5rem;
    content: "";
    margin-top: 0.6em;
}

/*h4*/
.news-detail-content h4 {
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
}

/*h5*/
.news-detail-content h5 {
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 500;
}

/*h6*/
.news-detail-content h6 {
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
}

/*太字テキスト*/
.news-detail-content strong {
    font-weight: 700;
}

/*!*下線テキスト*!*/
/*.underline {*/
/*    text-decoration: underline;*/
/*    text-decoration-color: var(--c-gray-120);*/
/*    text-underline-offset: 0.25rem;*/
/*}*/

/*テキストリンク*/
.news-detail-content a {
    position: relative;
    display: inline-block;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease-out;
}

.news-detail-content a[target="_blank"] {
    padding-right: 0.85rem;
}

.news-detail-content a[target="_blank"]::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 0.85em;
    height: 0.85em;
    mask: url("/assets/home/icon_link_external.svg") no-repeat center / contain;
    -webkit-mask: url("/assets/home/icon_link_external.svg") no-repeat center / contain;
    background-color: currentColor;
    transition: background-color 0.2s ease-out;
}

.news-detail-content a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(1);
    transform-origin: left center;
    transition: background-color 0.2s ease-out;
}

@media (hover: hover) {
    .news-detail-content a:hover {
        color: var(--c-blue);
    }
}

/*!*色文字テキスト*!*/
/*.text-color{*/
/*    color: var(--c-blue);*/
/*}*/

/*!*背景色テキスト*!*/
/*.text-bg {*/
/*    display: inline;*/
/*    -webkit-box-decoration-break: clone;*/
/*    box-decoration-break: clone;*/
/*    background: linear-gradient(transparent 0%, var(--c-blue) 1px);*/
/*    padding: 0.5rem 0.25rem;*/
/*    color: var(--c-white);*/
/*}*/

/*引用テキスト*/
.news-detail-content blockquote {
    border-left: 1px solid var(--c-gray-120);
    padding-left: 0.75rem;
}

/*リスト*/
.news-detail-content ul {
    list-style: none;
    display: flex;
    flex-flow: column;
    gap:0.5rem;
}

.news-detail-content ul li {
    position: relative;
    margin-left: 1.5rem;
    padding-left: 0;
}

.news-detail-content ul li:last-child {
    margin-bottom: 0;
}

.news-detail-content ul li::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    background: url(/assets/home/icon_title_cavity.svg) no-repeat center / contain;
}

.news-detail-content ul li li {
    list-style-type: circle;
}

.news-detail-content ul li li:before {
    display: none;
}

/*番号つきリスト*/
.news-detail-content ol {
    list-style: none;
    counter-reset: list-counter;
    padding-left: 1.5rem;
}

.news-detail-content ol li {
    counter-increment: list-counter;
    position: relative;
    margin-bottom: 0.38rem;
}

.news-detail-content ol li:last-child {
    margin-bottom: 0;
}

.news-detail-content ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: -1.5rem;
    line-height: 1.5;
}

/*2枚以上の画像*/
.image-row {
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.image-row > * {
    width: calc((100% - 1rem) / 2) !important;
    object-fit: cover;
    display: block;
    margin-left:0 !important;
    margin-right:0 !important;
}

.image-row img{
    min-width: 0 !important;
}

.image-row-content img{
    width: 100%;
}
@media only screen and (max-width: 767.98px) {
    .image-row {
        flex-flow: column;
    }

    .image-row > * {
        width: 100% !important;
        margin-inline:auto;
    }

    .image-row-content {
        gap: 0.5rem;
    }
}


/*1枚の画像*/
/*.wp-caption {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 1rem;*/
/*    margin-bottom: 1rem;*/
/*}*/

/*.wp-caption img {*/
/*    width: 100%;*/
/*    aspect-ratio: 1024.00/682.67;*/
/*    object-fit: cover;*/
/*    display: block;*/
/*}*/

/*@media only screen and (max-width: 767.98px) {*/
/*    .wp-caption {*/
/*        gap: 0.5rem;*/
/*    }*/
/*}*/

/*画像*/
.news-detail-content .alignleft {
    float: none !important;
    display: block;
    margin-right: auto;
    margin-left: 0;
}

.news-detail-content .aligncenter {
    float: none !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.news-detail-content .alignright {
    float: none !important;
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.wp-caption {
    max-width: 100%;
    display: block;
}

.wp-caption img {
    width: 100%;
}

.wp-caption p {
    margin-top: 0.5rem;
}

.news-detail-content .alignnone {
    max-width: 100%;
    display: block;
}

.news-detail-content .alignnone img {
    width: 100%;
}

@media only screen and (max-width: 767.98px) {
    .wp-caption {
        min-width: auto !important;
    }

}

/*横線*/
.news-detail-content hr {
    border: none;
    height: 1px;
    background-color: var(--c-gray-30);
    width: 100%;
}

/*!*左揃え*!*/
/*.text-left{*/
/*    text-align: left;*/
/*}*/

/*!*中央揃え*!*/
/*.text-center{*/
/*    text-align: center;*/
/*}*/

/*!*右揃え*!*/
/*.text-right{*/
/*    text-align: right;*/
/*}*/

/*navここから*/
.news-detail-nav {
    padding-top: 0;
}

.news-detail-nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-detail-nav-item a {
    position: relative;
    display: inline-flex;
    text-decoration: none;
    line-height: 100%;
    padding: 1.5rem 1rem;
    gap: 0.5rem;
}

.news-detail-nav-item a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background-color: var(--c-gray-30);
    transition: background-color 0.2s ease-out;
}

@media (hover: hover) {
    .news-detail-nav-item a:hover::after {
        background-color: rgba(15, 15, 15, 0.8);
    }
}

.news-detail-nav-item.prev img {
    transform: rotate(180deg);
}

/*タブレットサイズ以下ここから*/
@media screen and (max-width: 767.98px) {
    .news-detail-nav {
        font-size: 0.875rem;
    }
}

/*スマホサイズ以下ここから*/
@media only screen and (max-width: 575.98px) {
    .news-detail-nav-item a {
        padding: 1rem 0.5rem;
        gap: 0.25rem;
    }

}

/*navここまで*/
