.ncc-video-link{
    width: 60%;
    display: block;
    margin: 0 auto;
}
.new-title{
    text-align: center;
    width: 40%;
    display: block;
    margin: 100px auto 0 auto;
}













/* ヘッダーのナビ（indexと同様に中央寄せ） */
.navbar{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    background-color: #fafafa;
}

.nav-links{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2vw, 16px);
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 10px;
    box-sizing: border-box;
}

.nav-links a{
    text-decoration: none;
    color: #f07d42;
    font-weight: 500;
    padding: 8px 12px;
    transition: 0.3s;
    margin: 0;
    white-space: nowrap;
}

.nav-links a:hover{
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
}

/*game script*/
:root {
            --mikan-orange: #ff9800;
            --mikan-dark: #e68a00;
            --leaf-green: #4caf50;
            --basket-brown: #8d6e63;
            --bg-color: #fff9e6;
        }

        .game-container {
            margin: 60px auto 35px auto;
            padding: 24px;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 65vw;
            height: auto;
            background: linear-gradient(180deg, #fff 0%, #fff9e6 100%);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 6px 18px rgba(0,0,0,0.06);
            font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
            overflow: hidden;
            touch-action: none;
        }

       

        #game-container {
            position: relative;
            width: 100%;
            max-width: 600px;
            height: 100%;
            max-height: 800px;
            background: linear-gradient(to bottom, #87CEEB 0%, #fff 100%);
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        canvas {
            display: block;
            width: 100%;
            height: 100%;
        }

        /* UI Styles */
        #ui-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .stats {
            position: absolute;
            top: 14px;
            left: 14px;
            right: 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 18px;
            font-weight: 700;
            color: #222;
            background: rgba(255,255,255,0.85);
            padding: 8px 12px;
            border-radius: 12px;
            box-shadow: 0 6px 12px rgba(0,0,0,0.06);
        }

        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.38);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            pointer-events: auto;
            padding: 24px;
            text-align: center;
        }

        h1 {
            color: var(--mikan-orange);
            font-size: 2rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px #000;
        }

        button {
            padding: 12px 34px;
            font-size: 20px;
            cursor: pointer;
            background: linear-gradient(180deg, var(--mikan-orange), var(--mikan-dark));
            color: white;
            border: none;
            border-radius: 12px;
            box-shadow: 0 6px 0 rgba(0,0,0,0.12);
            transition: transform 0.12s ease, box-shadow 0.12s ease;
        }

        button:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.12);
        }

        button:active {
            transform: translateY(2px);
            box-shadow: none;
        }

        .hidden {
            display: none !important;
        }

        #final-score {
            font-size: 42px;
            margin: 20px 0;
            color: white;
            text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
        }

        /* Responsive tweaks */
        @media (max-width: 700px) {
            .game-container {
                width: 95vw;
                height: 70vh;
                padding: 16px;
            }
            button {
                font-size: 18px;
                padding: 10px 18px;
            }
            h1 {
                font-size: 1.6rem;
            }
        }


/*news script*/
h2.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 60px auto 30px auto;
    color: #fff9e6; 
    border-bottom: 2px solid #e0e0e0;
    display: inline-block;
    padding-bottom: 10px;
    
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.news-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.2);
    border-color: #ff8c00;
}

.news-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.news-title a {
    color: #333;
    text-decoration: none;
}

.news-source {
    font-size: 0.85rem;
    color: #ff8c00;
    font-weight: bold;
    margin-top: auto; 
    display: flex;
    align-items: center;
}

.news-source::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ff8c00;
    border-radius: 50%;
    margin-right: 6px;
}

/* 読み込み中の表示 */
#loading {
    text-align: center;
    width: 100%;
    color: #666;
    margin-top: 20px;
}

@media screen and (max-width: 780px)  {
    .new-title{
        width: 80%;
        
    }
    .ncc-video-link{
        width: 90%;
    }
    .news-card{
        padding: 10px;
    }
   .game-container{
    width: 90%;
    height: 70vh;
    padding: 16px;
    margin: 60px auto 35px auto;

   }
   #news-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    max-width: 90%;
    margin: 0 auto;
   }
   .news-card{
    padding: 10px;
   }
   

}


