/* ========================================
   ニュースページ：グレー背景
   ======================================== */
.post-type-archive-news,
.tax-news_category,
.tax-news_tag,
.news-year-archive,
.single-news {
    background: #f6f6f6;
}

/* ========================================
   ニュースページ：上部余白
   ======================================== */
.post-type-archive-news .l-content,
.tax-news_category .l-content,
.news-year-archive .l-content,
.single-news .l-content {
    padding-top: 100px;
    padding-bottom: 60px;
}

@media (max-width: 599px) {
    .post-type-archive-news .l-content,
    .tax-news_category .l-content,
    .news-year-archive .l-content,
    .single-news .l-content {
        padding-top: 48px;
    }
}

/* ========================================
   ニュース詳細ページ：コンテンツ白背景・余白
   ======================================== */
.single-news .l-mainContent .c-postTitle__ttl {
    background: #fff;
    padding: var(--swl-box_padding) 24px 0;
    border-radius: 8px 8px 0 0;
}
.single-news .l-mainContent .p-articleMetas.-top{
    margin-top: 0;
    background: #fff;
    padding: 10px 24px 15px;
}
.single-news .l-mainContent .post_content {
    background: #fff;
    padding: var(--swl-box_padding);
    border-radius: 0 0 8px 8px;
}

.single-news .l-mainContent__inner {
    
}

/* ========================================
   ニュースアーカイブ：ページヘッダー
   ======================================== */
.news-archive-header {
    margin-bottom: 32px;
}

.news-archive-header__label {
    margin-bottom: 8px;
}

.news-archive-header__label-text {
    font-size: 13px;
    font-weight: 700;
    color: #1e9b50;
    letter-spacing: 0.1em;
    margin: 0;
}

.news-archive-header__title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

/* ========================================
   ニュースカード一覧
   ======================================== */

/* custom-post-block のデフォルト padding をリセット */
.post-type-archive-news .custom-post-block {
    padding: 0;
}

/* excerpt 非表示 */
.post-type-archive-news .p-postList__excerpt,
.tax-news_category .p-postList__excerpt,
.tax-news_tag .p-postList__excerpt {
    display: none;
}

/* ul: SWELLのネガティブマージン方式をgap方式に切り替え */
.post-type-archive-news .p-postList.-type-card,
.tax-news_category .p-postList.-type-card,
.tax-news_tag .p-postList.-type-card {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    gap: 25px 32px; /* 縦16px 横24px */
}

