/* ========================================
    お知らせページ専用スタイル
    ======================================== */

/* ========================================
    ローディング画面
    ======================================== */

/* ローディング中はbodyのスクロールを無効化 */
body.loading {
    overflow: hidden;
    height: 100vh;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(197, 212, 218, 0.95), rgba(139, 218, 194, 0.95));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* ロゴアニメーション */
.loading-logo {
    animation: fadeInScale 1s ease-out;
}

.loading-logo-img {
    width: clamp(200px, 30vw, 300px);
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* 木のアニメーション */
.loading-tree {
    position: relative;
    width: 100px;
    height: 120px;
    animation: treeGrow 1.5s ease-out;
}

.tree-trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 50px;
    background: linear-gradient(180deg, #8B4513, #6B3410);
    border-radius: 10px;
    animation: trunkGrow 1s ease-out;
}

.tree-leaves {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 80px;
}

.leaf {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #40E0D0, #20B2AA);
    border-radius: 50% 0;
    animation: leafGrow 1.5s ease-out infinite;
}

.leaf-1 {
    top: 10px;
    left: 35px;
    transform: rotate(-45deg);
    animation-delay: 0s;
}

.leaf-2 {
    top: 5px;
    right: 35px;
    transform: rotate(45deg);
    animation-delay: 0.2s;
}

.leaf-3 {
    top: 30px;
    left: 20px;
    transform: rotate(-20deg);
    animation-delay: 0.4s;
}

.leaf-4 {
    top: 30px;
    right: 20px;
    transform: rotate(20deg);
    animation-delay: 0.6s;
}

.leaf-5 {
    top: 50px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    animation-delay: 0.8s;
}

/* 光のアニメーション */
.tree-light {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.8), rgba(255, 200, 0, 0.4), transparent);
    border-radius: 50%;
    animation: lightPulse 2s ease-in-out infinite;
}

/* ローディングテキスト */
.loading-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-message {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: #2c5530;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #40E0D0, #20B2AA);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* アニメーション定義 */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes treeGrow {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes trunkGrow {
    0% {
        height: 0;
    }
    100% {
        height: 50px;
    }
}

@keyframes leafGrow {
    0%, 100% {
        transform: scale(1) rotate(var(--rotation, 0deg));
    }
    50% {
        transform: scale(1.1) rotate(calc(var(--rotation, 0deg) + 5deg));
    }
}

@keyframes lightPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .loading-content {
        gap: 1.5rem;
    }
    
    .loading-tree {
        width: 80px;
        height: 100px;
    }
    
    .tree-trunk {
        width: 16px;
        height: 40px;
    }
    
    .tree-leaves {
        width: 80px;
        height: 60px;
    }
    
    .leaf {
        width: 24px;
        height: 24px;
    }
    
    .tree-light {
        width: 30px;
        height: 30px;
    }
}

@media screen and (max-width: 480px) {
    .loading-content {
        gap: 1rem;
    }
    
    .loading-tree {
        width: 60px;
        height: 80px;
    }
    
    .tree-trunk {
        width: 12px;
        height: 30px;
    }
    
    .tree-leaves {
        width: 60px;
        height: 50px;
    }
    
    .leaf {
        width: 18px;
        height: 18px;
    }
    
    .tree-light {
        width: 25px;
        height: 25px;
    }
    
    .loading-message {
        font-size: clamp(1rem, 2.5vw, 1.4rem);
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* ページタイトルセクション */
.page-title-section {
    background: linear-gradient(135deg, rgba(197, 212, 218, 0.8), rgba(139, 218, 194, 0.8)), url('../koya.img/tree2.jpg!d');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: clamp(4rem, 8vw, 6rem) 0;
    text-align: center;
    color: #ffffff;
    margin-top: 180px; /* 固定ヘッダーの高さ分 */
}

.page-title-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.page-title {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: #666666; /* より濃いグレーに変更 */
    opacity: 0.9;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8); /* 白い影を追加 */
}

/* お知らせセクション */
.news-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 248, 220, 0.1));
}

/* カテゴリフィルター */
.news-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 2rem);
    border: 2px solid #40E0D0;
    background: transparent;
    color: #40E0D0;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(64, 224, 208, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #40E0D0, #20B2AA);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.3);
}

/* お知らせグリッド */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: 4rem;
}

/* お知らせカード */
.news-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 103, 65, 0.1);
    backdrop-filter: blur(10px);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* お知らせ画像 */
