/* ============================================
   NEWS ページ専用スタイル
   ============================================ */

/* ============================================
   カテゴリーフィルター
   ============================================ */
.news-filter-section {
    padding: 60px 0 40px;
    background-color: #fff;
}

.news-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-filter-tabs {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.news-filter-tab {
    padding: 6px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border: 2px solid #1a5490;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.news-filter-tab:hover {
    background-color: #1a5490;
    color: #fff;
}

.news-filter-tab.active {
    background-color: #1a5490;
    color: #fff;
}

/* ============================================
   News一覧セクション
   ============================================ */
.news-list-section {
    padding: 40px 0 80px;
    background-color: #fff;
}

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

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ============================================
   News記事アイテム
   ============================================ */
.news-list-item {
    display: grid;
    grid-template-columns: 100px auto 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
}

.news-list-item:first-child {
    border-top: 1px solid #e0e0e0;
}

/* 日付 */
.news-list-date {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    font-family: 'Roboto', sans-serif;
}

/* 旧スタイル（互換性のため） */
.news-list-year {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    font-family: 'Roboto', sans-serif;
}

.news-list-day {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    font-family: 'Roboto', sans-serif;
}

/* サムネイル（非表示） */
.news-list-thumbnail {
    display: none;
}

.news-list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 画像のホバーエフェクト */
.news-list-thumbnail:hover img {
    transform: scale(1.1);
}

/* サムネイル無しの場合 */
.news-list-item.no-thumbnail {
    padding-left: 0;
}

.news-list-item.no-thumbnail .news-list-thumbnail {
    display: none;
}

/* コンテンツエリア（旧スタイル互換性） */
.news-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 5px;
}

/* カテゴリーラベル */
.news-list-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 1rem;
    font-size: 0.8rem;
    font-weight: 400;
    border-radius: 3px;
    border: 1px solid #FF6B6B;
    width: fit-content;
    background: transparent;
    color: #FF6B6B;
}

.news-list-label.label-notice {
    background: transparent;
    color: #FF6B6B;
    border-color: #FF6B6B;
}

.news-list-label.label-event {
    background: transparent;
    color: #00BCD4;
    border-color: #00BCD4;
}

.news-list-label.label-seminar {
    background: transparent;
    color: #4CAF50;
    border-color: #4CAF50;
}

/* タイトル */
.news-list-title {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* タイトルリンクのスタイル */
.news-list-title a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    color: inherit;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.news-list-title a:hover {
    color: #0066CC;
    text-decoration-color: #0066CC;
}

/* NEWラベル */
.news-list-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.6rem;
    background: #FF6B6B;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* 旧タイトルリンク（互換性） */
.news-list-title-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.news-list-title-link:hover {
    opacity: 0.7;
}

/* ============================================
   ページネーション
   ============================================ */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-item:hover {
    background-color: #1a5490;
    color: #fff;
    border-color: #1a5490;
}

.pagination-item.active {
    background-color: #1a5490;
    color: #fff;
    border-color: #1a5490;
}

.pagination-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* ============================================
   News詳細ページ
   ============================================ */

/* メタ情報セクション */
.news-detail-meta {
    padding: 60px 0 0;
    background-color: #fff;
}

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

.news-detail-meta .news-detail-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-detail-date {
    font-size: 16px;
    font-weight: 500;
    color: #1a5490;
    font-family: 'Roboto', sans-serif;
}

/* 記事本文エリア */
.news-detail-article {
    padding: 20px 0 80px;
    background-color: #fff;
}

.news-detail-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.6;
    color: #333;
    margin: 0 0 20px;
}

.news-detail-underline {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #333 60px, #e0e0e0 60px);
    margin: 0 0 40px;
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-detail-content p {
    margin: 0 0 24px;
    line-height: 2;
}

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

.news-detail-content strong {
    font-weight: 600;
}

.news-detail-content a {
    color: #1a5490;
    text-decoration: underline;
    word-break: break-all;
}

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

/* リスト */
.news-detail-list {
    margin: 24px 0;
    padding-left: 24px;
}

.news-detail-list li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* 記事内画像 */
.news-detail-image {
    margin: 40px 0;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* SNSシェアボタン */
.news-detail-share {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.news-detail-share-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.news-detail-share-buttons {
    display: flex;
    gap: 40px;
}

.share-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
}

.share-button:hover {
    opacity: 0.7;
}

.share-button svg {
    width: 32px;
    height: 32px;
}

/* 一覧へ戻るボタン */
.news-detail-back {
    margin-top: 60px;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 70px;
    padding: 7px 30px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(to right, #019DE8, #0356BB);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 157, 232, 0.3);
}

.btn-back-circle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    color: #0356BB;
    font-size: 12px;
    font-weight: bold;
}

.btn-back-text {
    font-size: 16px;
}

.news-detail-container img{
    width: 100%;
    height: auto;
    margin: 2rem auto 0;
}

/* ============================================
   レスポンシブ対応
   ============================================ */
@media (max-width: 768px) {
    /* ヒーローセクション */
    .page-news .page-hero {
        height: 200px;
    }

    .page-news .page-hero-title {
        font-size: 32px;
    }

    /* フィルターセクション */
    .news-filter-section {
        padding: 40px 0 30px;
    }

    .news-filter-tabs {
        flex-wrap: wrap;
        gap: 12px;
    }

    .news-filter-tab {
        padding: 10px 24px;
        font-size: 14px;
    }

    /* News一覧 */
    .news-list-section {
        padding: 30px 0 60px;
    }

    .news-list-item {
        display: grid;
        grid-template-columns: auto auto 1fr;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        padding: 16px 0;
        align-items: center;
    }

    .news-list-date {
        grid-column: 1;
        grid-row: 1;
        font-size: 0.875rem;
    }

    .news-list-label {
        grid-column: 2;
        grid-row: 1;
        padding: 2px 10px;
        font-size: 0.7rem;
    }

    .news-list-title {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 0.875rem;
    }

    .news-list-new {
        padding: 0.1rem 0.5rem;
        font-size: 0.6rem;
    }

    .news-list-year {
        font-size: 16px;
    }

    .news-list-day {
        font-size: 32px;
    }

    .news-list-thumbnail {
        display: none;
    }

    /* サムネイル無しの場合 */
    .news-list-item.no-thumbnail {
        padding-left: 0;
    }

    .news-list-content {
        padding-top: 0;
        gap: 10px;
    }

    /* ページネーション */
    .news-pagination {
        margin-top: 40px;
        gap: 8px;
    }

    .pagination-item {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .pagination-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    /* News詳細ページ - モバイル */
    .news-detail-meta {
        padding: 30px 0 0;
    }

    .news-detail-article {
        padding: 20px 0 60px;
    }

    .news-detail-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .news-detail-underline {
        margin-bottom: 30px;
    }

    .news-detail-content {
        font-size: 15px;
    }

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

    .news-detail-image {
        margin: 30px 0;
    }

    .news-detail-share {
        margin-top: 40px;
        padding-top: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .news-detail-back {
        margin-top: 40px;
    }

    .btn-back {
        padding: 14px 32px;
        font-size: 15px;
    }

    .btn-back-circle {
        width: 28px;
        height: 28px;
    }
}