/* li: パディング・マージンをリセットしgapで管理、白カード化 */
.post-type-archive-news .p-postList.-type-card .p-postList__item,
.tax-news_category .p-postList.-type-card .p-postList__item,
.tax-news_tag .p-postList.-type-card .p-postList__item {
    padding: 0;
    margin-bottom: 0;
    width: calc(50% - 16px); /* gap 24px の半分をそれぞれ負担 */
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-type-archive-news .p-postList.-type-card .p-postList__item:hover,
.tax-news_category .p-postList.-type-card .p-postList__item:hover,
.tax-news_tag .p-postList.-type-card .p-postList__item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.post-type-archive-news .p-postList__link:hover .c-postThumb__img {
    transform: scale(1);
}

/* カードリンク：縦並びflexで等高カード */
.post-type-archive-news .p-postList.-type-card .p-postList__link,
.tax-news_category .p-postList.-type-card .p-postList__link,
.tax-news_tag .p-postList.-type-card .p-postList__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* サムネイル：16:9比率 */
.post-type-archive-news .p-postList.-type-card .p-postList__thumb,
.tax-news_category .p-postList.-type-card .p-postList__thumb,
.tax-news_tag .p-postList.-type-card .p-postList__thumb {
    overflow: hidden;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* カードボディ：余白 + 残り高さを占有 */
.post-type-archive-news .p-postList.-type-card .p-postList__body,
.tax-news_category .p-postList.-type-card .p-postList__body,
.tax-news_tag .p-postList.-type-card .p-postList__body {
    flex: 1;
    padding: 12px 14px 16px;
}

/* カテゴリーラベル */
.post-type-archive-news .p-postList__cats,
.tax-news_category .p-postList__cats,
.tax-news_tag .p-postList__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.post-type-archive-news .p-postList__cat-label,
.tax-news_category .p-postList__cat-label,
.tax-news_tag .p-postList__cat-label {
    display: inline-block;
    background: #1e9b50;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1.4;
}

/* タイトル */
.post-type-archive-news .p-postList.-type-card .p-postList__title,
.tax-news_category .p-postList.-type-card .p-postList__title,
.tax-news_tag .p-postList.-type-card .p-postList__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
}

/* 日付 */
.post-type-archive-news .p-postList.-type-card .p-postList__date,
.tax-news_category .p-postList.-type-card .p-postList__date,
.tax-news_tag .p-postList.-type-card .p-postList__date {
    color: #888;
    font-size: 12px;
}

/* SP：1カラムに戻す */
@media (max-width: 599px) {
    .post-type-archive-news .p-postList.-type-card .p-postList__item,
    .tax-news_category .p-postList.-type-card .p-postList__item,
    .tax-news_tag .p-postList.-type-card .p-postList__item {
        width: 100%;
    }
}

/* 2カラム固定：1320px以上でサイドバーありの3カラム化を防ぐ */
@media (min-width: 1320px) {
    .post-type-archive-news .p-postList.-type-card.-pc-col3 .p-postList__item,
    .tax-news_category .p-postList.-type-card.-pc-col3 .p-postList__item,
    .tax-news_tag .p-postList.-type-card.-pc-col3 .p-postList__item {
        width: calc(50% - 16px) !important;
    }
}

/* ========================================
   ニュースサイドバー
   ======================================== */
.l-sidebar--news {
    padding: 0 0 32px;
}

@media (max-width: 768px) {
    .l-sidebar--news {
        display: none;
    }
}

.news-sidebar {
    padding: 0;
}

.news-sidebar__section {
    margin-bottom: 36px;
}

.news-sidebar__section:last-child {
    margin-bottom: 0;
}

/* 見出し */
.news-sidebar__heading {
    border-bottom: 1px solid #d8d8d8;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.news-sidebar__heading-text {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.04em;
    margin: 0;
}

/* リスト */
.news-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-sidebar__item {
    border-radius: 6px;
    overflow: hidden;
}

/* リンク */
.news-sidebar__link {
    display: flex;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: #333;
    gap: 8px;
    background: #fff;
    transition: color 0.2s ease;
}

.news-sidebar__link:hover {
    color: #1e9b50;
}

.news-sidebar__link-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* 矢印アイコン */
.news-sidebar__arrow {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.news-sidebar__arrow-icon {
    display: block;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #888;
    border-right: 1.5px solid #888;
    transform: rotate(45deg) translateX(-1px);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.news-sidebar__link:hover .news-sidebar__arrow {
    background-color: #1e9b50;
}

.news-sidebar__link:hover .news-sidebar__arrow-icon {
    border-color: #fff;
    transform: rotate(45deg) translate(1px, -1px);
}

/* アクティブ（現在のカテゴリー・年） */
.news-sidebar__item.-active .news-sidebar__link {
    color: #1e9b50;
    font-weight: 600;
}

.news-sidebar__item.-active .news-sidebar__arrow {
    background-color: #1e9b50;
}

.news-sidebar__item.-active .news-sidebar__arrow-icon {
    border-color: #fff;
    transform: rotate(45deg) translate(1px, -1px);
}

/* ========================================
   もっと見るボタン
   ======================================== */
.news-load-more {
    margin-top: 40px;
    text-align: center;
}

.news-load-more__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 48px;
    background: #fff;
    border: 2px solid #1e9b50;
    border-radius: 4px;
    color: #1e9b50;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.news-load-more__btn:hover {
    background: #1e9b50;
    color: #fff;
}

.news-load-more__btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.news-load-more__icon {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

.news-load-more__btn.-loading .news-load-more__text::after {
    content: '…';
}
