/* 全体の基本スタイル */
body {
    margin: 0;
    font-family: 'Noto Serif JP', serif;
    overflow-x: hidden;
}

/* メニューアイコンのスタイル */
.menu-icon {
    position: fixed;
    top: 20px;
    left: 95%;
    cursor: pointer;
    z-index: 1000;
    color:#1288FF;
}
.menu-icon .line {
    width: 30px;
    height: 3px;
    background-color: #5c8ef5;
    margin: 5px 0;
    transition: all 0.3s ease;
    color:#1288FF;
}

/* メニューアイコンが変化するアニメーション */
.menu-icon.open .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-icon.open .line:nth-child(2) {
    opacity: 0;
}
.menu-icon.open .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* サイドメニューのスタイル */
.side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100%;
    background-color: #AA0077;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 20px;
}
.side-menu.open {
    right: 0;
}

/* メニューリストのスタイル */
.menu-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    text-align: center;
}
.menu-list li {
    margin: 20px 0;
}
.menu-list a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}
.menu-list a:hover {
    color: white;
}

/* スマートフォン対応用のスタイル調整 */
@media (max-width: 768px) {
    /* メニューアイコンを見やすく調整 */
    .menu-icon {
        top: 15px;
        left: 90%;
    }

    /* サイドメニューの幅を調整 */
    .side-menu {
        width: 80%;
        right: -100%;
    }
    .side-menu.open {
        right: 0;
    }

    /* 画像の調整 */
    .img_wrap img, .img_wrap::after {
        width: 100%;
        height: auto;
    }
}






.menu-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.menu-list li {
    margin: 20px 0;
}

.menu-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.menu-icon-img {
    width: 30px;
    height: auto;
    opacity: 0; /* 初期状態は非表示 */
    transition: opacity 0.3s ease;
    margin-right: 10px; /* アイコンとテキストの間隔 */
    vertical-align: middle;
}

/* ホバー時にアイコンを表示する */
.menu-item:hover .menu-icon-img {
    opacity: 1;
}
