/* 800pxで切り替わる */

html {
    font-size: 100%;
    font-family: "Noto Sans JP", sans-serif;
    scroll-behavior: smooth;
    scroll-margin-top: 100px;
}

body{
    background-color: #efefef;
}

header {
    background-color: #47e596;

    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-inline: 10%;
    height: 100px;
    display: flex;
}

#logo {
    width: 100%;
    @media screen and (min-width: 800px) {
        width: 50%;
    }

    white-space: nowrap;
    text-align: center;
    line-height: 100px;

    font-size: 2rem;
}

#nav {
    display: none;
    @media screen and (min-width: 800px) {
        display: flex;
    }

    width: 50%;

    justify-content: center;
    align-items: center;
}

#nav li {
    height: fit-content;
    margin-inline: 10px;
    transition: all 1s;
    position: relative;
}

#nav li::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: #000000;
    bottom: 10px; /*アンダーラインが現れ始める位置（aタグの下辺からの高さ）*/
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

#nav li:hover::after {
    visibility: visible;
    bottom: -4px; /*アニメーションが止まる位置*/
    opacity: 1;
}

#hamburger{
    display: none;
    @media screen and (max-width: 800px) {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 0;
        right: 0;
    }

    width: 20%;
    height: 100px;
}

#hamburger button{
    height: 60%;
}

#hamburger button:hover{
    /*background-color: yellow;*/
}

#hamburger div{
    background-color: black;
    width: 35px;
    height: 5px;
    margin-bottom: 5px;
}

#menu_wrapper{
    position: relative;
}

#menu_wrapper #menu{
    background-color: aqua;
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100vh;
    transition: width .5s 0s ease;
    z-index: 20;
}

#menu_wrapper #background{
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100vh;
    background-color: rgb(0, 0, 0);
    opacity: .5;
    z-index: 15;
}

#menu #cross_b{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100px;
}

#cross_b img{
    height: 60%;
}

#menu.active{
    width: 80vw !important;
}
#background.active{
    width: 100vw !important;
}

.inner_first {
    width: 80%;
    max-width: 860px;
    margin: 140px auto 40px;
    padding: 30px;
    border-radius: 8px;

    background-color: #fff;
}

.inner {
    width: 80%;
    max-width: 860px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 8px;

    background-color: #fff;
}

h2{
    font-size: 2rem;
    border-bottom: 1px solid black;
    margin-block: 1.5rem;
}
h3{
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
h4{
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.main_text{
    padding-inline: 5%;
    padding-block: 20px;
}

.inline_img{
    text-align: center;
    padding-block: 20px;

    height: 360px;
}
.inline_img img{
    border-radius: 5px;
    /*width: 80%;*/
    height: 320px;
    width: 80%;
    object-fit: cover;
}
.paragraph{
    padding-block: 4px;
}

.marker{
    /*transition: background-color .5s 0s ease;*/
    display: inline;
    background: linear-gradient(transparent 50%, yellow 50%) no-repeat;

    /* マーカーの横方向を0にして縮める */
    background-size: 0 100%;

    /* マーカーが引かれる速度を指定 */
    transition:background-size 1.5s;

}

.marker_active{
    background-size: 100% 100%;
}

footer{
    background-color: #47e596;
    padding-inline: 10%;
    text-align: center;
}