@charset "utf-8";

/* 基本設定ここから */
:root {
--main-color: #27AF9F;
--sub-color: #BEE7E2;
--bg-color: #F7F8F8;
--text-color: #666666;
--mouseover-color: #7DCFC5;
}

img{
    width: 100%;
}
/* 基本設定ここまで */

html {
    visibility: hidden;
    scroll-padding-top: 114px;
}

html.wf-active {
    visibility: visible;
}

body{
    top: 0;
    left: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: "a-otf-ud-shin-maru-go-pr6n", sans-serif;
    color: var(--text-color);
    @media screen and (max-width: 1032px){
        height: 100dvh;
        background-color: var(--bg-color);
        overflow-y:hidden;
    }
}
button {
    touch-action: manipulation;
}
.home_button{
        position: relative;
        width: 53px;
        margin-left: 59px;
        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 6.4px;
            background-color: rgba(0, 0, 0, 0.2);
            opacity: 0;
            transition: opacity 0.3s ease; 
        }
        &:hover{
            &::before{
                opacity: 1;
            }
        }
        @media screen and (max-width: 1032px){
            width: 35px;
            margin-left: 30px;
            &::before {
                border-radius: 4.2px;
            }
        }
        @media screen and (max-width: 575px){
            margin-left: 20px;
        }
    }
    h1{
        font-weight: bold;
        margin: auto;
        display: flex;
        align-items: center;
        position: relative;

        @media screen and (max-width: 1032px){
            padding-right: 0;
        }
        .h1-title {
            font-size: 35px; 
            margin: 0;
            font-weight:900;
            @media screen and (max-width: 1032px){
                font-size: 1.9em;
                padding-bottom:30px;
            }
            @media screen and (max-width: 575px){
                font-size: 1.1em;
            }
        }
    }
    .hamburger_area{
        display: none;
    }
        @media screen and (max-width: 1032px){
            .hamburger_area{
                display: block;
                position:fixed;
                background-color:var(--main-color);
                border-radius:20%;
                left:92%;
                top:22.5px;
                z-index:99;
                @media screen and (max-width: 850px){
                    left:88%;
                }
                @media screen and (max-width: 575px){
                    left:87%;
                    top:13px;
                }
                @media screen and (max-width: 400px){
                    left:82%;
                }
                /* ハンバーガーメニュー */
                .header_hamburger {
                    position: relative;
                    width: 58px;
                    height: 58px;
                }
                .hamburger {
                    background-color: transparent;
                    border-color: transparent;
                    z-index: 100;
                    span {
                        display: block;
                        position: absolute;
                        width: 60%;
                        height: 2px;
                        margin-top:13px;
                        left: 20%;
                        background-color: #fff;
                        transition: ease .35s;
                        &:nth-child(1) {
                            top: 3px;
                        }
                        &:nth-child(2) {
                            top: 14px;
                        }
                        &:nth-child(3) {
                            top: 25px;
                        }
                        @media screen and (max-width: 575px){
                            margin-top:13px;
                        }
                    }
                }  
                /* ハンバーガーメニュークリック後のスタイル */   
                .hamburger.active{
                    span{
                        &:nth-child(1) {
                            top: 11px;
                            transform: rotate(45deg);
                        }
                        &:nth-child(2) {
                            width: 0;
                            left: 50%;
                        }
                        &:nth-child(3) {
                            top: 11px;
                            transform: rotate(-45deg);
                        } 
                    }
                   }
                /* オフキャンバス */
                .offcanvas_menu_area {
                    position: fixed;
                    top: 0;
                    right: 0;
                    width: 100%;
                    max-width: 340px;
                    height: 100%;
                    transform: translateX(100%);
                    background-color: var(--main-color);
                    transition: ease .4s;
                    z-index: 99;
                    overflow-y: auto;
                    color:white;
                    @media screen and (max-width: 400px){
                        max-width: 250px;
                    }
                    .offcanvas_menu{
                        margin-top: 130px;
                        li.nav__item{
                            padding-left: 50px;
                            margin-bottom: 30px;
                            font-size: 1.25em;
                            small.font_19{
                                font-size: 19px;
                            }
                            small.font_18{
                                font-size: 18px;
                            }
                        @media screen and (max-width: 390px){
                                font-size: 0.9em;
                        }
                        }
                        li.nav__item.current{
                            display: flex;
                            align-items: center;
                            padding-left: 0;
                            &::before{
                                display: block;
                                content: '';
                                width: 30px;
                                height: 20px;
                                margin-right: 20px;
                                background-color: rgba(255, 255, 255, 0.5);
                            }
                        }
                    }
                }
                .offcanvas_menu_area.active {
                    transform: translateX(0);
                }
                .offcanvas_backdrop.active{
                    width: 100vw;
                    height: 100vh;
                    z-index: 5;
                    transition: all 0.5s;
                }
            }
        }
