@charset "UTF-8";

.news-page__header {
    display: grid;
    place-items: center;
    min-height: 145px;
    padding: 30px 20px;
    background: var(--bg);
}

.news-page__header h1 {
    margin: 0;
    color: #333;
    font-size: 3rem;
    line-height: 1.4;
}

.news-page__body {
    width: calc(100% - 40px);
    max-width: 750px;
    margin: 0 auto;
    padding: 54px 0 80px;
}

.news-page__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-page__list li {
    border-bottom: 1px solid #d8d8d8;
}

.news-page__list a {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr) 28px 12px;
    gap: 14px;
    align-items: center;
    min-height: 60px;
    padding: 10px 12px 10px 0;
    color: #333;
    text-decoration: none;
}

.news-page__list time {
    color: #999;
    font-size: 1.3rem;
    white-space: nowrap;
}

.news-page__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
}

.news-page__list img {
    display: block;
    grid-column: -3 / -2;
    width: 24px;
    height: auto;
}

.news-page__arrow {
    grid-column: -2 / -1;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--main);
    border-right: 2px solid var(--main);
    transform: rotate(45deg);
}

.news-detail__body {
    width: calc(100% - 40px);
    max-width: 750px;
    margin: 0 auto;
    padding: 68px 0 80px;
}

.news-detail__date {
    display: block;
    color: #999;
    font-size: 1.3rem;
}

.news-detail__title {
    margin: 10px 0 0;
    color: #333;
    font-size: 1.8rem;
    line-height: 1.65;
}

.news-detail__content {
    margin-top: 30px;
}

.news-detail__content p {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.7;
}

.news-detail__content p + p {
    margin-top: 4px;
}

.news-detail__attachment {
    display: grid;
    grid-template-columns: 130px 1fr;
    margin: 32px 0 0;
    background: #eee;
}

.news-detail__attachment dt,
.news-detail__attachment dd {
    margin: 0;
    padding: 20px 28px;
    font-size: 1.3rem;
}

.news-detail__attachment a {
    color: #0669ed;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.news-detail__back {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 40px;
    margin: 66px auto 0;
    padding: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        #2876DD 0%,
        #9B94C7 37%,
        #EFAD93 71%,
        #F66F95 100%
    );
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.news-detail__back::before {
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: #fff;
    content: "";
}

.news-detail__back > span {
    position: relative;
    z-index: 1;
}

.news-detail__back-arrow {
    position: absolute !important;
    left: 18px;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #333;
    border-left: 2px solid #333;
    transform: rotate(45deg);
}

@media screen and (max-width: 790px) {
    .news-page__header {
        min-height: 120px;
    }

    .news-page__header h1 {
        font-size: 2.6rem;
    }

    .news-page__body {
        width: 90%;
        padding: 36px 0 56px;
    }

    .news-page__list a {
        grid-template-columns: minmax(0, 1fr) 24px 10px;
        gap: 10px;
        padding: 16px 4px;
    }

    .news-page__list time {
        grid-column: 1 / -1;
        font-size: 1.1rem;
    }

    .news-page__title {
        font-size: 1.3rem;
    }

    .news-page__title br {
        display: none;
    }

    .news-page__list img {
        width: 22px;
    }

    .news-detail__body {
        width: 90%;
        padding: 44px 0 56px;
    }

    .news-detail__title {
        font-size: 1.4rem;
    }

    .news-detail__content {
        margin-top: 24px;
    }

    .news-detail__content p {
        font-size: 1.3rem;
    }

    .news-detail__attachment {
        grid-template-columns: 92px 1fr;
        margin-top: 28px;
    }

    .news-detail__attachment dt,
    .news-detail__attachment dd {
        padding: 16px 14px;
        font-size: 1.2rem;
    }

    .news-detail__back {
        margin-top: 48px;
    }
}
