:root{
    --accentColor: rgb(36, 147, 110);
}
::selection{
    background: var(--accentColor);
    color: #eee;
}
body{
    margin: inherit;
    font-family: "Noto Sans JP", sans-serif;
}
main{
    /*width: 100vw;*/
    display: flex;
    flex-direction: column;
    align-items: center;
}
h1{
    text-align: center;
}
footer{
    font-size: small;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}
footer a:any-link{
    color: var(--accentColor);
}
article{
    width: clamp(200px, 80vw, 800px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin: 0.5em;
    padding: 1em;
    transition: .3s;
}
article h2 {
    display: flex;
    align-items: center;
    font-size: 2rem;
    margin: 0 10px 0 0;
}
article a{
    background: var(--accentColor);
    border-radius: 1rem;
    padding: 5px 15px;
    margin: 5px;
    text-decoration: none;
    font-size: large;
    color: white;
}

#menu{
    display: none;
}
.hamburgerWrapper{
    position: fixed;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 10px;
    left: 10px;
    cursor: pointer;
    z-index: 200;
}
.hamburger, .hamburger::after, .hamburger::before{
    width: 30px;
    height: 4px;
    background: var(--accentColor);
}
.hamburger{
    position: relative;
    transition: background .1s .3s ease;
}
.hamburger::after, .hamburger::before{
    content: '';
    position: absolute;
    transition: top .3s .3s ease, transform .3s ease, background .6s ease;
}
.hamburger::before{
    top: -8px;
}
.hamburger::after{
    top: 8px;
}
#menu:checked ~ .hamburgerWrapper .hamburger{
    background: transparent;
}
#menu:checked ~ .hamburgerWrapper .hamburger::before, #menu:checked ~ .hamburgerWrapper .hamburger::after{
    transition: top .3s ease, transform .3s .3s ease;
    background: #eee;
    top: 0;
}
#menu:checked ~ .hamburgerWrapper .hamburger::before{
    transform: rotate(45deg);
}
#menu:checked ~ .hamburgerWrapper .hamburger::after{
    transform: rotate(-45deg);
}
#menu:checked ~ .menu{
    left: 0;
}
.menu{
    position: fixed;
    background: var(--accentColor);
    color: #eee;
    top: 0;
    left: -100vw;
    width: calc(100vw - 40px);
    height: calc(100dvh - 70px);
    padding: 70px 20px 0 20px;
    z-index: 180;
    transition: left .6s ease;
}
.menu ul{
    flex-direction: column;
    padding: initial;
    list-style: none;
}
.menu a{
    color: #eee;
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: #eee solid 4px;
    transition-duration: .3s;
}
.menu a:hover{
    background: #eee;
    color: var(--accentColor);
}