/* ヘッダーエリア */
header{
    height: 85px;
    display: flex;
    align-items: center;
    color: #fff;
    background-color: var(--main-color);
    margin:0 240px;
    border-radius: 0px 0px 20px 20px;
    position:fixed;
    right:0px;
    left:0px;
    @media screen and (max-width: 1550px){
        margin:0 100px;
    }
    @media screen and (max-width: 1032px){
        height: 130px;
        margin:0;
        width:100%;
        border-radius:0;
    }
    .home_button{
        position: relative;
        width: 53px;
        margin-left: 59px;
        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 6.4px;
            background-color: rgba(0, 0, 0, 0.2);
            opacity: 0;
            transition: opacity 0.3s ease; 
        }
        &:hover{
            &::before{
                opacity: 1;
            }
        }
        @media screen and (max-width: 1032px){
            width: 35px;
            margin-left: 30px;
            &::before {
                border-radius: 4.2px;
            }
        }
        @media screen and (max-width: 575px){
            margin-left: 20px;
        }
    }
    h1{
        font-weight: bold;
        margin: auto;
        display: flex;
        align-items: center;
        position: relative;

        @media screen and (max-width: 1032px){
            padding-right: 0;
        }
        .h1-title {
            font-size: 35px; 
            margin: 0;
            font-weight:900;
            @media screen and (max-width: 1032px){
                font-size: 1.9em;
                padding-bottom:30px;
            }
            @media screen and (max-width: 575px){
                font-size: 1.1em;
                padding-bottom:50px;
            }
        }
    }
}

/* グレー背景のエリア */
main {
    display: grid;
    grid-template:
    'side main'
    'footer footer';
    grid-template-columns:416px calc(100% - 416px) 1000px;
    padding-top: 140px;
    border-radius: 50px 50px 0 0;
    background-color: white;
        @media screen and (max-width: 1600px){
            grid-template-columns:326px calc(100% - 326px);
        }
        @media screen and (max-width: 1032px){
            display: flex;
            flex-direction: column;
            height: calc(100dvh - 90px);
            min-height: auto;
            padding-top: 0px;
            border-radius:  0;
        }
        @media screen and (max-width: 575px){
            padding-top: 15px;
        }
    /* サイドメニュー */
    #side{
       grid-area: side;
        .side_menu_area{        
            .side_menu{
                position:fixed;
                width: 18vw;
                max-width:350px;
                min-width:305px;
                padding: 30px 5px 30px 0;
                color: #fff;
                font-size: 20px;
                border-radius: 30px;
                background-color: var(--main-color);
                @media screen and (max-width: 1400px){
                    width: 260px;
                }
                li.nav__item{
                    display: block;
                    margin-block: calc((1em - 1lh) / 2);
                    margin-bottom: 30px;
                    padding-left: 50px;
                    background-color: var(--main-color);
                    &:last-child{
                        margin-bottom: 0;
                    }
                    }
                    li.nav__item.current{
                        display: flex;
                        align-items: center;
                        padding-left: 0;
                        &::before{
                            display: block;
                            content: '';
                            width: 30px;
                            height: 20px;
                            margin-right: 20px;
                            background-color: rgba(255, 255, 255, 0.5);
                    }
                }        
        @media screen and (max-width: 1032px){
            display: none;
        }
    }
}
    }}