
/* ヘッダー部分のcss*/

header {
    background-color: #f5f5f5;
    height: 70px;
    width: 100%;
    z-index: 1000;
    position: fixed;
}

.logo {
    height: 45px;
    margin-bottom: 1%;
    margin-left: 1%;
}

.main-nav{
    width: 100%;
    font-size: 1.25rem;
    text-transform: uppercase;
    list-style: none;
    background-color: #f5f5f5;
}

.main-nav li{
    padding: 30px;
    font-weight: bolder;
    display: grid;
    place-items: center;
    border-bottom: 1px solid ; 
    width: 100%;
    color: rgb(0, 113, 188);
}

.main-nav li:hover {
    color: rgb(246, 153, 87);
}

/* .main-nav a{
    display: grid;
    place-items: center;
    width: 100%;
    color: rgb(0, 113, 188);
}

.main-nav a:hover {
    color: rgb(246, 153, 87);
} */

#drawer_toggle {
    z-index: 200;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: 60px;
    height: 60px;
}
#drawer_toggle span {
    position: absolute;
    top: 20px;
    display: flex;
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background-color: rgb(0, 113, 188);
    vertical-align: top;
}
#drawer_toggle span:nth-child(2) {
    margin-top: 10px;
}
#drawer_toggle span:last-child {
    margin-top: 20px;
}
#drawer_toggle.open span {
    position: absolute;
    z-index: 1000;
    top: 30px;
    width: 35px;
    display: flex;
    margin: 0;
}

header nav {
    box-sizing: border-box;
    position: fixed;
    display: none;
    width: 100%;
    height: 8%;
    background: 
    #f5f5f5;
    opacity: 0.9;
    /* 3. スライドメニューの場合 */
    top: -1500px;
    transition: top .6s;
}
/* 3. スライドメニューの場合 */

header nav.sp_open {
    top: 0;
    display: flow-root;
}

#drawer_toggle.open span:first-child {
    transform: rotate(45deg);
}
#drawer_toggle.open span:nth-child(2) {
    display: none;
}
#drawer_toggle.open span:last-child {
    transform: rotate(-45deg);
}
.drawer-background {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* 薄い白の背景 */
    z-index: 500; /* ドロワーより下に配置 */
    display: none; /* 初期状態では非表示 */
}

