@charset "UTF-8";
/* CSS menu 全体 */


/*削除しない */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color:#FEFEFE;
    color: black;
	margin_bottom:10px;
	z-index: 1000;
}


.logout-button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

logout-button:hover {
    background: #0056b3;
}





.menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.menu-button div {
    width: 25px;
    height: 3px;
    background-color: #333; /* #333改善 */
}

nav {
    display: flex;
    gap: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    color: red;
}

nav ul li {
    cursor: pointer;
    padding: 10px;
    position: relative;
    transition: background-color 0.3s;
	list-style-type: none;
	
}

nav ul li:hover {
    background-color: #333;
    border-radius: 5px;
}

nav ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    list-style: none;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

nav ul li:hover .dropdown {
    display: block;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
    transition: background-color 0.3s ease;
}

.mobile-menu {
    display: block; /* 初期状態で非表示にしない */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 20;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
	color:white;
}

.mobile-menu .menu-content {
	box-sizing: border-box;

}



.close-button {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 50;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #0077cc;
    padding: 10px;
}


/* Mobile menu when open */
.mobile-menu.open {
    transform: translateX(0); /* Slide the menu in */
}

/* Overlay when open */
.menu-overlay.open {
    display: block; /* Make the overlay visible */
}

/*上記、消さない */


@media (min-width: 1020px) {
	
	/* PC 用のヘッダー */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #222, #444);
    padding: 15px 30px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #ffcc00;
	position: fixed; /* ←追加してください */
        top: 0;
        left: 0;
	z-index: 1000;
}

.header h1 {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
	color: black;
}

/* メニューボタン（モバイル用） */
.menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.menu-button div {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

/* ナビゲーション */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
	list-style-type: none;
}

nav ul li {
    position: relative;
	list-style-type: none;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

	.menu-content {
	box-sizing: border-box;
    padding: 50px 20px 20px 20px;
}
	
	
	
/* ドロップダウンメニュー */
.dropdown-item {
    position: relative;
    cursor: pointer;
	list-style: none;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 180px;
}

.dropdown li {
    padding: 8px 15px;
	list-style-type: none;
}

.dropdown li a {
    color: white;
    display: block;
}

.dropdown li a:hover {
    background: #555;
}

.dropdown-item:hover .dropdown {
    display: block;
}

/* ログアウトボタン */
.logout-button {
    background: red;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.logout-button:hover {
    background: darkred;
}




}




@media (max-width: 1020px) and (min-width: 768px) {
	
.header {
	display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #FEFEFE;
    color: black;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* 必要に応じて調整 */
	border-bottom: 2px solid orange;
	position: fixed; /* ←追加してください */
        top: 0;
        left: 0;

}

	
.header h1 {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
	color: black;
}

	
	
    .menu-button {
        display: flex;
    }

    nav {
        display: none; /* デスクトップ時は非表示 */
    }
/* 初期状態のアイコン */
.mobile-menu .dropdown-item .dropdown-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* ドロップダウンが開いたらアイコンを回転 */
.mobile-menu .dropdown-item.open .dropdown-icon {
    transform: rotate(90deg);
}

/* ドロップダウンメニューの初期状態 */
.mobile-menu .dropdown {
    display: none;
    transition: all 0.3s ease-in-out;
}

/* .open クラスがついたら表示 */
.mobile-menu .dropdown.open {
    display: block;
}
	
	
/* ドロップダウンメニュー */
.dropdown-item {
    position: relative;
    cursor: pointer;
	list-style: none;
	line-height: 2em;
}
	
.menu-content {
	width: 100%;
	box-sizing: border-box;
    padding: 100px 20px 20px 20px;
}
	
	
	
.menu-content ul li{
	list-style: none;
}

	li.dropdown-item a{
		color:white;
		
    text-decoration: none;
		
	}
	
	li.dropdown-item a:hover {
		color:white;
    border-radius: 5px;
}
	ul.dropdown li{
		width:100%;
		height:auto;
		box-sizing: border-box;
		padding-left:1.5em;
	}
	
    th, td {
        padding: 8px;
    }

	
}



/* スマホ */
@media screen and (max-width: 768px) {
	
	

	
.header h1 {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
	color: black;
}

	
	
    .menu-button {
        display: flex;
    }

    nav {
        display: none; /* デスクトップ時は非表示 */
    }
/* 初期状態のアイコン */
.mobile-menu .dropdown-item .dropdown-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* ドロップダウンが開いたらアイコンを回転 */
.mobile-menu .dropdown-item.open .dropdown-icon {
    transform: rotate(90deg);
}

/* ドロップダウンメニューの初期状態 */
.mobile-menu .dropdown {
    display: none;
    transition: all 0.3s ease-in-out;
}

/* .open クラスがついたら表示 */
.mobile-menu .dropdown.open {
    display: block;
}
	
	
/* ドロップダウンメニュー */
.dropdown-item {
    position: relative;
    cursor: pointer;
	list-style: none;
	line-height: 2em;
}
	
.menu-content {
	width: 100%;
	box-sizing: border-box;
    padding: 100px 20px 20px 20px;
}
	
	
	
.menu-content ul li{
	list-style: none;
}

	li.dropdown-item a{
		color:white;
		
    text-decoration: none;
		
	}
	
	li.dropdown-item a:hover {
		color:white;
    border-radius: 5px;
}
	ul.dropdown li{
		width:100%;
		height:auto;
		box-sizing: border-box;
		padding-left:1.5em;
	}
	
    th, td {
        padding: 8px;
    }

	
}


