
/* カスタムプロパティの定義 */
:root {
    --bg-color-0: #f2b304;
    --bg-color-1: #e94816;
    --bg-color-2: #007bbb;
    --bg-color-3: #22ac38;
}

body{
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color:#603813;
    font-size: 18px;
    font-family: 'Noto Sans JP', "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "HiraKakuPro-W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    background: #fff;
    font-weight: 400;
    font-style: normal;
}

img{
    width: 100%;
    vertical-align: bottom;
}


/* arrow */
.arrow::before,
.arrow::after {
    content: "";
    position: absolute;
    top: calc(50% - 2px);
    right: 20px;
    width: 13px;
    height: 4px;
    border-radius: 9999px;
    background-color: #603813;
    transform-origin: calc(100% - 2px) 50%;
}
.arrow::before {
    transform: rotate(45deg);
}
.arrow::after {
    transform: rotate(-45deg);
}


#wrapper{
    
}


#main{
    max-width: 500px;
    margin-inline: auto;
    background: url(../img/bg.webp) #8bdaff repeat-y 50% 0 / 100vw auto;
    background-size: contain;
    overflow: hidden;
    box-shadow: 10px 0px 10px -10px rgba(3, 0, 0, 0.06), -10px 0px 10px -10px rgba(3, 0, 0, 0.06);
    z-index: 2;
}


#logo{
    position: relative;
    padding: 20px 20px 0 20px;
    background-color: #4bc5ff;
    z-index: 100;
}
#logo img {
    width: 30%;
}


#main #header h1{
    
}
#main #header h1 img{
    vertical-align: bottom;
}


#bg-contents{
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
/* right */
#bg-contents #right-contents{
    position: absolute;
    top: 0;
    right: 0;
    width: calc(50% - 250px);
    height: 100%;
}
#bg-contents #right-contents ul{
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(0, -50%);
}
#bg-contents #right-contents ul li{
    margin-bottom: 1rem;
    cursor: pointer;
    opacity: 0;
}
#bg-contents #right-contents ul li:last-child{
    margin-bottom: 0;
}
#bg-contents #right-contents ul li a{
    background-color: #fdd500;
	border: 1px solid transparent;
	border-radius: 35px;
    position: relative;
    padding: 10px 20px;
    display: block;
    width: 320px;
}
#bg-contents #right-contents ul li a::before{
    content: '';
	position: absolute;
	top: -5px;
	left: -5px;
	width: 100%;
	height: 100%;
	background-color: transparent;
	border: 1px solid #333;
	border-radius: 35px;
    transition: 0.2s;
}
#bg-contents #right-contents ul li a:link,
#bg-contents #right-contents ul li a:hover,
#bg-contents #right-contents ul li a:visited{
    color:#333;
    text-decoration: none;    
}
#bg-contents #right-contents ul li a:hover{
    background-color: #f9ca2f;
}
#bg-contents #right-contents ul li a:hover::before{
    top: 0;
    left: 0;
}

/* left */
#bg-contents #left-contents{
    position: absolute;
    top: 0;
    left: 0;
    width: calc(50% - 250px);
    height: 100%;
}
#bg-contents #left-contents img{
    max-width: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
 #bg-contents #right-contents,#bg-contents #left-contents{
    background: #d7eeff;
    opacity: 0;
    transition: 0.5s;
} 

/* #bg-contents #right-contents,#bg-contents #left-contents{
    background: url(../img/bg_main01.webp) repeat-y 50% 0 / 100vw auto;
    background-size: contain;
    opacity: 0;
    transition: 0.5s;
} */


section{
    padding: 20px 20px 80px;
}

/* greeting */
#greeting{
    text-align: center;
    padding-top: 80px;
}
#greeting span{
    font-weight: bold;
    font-size: 1.4rem;
    display: inline-block;
    margin-bottom: 1rem;
}


.scroll {
    position: relative;
}
.scroll::before {
    animation: scroll 2s infinite;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    content: "";
    height: 15px;
    margin: auto;
    position: absolute;
    left: 30px;
    top: -11px;
    width: 15px;
}


@keyframes scroll {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translate(0, 0);
    }
    40% {
        opacity: 1;
    }
    80% {
        opacity: 0;
        transform: rotate(-45deg) translate(-18px, 18px);
    }
    100% {
        opacity: 0;
    }
}


@keyframes yure {
	0% {transform: translate(2px, 0px);}
	5% {transform: translate(-2px, 0px);}
	10% {transform: translate(2px, 0px);}
	15% {transform: translate(-2px, 0px);}
	20% {transform: translate(2px, 0px);}
	25% {transform: translate(-2px, 0px);}
	30% {transform: translate(0px, 0px);}
}


