/* --- NEWS PAGE STYLES --- */

/* PICKUP Section */
.news-pickup-section {
    width: 100%;
    background-color: #f0f0f0;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

/* Adjust for single item */
.news-pickup-section:has(> .pickup-item:last-child:first-child) {
    grid-template-columns: 1fr;
}

.pickup-item {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pickup-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.pickup-item:hover .pickup-bg {
    transform: scale(1.05);
}

.pickup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.pickup-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--sp-md);
    text-align: center;
}

.pickup-label {
    display: inline-block;
    background: var(--color-teal);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.pickup-title {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .pickup-title { font-size: 1.8rem; }
    .news-pickup-section { 
        grid-template-columns: 1fr;
    }
}

/* News Filter */
.news-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 60px 0 40px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active, .filter-tab:hover {
    background: var(--color-teal);
    color: #fff;
    border-color: var(--color-teal);
}

/* News List */
.news-list-page-container {
    border-top: 1px solid #eee;
    min-height: 500px; /* ガタつき防止 */
}

.news-list-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    transition: background 0.2s ease;
    gap: 30px;
}

.news-list-item:hover {
    background: #fcfcfc;
}

.news-date {
    font-family: var(--font-en);
    color: #999;
    font-weight: 500;
    min-width: 100px;
}

.news-category-tag {
    background: var(--color-teal);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
}

.news-list-title {
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.news-list-item:hover .news-list-title {
    color: var(--color-teal);
}

@media (max-width: 768px) {
    .news-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 0;
    }
    .news-date { min-width: auto; font-size: 0.85rem; }
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn.active {
    background: var(--color-teal);
    color: #fff;
    border-color: var(--color-teal);
}

/* --- NEWS DETAIL PAGE --- */
.news-detail-page {
    padding: 80px 0 0;
    min-height: 80vh; /* ガタつき防止 */
}

.news-detail-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.detail-category {
    color: var(--color-teal);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.detail-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.detail-subtitle {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 30px;
    display: block;
}

.detail-subtitle::before, .detail-subtitle::after {
    content: "～";
}

.detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    color: #888;
    font-size: 0.9rem;
}

.detail-org { font-weight: 700; color: #333; }

.detail-share-icons {
    display: flex;
    gap: 20px;
}

.detail-share-icons a {
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.detail-share-icons a svg {
    width: 20px;
    height: 20px;
}

.detail-share-icons a:hover { 
    color: var(--color-teal);
    transform: translateY(-2px);
}

.detail-main-visual {
    width: 100%;
    margin-bottom: 60px;
}

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

.detail-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
    white-space: pre-wrap; /* 改行を反映 */
    text-align: left !important;
    text-indent: 0 !important; /* 1行目のズレ防止 */
}

/* 見出し（【 】）のスタイル */
.detail-content h3 {
    font-size: 1.3rem; /* 文字を大きく */
    font-weight: bold; /* 太字 */
    color: var(--color-teal); /* QUSISのティールカラー */
    margin: 2.5rem 0 1.2rem 0; /* 前後に余白を作る */
    border-left: 5px solid var(--color-teal); /* 左側にアクセントの縦線 */
    padding-left: 12px;
    display: block; /* 独立した行にする */
}

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

.content-drive-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .detail-title { font-size: 1.8rem; }
    .detail-subtitle { font-size: 1.1rem; }
    .news-detail-page { padding: 80px 0 0; }
}

/* Animation */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton Screen */
.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 4px;
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    to {
        background-position-x: -200%;
    }
}

.skeleton-pickup {
    width: 100%;
    height: 100%;
}

.skeleton-list-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    gap: 30px;
    border-bottom: 1px solid #eee;
}

.skeleton-date { width: 100px; height: 20px; }
.skeleton-tag { width: 80px; height: 24px; }
.skeleton-title { flex: 1; height: 24px; }

@media (max-width: 768px) {
    .skeleton-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ニュース一覧ページのヘッダーとコンテンツをくっつける */
body:not(.top-page) main section.hero-sub:first-of-type {
    padding-top: 80px !important; /* 固定ヘッダーの高さ(80px)と同一にして直結させる */
}

/* ニュース一覧ページのニュースリスト下部とフッターCTAをくっつける */
.news-main-section {
    padding-bottom: 0 !important;
}
