/* input非表示 */
#check_input {
    display: none;
}

/* ハンバーガーボタン */
#menu_btn {
    position: fixed;
    top: 30px;
    right: 30px;
    height: 60px;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background-color: #fff;
    cursor: pointer;
}

/* 三本線*/
#menu_btn span,
#menu_btn span::before,
#menu_btn span::after {
    content: "";
    display: block;
    position: absolute;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #CE5D8B;
    transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
    /*アニメーションのイージングも設定しておく*/
}

#menu_btn span::before {
    bottom: 8px;
}

#menu_btn span::after {
    top: 8px;
}

/* クリックされたら三本線が×に変化する */
#check_input:checked~#menu_btn span {
    background-color: transparent;
}

#check_input:checked~#menu_btn span::before {
    bottom: 0;
    transform: rotate(45deg);
}

#check_input:checked~#menu_btn span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ドロワーメニュー */
#menu_cont {
    position: fixed;
    top: 0;
    left: 100%;
    /*left 100%で画面の外に出しておく*/
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 90;
    transition: left 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* ドロワーメニュー外の背景 */
#drawer_back {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 80;
}

/* メニューリストの装飾 */
#menu_cont ul {
    padding: 10% 10% 0
}

#menu_cont ul li {
    list-style: none;
}

#menu_cont ul li a {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 5px;
    color: #CE5D8B;
    text-decoration: none;
}

#menu_cont ul li a:hover {
    opacity: 0.7;
}

/* クリックされたらドロワーメニュー表示 */
#check_input:checked~#menu_cont {
    left: 20%;
}

#check_input:checked~#drawer_back {
    display: block;
}

/* wrapper コンテンツ */
#wrapper {
    position: relative;
    left: 0;
    transition: left 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
    /* ドロワーメニューと同じ設定にしておく */
}

#check_input:checked~#wrapper {
    left: -80%;
}


/*コンテンツ部分*/
body {
    /*background: #CE5D8B;*/
    font-size: 20px;
    color: #000000;
}

header {
    background: #640E93;
    height: 100px;
    padding: 20px;
    margin: 10px;
}

header h1 {
    font-size: 30px;
}

main {
    background: #820184;
    height: 300px;
    padding: 20px;
    margin: 10px;
}

footer {
    background: #9F1783;
    height: 300px;
    padding: 20px;
    margin: 10px;
}

h2 {
    font-size: 24px;
}