/* animation */
.bgextend{
    animation-name: bgextendAnimeBase;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    position: relative;
    overflow: hidden;
    opacity: 0;
}
@keyframes bgextendAnimeBase {
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
.bgappear{
    animation-name: bgextendAnimeSecond;
    animation-duration: 1s;
    animation-delay: 0.6s;
    animation-fill-mode: forwards;
    opacity: 0;
}
@keyframes bgextendAnimeSecond {
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}


@keyframes bgExAnime {
    0%{
        transform-origin: left;
        transform: scaleX(0);
    }
    50%{
        transform-origin: left;
        transform: scaleX(1);
    }
    50.0001%{
        transform-origin: right;
    }
    100%{
        transform-origin: right;
        transform: scaleX(0);
    }
}


a.btn{
    display: block;
    position: relative;
    padding: 20px;
    width: 100%;
    border-radius: 9999px;
    text-align: center;
    text-decoration: none;
    background: #ffe83e;
    transition: 0.5s;
    font-weight: bold;
    z-index: 100;
}
a.btn:link,a.btn:hover,a.btn:visited{
    color: #603813;
}


/* section */
section#about {
    background: url(../img/content-bg01.png) #8bdaff repeat-y 50% 0 / 100vw auto;
    background-size: contain;
    overflow: hidden;
    box-shadow: 10px 0px 10px -10px rgba(3, 0, 0, 0.06), -10px 0px 10px -10px rgba(3, 0, 0, 0.06);
    z-index: 2;
}
section#event {
    background: url(../img/content-bg02.png) #bdf3b4 repeat-y 50% 0 / 100vw auto;
    background-size: contain;
    overflow: hidden;
    box-shadow: 10px 0px 10px -10px rgba(3, 0, 0, 0.06), -10px 0px 10px -10px rgba(3, 0, 0, 0.06);
    z-index: 2;
}
section#exam {
    background: url(../img/content-bg03.png) #eae1ff repeat-y 50% 0 / 100vw auto;
    background-size: contain;
    overflow: hidden;
    box-shadow: 10px 0px 10px -10px rgba(3, 0, 0, 0.06), -10px 0px 10px -10px rgba(3, 0, 0, 0.06);
    z-index: 2;
}
section#mogura {
    background: #ace5ff;
}


/* content */
section #content{
    margin: 60px 0 0;
}
section #content dl{
    position: relative;
    margin-bottom: 50px;
}
section #content dl:last-child{
    margin-bottom: 0;
}
section #content dt {
    position: absolute;
    top: -35px;
    left: -10px;
    padding: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    background-color: #fff;
    border: 1px solid #603813;
}
section #content dt img{
    width: 70px;
    border-radius: 70px;
    object-fit: contain;
    border: 4px solid #fff;
    background: #fff;
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.1));
}   
section #content dd{
    background: #fff;
    padding: 40px;
    text-align: justify;
    box-sizing: border-box;
    border: 1px solid #603813;
}
section #content dd span{
    font-weight: bold;
    color: #d6293a;
    background: #ffcbce;
}
section #content dd p:not(:last-child) {
    padding-bottom: 1rem;
}
section #content dd p:last-of-type {
    padding-bottom: 20px;
}

/* mogura */
section#mogura {
    position: relative;
}
section#mogura #up .moguraup{
    position: absolute;
    top: 60px;
    right: 0px;
    width: 90px;
    transition: 0.8s;
}
/* section#mogura #up .moguraup.view{
    top: -2px;
} */

/* footer */
footer{
    height: 90px;
    background: #603813;
    color: #fff;
    font-size: 0.875rem;
}
footer .inner{
    padding: 0 20px;
}
footer .inner p{
    margin-bottom: 40px;
    border-bottom: 1px solid #7d7d7d;
    padding: 15px;
    border-top: 1px solid #7d7d7d;
}
footer .inner dl{
    padding-bottom: 0px;
}
footer .inner dd:first-of-type{
    margin-bottom: 1rem;
}
footer .inner ul{
    margin: 40px 0 80px;
}
footer .inner a:link,
footer .inner a:hover,
footer .inner a:visited{
    color: #bdbbbb;
}
footer address{
    padding: 40px 0 50px;
    line-height: 1;
    text-align: center;
}


/***  PC  ***/
@media all and (min-width: 850px) {

    #logo{
        display: none;
    }
    
    #bg-contents #right-contents,#bg-contents #left-contents{
        opacity: 1;
    }
}