@charset "UTF-8";

/* header */
.header {
    width: 100%;
    box-sizing: border-box;
}

.mainVisual {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.main_logo {
    color: var(--primary-white);
}

.logo {
    position: absolute;
    width: 100%;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-weight: bold;
    z-index: 10;
    overflow: hidden;
}

.logo::after {
    content: "";
    display: block;
    width: 0;
    height: 1.5px;
    background-color: var(--primary-white);
    margin: 0 auto;
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

.logo h1 {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 25px;
    margin-bottom: 8px;
}

.logo p {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 15px;
    letter-spacing: 0.7px;
    margin-bottom: 20px;
}

.image {
    background-image: url(../image/common/mv.webp);
    position: absolute;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
}

.image_title {
    background-color: var(--primary-gold);
    color: var(--primary-white);
    padding: 5px 12.8%;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 35px;
    letter-spacing: 1.15px;

    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
}

@media screen and (min-width: 769px) {
    .logo::after{
        height: 3px;
    }

    .logo h1 {
        font-size: 4rem;
        line-height: 45px;
        margin-bottom: 10px;
    }
    
    .logo p {
        font-size: 2rem;
        line-height: 25px; /* 125% */
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .image_title {
        padding: 9px 13%;
        font-size: 2.3rem;
        letter-spacing: 2px;

        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
    }
}/* pc 769px */

/* gallery */
.sab_title {
    margin-top: 0px;
}

.section--category {
    padding: 60px 5.1%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.category_item {
    width: 45%;
    font-family: var(--primary-font);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 2.6px;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 8px;
}

.gallery-container {
    column-count: 3;
    column-gap: 10px;
    padding: 20px 5.1% 0px;
}

.gallery-image {
    width: 100%;
    margin-bottom: 10px;
    display: block;
    cursor: pointer; /* 画像をクリック可能に */
}

@media (max-width: 1024px) {
    .gallery-container {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-container {
        column-count: 1;
    }
}

.button_box {
    display: flex;
    justify-content: flex-end;
    padding: 0 5.1% 60px;
}

.top-button {
    font-family: var(--primary-font);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 3px;
    border-bottom: 1px solid var(--primary-black);
    padding: 0px 4.5% 4px;
}

/* モーダルのスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* モーダルコンテンツをセンター配置 */
.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 画像のサイズ調整 */
.modal img {
    width: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
}

/* 閉じるボタン */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 30px; /* ボタンのサイズ */
    height: 30px;
    cursor: pointer;
    background: none; /* 背景を透明に */
    border: none; /* デフォルトのボタンの枠を削除 */
    font-size: 0; /* 文字を完全に消す */
}

.close-btn::before,
.close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 3px; /* 線の太さ */
    background-color: var(--primary-white);
    transform-origin: center;
}

.close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media screen and (min-width: 769px) {
    .section--category {
        padding: 150px 7%;
        gap: 70px;
    }

    .category_item {
        font-size: 2rem;
    }

    .gallery-container {
        padding: 50px 7% 30px;
    }

    .button_box {
        padding: 0 7% 150px;
    }

    .top-button {
        font-size: 1.8rem;
        padding-bottom: 8px;
    }

    .close-btn {
        top: 30px;
        right: 75px;
        width: 60px; /* ボタンのサイズ */
        height: 60px;
    }
    
    .close-btn::before,
    .close-btn::after {
        width: 50px;
        height: 4px; /* 線の太さ */
    }
}/* pc 769px */
