/* css/header.css */

/* ヘッダー全体のスタイル */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #fff;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    box-sizing: border-box;
}

/* ヘッダー内のコンテナ */
.container {
    display: flex;
    justify-content: space-between; /* メニューを右寄せ */
    align-items: center;
    width: 100%;
}

/* ロゴのスタイル */
.logo img {
    max-width: 100%;
    height: auto;
    max-height: 50px; /* ロゴの最大高さ */
}

/* ナビゲーションメニューのスタイル */
nav ul.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

nav ul.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s; /* 色が変わるアニメーションを追加 */
}

/* オンマウス時の色変更 */
nav ul.nav-links a:hover {
    color: orange; /* マウスを乗せた時にオレンジに変わる */
    /* アンダーバーを表示しない */
    text-decoration: none;
}

/* ハンバーガーメニューのスタイル（モバイル用） */
.hamburger {
    display: none; /* デフォルトでは非表示 */
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background-color: #333;
    transition: 0.4s;
}

/* ハンバーガーメニューがアクティブな時のスタイル */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        flex-direction: row;
        justify-content: space-between;
    }

    nav ul.nav-links {
        display: none; /* モバイルでは非表示 */
        flex-direction: column;
        width: 100%;
        background-color: #f8f8f8;
        position: absolute;
        top: 60px; /* ヘッダーの高さに合わせて調整 */
        left: 0;
    }

    nav ul.nav-links.active {
        display: flex; /* アクティブ時に表示 */
    }

    nav ul.nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: flex; /* モバイルでは表示 */
    }
}

/* トップイメージのスタイル */
.header-image,
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0; /* 余白をなくす */
    padding: 0; /* 余白をなくす */
}
