@charset "UTF-8";

nav a {
    text-decoration: none;
    color: white;
}

nav {
    margin: 0 0 0 auto;
}

ul,
li {
    list-style: none;
    font-weight: bold;
}

/* ヘッダー */
header {
    padding: 10px 20px;
}

.sp-nav {
    display: none;
}

/* 右から現れるハンバーガーメニュー */
.menu-right {
    z-index: 1;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    display: block;
    background: linear-gradient(0deg, #ffc892, #f36284);
    opacity: 0;
    transform: translateX(100%);
    /* Y軸ではなくX軸を使う */
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    /* スライド速度を0.6秒に設定 */
}

#hamburger {
    position: fixed;
    display: block;
    top: 3em;
    right: 3em;
    width: 30px;
    height: 25px;
    margin: 0 0 0 auto;
    cursor: pointer;
    z-index: 999;
}

#hamburger span,
#hamburger::before,
#hamburger::after {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease-in-out;
    /* 線のアニメーション */
}

#hamburger span {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    transform: translateY(-50%);
}

#hamburger::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
}

#hamburger::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
}

/* メニューが開いたときのクロススタイル */
.hamburger-active #hamburger span {
    opacity: 0;
}

.hamburger-active #hamburger::before {
    top: 45%;
    transform: rotate(45deg);
    /* 上の線を45度回転させてクロス */
    background-color: white;
}

.hamburger-active #hamburger::after {
    bottom: 45%;
    transform: rotate(-45deg);
    /* 下の線を-45度回転させてクロス */
    background-color: white;
}

.menu-right.open {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    /* 開閉両方に適用 */
}

.menu-right ul {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.menu-right li {
    margin: 0;
    padding: 1em;
}

.menu-right li span {
    font-size: 15px;
    color: #333;
}

.menu-right li a,
.menu-right li span {
    display: block;
    padding: 20px 0;
}