/* ニュース個別記事ページのスタイル */

/* SVG背景パターン */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
    opacity: 0.3;
}

/* セクション区切り */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--light), transparent);
    margin: 0;
}

.first-divider {
    margin-top: 0;
}

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

/* 個別記事 */
.single-news-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* パンくずナビゲーション */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--gray);
    opacity: 0.8;
}

.breadcrumb-nav a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb-separator {
    color: var(--gray);
    opacity: 0.5;
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--gray);
    font-weight: 500;
}

/* 記事ヘッダー */
.news-article-header {
    padding: 40px 40px 30px;
    border-bottom: 1px solid var(--light);
}

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

.news-date {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--gray);
    opacity: 0.7;
    font-weight: 500;
}

.news-category {
    background: var(--light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.news-article-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--gray);
    line-height: 1.4;
    margin: 0;
}

/* 記事本文 */
.news-content {
    padding: 40px;
}

.news-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

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

.news-content h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 40px 0 20px;
    position: relative;
    padding-bottom: 10px;
}

.news-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #D4A574;
}

.news-content h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 30px 0 15px;
}

.news-content ul,
.news-content ol {
    margin: 20px 0;
    padding-left: 20px;
}

.news-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.news-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    transition: all 0.3s ease;
}

.news-content a:hover {
    color: var(--dark);
    border-bottom-color: var(--dark);
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-content blockquote {
    background: var(--light);
    border-left: 4px solid var(--primary);
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    color: var(--dark);
}

/* ナビゲーション */
.news-navigation {
    margin: 60px 0;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 45%;
}

.nav-link {
    display: block;
    padding: 20px;
    border: 1px solid var(--light);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    border-color: var(--primary);
    background: rgba(229, 241, 238, 0.3);
}

.nav-label {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.nav-title {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
    line-height: 1.4;
}

.nav-next .nav-link {
    text-align: right;
}

/* 関連記事 */
.related-news {
    margin: 60px 0;
}

.related-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #D4A574;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-item {
    background: white;
    border: 1px solid var(--light);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(98, 164, 144, 0.1);
    transform: translateY(-2px);
}

.related-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
}

.related-item-date {
    color: var(--gray);
    opacity: 0.7;
}

.related-item-category {
    background: var(--light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 15px;
    font-weight: 600;
}

.related-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray);
    line-height: 1.4;
    margin: 0;
}

/* ホームに戻るボタン */
.back-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0 100px;
}

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

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

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

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

.back-button i {
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .single-news-container {
        padding: 80px 5vw 80px;
    }
    
    .news-article-header,
    .news-content {
        padding: 25px 20px;
    }
    
    .news-article-title {
        font-size: 24px;
    }
    
    .news-content {
        padding: 30px 20px;
    }
    
    .news-content h2 {
        font-size: 20px;
    }
    
    .news-content h3 {
        font-size: 18px;
    }
    
    .breadcrumb-nav {
        margin-bottom: 30px;
        flex-wrap: wrap;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        max-width: 100%;
    }
    
    .nav-next .nav-link {
        text-align: left;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
    
    .back-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media screen and (max-width: 576px) {
    .single-news-container {
        padding: 60px 5vw 60px;
    }
    
    .news-article-title {
        font-size: 20px;
    }
    
    .news-content p {
        font-size: 15px;
    }
    
    .news-navigation {
        padding: 20px;
    }
    
    .nav-link {
        padding: 15px;
    }
    
    .related-title {
        font-size: 20px;
    }
}

/* お知らせ一覧に戻るボタン - 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);
}

/* フェードインアニメーション */
.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);
}
