*{
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .sp_none{
        display: none !important;
    }
}
@media (min-width: 768px) {
    .pc_none{
        display: none !important;
    }
}

body{
    /*color: #333333;*/
    font-family: "YakuHanJP", "Noto Sans Japanese", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: #4B576E;
    box-sizing: border-box;
}
body {
    margin: 0;
    background-color: #FFF;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
}
body.js-fixed {
    overflow-x: hidden;
    overflow-y: hidden;
}
*{
    padding: 0;
    margin: 0;
}
a{
    color: #CF1126;
    /*color: #4B576E;*/
}

/**
Font
 */
h1,h2,h3,h4,h5,h6{
    line-height: 1.5;
}
p,ul,li{
    line-height: 1.9;
}

.f-jost {
   font-family: "Jost", sans-serif;
   font-optical-sizing: auto;
   font-weight: 500;
   font-style: normal;
}


/**
Section
 */
#main_wrap{
    overflow-x: hidden;
}
section{
    padding-top: 200px;
    margin: 0 auto;
    max-width: 1200px;
    width: auto;
    text-align: center;
    color: #4B576E;
    @media (max-width: 767px) {
        padding: 15px;
        padding-top: 100px;
    }
}
section h2{
    color: #CF1126;
    font-size: 45px;
    font-weight: 500;
    @media (max-width: 767px) {
        font-size: 5.5vw;
        line-height: 1.4;
    }
}
section h3 {
    color: #4B576E;
    font-size: 22px;
    font-weight: 500;
    margin-top: 0.2em;
    margin-bottom: 3em;
    letter-spacing: 0.04em;
    @media (max-width: 767px) {
        font-size: 3.1vw;
        letter-spacing: 0.02em;
    }
}
section p{
    font-size: 24px;
    line-height: 1.9;
    @media (max-width: 767px) {
        font-size: 3.5vw;
    }
}
#about_mark{
    position: relative;
    padding-bottom: 100px;
    @media (max-width: 767px) {
        padding-bottom: 30px;
    }

}
#about_mark_ring{
    content:'';
    position: absolute;
    display: inline-block;
    z-index: -1;
    width: 100%;
    height: 100%;
    left:0;
    top:0;
    background: url("../images/logo_backring.png") no-repeat center 150px;
    background-size: 1240px auto;
    filter: brightness(3.0) blur(20px);

    @media (max-width: 767px) {
        background-position: center 47vw;
        background-size: 110vw auto;
    }

}
#about_mark p{
    text-shadow:
            0 0 6px rgba(255,255,255,1),
            0 0 6px rgba(255,255,255,1),
            0 0 6px rgba(255,255,255,1);
}
img.markimg{
    width: 420px;
    height: auto;
    aspect-ratio: 433/357;
    margin-top: 4vh;
    margin-bottom: 13vh;
    filter: brightness(3.0) blur(20px);
    @media (max-width: 767px) {
        width: 50vw;
        margin-top: 8vw;
        margin-bottom: 15vw;
    }
}



/**
Event
 */
.event_cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width:100%;
    max-width: 1000px;
    gap: 50px;
    margin: 150px auto;
    @media (max-width: 767px) {
        gap: 16px;
        margin: 30px auto;
    }
}
.event_card{
    position: relative;
    width: 320px;
    /*height: 500px;*/
    height:525px;
    min-height: 500px;
    perspective: 1000px; /* 3Dの奥行きを持たせる */

    @media (max-width: 767px) {
        width: calc(50% - 8px);
        height: 70vw;
        min-height: 70vw;
    }
}


.event_card .event_card_front,
.event_card .event_card_back{
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    padding: 50px 10px;
    border-radius: 30px;
    text-align: center;
    background-color: #F2F2F2;
    transform-style: preserve-3d;
    transform: rotateY(0deg);

    backface-visibility: hidden;
    transition:
            transform 0.6s 0s ease-in-out,
            box-shadow 0.4s 0.6s ease-in-out;

    @media (max-width: 767px) {
        border-radius: 15px;
        padding: 25px 10px;
    }
}
.event_card .event_card_back{
    transform: rotateY(180deg);
    background-color: #CF1126;
}

@media (min-width: 768px) {
    .event_card:hover .event_card_front,
    .event_card:hover .event_card_back {
        transition: transform 0.6s 0.4s ease-in-out,
        box-shadow 0.4s 0s ease-in-out;
    }
    .event_card:hover .event_card_front{
        transform: rotateY(180deg);
        box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    }
    .event_card:hover .event_card_back{
        transform: rotateY(360deg);
        box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    }
}

@media (max-width: 767px) {
    .event_card.js-fliped .event_card_front,
    .event_card.js-fliped .event_card_back {
        transition: transform 0.6s 0.4s ease-in-out,
        box-shadow 0.4s 0s ease-in-out;
    }

    .event_card.js-fliped .event_card_front{
        transform: rotateY(180deg);
        box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    }
    .event_card.js-fliped .event_card_back{
        transform: rotateY(360deg);
        box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    }

}


