@charset "utf-8";
/* 共通部分 */
* {
    margin: 0;
    padding: 0;
}
body {
    font-size: 62.5%;
    color: #432;
    line-height: 2rem;
    text-align: center;
}
img {
    width: 100%;
}
a {
    list-style-type: none;
}
header {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    position: fixed;
    z-index: 10;
    top: 0;
    padding: 5px 4%;
    width: 100%;
    height: 60px;
    align-items: center;
}
h1 a {
    font-size: 2.4rem;
    line-height: normal;
}
/* チェックボックスを非表示にする */
.drawer_hidden {
    display: none;
}
.nav-list {
    display: flex;
}
.nav-list li {
    font-size: 1.8rem;
    padding-left: 45px;
}
.nav-list a:hover {
    color: #0bd;
}
h2 {
    font-size: 1.8rem;
}
p {
    font-size: 1.6rem;
}
/* 共通部分ここまで */
main {
    position: relative;
    text-align: center;
}
.my {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    background-color: rgba(255, 255, 255, .7);
    width: 40%;
    height: 100vh;
}
.my img {
    margin-top: 120px;
    width: 50%;
    border-radius: 50%;
}
.my h2 {
    margin: 28px 0 28px 0;
}
.my div {
    margin: 0 5%;
}
.my div p {
    text-align: left;
}
.swiper img {
    height: 100vh;
    object-fit: cover;
}

@media (max-width:700px) {
    header {
        height: 40px;
        position: sticky;
        z-index: 10;
        top: 0;
    }
    h1 a {
        font-size: 2rem;
    }
    main, .my {
        position: static; /* position: relativeの解除 */
    }
    .my {
        background-color: #fff;
        margin: 0 auto;
        width: unset;
    }
    .my img {
        margin-top: 60px;
    }
    .swiper img {
        width: 100%;
        height: auto;
        top: 40px;
    }
    /* ハンバーガーアイコンの設置スペース */
    .drawer_open {
        display: flex;
        width: 4%;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 100;/* 重なり順を一番上にする */
        cursor: pointer;
    }
    /* ハンバーガーメニューのアイコン */
    .drawer_open span,
    .drawer_open span:before,
    .drawer_open span:after {
        content: '';
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background: #333;
        transition: 0.5s;
        position: absolute;
    }
    /* 三本線の一番上の棒の位置調整 */
    .drawer_open span:before {
        bottom: 8px;
    }
    /* 三本線の一番下の棒の位置調整 */
    .drawer_open span:after {
        top: 8px;
    }
    /* アイコンがクリックされたら真ん中の線を透明にする */
    #drawer_input:checked ~ .drawer_open span {
        background: rgba(255, 255, 255, 0);
    }
    /* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
    #drawer_input:checked ~ .drawer_open span::before {
        bottom: 0;
        transform: rotate(45deg);
    }
    #drawer_input:checked ~ .drawer_open span::after {
        top: 0;
        transform: rotate(-45deg);
    }
    /* メニューのデザイン*/
    .nav-content {
        width: 100%;
        font-size: 1.3rem;
        position: fixed;
        left: 100%; /* メニューを画面の外に飛ばす */
        z-index: 99;
        background-color: #fff;
        transition: .5s;
        height: 100%;
        top: 0;
        /* 追加 */
        overscroll-behavior: contain;
        overflow-y: scroll;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: none;
        /* スクロールバー非表示 */
        scrollbar-width: none; 
        -ms-overflow-style: none;
        /* スマホのタッチアクション無効 */
        touch-action: none;
    }
    .nav-content::-webkit-scrollbar {
        display: none;
        }
    /* メニュー黒ポチを消す */
    .nav-list {
        list-style: none;
        display: block;
        margin-top: 50%;
    }
    .nav-list li {
        padding-left: 0;
        line-height: 3.2rem;
    }
    /* アイコンがクリックされたらメニューを表示 */
    #drawer_input:checked ~ .nav-content {
        left: 0;/* メニューを画面に入れる */
    }
}