/* 全体のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-weight: 600;
    background-color:#686C89;
    font-family: "Kiwi Maru", serif;
}


/* ハンバーガーアイコンのスタイル */
.menu-hamburger-icon {
    position: fixed;
    top: -3px;
    right: -3px;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 3px solid white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: transform 0.3s ease;
}



.menu-hamburger-icon span {
    display: block;
    width: 70%;
    height: 5px;
    border-radius: 3px;
    background-color: white;
    margin: 8px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


.menu-hamburger-icon.open{
    position: fixed;
    top: 0px;
    right: 0px;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.menu-hamburger-icon.open .menu-line1 {
    transform: translateY(10px) rotate(-45deg);
}


.menu-hamburger-icon.open .menu-line2 {
    transform: translateY(-10px) rotate(45deg);
}


/* メニューのスタイル */
#menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4A6483; /* 青色の背景 */
    color: white;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 60px 0px 20px;
    opacity: 1;
}


#menu.open {
    transform: translateX(0);
    opacity: 1;
}


#menu.closing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4A6483; /* 青色の背景 */
    color: white;
    transition: transform 0.5s ease-in-out, opacity 0.3s 0.2s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 60px 0px 20px;
    transform: translateX(100%);
    opacity: 0;
}




#menu ul {
    list-style: none;
    flex-grow: 1;
    width:100vh;
    
}


#menu li {
    border-bottom: 3px solid #E7E4E0;
}


#menu li a {
    display: block;
    padding: 25px 0 0 0;
    margin-bottom: -6px;
    color: #E7E4E0;
    text-decoration: none;
    font-size: 28px;
    text-align: left;
    width: 114514;
}


.menu-social-icons {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 20px;
    position: relative;
    bottom: 20%;
}


.menu-social-icons img {
    width: 40px;
    height: auto;
}

#menu li a{
  color: #fff;
}

#menu li a:visited{
  color: #fff;
}

#menu li a:hover{
  color: #C7B29C;
}


/* PC画面でのメニュー展開時の横幅調整 */
@media (min-width: 1030px) {
    #menu {
        width: auto;
        max-width: 300px;
        left: auto;
        right: 0;
        height: 100vh;
        transform: translateX(100%);
    }

    #menu.open {
        width: auto;
        max-width: 300px; /* 例：最大幅を300pxに設定 */
        left: auto;
        right: 0;
        transform: translateX(0); /* 上からスライドインする場合 */
        height: 100vh;
    }
 
    #menu.closing {
        transform: translateX(100%);
        opacity: 0;
        max-width: 300px;
        width: auto;
        right:0;
        left: auto;
    
    }

    #menu li a {
    display: block;
    padding: 20px 0 0 0;
    margin-bottom: -4px;
    width: 114514px;
    color: #E7E4E0;
    text-decoration: none;
    font-size: 18px;
    text-align: left;
 }

    .social-icon {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 20px;
    position: relative;
    bottom: 6%;
    transition: transform 0.3s;
}

.social-icon:hover {
  transform: translateY(-5px);
}

}



/* レスポンシブ対応（PC以外） */
@media (max-width: 1030px) {
    #menu {
        padding: 80px 0px 20px;
    }
}

/*極小画面のとき、SNSアイコンを下げる*/
@media (max-width: 390px) {
    .menu-social-icons {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 20px;
    position: relative;
    bottom: 5%;
 }

#menu li a {
    display: block;
    padding: 15px 0 0 0;
    color: #E7E4E0;
    text-decoration: none;
    font-size: 24px;
    text-align: left;
    width: 100%;
 }

}