.event_card figure{
    display: block;
    width: 100%;
    height: 70px;
    text-align: center;
    position: relative;
    @media (max-width: 767px) {
        height: 12vw;
    }
}
.event_card img{
    position: absolute;
    width: auto;
    height: 70px;
    left: 50%;
    transform: translateX(-50%);
    @media (max-width: 767px) {
        height: 10vw;
    }
}

.event_card h4{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    color: #CF1126;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.5;
    background: url("../images/40th_cardbg-wh.svg") no-repeat center center;
    background-size: auto 130px;
    min-height: 130px;
    @media (max-width: 767px) {
        margin-top: 10vw;
        font-size: 4vw;
        background-size: auto 65px;
        min-height: 65px;
    }
}
.event_card .event_card_back h4{
    color: #FFFFFF;
    background-image: url("../images/40th_cardbg.svg");
}

.event_card p{
    position: absolute;
    width: 100%;
    text-align: center;
    left:0;
    bottom: 40px;
    color: #D6D6D6;
    font-weight: 500;
    font-size: 24px;
    @media (max-width: 767px) {
        bottom: 20px;
        font-size: 3.2vw;
    }
}


.event_card{
    @media (max-width: 767px) {
        height: 73.5vw;
    }
}
.event_card a.active_card{
    display: block;
    width: 320px;
    height:525px;
    border-radius: 30px;
    @media (max-width: 767px) {
        width: calc( 50vw - 22px);
        height: 73.5vw;
    }
}
.event_card a.active_card img{
    object-fit: cover;
    width: 100%;
    height: auto;
    aspect-ratio: 320/525;

}



.event_card a.active_card{

    transform-style: preserve-3d;
    transition:
            transform 0.3s 0s ease-in-out,
            box-shadow 0.3s 0s ease-in-out,
            filter 0.3s 0s ease-in-out;
    filter:brightness(1.0);


}
@media (min-width: 768px) {
    .event_card:hover a.active_card {
        transition: transform 0.3s 0s ease-in-out,
            box-shadow 0.3s 0s ease-in-out,
            filter 0.3s 0s ease-in-out;
        filter:brightness(1.1);
    }
    .event_card:hover a.active_card{
        box-shadow: 0 2px 20px rgba(0,0,0,0.2),
            0 2px 20px rgba(0,0,0,0.2);
        transform: scale(1.04);
    }
}

@media (max-width: 767px) {
    .event_card.js-fliped a.active_card {
        transition: transform 0.3s 0s ease-in-out,
            box-shadow 0.3s 0s ease-in-out,
            filter 0.3s 0s ease-in-out;
    }

    .event_card.js-fliped a.active_card{
        box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    }

}



/**
Header
 */
#header{
    position: fixed;
    top:0;
    width: 100%;
    z-index: 10000;
    background: rgba(255,255,255, 0);
}
body.js-firstview_scrolled #header{
    background: rgba(255,255,255, 0.90);
}
/*
#header:before{
    position: absolute;
    z-index: -1;
    content:"";
    display: block;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255, 1) 65% ,
        rgba(255,255,255,0.3) 85% ,
        rgba(255,255,255,0) 100%
    );
    opacity: 0.5;
    transform: translateY(-70%);
    transition: all 2s ease;
}

#header:hover:before {
    opacity: 1;
    transform: translateY(0);
}
*/
.header_inner{
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 15px;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
    @media (max-width: 767px) {
        display: block;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
body.js-firstview_scrolled .header_inner{
    padding-top: 10px;
    padding-bottom: 10px;
}
body.js-firstview_scrolled #header:hover .header_inner{
    padding-top: 20px;
    padding-bottom: 20px;
    @media (max-width: 767px) {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
#header a{
    text-decoration: none;
    text-shadow:
            0 0 5px rgba(255,255,255,1),
            0 0 5px rgba(255,255,255,1),
            0 0 5px rgba(255,255,255,1);
}
#header h1 img{
    height: 32px;
}
#header nav ul{
    display: block;
}
#header nav ul li{
    display: inline-block;
}
#header nav ul li a{
    position: relative;
    display: block;
    font-size: 16px;
    padding: 8px 0px;
    margin: 0 10px;
}
#header nav ul li a:before{
    display: block;
    position: absolute;
    content:"";
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #CF1126;
    opacity: 0;
    transform: translateY(-3px) scale(0.8);
    transition: all 0.2s ease-in-out;

}
#header nav ul li a:hover {
    text-decoration: none !important;
}
#header nav ul li a:hover:before {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/**
スマホナビ
 */