.news-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(64, 224, 208, 0.9);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* お知らせコンテンツ */
.news-content {
    padding: clamp(1.5rem, 3vw, 2rem);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-date {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    color: #666;
    font-weight: 500;
}

.news-priority {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: clamp(0.7rem, 1.6vw, 0.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-priority.high {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: #ffffff;
}

.news-priority.medium {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: #ffffff;
}

.news-priority.low {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: #ffffff;
}

.news-title {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* お知らせタグ */
.news-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-tag {
    background: rgba(64, 224, 208, 0.1);
    color: #40E0D0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: clamp(0.7rem, 1.6vw, 0.8rem);
    font-weight: 500;
    border: 1px solid rgba(64, 224, 208, 0.3);
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-btn {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    width: 40px;
    height: 40px;
    border: 2px solid #40E0D0;
    background: transparent;
    color: #40E0D0;
    border-radius: 50%;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background: rgba(64, 224, 208, 0.1);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #40E0D0, #20B2AA);
    color: #ffffff;
    border-color: #40E0D0;
}

.pagination-btn.prev,
.pagination-btn.next {
    width: 40px;
    height: 40px;
}

.pagination-btn svg {
    width: 20px;
    height: 20px;
}

/* お問い合わせセクション */
.contact-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(240, 248, 255, 0.1));
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-description {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Rounded Mplus 1c', 'Rounded Mplus 1p', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(1rem, 2.5vw, 1.5rem) clamp(2rem, 4vw, 3rem);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-btn.primary {
    background: linear-gradient(135deg, #40E0D0, #20B2AA);
    color: #ffffff;
}

.contact-btn.primary:hover {
    background: linear-gradient(135deg, #48D1CC, #00CED1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.4);
}

.contact-btn.secondary {
    background: transparent;
    color: #20B2AA;
    border-color: #20B2AA;
}

.contact-btn.secondary:hover {
    background: rgba(32, 178, 170, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.2);
}

.contact-btn svg {
    width: 20px;
    height: 20px;
}

/* アクティブなナビゲーションリンク */
.nav-link.active {
    background-color: #f8f9fa;
    color: #007bff;
}

.nav-link.active .nav-text-ja,
.nav-link.active .nav-text-en {
    color: #007bff;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .news-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: clamp(0.6rem, 1.5vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
        font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pagination {
        gap: 0.5rem;
    }
    
    .pagination-btn {
        width: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 480px) {
    .page-title-section {
        margin-top: 160px;
        padding: clamp(2rem, 6vw, 4rem) 0;
    }
    
    .news-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .news-content {
        padding: clamp(1rem, 2.5vw, 1.5rem);
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .news-tags {
        gap: 0.3rem;
    }
    
    .news-tag {
        padding: 0.2rem 0.6rem;
        font-size: clamp(0.6rem, 1.4vw, 0.7rem);
    }
    
    .contact-btn {
        padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 2rem);
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pagination-numbers {
        gap: 0.3rem;
    }
    
    .pagination-btn {
        width: 30px;
        height: 30px;
        font-size: clamp(0.7rem, 1.6vw, 0.8rem);
    }
}

/* スマートフォン対応 */
@media screen and (max-width: 480px) {
    .contact-section {
        padding: clamp(2rem, 6vw, 3rem) 0;
    }
    
    .contact-content {
        padding: 0 1rem;
    }
    
    .contact-description {
        font-size: clamp(0.9rem, 2vw, 1rem);
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .contact-buttons {
        gap: 0.8rem;
    }
    
    .contact-btn {
        padding: clamp(0.7rem, 1.8vw, 1rem) clamp(1.2rem, 2.5vw, 1.8rem);
        font-size: clamp(0.8rem, 1.8vw, 1rem);
        min-width: 100%;
    }
}

/* 超小画面対応 */
@media screen and (max-width: 360px) {
    .contact-section {
        padding: clamp(1.5rem, 5vw, 2.5rem) 0;
    }
    
    .contact-content {
        padding: 0 0.5rem;
    }
    
    .contact-description {
        font-size: clamp(0.8rem, 1.8vw, 0.9rem);
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    .contact-btn {
        padding: clamp(0.6rem, 1.6vw, 0.9rem) clamp(1rem, 2.2vw, 1.6rem);
        font-size: clamp(0.7rem, 1.6vw, 0.9rem);
    }
}

/* 大画面対応 */
@media screen and (min-width: 1200px) {
    .contact-section {
        padding: clamp(5rem, 8vw, 7rem) 0;
    }
    
    .contact-content {
        max-width: 900px;
    }
    
    .contact-description {
        font-size: clamp(1.1rem, 2.2vw, 1.3rem);
        line-height: 1.8;
        margin-bottom: 2.5rem;
    }
    
    .contact-buttons {
        gap: 1.5rem;
    }
    
    .contact-btn {
        padding: clamp(1.2rem, 2.5vw, 1.5rem) clamp(2.5rem, 4vw, 3rem);
        font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    }
}

/* アニメーション効果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease-out;
}

.news-card:nth-child(2) {
    animation-delay: 0.1s;
}

.news-card:nth-child(3) {
    animation-delay: 0.2s;
}

.news-card:nth-child(4) {
    animation-delay: 0.3s;
}

.news-card:nth-child(5) {
    animation-delay: 0.4s;
}

.news-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* カテゴリ別の色分け */
.news-card.event .news-category {
    background: rgba(255, 107, 107, 0.9);
}

.news-card.notice .news-category {
    background: rgba(64, 224, 208, 0.9);
}

.news-card.request .news-category {
    background: rgba(254, 202, 87, 0.9);
}

.news-card.update .news-category {
    background: rgba(72, 219, 251, 0.9);
}

/* ホバー効果の強化 */
.news-card:hover .news-category {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.news-card:hover .news-tag {
    background: rgba(64, 224, 208, 0.2);
    border-color: rgba(64, 224, 208, 0.5);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

