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

/*【開始】ここから一番上の目次的なところ*/
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 40px;
}

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

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

    .nav a:hover {
        opacity: 0.6;
    }
/*【終了】ここから一番上の目次的なところ*/

.works {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
}

.work-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    border: 1px solid #ccc; /* 枠線を追加 */
}

/*.gallery {
    margin-top: 10%;
    column-count: 2;  PCでは2列 
    column-gap: 40px;
}*/

/*.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);*/ /* 2列 */
/*gap: 40px;
}*/

/*.gallery-item {
    break-inside: avoid;
    margin-bottom: 40px;
}*/

/*.gallery-item {
    margin-bottom: 0;*/ /* gridでgapを使うので不要 */
/*}*/

/*.gallery-item img {
        width: 100%;
        height: auto;*/
/*border-radius: 6px;*/
/*margin-bottom: 12px;
    }*/


.gallery {
    margin-top: 10%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15%;
}

.gallery-item {
    /* width: 48%; */ /* 2列にしたい場合 */
    margin-bottom: 30px;
    text-align: center;
}

    .gallery-item img {
        width: 60%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .gallery-item p {
        font-size: 14px;
        color: #555;
        line-height: 1.6;
        margin: 8px auto 0; /* ← 上に余白を入れて中央寄せ */
        display: inline-block; /* ← テキストを中央に見せる */
    }

.work-image {
    flex: 1;
}

    .work-image img {
        width: 100%;
        height: auto;
        /*border-radius: 6px;*/
    }

.work-text {
    flex: 1;
    padding: 20px 40px;
}

    .work-text h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
        font-weight: 300; /* 細字にする */
    }

   .work-text h1 {
        font-size: 1.1rem;
        margin-bottom: 12px;
        font-weight: 300; /* 細字にする */
    }

    .work-text p {
        font-size: 15px;
        line-height: 1.6;
        color: #555;
    }

    .work-text .author {
        font-size: 12px;
    }


.site-footer {
    background: #f4c829; /* 背景色 */
    color: black; /* 文字色 */
    text-align: center; /* 中央揃え */
    padding: 10px 0; /* 上下余白 */
    font-size: 0.9rem; /* 文字サイズ */
}

    .site-footer p {
        margin: 0; /* 余白をなくす */
        color: white;
    }

/* スマホ対応 */
@media (max-width: 768px) {
    /*【開始】ここから一番上の目次的なところ*/
    .nav {
        display: flex;
        flex-wrap: wrap; /* ← これがポイント */
        gap: 12px 20px; /* 上下12px、左右20px の余白 */
        padding: 20px;
    }

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

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

    .nav a {
        color: #1e293b;
        text-decoration: none;
        font-size: 14px;
        transition: opacity 0.3s ease;
    }
    /*【終了】ここから一番上の目次的なところ*/

    .works {
        width: 90%;
        max-width: 1200px;
        margin: 20px auto;
    }

    .work-item,
    .work-item.reverse {
        margin-bottom: 65px;
        flex-direction: column !important; /* ← 縦並びを強制 */
        align-items: flex-start !important;
    }

    .work-text {
        padding: 35px 0 !important;
    }

        .work-text h2 {
            font-size: 1.0rem;
            margin-bottom: 12px;
            font-weight: 300; /* 細字にする */
            margin-left: 10px; /* 左側に余白を追加 */
        }
        .work-text h1 {
            font-size: 0.7rem;
            margin-bottom: 12px;
            font-weight: 450; /* 細字にする */
            margin-left: 10px; /* 左側に余白を追加 */
        }

        .work-text p {
            font-size: 10px;
            line-height: 1.6;
            color: #555;
            margin-left: 10px; /* 左側に余白を追加 */
        }

        .work-text .author {
            font-size: 9px;
            margin-left: 10px; /* 左側に余白を追加 */
        }

    /*.gallery {
        margin-top: 10px;
        column-count: 1 !important;*/ /* ← スマホでは1列 */
    /*column-gap: 10px;
    }

    .gallery-item {
        break-inside: avoid;
        margin-bottom: 20px;
    }

        .gallery-item img {
            display: block;
            margin: 0 auto;
            width: 90%;
            height: auto;*/
    /*border-radius: 6px;*/
    /*margin-bottom: 6px;
        }

        .gallery-item p {
            font-size: 10px;
            color: #555;
            line-height: 1.6;
        }*/

    .gallery {
        margin-top: 10%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 23%;
    }

    .gallery-item {
        /* width: 100%; */ /* 2列にしたい場合 */
        /*margin-bottom: 20px;*/
        margin: 0 auto 20px;
    }

        .gallery-item img {
            width: 100%;
            height: auto;
            display: block;
        }

        .gallery-item p {
            font-size: 10px;
            color: #555;
            line-height: 1.6;
        }
    /*.site-footer {
        background: yellow;*/ /* 背景色 */
    /*color: black;*/ /* 文字色 */
    /*text-align: center;*/ /* 中央揃え */
    /*padding: 7px 0;*/ /* 上下余白 */
    /*font-size: 10px;*/ /* 文字サイズ */
    /*}

        .site-footer p {
            margin: 0;*/ /* 余白をなくす */
    /*}*/
    .site-footer {
        background: #f4c829; /* 背景色 */
        color: black; /* 文字色 */
        text-align: center; /* 中央揃え */
        padding: 30px 0; /* 上下余白 */
        font-size: 0.6rem; /* 文字サイズ */
    }

        .site-footer p {
            margin: 0; /* 余白をなくす */
            color: white;
        }
}
