/* 地域別メインカラーの設定 */
.gallery-page.hokkaido {
    --area-color: #406CB1;
}

.gallery-page.tohoku {
    --area-color: #FFB601;
}

.gallery-page.kanto {
    --area-color: #E76D9E;
}

.gallery-page.chubu {
    --area-color: #8FCD0F;
}

.gallery-page.kinki {
    --area-color: #01B7E5;
}

.gallery-page.tyugoku {
    --area-color: #EB6666;
}

.gallery-page.kyushu {
    --area-color: #A978F4;
}

.gallery-page.over-sea {
    --area-color: #4BA17A;
}

/* =================================================
    メインビジュアル
   ================================================= */
.gallery-mv {
    margin-bottom: 50px;
}

.gallery-mv__wrap {
    padding: 0 56px;
    display: grid;
    grid-template-columns:
        calc(1151 / 1804 * 100%) calc(665 / 1804 * 100%);
    column-gap: 18px;
    align-items: start;
}

.gallery-mv__img img {
    border-radius: 38px;
}

.gallery-mv__ttl {
    background-color: var(--area-color, #F0007F);
    border-radius: 20px;
    padding: 20px 40px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.gallery-mv__ttl h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    font-weight: 700;
    margin-bottom: 0;
    font-size: clamp(20px, 7.3vw, 40px);
}

.gallery-mv__ttl img {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.gallery-mv_rightside {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.gallery-title-img p {
    font-size: clamp(20px, 7.3vw, 110px);
    font-weight: 700;
    text-align: center;
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.gallery-title-img p::after {
    content: "";
    width: 13%;
    height: 75%;
    background: url(../img/gallery/icon_a.svg) no-repeat center / contain;
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%) translateX(0%);
    -webkit-transform: translateY(-50%) translateX(0%);
}

.gallery-title-img span {
    color: #F0007F;
}


.event-mv__dat {
    margin: 10px 0;
}

.month-dat {
    display: flex;
    font-size: clamp(20px, 5vw, 100px);
    font-weight: 900;
    letter-spacing: .05em;
}

.month-dat.is-3days {
    font-size: clamp(20px, 4vw, 100px);
}

.date {
    margin: 0;
    font-family: Roboto
}

.year {
    font-size: 3rem;
    font-weight: 900;
    font-family: Roboto;
}

.day-en {
    font-size: 3rem;
    margin-right: 10px;
}

.vol {
    display: block;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-align: right;
}

.gallery-section {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 20px;
    padding: 50px;
}

.official {
    position: relative;
}

.official ::before {
    content: "official-cameraman";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}

.cameraman-info h3 {
    font-size: 2.8rem;
    margin: 0;
    margin-bottom: 5px;
}

.cameraman-info span {
    font-size: 1.6rem;
    position: relative;
}

.cameraman-info span::after {
    content: "";
    width: 20px;
    height: 20px;
    background: url(../img/gallery/icon_x.svg) no-repeat center / contain;
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%) translateX(100%);
    -webkit-transform: translateY(-50%) translateX(100%);
}

.cameraman-info span.cameraiman_info_other_sns::after {
    background: url(../img/common/icon_link_b.svg) no-repeat center / contain;
}

.cameraman-info_wrap {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.official, .support {
    width: 100%;
    height: 38px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateY(50%) translateX(-50%);
    -webkit-transform: translateY(50%) translateX(-50%);
    z-index: 1;
}

.official::before, .support::before {
    letter-spacing: .05em;
}

.official::before {
    content: "official-cameraman";
    text-align: right;
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #F9B03A;
}

.official.round::before {
    content: "巡回カメラマン";
}

.official::after {
    content: "";
    width: 100%;
    height: 4px;
    border-radius: 99px;
    background-color: #F9B03A;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}

.support::before {
    content: "official-support-cameraman";
    text-align: right;
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #20AD3F;
}

.support.fixed::before {
    content: "定点カメラマン";
}

.support::after {
    content: "";
    width: 100%;
    height: 4px;
    border-radius: 99px;
    background-color: #20AD3F;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}

/* =================================================
    masonry
   ================================================= */

/* グリッドのベース */
.gallery-grid {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* 基準となる幅（4列にするなら 25%） */
.grid-sizer,
.grid-item {
    width: 25%;
    /* PC版：4列 */
}

/* 各写真の余白 */
.grid-item {
    padding: 5px;
    /* ここで写真同士の隙間を調整 */
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* デザインに合わせて調整 */
}

.grid-item {
    list-style: none;
}

.btn-back {
    text-align: center;
    display: block !important;
    width: 50%;
    padding: 20px 0;
    background-color: #F0007F;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 20px auto;
    border-radius: 7px;
}

/* スマホ版（例えば2列） */
@media screen and (max-width: 767px) {

    .grid-sizer,
    .grid-item {
        width: 50%;
    }
}

/* 1日開催の時のレイアウト調整 */
.count-1 .gallery-mv__dat {
    display: flex;
    align-items: baseline;
}

.count-1 .year {
    margin-right: 10px;
}


/* =================================================
    レスポンシブ
   ================================================= */
@media screen and (max-width: 768px) {
    .gallery-page {
        padding-top: 40px;
    }

    .gallery-mv {
        margin-bottom: 0;
    }

    .gallery-mv__wrap {
        padding: 10px 10px 0;
        gap: 0;
        display: flex;
        flex-direction: column;

    }

    .gallery-mv__img {
        height: 380px;
    }

    .gallery-mv__img img {
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 10px 10px 0 0;
        zoom: 1.1;
        box-sizing: border-box;
    }

    .gallery-mv_rightside {
        flex-direction: column-reverse;
        width: 100%;
    }

    .gallery-mv__ttl {
        border-radius: 0 0 10px 10px;
    }

    .month-dat {
        font-size: 4.6rem;
    }

    .year {
        font-size: 2.1rem;
    }

    .day-en {
        font-size: 1.6rem;
    }

    .gallery-mv__ttl h2 {
        font-size: 2.6rem;
        margin-top: 5px;
    }

    .vol {
        font-size: 1.6rem;
    }

    .gallery-title-img p {
        text-align: right;
        width: 100%;
        padding-right: 30px;
        margin-top: 30px;
    }

    .gallery-title-img p::after {
        right: 0;
    }

    .gallery_main {
        margin-top: 0px;
        padding: 0 5px;
    }

    .gallery-section {
        padding: 10px;
    }

    .official, .support {
        height: 26px;
    }

    .official::before, .support::before {
        font-size: 1.4rem;
    }

    .cameraman-info h3 {
        font-size: 1.8rem;
        padding-left: 4px;
    }

    .cameraman-info span {
        padding-left: 4px;
    }

    .cameraman-info a {
        padding: 12px 14px;
    }

    /**日付サイズ調整**/
    .count-1 .month-dat {
        font-size: 4.8rem;
    }
    .btn-back{
        width: 85%;
        margin-bottom: 50px;
    }
}