@charset "UTF-8";

a {
    color: #333;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

.index-gallery-header {
    position: relative; /* 通常の位置に配置 */
    z-index: 1; /* ピクチャーよりも後ろに表示されるようにする */
}

.index-gallery-picture {
    position: relative; /* 通常の位置に配置 */
    z-index: 0; /* ヘッダーよりも後ろに表示されるようにする */
}

.sports-business-outdoor-classic-header {
    position: absolute; /* ピクチャーと重なるように絶対位置に設定 */
    z-index: 10; /* ピクチャーよりも前に表示されるようにする */
}

.sports-business-outdoor-classic-picture {
    position: relative; /* 通常の位置に配置 */
    z-index: 1; /* ヘッダーよりも後ろに表示されるようにする */
}



/* GALLERY Page */
#gallery {
    background-color: #000000;
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

#gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gallery__title {
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #FFFFFF;
    text-align: center;
    padding: 80px 0 64px;
}





.tags {
    display: flex;
    flex-wrap: wrap;
    max-width: 778px;
    margin: 0 24px 82px;
}

.tag {
    display: inline-block;
    margin: 9px;
    padding: 3px 20px 2px;
    background-color: #FFFFFF;
    border-radius: 30px;
    cursor: pointer;
    width: auto;
}


.gallery-container {
    display: flex; 
    justify-content: center; 
    width: 100%;
    box-sizing: border-box;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0;
    padding-bottom: 938px;
    width: 100%;
    max-width: calc(100% - 33%); 
    box-sizing: border-box;
}


.gallery-item {
    max-width: 311px;
    width: calc(25% - 30px);
    height: auto;
    margin: 15px; 
    box-sizing: border-box;
}

.gallery__title {
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #FFFFFF;
    text-align: center;
    padding: 80px 0 64px;
}



@media(max-width: 768px) {
    
    .gallery__title {
        font-size: 28px;
        padding: 48px 0 40px;
    }
    .gallery {
        max-width: 768px;
        display: flex;
        justify-content: center;
    }
    .gallery-item  {
        width: 100%;
        max-width: none;
        margin: 24px;
    }
}