body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #222;
}

/*【開始】頭の目次*/
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 40px;
    background: transparent; /* ← 背景を完全透過 */
    z-index: 1000; /* ← 画像や動画より前に出す */
}

.nav-logo {
    margin-right: 40px;
    /*font-weight: 700;*/
    font-size: 18px;
}

.nav a {
    color: #1e293b;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

    .nav a:hover {
        opacity: 0.6;
    }
/*【終了】頭の目次*/

.date-list {
    width: 90%;
    max-width: 600px;
    margin: 10% auto;
    text-align: center;
}

    .date-list h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

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


    .date-list li {
        display: flex; /* 横並びにする */
        align-items: center; /* 縦位置を中央に揃える */
        margin: 2px 0;
        border-bottom: 1px solid #ccc;
    }

    .date-list img {
        width: 35%; /* サムネイルサイズ */
        height: 35%;
        object-fit: cover; /* 画像を枠にフィット */
        margin-right: 26%; /* テキストとの間隔 */
        border-radius: 0px; /* 角を少し丸める */
    }

    .date-list a {
        display: flex; /* 画像とテキストをまとめてクリック可能に */
        align-items: center;
        text-decoration: none;
        color: #222;
        padding: 12px;
        transition: background 0.3s;
    }

        .date-list a:hover {
            background: #ddd;
        }



@media (max-width: 768px) {
    /*.nav {
        display: flex;
        flex-wrap: wrap;*/ /* ← これがポイント */
    /*gap: 12px 20px;*/ /* 上下12px、左右20px の余白 */
    /*padding: 20px;
    }*/

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 12px 20px;
        padding: 20px;
        background: transparent; /* ← 透過 */
        z-index: 1000;
    }

    body {
        padding-top: 95px; /* ← スマホは2段になるので余白を増やす */
    }


    .nav-logo {
        width: 100%; /* ← ロゴだけ1行目に固定 */
        margin-bottom: 10px;
    }

    .nav a {
        color: #1e293b;
        text-decoration: none;
        font-size: 14px;
        transition: opacity 0.3s ease;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 9%;
    }
    
    .date-list a {
        display: flex; /* 画像とテキストをまとめてクリック可能に */
        align-items: center;
        text-decoration: none;
        color: #222;
        padding: 8px;
        transition: background 0.3s;
        font-size: 10px;
    }
}

