﻿/* =========================================
   index.php専用 お知らせセクション スタイル
   ========================================= */

/* index.php用のお知らせセクション */
#hero + #news {
    padding: 80px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* 装飾的な背景要素（index.php専用） */
#hero + #news::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0) 70%);
    border-radius: 50%;
}

#hero + #news::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0) 30%, rgba(76, 175, 80, 0.08) 100%);
    border-radius: 50%;
}

/* index.phpのニュースコンテナ */
#hero + #news .news-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

/* index.phpのニュースリスト */
#hero + #news .news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    background-color: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* index.phpのニュースアイテム */
#hero + #news .news-item {
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#hero + #news .news-item:last-child {
    border-bottom: none;
}

/* ホバー時の左側のライン（index.php専用） */
#hero + #news .news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #4CAF50;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

#hero + #news .news-item:hover::before {
    transform: scaleY(1);
}
/* =========================================
   index.php専用 お知らせセクション スタイル
   ========================================= */

/* index.php用のお知らせセクション */
#hero + #news {
    padding: 80px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* 装飾的な背景要素（index.php専用） */
#hero + #news::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0) 70%);
    border-radius: 50%;
}

#hero + #news::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0) 30%, rgba(76, 175, 80, 0.08) 100%);
    border-radius: 50%;
}

/* index.phpのニュースコンテナ */
#hero + #news .news-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

/* index.phpのニュースリスト */
#hero + #news .news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    background-color: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* index.phpのニュースアイテム */
#hero + #news .news-item {
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#hero + #news .news-item:last-child {
    border-bottom: none;
}

/* ホバー時の左側のライン（index.php専用） */
#hero + #news .news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #4CAF50;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

#hero + #news .news-item:hover::before {
    transform: scaleY(1);
}

#hero + #news .news-item:hover {
    background-color: #f0f9f0;
}

/* index.phpのニュースリンク */
#hero + #news .news-item a {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    gap: 20px;
}

#hero + #news .news-item:hover a {
    padding-left: 35px;
}

/* index.phpの日付表示 */
#hero + #news .news-date {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    min-width: 90px;
    position: relative;
}

#hero + #news .news-date::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    margin-right: 8px;
    color: #4CAF50;
    font-size: 0.85rem;
}

/* index.phpのタイトル */
#hero + #news .news-title {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    flex: 1;
    font-weight: 400;
}

#hero + #news .news-item:hover .news-title {
    color: #2c7a2c;
    font-weight: 500;
}

/* index.phpのもっと見るボタン */
#hero + #news .news-more {
    text-align: center;
    margin-top: 40px;
}

#hero + #news .news-more .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

#hero + #news .news-more .btn span {
    position: relative;
    z-index: 1;
}

#hero + #news .news-more .btn i {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

#hero + #news .news-more .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

#hero + #news .news-more .btn:hover::before {
    width: 300px;
    height: 300px;
}

#hero + #news .news-more .btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

#hero + #news .news-more .btn:hover i {
    transform: translateX(3px);
}

/* レスポンシブ対応（index.php専用） */
@media (max-width: 768px) {
    #hero + #news {
        padding: 60px 0;
    }
    
    #hero + #news .news-item a {
        padding: 18px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    #hero + #news .news-item:hover a {
        padding-left: 25px;
    }
    
    #hero + #news .news-date {
        font-size: 0.85rem;
    }
    
    #hero + #news .news-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    #hero + #news .news-list {
        border-radius: 8px;
    }
    
    #hero + #news .news-item a {
        padding: 16px 15px;
    }
    
    #hero + #news .news-more .btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}




























/* ========================================
   記事詳細ページ スタイル
   ======================================== */

/* 記事詳細コンテナ */
.single-news-container {
    max-width: 900px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 記事ヘッダー */
.news-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

/* メタ情報 */
.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666666;
    font-size: 0.95rem;
}

.news-meta-item i {
    color: #4CAF50;
    font-size: 1rem;
}

