@charset "utf-8";
.mobile-menu.show {
    display: block;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* ヘッダーを固定 */
    top: 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* 影を追加 */
    z-index: 1000;
    transition: background-color 0.3s; /* 背景色のアニメーション */
    height: 70px;
}

header:hover {
    background-color: #444; /* ホバー時の背景色 */
}

header .logo img {
    height: 30px;
    transition: transform 0.3s; /* ロゴのアニメーション */
}

header .logo img:hover {
    transform: scale(1.1); /* ホバー時にロゴを拡大 */
}



header nav, header .mobile-menu {
    display: none;
}

header nav ul, header .mobile-menu ul {
    list-style: none;
    padding: 0;
}

header nav ul li, header .mobile-menu ul li {
    display: inline;
    margin-right: 20px;
}

header nav ul li a, header .mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

.hamburger {
    display: block;
    position: relative;
    width: 30px; /* ボタンの幅 */
    height: 24px; /* ボタンの高さ */
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    z-index: 1001;
    width: 100%;
    height: 3px; /* バーの厚さ */
    background-color: white;
    transition: all 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    text-align: center;
    padding-top: 50px;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

.menu-logo {
    position: absolute;
    bottom: 300px;
    width: 100%;
}

.menu-logo img {
    width: 30%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    header nav {
        display: block;
    }
    .hamburger, .mobile-menu {
        display: none;
    }
}

@media (max-width: 767px) {
    .hamburger {
        display: block;
    }
    .hamburger.active + .mobile-menu {
        display: block;
    }
    .mobile-menu ul li {
        margin-bottom: 10px;
    }
    .mobile-menu ul li a {
        display: block;
        padding: 10px;
    }
}