/****************************/
/* ナビゲーションバーのスタイル */
/****************************/
.navbar {
    display: flex;
    justify-content: center; /* 要素を横方向に中央揃え */
    align-items: flex-end; /* ナビゲーションバー内の要素を下揃え */
    background-color: #ffffff;
    padding: 0 20px;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/**********************/
/* 中央上にあるロゴ         */
/**********************/
.sub-logo {
    position: fixed; /* 固定表示 */
    justify-content: center;  
    top: 4.5%; /* 縦方向の中央に配置 */
    transform: translateY(-50%); /* 縦方向の中央揃え調整 */
}

.sub-logo img {
    height: 65px;
    width: auto;
}

/**********************/
/* 上にあるメニュー      */
/**********************/
nav {
    display: flex;
    justify-content: center; /* 要素を横方向に中央揃え */
    align-items: flex-end; /* 文字を下端に揃える */
    margin-bottom: 5px;
}

nav a {
    color: #000000;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14pt;
}

nav a:hover {
    color: #ff0038; /* ホバー時の文字色 */
}

/* 小さな画面（例えば768px以下）の場合にのみ反応 */
@media (max-width: 768px) {
    nav {
        display: none; /* 通常のメニューを非表示 */
    }
}

/*******************************/
/* ドロップダウンメニューのスタイル */
/*******************************/
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #33333369; /* メニューの背景色 */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white; /* リンクの文字色 */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #33333369; /* ホバー時の背景色 */
}

.dropdown:hover .dropdown-content {
    display: block; /* ホバー時にメニューを表示 */
}

.dropdown:hover .dropbtn {
    background-color: #ffffff; /* ホバー時のボタン背景色 */
}

/*******************************/
/* ハンバーガーメニュー */
/*******************************/

.menu-toggle {
    display: flex;
    width: 50px;
    height: 35px;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    right: 20px; /* 右端に配置 */
    top: 6%; /* 垂直方向の中央に配置 */
    transform: translateY(-50%); /* 中央揃え */
    z-index: 1010; /* メニューが他の要素より前に表示されるように */
}

.hamburger__line {
    position: absolute;
    top: 4.3%;
    right: 10px;
    width: 40px;
    height: 4.5px;
    background-color: #000;
    transition: all 0.5s;
}

.hamburger__line--1 {
    top: 1px;
}

.hamburger__line--2 {
    top: 15px;
}

.hamburger__line--3 {
    top: 30px;
}

.open .hamburger__line--1 {
    transform: rotate(-45deg);
    top: 11px;
    background-color: #ffffff;
}

.open .hamburger__line--2 {
    opacity: 0; /* 真ん中のラインを隠す */
    background-color: #ffffff;
}

.open .hamburger__line--3 {
    transform: rotate(45deg);
    top: 11px;
    background-color: #ffffff;
}

.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1004;
}

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

.menu ul li {
    margin: 20px 0;
}

.menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s;
}

.menu ul li a:hover {
    color: #f0f0f0;
}

.menu.open {
    transform: translateY(0);
}

.menu-close {
    position: fixed;
    top: 4.3%;
    right: 10px;
    width: 40px;
    height: 4.5px;
    color: white; /* 文字色 */
    font-size: 24px;
    background-color: #00000000; /* 背景色を赤に設定 */
    cursor: pointer;
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: center;
}


.menu-close:hover {
    color: #ff0038; /* ホバー時の背景色 */
}