@charset "UTF-8";

/* ナビゲーション */
body {
    position: relative;
}

nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateY(-100%);
    background-color: var(--theme-color);
    z-index: 2;
    overflow-y: auto;
}

@media screen and (min-width: 480px) {
    nav {
        display: inline-block;
        position: static;
        padding: 16px;
        height: auto;
        transform: translateY(0);
        z-index: 0;
        overflow-y: hidden;
    }   
}

@media screen and (min-width: 1280px) {
    nav {
        padding: 24px;
    }   
}


nav.open {
    animation: nav-open .75s forwards;
    padding: 16px;
}

nav.close {
    animation: nav-close .75s forwards;
}

@keyframes nav-close {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

@keyframes nav-open {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

/* ハンバーガーメニュー */
#hamburgar.inactive span:nth-of-type(1) {
    animation: hamburgar-bar01 .75s forwards;
}

@keyframes hamburgar-bar01 {
    0% {
      transform: translateY(8px) rotate(45deg);
    }
    50% {
      transform: translateY(8px) rotate(0);
    }
    100% {
      transform: translateY(0) rotate(0);
    }
}

#hamburgar.inactive span:nth-of-type(2) {
    transition: all .25s .25s;
    opacity: 1;
}

#hamburgar.inactive span:nth-of-type(3) {
    animation: hamburgar-bar03 .75s forwards;
}

@keyframes hamburgar-bar03 {
    0% {
      transform: translateY(-8px) rotate(-45deg);
    }
    50% {
      transform: translateY(-8px) rotate(0);
    }
    100% {
      transform: translateY(0) rotate(0);
    }
}

#hamburgar.active span:nth-of-type(1) {
    animation: active-hamburgar-bar01 .75s forwards;
}

@keyframes active-hamburgar-bar01 {
    0% {
      transform: translateY(0) rotate(0);
    }
    50% {
      transform: translateY(8px) rotate(0);
    }
    100% {
      transform: translateY(8px) rotate(45deg);
    }
}

#hamburgar.active span:nth-of-type(2) {
    opacity: 0;
}

#hamburgar.active span:nth-of-type(3) {
    animation: active-hamburgar-bar03 .75s forwards;
}

@keyframes active-hamburgar-bar03 {
    0% {
      transform: translateY(0) rotate(0);
    }
    50% {
      transform: translateY(-8px) rotate(0);
    }
    100% {
      transform: translateY(-8px) rotate(-45deg);
    }
}

.hamburgar-wrapper {
    position: fixed;
    bottom: 116px;
    right: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: var(--theme-color);
    z-index: 3;
}

.hamburgar-wrapper:has(.active) {
    opacity: 1 !important;
    transition: .5s;
}

@media screen and (min-width: 480px) {
    .hamburgar-wrapper {
        display: none;
    }   
}

.hamburgar {
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.hamburgar span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3.6px;
    background-color: #fff;
    border-radius: 4px;
}

.hamburgar, .hamburgar span {
    display: inline-block;
    transition: all .5s;
    box-sizing: border-box;
}

.hamburgar span:nth-of-type(1) {
    top: 0;
}

.hamburgar span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburgar span:nth-of-type(3) {
    bottom: 0;
}

/* アコーディオン */
.accordion-heading {
    display: flex;
    align-items: center;
    width: 100%;
    height: 56px;
    color: var(--theme-color);
    font-weight: bold;
    background-color: #fff;
    padding: 15px 0 15px 20px;
}
.accordion-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 56px;
    background-color: var(--theme-color);
    padding: 15px 0 15px 20px;
    border-bottom: 1px solid #fff;
}
#accordion a{
    color: #fff;
    text-decoration: none;
}
#accordion ul{
    background-color: var(--theme-color);
    width: 100%;
    color: #fff;
    float: left;
}
#accordion li{
    list-style: none;
}

#accordion .include-accordion {
    margin-bottom: calc(64px * 2 + 10px);
}

#accordion .include-accordion li.active ul{
    border-bottom: 1px solid #fff;
}

#accordion .include-accordion ul{
    height: 0;
    padding: 0;
    overflow: hidden;
    transition: .5s;
    border-top: 1px solid #fff;
    background-color: var(--theme-color-2);
    margin:0;
}
#accordion .include-accordion li li a{
    display: flex;
    align-items: center;
    list-style: none;
    height: 56px;
    border-bottom: 1px dotted #fff;
    padding: 15px 0 15px 20px;
}
#accordion ul:nth-of-type(1) li.active li:last-child a{
    border-bottom: none; 
}
#accordion button{
    position: relative;
    border: none;
    outline: none;
    width: 100%;
    height: 56px;
    background-color: inherit;
    color: #fff;
    cursor: pointer;
    text-align: left;
    padding: 15px 0 15px 20px;
}
#accordion button::before,
#accordion button::after{
    content:"";
    position: absolute;
    top: 50%;
    width: 1.5px;
    height: 8px;
    background-color: #fff;
}
#accordion button::before{
    transform: translateY(-50%) rotate(-45deg);
    right: 35px;
    transition:.5s;
}
#accordion button::after{
    transform: translateY(-50%) rotate(45deg);
    right: 30px;
    transition:.5s;
}
#accordion li.active button::before{
    transform: translateY(-50%) rotate(-135deg);
    transition:.5s;
}
#accordion li.active button::after{
    transform: translateY(-50%) rotate(135deg);
    transition:.5s;
}
#accordion ul.active{ overflow-y: auto; }