/* ==================================== */
/* archive-spot.css                     */
/* ==================================== */

/* 共通のページヘッダータイトル（page-transaction.cssなどと共通） */
/*
.page-header-title {
    padding-top: 100px;
    padding-bottom: 30px;
    background-color: var(--light-gray);
    text-align: center;
}
.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
    font-family: "Zen Maru Gothic", sans-serif;
}
*/

/* 施設一覧セクション */
.spot-archive-section {
    padding: 50px 0;
}

/* カードのグリッドレイアウト */
.spot-card-grid {
    display: grid;
    /* 横3カラムのグリッド。各カラムの幅を均等に */
    grid-template-columns: repeat(3, 1fr);
    /* カラム間の隙間 */
    gap: 30px;
}

/* 各カードのスタイル */
.spot-card {
    background-color: var(--base-color);
    border: 1px solid var(--light-gray);
    border-radius: 15px;
    /* 丸みを帯びたデザイン */
    overflow: hidden;
    /* 角丸からはみ出るコンテンツを隠す */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* 影を付けて立体感を出す */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spot-card:hover {
    transform: translateY(-5px);
    /* ホバーで少し上に移動 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    /* 影を濃くする */
}

/* カード全体をリンクに */
.spot-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    /* 親要素の高さに合わせる */
}

/* カード内の画像 */
.spot-card-image-wrapper {
    width: 100%;
    /* 画像の縦横比を調整。例: 3:2 */
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.spot-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像をトリミングして領域全体を埋める */
    transition: transform 0.3s ease;
}

.spot-card:hover .spot-card-image-wrapper img {
    transform: scale(1.05);
    /* ホバーで画像を少し拡大 */
}

/* カード内のコンテンツ */
.spot-card-content {
    padding: 25px;
    text-align: left;
}

.spot-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 2.8em;
    /* タイトルが2行になっても高さを揃える */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.spot-excerpt {
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.6;
    min-height: 4.8em;
    /* 抜粋が複数行になっても高さを揃える */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.read-more-button {
    text-align: right;
    margin-top: 20px;
}

.btn-read-more {
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 3px;
    transition: border-color 0.3s ease;
}

.btn-read-more:hover {
    border-bottom: 2px solid var(--main-color);
}

/* ページネーションのスタイル */
.spot-archive-section .pagination {
    margin-top: 50px;
    text-align: center;
}

/* 投稿がない場合のメッセージ */
.no-posts-found {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: var(--dark-gray);
}

/* ==================================== */
/* レスポンシブデザイン (Responsive)    */
/* ==================================== */
@media (max-width: 1024px) {
    .spot-card-grid {
        /* 1024px以下では2カラムにする */
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-header-title {
        padding-top: 80px;
        /* スマホ用ヘッダー高さに調整 */
        padding-bottom: 20px;
    }


    .spot-card-grid {
        /* スマホでは1カラムにする */
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .spot-card-content {
        padding: 20px;
    }

    .spot-title {
        font-size: 1.3rem;
        min-height: auto;
        /* 高さを固定しない */
    }

    .spot-excerpt {
        font-size: 0.95rem;
        min-height: auto;
        /* 高さを固定しない */
    }
}