﻿@charset "UTF-8";

.button {
    background: orange;
    border-radius: 12px;
    box-shadow: 2px 4px 6px 3px rgba(0, 0, 0, .24);
    border: 1px solid orange;
    font-size: 16px;
    line-height: 1.6;
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-align: center;
    cursor: pointer;
    margin: 0;
    width: 100%;
    margin-bottom: 50px;
}


/* グレー背景 */
.layer {
    background: rgba(0, 0, 0, .6); /* 背景を薄くする */
    width: 100%;
    height: 100%;
    position: fixed; /* 画面に固定するために指定 */
    top: 0;
    left: 0;
    z-index: -1;
    transition: opacity 0.5s linear, visibility 1s linear, z-index 0.5s linear;
}

/* モーダルコンテンツ */
.js_modal {
    position: relative;
    margin-right: auto;
    margin-left: auto;
    min-width: 440px;
    opacity: 0;
    visibility: hidden;
    transition: visibility .7s linear, opacity .7s linear;
}

.js_modal__inner, .onetime_popup_title {
    width: 95vw;
    max-width: 1100px;
    height: 90vh;
    max-height: 820px;
    margin-top: 5vh;
    margin-bottom: 5vh;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    background: #003572;
    box-shadow: 3px 4px 4px rgba(0, 0, 0, 0.25); /* モーダルにシャドウをかける */
    border-radius: 5px; /* モーダルの角を丸める */
    display: block;
    padding: 10px;
}

.js_modal__contents, .onetime_popup_contents {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /*overflow-y: scroll;*/
    position: relative;
    background-color: #ffffff;
}


/* 「close」ボタン */
.modal__button-wrap {
    position: absolute;
    right: -15px;
    top: -20px;
    display: inline-flex;
    z-index: 1000;
}

.close-button, .onetime_popup_title_close {
    position: relative;
    width: 39px;
    height: 39px;
    background: orange;
    border-radius: 50%;
    padding: 0;
    border: transparent;
    cursor: pointer;
}

    .close-button span, .onetime_popup_title_close span {
        width: 25px;
        height: 2px;
        background: #fff;
        display: inline-block;
        position: absolute;
        left: calc(50% - 12px);
        top: 50%;
        border-radius: 20px;
    }

        .close-button span:nth-child(1), .onetime_popup_title_close span:nth-child(1) {
            transform: rotate(45deg) translate(-1px, -1px);
        }

            .close-button span:nth-child(2), .onetime_popup_title_close span:nth-child(2) {
                transform: rotate(-45deg) translate(1px, -1px);
            }



.layer.is-open {
    z-index: 99999;
    opacity: 1;
    visibility: visible;
}

    .layer.is-open .js_modal {
        opacity: 1;
        visibility: visible;
    }



/*-------------------------*/
body.open_popup {
    overflow: hidden;
}

.bg_onetime_popup {
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
}

body.open_popup .bg_onetime_popup {
    opacity: 1;
    visibility: visible;
}

/*.onetime_popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 50%;
    min-width: 500px;
    background-color: #fff;
}

.onetime_popup_title {
    position: relative;
    padding: 1em 80px;
    margin: 0px;
    background-color: #3388dd;
    color: #fff;
    font-size: 32px;
    text-align: center;
    line-height: 1.5;
}

    .onetime_popup_title_close span {
        width: 25px;
        height: 2px;
        background: #fff;
        display: inline-block;
        position: absolute;
        left: calc(50% - 12px);
        top: 50%;
        border-radius: 20px;
    }

        .onetime_popup_title_close span:nth-child(1) {
            transform: rotate(45deg) translate(-1px, -1px);
        }

        .onetime_popup_title_close span:nth-child(2) {
            transform: rotate(-45deg) translate(1px, -1px);
        }

.onetime_popup_content {
    padding: 60px 30px;
    text-align: center;
}*/


