/*
 * お知らせページのスタイル
 * News Page Styles
 */

/* ========================================
   ヒーローセクション
   ======================================== */

.news-hero {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
    width: 100%;
}

.news-hero .hero-background {
    position: relative;
    background-image: url('../images/background04.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-3xl) 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.news-hero .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.news-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.news-hero .hero-title {
    font-size: 4rem;
    color: var(--color-text-white);
    font-weight: 800;
    font-family: var(--font-family-en);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    line-height: 1.2;
    margin-top: 0;
}

.news-hero .subtitle {
    font-size: 1.5rem;
    color: var(--color-text-white);
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ========================================
   コンテンツエリア
   ======================================== */

.news-content {
    padding: 60px 0 100px;
    background: #ffffff;
}

/* ========================================
   カテゴリーフィルター
   ======================================== */

.news-filter {
    margin-bottom: 50px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-block;
    padding: 12px 30px;
    background: #f8f9fa;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-tab:hover {
    background: #e9ecef;
    color: var(--color-dark-gray);
}

.filter-tab.active {
    background: var(--color-primary-green);
    color: #ffffff;
    border-color: var(--color-primary-green);
}

/* ========================================
   お知らせ一覧
   ======================================== */

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.news-item:first-child {
    padding-top: 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-date {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

.news-category,
.news-tag {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

/* カテゴリーカラー */
.news-category.category-product-info,
.news-category.category-製品情報 {
    background: #4a9eda !important;
    color: #ffffff !important;
}

.news-category.category-media,
.news-category.category-メディア {
    background: #d47e9e !important;
    color: #ffffff !important;
}

.news-category.category-news,
.news-category.category-お知らせ {
    background: #e67e50 !important;
    color: #ffffff !important;
}

.news-category.category-important,
.news-category.category-重要 {
    background: #ffebee !important;
    color: #d32f2f !important;
}

/* タグカラー */
.news-tag.tag-製品情報,
.news-tag.tag-product-info,
.news-tag.tag-product-updates {
    background: #4a9eda;
    color: #ffffff;
}

.news-tag.tag-メディア,
.news-tag.tag-media {
    background: #d47e9e;
    color: #ffffff;
}

.news-tag.tag-お知らせ,
.news-tag.tag-news {
    background: #e67e50;
    color: #ffffff;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-title a {
    color: var(--color-dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--color-primary-green);
}

.news-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* ========================================
   投稿なしメッセージ
   ======================================== */

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

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

/* ========================================
   ページネーション
   ======================================== */

.pagination {
    margin-top: 60px;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    list-style: none;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pagination-link:hover {
    background: #e9ecef;
    color: var(--color-dark-gray);
}

.pagination-link.active {
    background: var(--color-primary-green);
    color: #ffffff;
    border-color: var(--color-primary-green);
}

.pagination-prev,
.pagination-next {
    font-size: 1.3rem;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット */
@media (max-width: 1024px) {
    .news-hero .hero-background {
        min-height: 350px;
    }

    .news-hero .hero-title {
        font-size: 3rem;
    }

    .news-hero .subtitle {
        font-size: 1.35rem;
        font-weight: 700;
    }
}

/* タブレット（縦向き） */
@media (max-width: 768px) {
    .news-hero .hero-background {
        min-height: 300px;
    }

    .news-hero .hero-title {
        font-size: 2.5rem;
    }

    .news-hero .subtitle {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .news-content {
        padding: 40px 0 80px;
    }

    .news-filter {
        margin-bottom: 40px;
    }

    .filter-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .news-item {
        padding: 25px 0;
    }

    .news-title {
        font-size: 1.25rem;
    }

    .pagination {
        margin-top: 50px;
    }

    .pagination-link {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* スマートフォン */
@media (max-width: 480px) {
    .news-hero .hero-background {
        min-height: 250px;
    }

    .news-hero .hero-title {
        font-size: 2rem;
    }

    .news-hero .subtitle {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .filter-tabs {
        gap: 8px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .news-date {
        font-size: 0.85rem;
    }

    .news-category,
    .news-tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
    }

    .pagination-list {
        gap: 5px;
    }

    .pagination-link {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}

/* ========================================
   個別投稿ページ（single.php）
   ======================================== */

.single-post {
    padding: 40px 0 100px;
    background: #ffffff;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 投稿カード */
.post-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 50px;
    margin-bottom: 40px;
}

/* 投稿ヘッダー */
.post-header {
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.post-date {
    font-size: 0.95rem;
    color: #999;
    font-weight: 500;
}


.post-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-dark-gray);
    margin: 0;
}

/* 投稿本文 */
.post-body {
    font-size: 1rem;
    line-height: 1.9;
    color: #333;
}

.post-thumbnail {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--color-dark-gray);
}

.post-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--color-dark-gray);
}

.post-body p {
    margin-bottom: 1.5em;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.post-body li {
    margin-bottom: 0.5em;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.post-body a {
    color: var(--color-primary-green);
    text-decoration: underline;
}

.post-body a:hover {
    color: var(--color-primary-green-dark);
}

/* 投稿フッター */
.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: #666;
}

.tag-link {
    display: inline-block;
    padding: 5px 12px;
    background: #f8f9fa;
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--color-primary-green);
    color: #ffffff;
}

/* 投稿ナビゲーション */
.post-navigation {
    margin-top: 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.nav-button {
    flex: 0 0 auto;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    letter-spacing: 0.05em;
}

.btn-prev,
.btn-next {
    background: #ffffff;
    color: var(--color-dark-gray);
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-prev:hover,
.btn-next:hover {
    background: var(--color-primary-green);
    border-color: var(--color-primary-green);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 133, 64, 0.35);
}

.btn-news-top {
    background: linear-gradient(135deg, var(--color-primary-green) 0%, var(--color-primary-green-light) 100%);
    color: #ffffff;
    border-color: var(--color-primary-green);
    box-shadow: 0 4px 12px rgba(46, 133, 64, 0.25);
}

.btn-news-top:hover {
    background: linear-gradient(135deg, var(--color-primary-green-dark) 0%, var(--color-primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 133, 64, 0.35);
}

.btn-disabled {
    background: #f8f9fa;
    color: #ccc;
    border-color: #e9ecef;
    cursor: not-allowed;
    box-shadow: none;
}

/* レスポンシブ - 個別投稿ページ */
@media (max-width: 768px) {
    .single-post {
        padding: 30px 0 80px;
    }

    .post-card {
        padding: 30px 20px;
    }

    .post-title {
        font-size: 1.6rem;
    }

    .post-body h2 {
        font-size: 1.4rem;
    }

    .post-body h3 {
        font-size: 1.2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .nav-button {
        width: 100%;
    }

    .btn-nav {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .post-card {
        padding: 25px 15px;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .post-date {
        font-size: 0.85rem;
    }
    
    .news-category,
    .news-tag {
        font-size: 0.75rem !important;
        padding: 3px 10px !important;
    }

    .post-title {
        font-size: 1.4rem;
    }

    .post-body {
        font-size: 0.95rem;
    }

    .post-body h2 {
        font-size: 1.3rem;
        margin-top: 40px;
    }

    .post-body h3 {
        font-size: 1.1rem;
        margin-top: 30px;
    }

    .btn-nav {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}




