header {
    z-index: 8;
    width: 100%;
}

header a {
    margin-right: auto;
}

.header-container {
    position: fixed;
    margin-top: 15px;
    margin-left: 2.5vw;
    width: 95vw;
    box-sizing: border-box;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 5px;
    border: solid 1px #d1cdcd;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header-logo {
    margin: auto 0;
}

.header-logo img {
    width: 240px;
    height: auto;
}

.burger-btn {
    display: block;
    width: 50px;
    height: 50px;
    position: relative;
    border: none;
    z-index: 1200;
}

.width100{
    width: 100%;
}

.bar {
    width: 30px;
    height: 2px;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
}

.bar_top {
    top: 15px;
}

.bar_mid {
    top: 50%;
    transform: translate(-50%, -50%);
}

.bar_bottom {
    bottom: 15px;
}

.burger-btn.close .bar_top {
    transform: translate(-50%, 10px) rotate(45deg);
    transition: transform .3s;
}

.burger-btn.close .bar_mid {
    opacity: 0;
    transition: opacity .3s;
}

.burger-btn.close .bar_bottom {
    transform: translate(-50%, -8px) rotate(-45deg);
    transition: transform .3s;
}

.burger-contents-wrapper {
    visibility: hidden;
    opacity: 0;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: -16px;
    left: -2.5vw;
    transition: all .5s;
    z-index: 1100;
}

/* メニューオープン時 */
.burger-contents-wrapper.fade {
    visibility: visible;
    opacity: 1;
}

.burger-contents {
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    border: solid 1px #d1cdcd;
    border-radius: 5px;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
    padding-bottom: 16px;
    padding-right: 2.5vw;
}

.menu-logo {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
}

.menu-logo img {
    width: max(6vw, 50px);
}

.burger-contents hr {
    width: 1px;
    height: 85%;
    margin: 0 0 0 20%;
    border: none;
    background-color: #cccccc;
    position: fixed;
}

.burger-contents ul {
    margin: 0;
    padding: 0;
}

.burger-contents li {
    margin-bottom: 10px;
    margin-left: max(3.5vw, 30px);
    font-size: max(1.1vw, 13px);
}

.menu-wrapper {
    width: 75%;
    /* margin-left: 7vw; */
    height: 88vh;
    display: flex;
    justify-self: center;
    align-items: center;
    flex-direction: column;
    /* 下のoverflow-y: auto; が要素の高さに応じてスクロールするかしないかを制御してる */
    /* overflow-y: auto; */
    -webkit-overflow-scrolling: touch;
    position: absolute;
    right: 0;
    top: 50px;
}

.menu-top {
    width: 100%;
    margin-bottom: 25px;
}

.menu-middle {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.menu-bottom {
    width: 100%;
    margin-top: 2.5%;
}

.program-search {
    display: flex;
    flex-direction: column;
}

.menu-groups {
    width: 100%;
    display: flex;
}

.menu-group {
    width: 40%;
}

.menu-group_right {
    width: 55%;
}

.bottom_menu_group {
    width: 40%;
}

.bottom_menu_group_right {
    width: 55%;
}

.menu-title {
    display: flex;
    align-items: center;
}

.menu-title img {
    width: max(2vw, 20px);
}

.menu-title h1 {
    font-size: max(1.5vw, 16.3px);
    /* margin-left: 20px; */
    margin-left: 1.4vw;
    color: #D93751;
}

.menu-link {
    position: relative;
    color: #333;
    display: flex;
}

.menu-link_red {
    position: relative;
    color: #D93751;
    display: flex;
}

.menu-link_red a {
    color: #D93751;
}

.menu-link::before {
    content: '';
    display: block;
    position: absolute;
    transform: translateX(-100%);
    border-top: solid 1px #333;
    top: 50%;
    left: -0.3vw;
}

.menu-wrapper .menu-link:hover::before, .menu-link_red:hover::before {
    animation: menu-border-anim 0.1s linear forwards;
}

@keyframes menu-border-anim {
    0% {
        width: 0;
    }

    100% {
        width: 15px;
    }
}

/* ハンバーガーメニューのときにスクロールさせない */
.noscroll {
    overflow: hidden;
}

.between-div {
    margin-bottom: 5vh;
}

.header_heading_thicken {
    color: #D93751;
    font-weight: bold;
    /* font-size: 18px !important; */
}

.heading_blue {
    color: #4b6cd3;
}

.external_link_1, .external_link_2, .external_link_3 {
    width: max(1.3vw, 13px) !important;
    position: relative;
    top: 1px;
}

@media all and (500px < width <= 904px) {
    .external_link_2 {
        top: -15px;
        left: 1.5vw;
    }
}

@media all and (width <= 500px) {
    .external_link_1, .external_link_2 {
        top: -15px;
        left: 8px;
    }
}

.header_red-atagu_1, .header_red-atagu_2, .header_red-atagu_3 {
    color: #D93751;
    text-decoration: none;
    display: inline-block;
    text-decoration: none;
    position: relative;
}

.header_red-atagu_1::after {
    position: absolute;
    bottom: 10px;
    left: 1.5vw;
    content: '';
    width: max(95%, 340px);
    height: 1.5px;
    background: #D93751;
    transform: scale(0, 1);
    transform-origin: center top;
    transition: transform .3s;
}

.header_red-atagu_2::after {
    position: absolute;
    bottom: 10px;
    left: 1.5vw;
    content: '';
    width: 93%;
    height: 1.5px;
    background: #D93751;
    transform: scale(0, 1);
    transform-origin: center top;
    transition: transform .3s;
}

.header_red-atagu_3::after {
    position: absolute;
    bottom: 10px;
    left: 1.5vw;
    content: '';
    width: max(81%, 78px);
    height: 1.5px;
    background: #D93751;
    transform: scale(0, 1);
    transform-origin: center top;
    transition: transform .3s;
}

.header_red-atagu_1:hover::after, .header_red-atagu_2:hover::after, .header_red-atagu_3:hover::after {
    transform: scale(1, 1);
}