/* header.css */
header {
    position: fixed;
    top: 0;
    left: 5vw;
    width: 90vw;
    height: 120px;
    box-shadow:0px 1px 10px 2px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 1);
    z-index: 10; /* 他の要素より前面に表示 */
    padding: 0 5%;
    margin: 0 auto;
    border-radius: 0 0 30px 30px;
    box-sizing: border-box;
    transition: opacity 0.5s ease, top 0.5s ease; /* opacity と top の変更をスムーズに */
    display: flex;
    align-items: center;
}

header.hidden {
    top: -100px;
    opacity: 0;
}

header.visible {
    opacity: 1;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.logo img {
    height: 80px; /* ロゴの高さを調整 */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 24px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    border-bottom: 1px solid var(--background-color);
        text-shadow:0 0 2px var(--background-color); /* ホバー時の色 */
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none; /* デフォルトでは非表示 */
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.4s;
}

/* メディアクエリ（スマホ表示） */
@media screen and (max-width: 767px) {
    header{
        height: 80px;
    }
    .logo img {
        height: 50px; /* ロゴの高さを調整 */
    }
    .header-container {
        justify-content: space-evenly;
    }
    nav {
        position: absolute;
        top: -100vh;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border-radius: 20px;
        transition: 0.4s;
        z-index: 9;
    }

    nav.active {
        top: 150px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    nav ul li {
        margin: 10% 0;
    }

    .hamburger-menu {
        display: block; /* スマホ表示時に表示 */
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


footer {
    background-color: #f0f0f0; /* 背景色を設定 */
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    font-size: 8px;
    color: #333; /* テキストの色を設定 */
    margin: 0;
}