/* Reset some default styles */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
}

/* Base body styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* Container for consistent page width */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1000;
    transition: top 0.3s ease; 
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


.logo {
    height: 40px;
}

nav {
    flex-grow: 1;
    text-align: right;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;


    li {
    margin-left: 20px;
}

    li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

    li a:hover {
    color: #ffffff;
    background-color: #3498db;
    border-radius: 5px;
}
}

/* ハンバーガーメニューアイコンのスタイル */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 0; /* 右に寄せる */


    span {
    background: #333;
    height: 3px;
    width: 25px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}


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

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

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

/* ハンバーガーメニューアイコンのスタイル */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 0; /* 右に寄せる */
}

.menu-toggle span {
    background: #333;
    height: 3px;
    width: 25px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

/* アクティブ状態（罰マーク） */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

@media (max-width: 768px) {
    /* メニューアイコンを表示 */
    .menu-toggle {
        display: flex;
    }

    /* メニューの表示切り替え */
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff;
        width: 100%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        margin: 0;
        text-align: center;
    }

    .menu li a {
        display: block;
        padding: 15px;
        color: #333;
        border-bottom: 1px solid #ddd;
    }

    .menu li a:hover {
        background-color: #3498db;
        color: #fff;
    }
}