html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}





#splash {
    width: 100vw;
    height: 100vh;
    background-color: #f7f6eb;
    position: fixed;
    text-align: center;
    z-index: 99;
}

.ero-out,
.ero-in {
    width: 15vw;
    position: absolute;
    top: 45%;
    transform: translateY(-50%) translateX(-50%);
    -webkit- transform: translateY(-50%) translateX(-50%);
}

.ero-out {
    left: 35%;
}

.ero-in {
    left: 65%;
}

@media screen and (max-width: 820px) {

    .ero-out,
    .ero-in {
        width: 35vw;
    }
}

.ero-out,
.ero-in {
    animation: fadeinout 5s ease infinite none;
    opacity: 0;
}

@keyframes fadeinout {
    0% {
        opacity: 0;
        filter: blur(10px);
    }

    25% {
        opacity: 1;
        filter: blur(0);
    }

    50% {
        opacity: 0;
        filter: blur(10px);
    }

    100% {
        opacity: 0;
        filter: blur(0);
    }

}

.ero-in {
    animation-delay: 2s;
}


#container {
    width: 100vw;
    height: 100%;
    font-family: 'Zen Antique', serif;
}

footer,
#splash2 {
    font-family: 'Zen Antique', serif;
}

#main {
    position: relative;
    height: 100vh;
    background-image: url(assets/img/main.jpg);
    background-position: center;
    background-size: cover;
    align-items: center;
    width: 100%;
    padding-bottom: 120vh;

}


.fade {
    animation: fadein 4s ease;
    animation-fill-mode: forwards;
    opacity: 0;
    animation-delay: 2s;

}

@keyframes fadein {
    0% {
        opacity: 0;
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
    }
}



footer {
    background-color: #666;
    text-align: center;
    color: #fff;
    padding: 5em 0;
    font-size: 1.5em;
}



@media screen and (max-width: 820px) {
    footer {
        padding: 2em 0;
        font-size: 1.5em;
    }
}

/*まずはお決まりのボックスサイズ算出をborer-boxに */
*,
*:before,
*:after {
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
}

html {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 62.5%;
    /*rem算出をしやすくするために*/
}

.btn,
a.btn,
button.btn {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.5;
    position: relative;
    display: inline-block;
    padding: 1rem 4rem;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    letter-spacing: 0.1em;
    color: #212529;
    border-radius: 0.5rem;
}

.btn--orange,
a.btn--orange {
    color: #fff;
    background-color: #506a81;
}

.btn--orange:hover,
a.btn--orange:hover {
    color: #fff;
    background: #83aed3;
}

a.btn--radius {
    border-radius: 100vh;
}

.btn--orange2,
a.btn--orange2 {
    color: #fff;
    background-color: #924f4b;
}

.btn--orange2:hover,
a.btn--orange2:hover {
    color: #fff;
    background: #b05f5a;
}

a.btn--radius {
    border-radius: 100vh;
}

.top_main {
    height: 60vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.kagi {

    right: 0;
    text-align: center;
    transform: translateX(200%);
    opacity: 0;
    animation: slide-in-anime 1.5s ease-out forwards;
    animation-delay: 2.5s;

}

@keyframes slide-in-anime {
    20% {
        opacity: 0;
    }

    60% {
        transform: translateX(3%);
    }

    75% {
        transform: translateX(-1%);
    }

    100% {
        opacity: 1;
        transform: translateX(0%);
    }
}

.hako {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    width: 40%;
    padding: 4em;
}

.hdnk {

    left: 0%;
    text-align: center;
    transform: translateX(-200%);
    opacity: 0;
    animation: slide-in-anim 1.5s ease-out forwards;
    animation-delay: 2.5s;
}

@keyframes slide-in-anim {
    20% {
        opacity: 0;
    }

    60% {
        transform: translateX(-3%);
    }

    75% {
        transform: translateX(1%);
    }

    100% {
        opacity: 1;
        transform: translateX(0%);
    }
}

.kagi img {
    width: 40%;
    margin: 0 auto;
}

.hdnk img {
    width: 100%;
    margin: 0 auto;
}

.link {
    display: block;
    margin: 2em auto;
    text-align: center;
}

#main h2 {
    color: #fff;
    font-size: 5em;
    text-align: center;
    filter: drop-shadow(2px 4px 6px black);
}




@media screen and (max-width: 820px) {
    #main {

        background-image: url(assets/img/main_sp.jpg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        padding-bottom: 0;
    }


    .top_main {
        height: 95vh;
        flex-wrap: wrap;

    }

    .hdnk {
        width: 80%;
    }

    .kagi {
        width: 80%;
    }

    #main h2 {
        font-size: 2.1em;
    }
}

.main_tw {
    width: 25%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1em 0;
    margin-bottom: 5em;
    text-align: center;
}

.main_tw img {
    width: 20%;

}


@media screen and (max-width: 820px) {
    .main_tw {
        width: 50%;
        border-radius: 10px;
        padding: 1em 0;
        margin-bottom: 0em;
    }

    .main_tw img {
        width: 20%;

    }
}

@media screen and (min-width: 821px) {
    .sp {
        display: none;
    }
}

@media screen and (max-width: 820px) {
    .pc {
        display: none;
    }
}