body {
    margin: 0;
}

.header-img {
    display: none;
}

.globalmenu-top h1 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 50px;
    padding: 10px;
    margin: 0;
    color: #000;
    white-space: nowrap;
}

/* アニメーションを適用するタイミングを調整 */
.globalmenu-toplink {
    animation: fadeInAll 3s ease-in-out forwards;
    animation-iteration-count: 1; /* アニメーションを1回のみ再生 */
    text-align: center;
}

.globalmenu-toplink a {
    display: inline-block;
    text-decoration: none;
    color: #000;
    opacity: 0; /* 初期状態は透明 */
    animation: fadeIn 4s ease-in-out forwards; /* アニメーションを適用 */
    animation-delay: 2s; /* 2秒後にアニメーションを開始 */
    margin: 25px 25px;
    font-size: 1.8rem;
}

.globalmenu-toplink a:hover {
    color: rgb(159, 129, 36);
    opacity: 1; /* ホバー時は完全に不透明 */
    text-decoration: underline; /* ホバー時に下線を追加 */
    transform: scale(1.1); /* ホバー時に要素を10%大きくする */
}

.globalmenu-top {
    display: flex;
    justify-content: center; /* 横方向の中央揃え */
    align-items: center; /* 縦方向の中央揃え */
    position: relative;
}

.globalmenu-top img {
    width: 80%;
    animation: slideInLeft 2s ease-in-out; /* アニメーションを適用 */
}

.top {
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media screen and (max-width: 768px) {
    .header-img {
        margin-top: 40px;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes fadeInAll {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .globalmenu-toplink a {
        font-size: 1.2rem;
        margin-top: 20px;
    }

    .globalmenu-toplink {
        margin-top: 20px;
    }

    .globalmenu-top img {
        width: 100%;
    }
}
