/* 🟢 workページの上部の余白を増やす（メニューと画像が被らないように） */
body {
    padding-top: 80px !important; /* 余白を増やす */
    background-color: #2d333e !important; /* コンタクトページと同じ背景色に統一 */
    color: #fff; /* 文字色も統一 */
}

/* 🟢 メニューのクリックを有効にする */
.menu {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000 !important; /* クリックできるように z-index を高める */
}

/* 🟢 YouTube動画のサイズ調整 & 白枠削除 */
.work_youtube {
    width: 80%;
    max-width: 800px;
    margin: 40px auto;
    background: transparent !important;
    border: none !important;
}

.work_youtube iframe {
    width: 100%;
    height: 450px;
    border: none !important;
    background: transparent !important;
}

/* 🟢 画像一覧（Web版もスマホ版と同様に縦1列にする） */
#image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
}

#image-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0 !important; /* 角の丸みを削除 */
}

/* 🟢 スマホ用設定（YouTube動画の右端が切れないように調整） */
@media screen and (max-width: 600px) {
    .menu {
        top: 5px;
        left: 5px;
    }

    .work_youtube {
        width: 95%;
        margin: 20px auto;
    }

    .work_youtube iframe {
        height: 250px;
    }

    #image-gallery {
        width: 95%;
    }

    #image-gallery img {
        max-width: 100%;
    }
}