/* 記事タイトル */
.news-single-title {
    font-size: 2rem;
    color: #333333;
    line-height: 1.4;
    margin: 0;
}

/* 記事本文 */
.news-content {
    line-height: 1.8;
    color: #333333;
}

.news-content h2 {
    font-size: 1.6rem;
    color: #2c7a2c;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e8;
}

.news-content h3 {
    font-size: 1.3rem;
    color: #3A8C3D;
    margin: 30px 0 15px;
}

.news-content h4 {
    font-size: 1.1rem;
    color: #333333;
    margin: 25px 0 15px;
    font-weight: 600;
}

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

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

.news-content li {
    margin-bottom: 10px;
}

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

.news-content blockquote {
    background-color: #f8f9fa;
    border-left: 4px solid #4CAF50;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666666;
}

.news-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 8px;
}

.news-content th,
.news-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.news-content th {
    background-color: #4CAF50;
    color: #ffffff;
    font-weight: 600;
}

.news-content tr:nth-child(even) {
    background-color: #f8f9fa;
}

.news-content a {
    color: #4CAF50;
    text-decoration: underline;
}

.news-content a:hover {
    color: #3A8C3D;
}

/* コード表示 */
.news-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    overflow-x: auto;
}

.news-content code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.news-content pre code {
    background-color: transparent;
    padding: 0;
}

/* カテゴリータグ */
.news-categories {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.category-tag {
    display: inline-block;
    background-color: #e8f5e8;
    color: #3A8C3D;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background-color: #4CAF50;
    color: #ffffff;
}

/* 前後の記事ナビゲーション */
.news-navigation {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 80px;
}

.nav-link:hover {
    background-color: #e8f5e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-link.prev {
    text-align: left;
}

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

.nav-label {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link.prev .nav-label {
    justify-content: flex-start;
}

.nav-link.next .nav-label {
    justify-content: flex-end;
}

.nav-title {
    font-size: 0.95rem;
    color: #333333;
    font-weight: 500;
    line-height: 1.4;
}

/* 関連記事 */
.related-news {
    margin-top: 50px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 15px;
}

.related-news h3 {
    font-size: 1.3rem;
    color: #333333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-news h3 i {
    color: #4CAF50;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-item {
    border-bottom: 1px solid #e0e0e0;
}

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

.related-item a {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s ease;
    gap: 15px;
}

.related-item:hover {
    background-color: rgba(76, 175, 80, 0.05);
}

.related-item:hover a {
    padding-left: 20px;
}

.related-date {
    font-size: 0.85rem;
    color: #666666;
    min-width: 85px;
}

.related-title {
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.4;
    flex: 1;
}

.related-item:hover .related-title {
    color: #4CAF50;
}

/* 一覧に戻るボタン */
.back-to-list {
    text-align: center;
    margin-top: 40px;
}

.back-to-list .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* WordPress埋め込みコンテンツ対応 */
.news-content .wp-block-embed,
.news-content .wp-block-video,
.news-content .wp-block-audio {
    margin: 20px 0;
}

.news-content .wp-block-embed iframe,
.news-content .wp-block-video video {
    max-width: 100%;
    height: auto;
}

/* ギャラリー */
.news-content .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.news-content .wp-block-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* 引用（WordPress用） */
.news-content .wp-block-quote {
    background-color: #f8f9fa;
    border-left: 4px solid #4CAF50;
    padding: 20px;
    margin: 20px 0;
}

.news-content .wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666666;
    font-style: normal;
}

/* ボタンブロック */
.news-content .wp-block-button {
    margin: 20px 0;
}

.news-content .wp-block-button__link {
    background-color: #4CAF50;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.news-content .wp-block-button__link:hover {
    background-color: #3A8C3D;
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .single-news-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .news-single-title {
        font-size: 1.6rem;
    }
    
    .news-content h2 {
        font-size: 1.4rem;
    }
    
    .news-content h3 {
        font-size: 1.2rem;
    }
    
    .news-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-link {
        text-align: left !important;
    }
    
    .nav-link.next .nav-label {
        justify-content: flex-start;
    }
    
    .related-news {
        padding: 20px;
    }
    
    .news-content .wp-block-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .news-content .wp-block-gallery img {
        height: 100px;
    }
}

@media (max-width: 576px) {
    .single-news-container {
        padding: 25px 15px;
        border-radius: 10px;
    }
    
    .news-single-title {
        font-size: 1.4rem;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-content h2 {
        font-size: 1.3rem;
        margin: 30px 0 15px;
    }
    
    .news-content h3 {
        font-size: 1.1rem;
        margin: 25px 0 12px;
    }
    
    .news-content blockquote {
        padding: 15px;
    }
    
    .related-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 12px 8px;
    }
    
    .related-item:hover a {
        padding-left: 12px;
    }
    
    .news-content table {
        font-size: 0.85rem;
    }
    
    .news-content th,
    .news-content td {
        padding: 8px 10px;
    }
    
    .category-tag {
        font-size: 0.85rem;
        padding: 5px 12px;
    }
}





/* ========================================
   お知らせセクション スタイル
   ======================================== */

/* お知らせセクション */
#news {
    background-color: #ffffff;
    padding: 60px 0;
}

