:root {
    --article-width: clamp(650px, 65vw, 960px);
    --news-category-info: #1935a5;
    --news-category-event: #ab1a1a;
    --news-category-parents: #0e8837;
    --news-category-uncategorized: #3d3d3d;
}

.sawarabi-mincho-regular {
    font-family: "Sawarabi Mincho", serif;
    font-weight: 400;
    font-style: normal;
}

body {
    background: repeating-linear-gradient(45deg,
            #f3f7fa,
            #f3f7fa 10px,
            #eaf2f8 10px,
            #eaf2f8 20px);
}

/**
 * お知らせと新着記事で共通
 */
.top-news,
.top-articles {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/**
 * お知らせエリア
 */
.top-news {
    width: var(--article-width);
    margin: 0 auto 3rem;
}

/**
 * 新着記事エリア
 */

.top-articles {
    width: var(--article-width);
    margin: 0 auto 3rem;
}

/**
 * カルーセル関連
 */
.top-carousel {
    position: relative;
    height: 60vh;
    margin-bottom: 2rem;
    overflow: hidden;
}

.top-carousel-swiper,
.top-carousel-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.top-carousel-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-carousel__copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    z-index: 3;

    width: min(100%, var(--article-width));
    margin-inline: auto;

    color: #fff;
    font-size: clamp(32px, 3.4vw, 56px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.04em;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(0, 0, 0, 0.35);

    pointer-events: none;
}

.top-carousel__subcopy {
    font-size: 50%;
}

.crop-top {
    object-position: center top;
}

.crop-center {
    object-position: center center;
}

.crop-bottom {
    object-position: center bottom;
}

.top-carousel-swiper .swiper-button-prev,
.top-carousel-swiper .swiper-button-next {
    color: #fff;
}

.top-carousel-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.top-carousel-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

@media screen and (max-width: 767.98px) {

    .top-news {
        width: 95vw;
        margin: 0 auto 3rem;
    }

    .top-articles {
        width: 95vw;
        margin: 0 auto 3rem;
    }

    .top-carousel {
        height: 50vh;
    }

    .top-carousel__copy {
        padding: 0 1rem;
    }

}