/* お知らせアーカイブページのスタイル - index.phpのnewsセクションと統一 */

/* シンプルページヘッダー */
.simple-page-header {
    position: relative;
    padding: 160px 0 80px;
    background-color: rgba(255, 255, 255, 0);
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    border-bottom: 1px solid var(--light);
    z-index: 5;
}

.simple-page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6));
    z-index: -1;
}

.page-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.simple-page-header:hover .page-title {
    transform: translateY(-5px);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #D4A574, var(--primary));
}

/* メインコンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8vw;
}

/* ニュース概要セクション - page-services.phpと同じスタイル */
.news-overview {
    padding: 80px 0 60px;
    text-align: center;
}

.overview-content {
    max-width: 800px;
    margin: 0 auto;
}

.overview-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.overview-text:last-child {
    margin-bottom: 0;
}

/* ニュース一覧セクション */
.news-archive-section {
    padding: 40px 0 80px;
}

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

/* ニュースリストアイテム - index.phpと同じスタイル */
.news-list-item {
    display: flex;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid rgba(98, 164, 144, 0.15);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    gap: 20px;
    min-height: 60px;
}

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

.news-list-item:hover {
    background-color: rgba(98, 164, 144, 0.02);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 4px;
}

/* 日付スタイル */
.news-date {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
    flex-shrink: 0;
    width: 85px;
    opacity: 0.8;
    line-height: 1.4;
}

/* カテゴリースタイル */
.news-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
}

/* タイトルスタイル */
.news-title {
    flex: 1;
    font-size: 16px;
    color: var(--gray);
    font-weight: 500;
    line-height: 1.5;
    margin-right: 15px;
}

/* 矢印スタイル */
.news-arrow {
    font-size: 16px;
    color: rgba(51, 51, 51, 0.4);
    transition: all 0.3s ease;
    min-width: 20px;
}

/* ページネーション */
.pagination-wrapper {
    margin: 60px 0 40px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pagination a,
.pagination .current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--light);
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a {
    color: var(--gray);
}

.pagination a:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .current {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

/* ホームに戻るボタン - index.phpと同じnews-headerスタイル */
.news-header {
    text-align: center;
    margin-bottom: 60px;
}

.news-section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.news-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* ホームに戻るボタン - page-about.phpと同じスタイル */
.back-to-home-container {
    text-align: center;
    margin: 80px 0 100px;
}

.back-to-home-button {
    display: inline-flex;
    align-items: center;
    color: var(--gray);
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.back-to-home-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 100%;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.back-to-home-button:hover {
    color: var(--primary);
}

.back-to-home-button:hover::after {
    width: 100%;
    left: 0;
}

/* 矢印の左移動アニメーション */
.back-to-home-button i,
.back-to-home-button svg {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.back-to-home-button:hover i,
.back-to-home-button:hover svg {
    transform: translateX(-5px);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 5vw;
    }
    
    .simple-page-header {
        padding: 120px 0 60px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .news-overview {
        padding: 60px 0 40px;
    }
    
    .overview-text {
        font-size: 16px;
    }
    
    .news-archive-section {
        padding: 30px 0 60px;
    }
    
    .news-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        gap: 10px;
    }
    
    .news-date {
        width: auto;
        order: 1;
    }
    
    .news-category {
        order: 2;
    }
    
    .news-title {
        margin-right: 0;
        order: 3;
        font-size: 14px;
    }
    
    .news-arrow {
        position: absolute;
        top: 20px;
        right: 0px;
        order: 4;
    }
    
    .pagination a,
    .pagination .current {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .news-list-item {
        padding: 20px 0;
    }
}

/* フェードインアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* 背景の回転パターン - 他ページと統一 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="geometricPattern" patternUnits="userSpaceOnUse" width="40" height="40"><rect width="40" height="40" fill="none"/><circle cx="20" cy="20" r="10" fill="none" stroke="%23e0e0e0" stroke-width="0.5"/><path d="M0,20 L40,20 M20,0 L20,40" stroke="%23e0e0e0" stroke-width="0.3"/><path d="M5,5 L35,35 M35,5 L5,35" stroke="%23e0e0e0" stroke-width="0.3"/><rect x="15" y="15" width="10" height="10" fill="none" stroke="%23e0e0e0" stroke-width="0.4"/></pattern></defs><rect width="100%" height="100%" fill="url(%23geometricPattern)"/></svg>');
    background-size: 200px 200px;
    opacity: 0.3;
    z-index: -10;
    animation: rotate 120s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
