@charset "UTF-8";

/* ======================================== 
   Main header
   ======================================== */
.main {
    margin: 60px 0 80px;
}

.article {
    background-color: #ffffff;
}

.siteVisual__area {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.siteVisual__img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    object-position: center center;
}

.siteVisual__title {
    position: absolute;
    top: 24px;
    right: 6.4%;
}

.siteVisual__title img {
    width: 80px;
    height: auto;
}

/************************************/
/* @media 1025px:                   */
/************************************/
@media screen and (min-width: 1025px) {
    .main {
        margin-top: 80px;
    }

    .siteVisual__title {
        position: absolute;
        top: 34px;
    }

    .siteVisual__title img {
        width: 114px;
        height: auto;
    }
}

/* pc 1025px */

/* ======================================== 
   News Section
   ======================================== */
.section__news {
    margin: 60px auto 80px;
    padding: 0 20px;
    max-width: 665px;
}

.news__list {
    margin: 30px auto 0;
    max-width: 665px;
}

.news__item {
    margin-top: 40px;
    /* 横4px（1px描画 + 3px幅）、縦1px（線幅） */
    background-image: linear-gradient(to right, var(--primary-brown) 1px, transparent 1px);
    background-size: 4px 1px;
    background-position: bottom;
    background-repeat: repeat-x;
    padding: 0 0 14px;
}

.news__item:first-of-type {
    margin-top: 0;
}

.news__date {
    display: block;
}

.news__title {
    font-size: 1.8rem;
}

.news__accordion {
    transition: transform 0.4s ease;
}

.news__summary {
    display: block;
    cursor: pointer;
}

.readmore {
    display: flex;
    justify-content: end;
    align-items: center;
    font-size: 1.2rem;
    text-align: right;
    flex-shrink: 0;
    cursor: pointer;
}

.readmore img {
    width: 18px;
    height: 18px;
    transform-origin: center center;
    transform: rotate(90deg);
    transition: transform 0.4s ease;
}

/* 矢印の回転アニメーション */
details[open] .readmore img {
    transform: rotate(-90deg);
}

.news__content {
    margin-top: 10px;
}

/* 開閉の挙動を設定するメイン処理 */
.news__content {
    display: grid;
    grid-template-rows: 0fr;
    /* 閉じている時は高さ0 */
    transition: grid-template-rows 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

/* detailsが開いている（[open]属性がある）時のスタイル */
details[open] .news__content {
    grid-template-rows: 1fr;
    /* 開いた時はコンテンツに応じた高さ */
    margin-top: 10px;
}

/* 内側の要素でoverflow: hiddenを指定し、アニメーション中に食み出さないようにする */
.news__content>* {
    overflow: hidden;
}

.news__sitelink {
    margin-top: 20px;
}

.news__sitelink a {
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 180px;
    padding: 4px 16px;
    color: #ffffff;
    background-color: var(--primary-brown);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.news__sitelink a:hover {
    opacity: 0.7;
}

.news__sitelink img {
    width: 16px;
    height: 16px;
}

.news__image {
    margin: 20px auto 0;
}

.news__image img {
    display: block;
    width: 100%;
    height: auto;
}

.news__sitelink.no-url {
    display: none;
}

/************************************/
/* @media 600px: News               */
/************************************/
@media screen and (min-width: 600px) {
    .news__content p {
        font-size: 1.6rem;
    }

    .link__btn--news {
        margin-top: 75px;
    }
}

/************************************/
/* @media 1025px:                   */
/************************************/
@media screen and (min-width: 1025px) {
    .section__news {
        margin: 90px auto 0;
        padding: 0 180px;
        max-width: none;
    }

    .news__list {
        margin: 30px auto 0;
        max-width: none;
    }

    .news__item {
        padding: 0 0 20px;
    }

    .news__image img {
        max-width: 528px;
    }
}

/* ========================================
   News Pagination
========================================= */
.news__nav {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* ページネーションリスト */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.pagination__item {
    display: flex;
}

.pagination__link,
.pagination__ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--primary-brown);
    background-color: #ffffff;
    color: var(--primary-brown);
    font-size: 1.6rem;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* 前へ・次へボタンの余白 */
.pagination__item--prev {
    margin-right: 18px;
}

.pagination__item--next {
    margin-left: 18px;
}

/* ホバー時の効果（アクティブ以外のリンク） */
.pagination__link:hover:not(.pagination__link--active) {
    background-color: #f7f5f0;
}

/* アクティブ（選択中）ページのスタイル */
.pagination__link--active {
    background-color: var(--primary-brown);
    color: #ffffff;
    border-color: var(--primary-brown);
}

/* 三点リーダー（...）部分の個別調整 */
.pagination__ellipsis {
    cursor: default;
    color: var(--primary-brown);
}

/************************************/
/* @media 1025px: Pagenation        */
/************************************/
@media screen and (min-width: 1025px) {
    .pagination {
        gap: 20px;
    }
}