/* ------------------------------------------------

ARCHIVE: NEWS - お知らせ -

------------------------------------------------ */

.news {
    /* padding-top: clamp(50px,10vw,144px); */
}

.news__list {
    --font-min: 14;
    --font-max: 24;
    font-size: var(--font-size);
    --space-min: 12;
    --space-max: 90;
    margin-bottom: var(--space);
    display: flex;
    flex-direction: column;
}

.news__item{
    border-bottom: 1px solid var(--color-base);
}

.news__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em 5.5vw;

    --font-min: 14;
    --font-max: 20;
    font-size: var(--font-size);
    padding-top: 2em;
    padding-bottom: 2em;
    padding-right: clamp(0px, 2.22vw, 91px);
    opacity: 1;
    transition: all 0.3s ease-in-out;
    margin-inline: 40px;
}

/* 最初の記事のpadding-topを消す */
.news__list .news__item:first-child .news__link {
    padding-top: 0;
}

.news__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    line-height: 0.8;
}

/* 日付 */
.news__date {
    --font-min: 16;
    --font-max: 20;
    font-size: var(--font-size);
    font-weight: var(--wght-regular);
    letter-spacing: 0.13em;
}

/* 新着記事にNEWのラベルをつける */
.news__label {
    color: var(--color-main);
    border: 2px solid var(--color-main);
    padding: 0.2em 1em;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    width: 5em;
}

/* NEWラベルが空の時は枠線を消す */
.news__label:empty {
    border: none;
    background-color: unset !important;
}

/* 矢印の外側の丸 */
.icon__arrow-circle {
    width: 1em;
    height: 1em;
    border: 1px solid var(--color-base);
    border-radius: 50%;
    position: relative;
}

.news__type {
    padding: 0.1em 1em 0.15em;
    color: var(--color-main);
    border: 2px solid var(--color-main);
    border-radius: 5px;
    text-align: center;
}

.news__content {
    display: inline-block;
    text-align: left;
    flex: 1;
}

.news__title {
    --font-min: 16;
    --font-max: 24;
    font-size: var(--font-size);
    font-weight: var(--wght-regular);
    line-height: 1.6;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* タイトルの後ろにアイコンを配置 */
/* アイコンを囲う円 */
.news__title .circle-arrow {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
}

@media (hover: hover) and (pointer: fine) {

    /* 日付とNEWSタイトルの色変化 */
    .news__link:hover .news__date,
    .news__link:hover .news__title {
        color: #717171;
        transition: all 0.3s ease-in-out;
    }
}


@media (width < 800px) {

    .news h2 {
        margin-left: 11px;
    }

    .news__link {
        display:flex;
        gap: 1em;
        padding-top: 1em;
        padding-bottom: 1em;
        padding-inline: 11px;
        margin-inline: 0;
    }


    .news__list {
        margin-bottom: 30px;
    }

    /* meta */
    .news__meta {
        flex-direction: column;
        align-items: flex-start;  
        justify-content: center;
        gap: 10px;
    }


    .news__date {
        order: 1;
        letter-spacing: 0;
    }

    .news__label {
        order: 0;
        padding: 0.25em 0.6em;
    }

    .news__label:empty {
        display: none;
    }

    .news__item .circle-arrow {
        display: none;
    }

}


/* ------------------------------------------------
SINGLE: NEWS - お知らせ詳細 -
------------------------------------------------ */
.news-post{
    position: relative;
}

.news-post__inner{
    max-width: 1044px;
    margin: 0 auto;
}

/* お知らせ */
.news-post__head{
    --space-min: 40;
    --space-max: 125;
    margin-bottom: var(--space);
}

/* お知らせ */
.news-post__head p{
    --font-min: 24;
    --font-max: 96;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
}

/* 日付 */
.news-post__date{
    display: block;
    color: #D3D3D3;
    margin-bottom: var(--space-3xl);
}

/* newsタイトル */
.news-post__title{
    padding-bottom: 0.75em;
    border-bottom: 1px solid var(--color-base);
    margin-bottom:clamp(20px,4.5vw,60px);
}

.news-post__content{
    line-height: var(--lineHeight-150);
    --space-min: 120;
    --space-max: 288;
    margin-bottom: var(--space);
}

/* 一覧へ戻るボタン */
.news-post .btn-wrap{
    width: min(100%,547px);
    margin-inline: auto;
}

.news-post .btn{
    padding: 0.8em 2em;
}

.news-post .btn-arrow::after{
    right:unset;
    left: 10%;
    rotate: 225deg;
}

/* 投稿ナビゲーション
-----------------------------------------*/
.news-post__nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    --font-min: 36;
    --font-max: 50;
    margin-top: var(--font-size);
    list-style: none;
    padding: 0;
    font-size: var(--fontSize-sm);
    font-weight: var(--wght-medium);
}

.news-post__nav-item {
    flex: 1;
}

.news-post__nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    --font-min: 13px;
}

.news-post__nav-link--next {
    justify-content: flex-end;
}


.news-post__nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(20px, 8vw, 30px);
    height: clamp(20px, 8vw, 30px);
    background: var(--gradient-reverse);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.news-post__nav-icon::after {
    content: "";
    display: block;
    width: clamp(4px,1.6vw,6px);
    height: clamp(4px,1.6vw,6px);
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
}

.news-post__nav-link--prev .news-post__nav-icon::after {
    transform: rotate(-135deg);
}

.news-post__nav-link--next .news-post__nav-icon::after {
    transform: rotate(45deg);
}

/* hoverスタイル */
.news-post__nav-link:hover .news-post__nav-icon {
    opacity: 0.8;
}

.news-post__nav-archive {
    width: 100%;
    display: block;
    text-align: center;
}

/* 記事がない時のスペーサー */
.news-post__nav-disabled {
    pointer-events: none;
    color: transparent;
}