/* お知らせコンテナ */
.news-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* お知らせリスト */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

/* お知らせアイテム */
.news-item {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.news-item a {
    display: flex;
    align-items: center;
    padding: 20px 15px;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s ease;
    gap: 20px;
}

.news-item:hover {
    background-color: rgba(76, 175, 80, 0.05);
}

.news-item:hover a {
    padding-left: 25px;
}

/* 日付スタイル */
.news-date {
    font-size: 0.95rem;
    color: #666666;
    font-weight: 500;
    min-width: 100px;
    font-family: 'Roboto', sans-serif;
}

/* タイトルスタイル */
.news-title {
    font-size: 1.05rem;
    color: #333333;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
}

.news-item:hover .news-title {
    color: #4CAF50;
}

/* お知らせがない場合 */
.no-news {
    text-align: center;
    color: #666666;
    padding: 40px 0;
    font-size: 1.1rem;
}

/* もっと見るボタン */
.news-more {
    text-align: center;
    margin-top: 30px;
}

.news-more .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* アーカイブページ用スタイル */
.news-archive-container {
    max-width: 900px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 年月フィルター */
.news-filter {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.news-filter h3 {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 15px;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    display: inline-block;
}

.filter-item a,
.filter-item span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-item a {
    background-color: #ffffff;
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.filter-item a:hover {
    background-color: #4CAF50;
    color: #ffffff;
}

.filter-item.active span {
    background-color: #4CAF50;
    color: #ffffff;
    border: 1px solid #4CAF50;
}

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

.pagination-list {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item a,
.page-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-item a {
    background-color: #ffffff;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.page-item a:hover {
    background-color: #4CAF50;
    color: #ffffff;
}

.page-item.active span {
    background-color: #4CAF50;
    color: #ffffff;
    border: 2px solid #4CAF50;
}

.page-item.disabled span {
    background-color: #f0f0f0;
    color: #cccccc;
    border: 2px solid #f0f0f0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-container {
        padding: 30px 20px;
    }
    
    .news-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 10px;
    }
    
    .news-item:hover a {
        padding-left: 15px;
    }
    
    .news-date {
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .news-title {
        font-size: 0.95rem;
    }
    
    .news-archive-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .filter-list {
        gap: 8px;
    }
    
    .filter-item a,
    .filter-item span {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    #news {
        padding: 40px 0;
    }
    
    .news-container {
        padding: 25px 15px;
        border-radius: 10px;
    }
    
    .news-list {
        margin-bottom: 20px;
    }
    
    .news-item a {
        padding: 12px 8px;
    }
    
    .news-date {
        font-size: 0.8rem;
    }
    
    .news-title {
        font-size: 0.9rem;
    }
    
    .pagination-list {
        gap: 5px;
    }
    
    .page-item a,
    .page-item span {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}