/**
 * ニュース詳細ページ専用スタイル
 */

/* ================================
   パンくずリスト
   ================================ */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--theme-color);
}

.breadcrumb span {
    margin: 0 10px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
}

/* ================================
   ニュース詳細ページ
   ================================ */
.news-detail {
    padding: 40px 0 80px;
    background: #fff;
}

.news-article {
    margin: 0 auto;
}

/* ニュース画像 */
.news-hero {
    margin-bottom: 40px;
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #d0d0d0 0%, #808080 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 仮の画像プレースホルダー */
.news-hero::before {
    content: "NO IMAGE";
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
    letter-spacing: 0.2em;
}

/* アイキャッチ画像がある場合はプレースホルダーを非表示 */
.news-hero.has-thumbnail::before {
    content: none;
}

.news-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* ニュースヘッダー */
.news-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.news-title {
    font-size: 2rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.news-meta {
    color: #666;
    font-size: 0.95rem;
}

.news-meta time {
    display: inline-block;
}

/* ニュース本文 */
.news-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.news-content p {
    margin-bottom: 25px;
}

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

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.news-content a {
    color: var(--theme-color);
    text-decoration: underline;
}

.news-content a:hover {
    opacity: 0.7;
}

/* リンクセクション */
.news-link-section {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border: 2px solid #eee;
    border-radius: 0;
}

.news-link-label {
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--theme-color);
    font-size: 0.95rem;
}

.news-external-link {
    display: inline-block;
    padding: 10px 24px;
    background: var(--theme-color);
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-size: 0.9rem;
}

/* ナビゲーション */
.news-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    gap: 20px;
}

.news-nav-prev,
.news-nav-next,
.news-nav-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: #333;
    text-decoration: none;
    border: 2px solid #eee;
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.news-nav-prev:hover,
.news-nav-next:hover,
.news-nav-list:hover {
    background: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
}

.news-nav-list {
    background: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
}

.news-nav-list:hover {
    opacity: 0.8;
}

.news-nav-prev span,
.news-nav-next span {
    font-size: 1.2rem;
}

/* 前後記事がない場合の非表示リンク */
.news-nav-prev.disabled,
.news-nav-next.disabled {
    visibility: hidden;
}

/* ================================
   レスポンシブ対応
   ================================ */
@media (max-width: 768px) {
    /* パンくず */
    .breadcrumb {
        font-size: 0.85rem;
        padding: 15px 0;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* ニュース詳細 */
    .news-detail {
        padding: 30px 0 60px;
    }

    .news-hero {
        height: 300px;
    }

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

    .news-content {
        font-size: 0.95rem;
    }

    .news-navigation {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .news-hero {
        height: 200px;
    }

    .news-hero::before {
        font-size: 1.5rem;
    }

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

    .news-link-section {
        padding: 15px;
    }

    .news-navigation {
        flex-direction: column;
    }

    .news-nav-prev,
    .news-nav-next,
    .news-nav-list {
        width: 100%;
        justify-content: center;
    }
}
