/* ====================================
   カテゴリ別 投稿スライダー
   ==================================== */

/* セクション見出し */
.post-slider-heading {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 12px;
}
.post-slider-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #c8a45a;
    border-radius: 2px;
}

/* スライダーコンテナ */
.post-slider-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 16px;
}

.post-slider {
    padding: 10px 0 50px;
    position: relative;
    overflow: visible;
}

/* ====================================
   投稿カード
   ==================================== */
.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

/* --- サムネ画像 --- */
.post-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
}
.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.9rem;
    background: #f5f5f5;
}

/* --- メタ情報（カテゴリ＋日付） --- */
.post-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 0;
}
.post-card__category {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: #c8a45a;
    padding: 2px 10px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.post-card__date {
    font-size: 0.75rem;
    color: #999;
}

/* --- タイトル --- */
.post-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
    padding: 8px 18px 0;
    margin: 0;
    max-height: calc(1.6em * 2);
    overflow: hidden;
    text-wrap: balance;
}

/* --- 抜粋 --- */
.post-card__excerpt {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.7;
    padding: 6px 18px 18px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 修理事例抜粋 --- */
.post-card__repair-excerpt {
    padding: 8px 18px 18px;
}
.post-card__repair-items {
    list-style: none !important;
    margin: 0;
    padding: 0;
    list-style-type: none !important;
}
.post-card__repair-items li {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.8;
    padding-left: 14px;
    position: relative;
    list-style: none !important;
    list-style-type: none !important;
}
.post-card__repair-items li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #c8a45a;
    font-size: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}
.post-card__repair-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
}
.post-card__repair-total span:first-child {
    font-size: 0.75rem;
    color: #999;
}
.post-card__repair-total span:last-child {
    font-size: 0.95rem;
    font-weight: 700;
    color: #c8a45a;
}

/* ====================================
   Swiper ナビゲーション カスタマイズ
   ==================================== */

/* 矢印ボタン */
.post-slider .swiper-button-prev,
.post-slider .swiper-button-next {
    color: #333;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, box-shadow 0.3s;
}
.post-slider .swiper-button-prev:hover,
.post-slider .swiper-button-next:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.post-slider .swiper-button-prev::after,
.post-slider .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}

/* ページネーションドット */
.post-slider .swiper-pagination {
    bottom: 0 !important;
}
.post-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    transition: background 0.3s, width 0.3s;
    border-radius: 4px;
}
.post-slider .swiper-pagination-bullet-active {
    background: #c8a45a;
    width: 24px;
}

/* ====================================
   レスポンシブ
   ==================================== */
@media (max-width: 768px) {
    .post-slider-container {
        padding: 0 8px;
    }
    .post-slider .swiper-button-prev,
    .post-slider .swiper-button-next {
        display: none;
    }
    .post-slider-heading {
        font-size: 1.3rem;
    }
}
