/* =========================================================================
   共通ページスタイル（取扱商品デザイン準拠）
   ヒーロー / カテゴリフィルター / CTAフッター
   ========================================================================= */

/* --- Fonts (WordPress側で未読み込みの場合) --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* --- Hero Section --- */
.sp-page-hero {
    position: relative;
    height: 45vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #1a2332;
}

.sp-page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
}

.sp-page-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.sp-page-hero-content {
    color: white;
    text-align: center;
}

.sp-page-hero-label {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 12px;
}

.sp-page-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.sp-page-hero-desc {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.85;
    line-height: 1.8;
}

/* --- Category Filter (sticky pill buttons) --- */
.sp-category-filter-section {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 0;
    transition: box-shadow 0.3s ease;
}

.sp-category-filter-section.is-stuck {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sp-category-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-category-btn {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: white;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Noto Sans JP', sans-serif;
    text-decoration: none;
}

.sp-category-btn:hover {
    border-color: #007BFF;
    color: #007BFF;
    opacity: 1;
}

.sp-category-btn.active {
    background: #007BFF;
    border-color: #007BFF;
    color: white;
}

.sp-category-btn i {
    font-size: 0.85rem;
}

/* --- List Section --- */
.sp-list-section {
    padding: 40px 0 80px;
    background: #f8f9fa;
    min-height: 40vh;
}

.sp-list-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-list-count {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 24px;
}

/* --- CTA Section (white bg, orange button, phone) --- */
.sp-page-cta {
    padding: 80px 0;
    text-align: center;
    background: white;
}

.sp-page-cta .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-page-cta h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.sp-page-cta > .container > p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.8;
}

.sp-cta-btn {
    display: inline-block;
    padding: 16px 44px;
    background: #F5A623;
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3);
    border: none;
    cursor: pointer;
}

.sp-cta-btn:hover {
    background: #E6941A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
    opacity: 1;
}

.sp-cta-btn i {
    margin-right: 6px;
}

.sp-cta-phone {
    margin-top: 24px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.sp-cta-phone i {
    color: #007BFF;
    margin-right: 4px;
}

.sp-cta-phone-note {
    font-size: 0.8rem;
    font-weight: 400;
    color: #999;
    margin-left: 8px;
}

/* --- Page specific hero backgrounds --- */
.sp-page-hero-news .sp-page-hero-bg {
    background-image: url('/energy/images/header-background.jpg');
}

.sp-page-hero-case-study .sp-page-hero-bg {
    background-image: url('/energy/images/vision-background.jpg');
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sp-page-hero {
        height: 35vh;
        min-height: 260px;
    }

    .sp-page-hero-content h1 {
        font-size: 2.2rem;
    }

    .sp-category-filter-section {
        top: 60px;
    }

    .sp-category-filter {
        gap: 8px;
    }

    .sp-category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .sp-page-cta {
        padding: 60px 0;
    }

    .sp-page-cta h2 {
        font-size: 1.4rem;
    }
}

/* --- No items message --- */
.sp-no-items {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.sp-no-items i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.sp-no-items p {
    font-size: 1.1rem;
}
