@charset "UTF-8";

/* --- Base Layout --- */
body {
    /* 背景画像の設定 */
    background-image: url("/images/discback.gif");
    background-repeat: no-repeat;
    background-color: #000;
    
    /* 背景を画面に固定（スクロールしても動かない） */
    background-attachment: fixed; 
    
    /* 画面を隙間なく埋める（左右100%を維持しつつ、縦もカバー） */
    background-size: cover !important; 
    
    /* 画像の配置基準を中央に */
    background-position: center top;

    color: #4D4D4D; 
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
}

/* iPhone/iPadなどのiOS端末で background-attachment: fixed が効かず、
   背景が黒くなったり画像が巨大化したりする場合の強力な対策
*/
@media screen and (max-width: 1024px) {
    body::before {
        content: "";
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 100%;
        background-image: url("/images/discback.gif");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center top;
    }
    body {
        background-image: none !important; /* body自体の背景は消して::beforeに任せる */
    }
}

#container {
    max-width: 950px;
    margin: 0 auto;
    padding: 15px 20px 30px 20px;
    text-align: center;
    background-color: transparent;
}

/* --- Typography (文字類) --- */
h1 {
    color: #666666; 
    font-size: 26px;
    margin: 0 0 40px 0;
    border-bottom: 1px solid #333; 
    padding-bottom: 15px;
}

.center.cssgrid {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.center.cssgrid li {
    font-size: 20px;
    color: #666666;
}

h2 {
    color: #666666;
    font-size: 20px;
    margin: 50px 0 20px 0;
    text-align: center;
    padding-left: 0;
}

a {
    color: #4D4D4D;
    transition: color 0.2s;
}

a:hover {
    color: #ffcc00;
}

/* --- Year Link Button Grid --- */
.year-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    margin: 0 0 40px 0;
    padding: 0;
    list-style: none;
}

.year-grid li {
    flex: 0 1 auto;
}

.year-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 125px;
    height: 46px;
    background-color: rgba(51, 51, 51, 0.8); 
    border: 1px solid #444; 
    color: #FFFFFF !important; 
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.year-grid a:hover {
    background-color: #ffcc00;
    border-color: #ffffff;
    color: #000000 !important;
    transform: translateY(-2px);
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
    /* コンテナの左右パディングを少し削ってボタンの有効範囲を広げる */
    #container {
        padding: 15px 10px 30px 10px !important;
    }

    .year-grid {
        justify-content: center;
        gap: 8px; /* ボタン間の隙間を少し詰め、その分ボタンを大きくする */
        margin: 0;
    }

    .year-grid li {
        /* 左右の余白を最小限にし、ボタンを横に広げる */
        flex: 0 1 calc(50% - 6px); 
    }

    .year-grid a {
        min-width: 0;
        height: 60px;     /* 高さをさらにアップ（54px → 60px） */
        font-size: 18px;   /* 文字もさらに大きく（16px → 18px） */
        letter-spacing: 1px; /* 数字を見やすく少し広げる */
        border-radius: 6px;  /* 角丸を少し強めて押しやすそうな見た目に */
        box-shadow: 0 4px 8px rgba(0,0,0,0.5); /* 影を強くして立体感を出す */
    }

    /* 指で触れた時の反応をより分かりやすく */
    .year-grid a:active {
        background-color: #ffcc00 !important;
        color: #000000 !important;
        transform: scale(0.98);
    }
}