/*　モーダル内容
--------------------------------------------*/
.fes_pcWrap {
    display: block;
}
.fes_spWrap {
    display: none;
}
.fesWrap {
    width: 100%;
    display: flex;
    flex-direction: row;
    font-family: "Shippori Mincho", serif;
    font-weight: 800;
    font-style: normal;
}
.fes_Inner_l {
    width: calc(291 / 799* 100%);
    min-width: 291px;
    height: auto;
    position: relative;
}
.fes_Inner_l .kv_tnrk {
    position: absolute;
    background: url(../img/fes/kv_tnrk.jpg) no-repeat center top;
    background-size: cover;
    width: 100%;
    height: auto;
    padding-top: calc(799 / 291 * 100%);

}
.fes_Inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.fes_logo {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    height: auto;
}
    .fes_logo::after {
        content: '';
        display: block;
        background: url(../img/fes/logo.png) no-repeat center top;
        background-size: contain;
        padding-top: calc(164 / 304 * 100%);
    }

.fesWrap .fes_Inner .txtWrap h1 {
    width: 100%;
    margin: 10px 0;
    font-size: clamp(3rem, 3.5vw, 4rem);
    text-align: center;
    display: inline-block;
    background: linear-gradient(315deg, #0493d8 16%, #06699a 80%, #081922 100%);
    background: -webkit-linear-gradient(315deg, #0493d8 16%, #06699a 80%, #081922 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientEffect 2.5s infinite alternate;
}
@keyframes gradientEffect {
    from {
        background-position: left
    }

    to {
        background-position: right
    }
}
.fesWrap h2 {
    font-size: clamp(1.8rem, 1.7vw, 2.0rem);
    padding: 5px;
    background-color: #003572;
    border-radius: 45px;
    color: #ffffff;
    text-align: center;
    line-height: 1.5;
}
.Inner_box {
    width: 80%;
    margin: 20px auto;
    border-bottom: 2px solid #06547a;
}
.fesWrap h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.fesWrap h4 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 10px;
    line-height: 2.5rem;
}
.fesWrap p {
    text-align: center;
    font-size: 1.6rem;
}



@media (max-width: 980px) {
    .close-button, .onetime_popup_title_close {
        width: 70px;
        height: 70px;
    }
        .close-button span, .onetime_popup_title_close span {
            width: 50px;
            left: calc(50% - 25px);
        }
    .js_modal__contents, .onetime_popup_contents {
        overflow-y: scroll;
    }
    .fes_pcWrap {
        display: none;
    }
    .fes_spWrap {
        display: block;
        font-family: "Shippori Mincho", serif;
        font-weight: 800;
        font-style: normal;
    }
    .fes_Inner_l {
        width: calc(291 / 799* 100%);
        min-width: 291px;
        height: auto;
        position: relative;
        overflow: hidden;
    }
    .fes_logo {
        max-width: 80%;
    }
    .fesWrap h1 {
        font-size: 5vw;
    }
    .js_modal__inner, .onetime_popup_title {
        width: 90vw;
        height: 90vh;
        max-height: 1200px;
        margin-top: 10vh;
        margin-bottom: 10vh;
    }
    .fes_Inner:before {
        background-size: 100%;
        padding-top: calc(900 / 767* 75%);
    }

    .fes_spWrap h2 {
        font-size: 3.5vw;
        padding: 3px;
        background-color: #065a83;
        color: #ffffff;
        text-align: center;
        margin: 0 0 30px;
    }
    .fes_spWrap .Inner_box {
        width: 80%;
        margin: 20px auto;
        border-bottom: 2px solid #06547a;
    }

    .fes_spWrap h3 {
        text-align: center;
        font-size: 3.5rem;
        margin-bottom: 10px;
    }

    .fes_spWrap h4 {
        text-align: center;
        font-size: 3rem;
        margin-bottom: 10px;
        line-height: 6rem;
    }

    .fes_spWrap p {
        text-align: center;
        font-size: 3rem;
        line-height: 5rem;
        width: 85%;
        margin: 0 auto;
    }
    .button {
        font-size: 4.0vw;
        margin-bottom: 100px;
    }
}