#sp_toggle{
    position: absolute;
    top: 12px;
    right: 20px;
    width: 36px;
    height: 36px;
    z-index: 10001;
    background-color: #CF1126;
    border-radius: 5px;
    transition: all 0.3s ease;

    display:none;
    @media (max-width: 767px) {
        display: block;
    }

}
#sp_toggle span:nth-of-type(1),
#sp_toggle span:nth-of-type(2),
#sp_toggle span:nth-of-type(3){
    display: block;
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    left: 8px;
    top: 10px;
}
#sp_toggle span:nth-of-type(2) {
    top: 17px;
}
#sp_toggle span:nth-of-type(3) {
    top: 24px;
}
body.js-sp_nav_open #sp_toggle span:nth-of-type(1) {
    transform: translateY(7px) rotate(45deg);
}
body.js-sp_nav_open #sp_toggle span:nth-of-type(2) {
    opacity: 0;
}
body.js-sp_nav_open #sp_toggle span:nth-of-type(3) {
    transform: translateY(-7px) rotate(-45deg);
}
#header nav{
    @media (max-width: 767px) {
        position: relative;
        width: 100%;
        left: -10px;
        overflow: hidden;
        height: 0;
    }
    transition: height 0.5s 0s ease;
}
body.js-sp_nav_open #header{
    background: rgba(255,255,255, 0.90);
}
body.js-sp_nav_open #header nav{
    @media (max-width: 767px) {
        height: calc(100dvh - 60px);
    }
}
#header nav ul{
    @media (max-width: 767px){
        text-align: right;
        position: relative;
        right: -10px;
    }
}
#header nav ul li{
    @media (max-width: 767px){
        display: block;
    }
}

/**
Footer
 */

#pagetop{
    position: absolute;
    right: 30px;
    top: -70px;
    cursor: pointer;
    @media (max-width: 767px) {
        right: 15px;
        top: -65px;
    }
}
#pagetop:hover{
    opacity: 0.8;
}
#footer {
    position: relative;
    background: #3D4851;
    margin-top: 50px;
    padding: 20px 20px 40px;
    color: #ffffff;
    line-height: 1.5;
    @media (max-width: 767px) {
        padding-bottom: 70px;
    }
}
#footer a {
    color: #ffffff;
}
#footer p {
    color: #ffffff;
    margin: 0;
    font-size: 14px;
}
#footer p#copyright {
    position: absolute;
    left: 20px;
    top: 22px;
}
#footer ul {
    padding-left: 170px;
}
#footer ul li {
    margin-right: 20px;
    display: inline-block;
    font-size: 14px;
}
#footer ul li a {
    text-decoration: none;
    border-bottom: 1px solid #CCCCCC;
}
#footer ul li a:hover {
    border: none;
}

@media screen and (max-width: 768px) {
    #footer p#copyright {
        position: static;
        text-align: center;
    }
    #footer ul {
        padding: 0 0 20px 0;
        text-align: center;
    }
}
#contact_bnr{
    line-height:0;
    display:inline-block;
    position: absolute;
    right: 8px;
    bottom: 8px;
}
@media(max-width: 767px){
    #contact_bnr{
        height: 50px;
        /* width: 180px; */
        width: auto;
        right: 8px;
        bottom: 8px;
    }
    #contact_bnr img{
        height: 100%;
        width: auto;
    }
    #sideicn_search_support{
        right: auto;
        left: 8px;
        bottom: 8px;
        width: 45vw;
        height: 50px;
        transform: translateX(0) translateY(0px);
        border-radius: 3px;
        line-height: 23px;
    }
    #sideicn_search_support span{
        display: none;
    }
}

/*
#footer{
    box-sizing: border-box;
    position: fixed;
    width: 100vw;
    left: 0;
    z-index: 1000;
    bottom: 0px;

    padding: 10px 50px;
    @media (max-width: 767px) {
        padding: 0;
    }
}

#footer #copyright{
    font-size: 13px;
    opacity: 0;
    transition: all 0.5s 2.6s ease;
    @media (max-width: 767px) {
        display: none;
    }
}
#footer.js-start #copyright{
    opacity: 1;
}

#footer nav{
    position: absolute;
    right: 50px;
    bottom: -100px;
    transition: all 0.5s 2.6s ease;
    @media (max-width: 767px) {
        right: 0;
        width: 100%;
    }
}

#footer.js-start nav{
    bottom: 40px;
    @media (max-width: 767px) {
        bottom: 0px;
    }
}

#footer nav ul{
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
#footer nav ul li{
    @media (max-width: 767px) {
        width:100%;
    }
}
#footer nav a{
    display: block;
    background-color: #3D4851;
    background-image: url("../images/arrow.png");
    background-repeat: no-repeat;
    background-position: right 19px center;
    background-size: 28px auto;
    color: #FFF;
    padding: 15px 60px 15px 20px;
    text-decoration: none;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    transition: all 0.2s;

    @media (max-width: 767px) {
        font-size: 4vw;
        width:100%;
        background-size: 20px auto;
    }
}
#footer nav a:hover {
    box-shadow: none;
    background-color: hsl(207, 14%, 38%);
    background-position: right 17px center;
}
 */