/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ヘッダー */
.header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 40px;
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-size: 24px;
    font-weight: bold;
}

.header__nav ul {
    display: flex;
    gap: 20px;
}

.header__nav a {
    font-size: 16px;
    font-weight: bold;
}

/* メインコンテンツ */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.main-content h1 {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}

.main-visual {
    margin-bottom: 40px;
}

/* 画像ギャラリー（12分割の4比率） */
.gallery {
    display: grid;
    /* 12分割のグリッドを定義 */
    grid-template-columns: repeat(12, 1fr);
    /* ギャップ（隙間）を設定 */
    gap: 20px;
}

.gallery__item {
    grid-column: span 4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery__item vide {
    width: 100%;
}

.gallery__item:hover {
    transform: translateY(-10px); /* 縦に10px浮き上がる */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* 影を追加 */
}
/* フェードインの初期状態（透明で少し下へずらす） */
.gallery__item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
}

/* フェードイン後の状態（JavaScriptでこのクラスを追加） */
.gallery__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .header__inner {
        flex-direction: column;
        text-align: center;
    }

    .header__nav ul {
        margin-top: 10px;
    }

    .gallery__item {
        /* スマホでは1列に */
        grid-column: span 12;
    }
}

/* フッター */
.footer {
    height: 70px;
    background-color: #000;
}