.l-header.fixed-header {
  border-radius: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  top: 0 !important;
  padding: 25px 0;
  transition: all 0.3s ease;
}
.l-header.fixed-header .p-header {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 40px;
  padding-top: 0;
  background-color: transparent;
}

.body-wrapper:not(.page-7) .l-header.fixed-header.change-color {
  background-color: rgb(255, 255, 255);
}

.c-wrapper {
  width: 100%;
  max-width: 100%;
}

.header_right {
  display: flex;
  align-items: center;
  gap: 26px;
}

.p-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-header__nav {
  margin-top: 0;
  margin-right: 0 !important;
  ul {
    gap: 0;
    background-color: transparent;
    border-radius: 0;
    padding-top: 0;
  }
}

.p-header__nav2 {
  flex: 1;
  position: static;
}
.p-header__nav2 ul li {
  width: 100% !important;
}
.p-header__nav2 ul li a {
  padding: 0 12px !important;
  height: 48px;
  color: #fff;
  border-radius: 5px !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none !important;
}
.p-header__nav2 ul li a span {
  font-size: 12px;
}
.p-header__nav2 ul li a img {
  width: 11px;
}

.p-header__nav ul li {
  margin-right: 2.5rem;
}
@media (min-width: 1367px) {
  .p-header__nav ul li {
    margin-right: 38px;
  }
}
.p-header__nav ul li:hover a:before {
  transform: translateY(-50%) rotate(180deg);
}

.p-header__nav ul li a {
  padding-bottom: 0;
  font-size: 14px;
  color: #fff;
}
.body-wrapper:not(.page-7) .l-header.fixed-header.change-color .p-header__nav ul li a {
  color: #000;
}
.body-wrapper:not(.page-7) .l-header.fixed-header.change-color .p-header__nav li .ac-menu.p2 .school-box.j .list-name .link-name {
  color: #fff;
}

.p-header__logo {
  max-width: 250px;
  padding-left: 0 !important;
}

.p-header__nav li:hover .ac-menu {
  border-radius: 8px;
  overflow: hidden;
}

.p-header__logo:has(.jhm_link) {
  width: 22.3529411765%;
}

.p-header__logo:has(.aie_link) {
  width: 25.6617647059%;
}

.p-header__logo a picture {
  max-width: none !important;
  width: 100%;
}

.p-header__nav li .ac-menu.p2 .school-box:first-child {
  width: 100% !important;
}

.p-header__nav li .ac-menu .school-box .common-list {
  flex-wrap: wrap;
  flex: 1;
  padding: 32px !important;
  gap: 16px 32px !important;
}

.p-header__nav li .ac-menu .school-box .common-list .list-item {
  width: fit-content !important;
}
.p-header__nav li.entrance .ac-menu .school-box .common-list .list-item {
  width: 47% !important;
}

.p-header__nav li .ac-menu .school-box .common-list .list-item a {
  color: #333333 !important;
  padding: 0 !important;
  border: none !important;
}
.p-header__nav li .ac-menu .school-box .common-list .list-item a span {
  font-weight: bold;
  display: block;
  width: fit-content;
  margin-top: 6px;
  position: relative;
}
.p-header__nav li .ac-menu .school-box .common-list .list-item a span:before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -34px;
  width: 15px;
  height: 7px;
  background-image: url(../img/arrow_right.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.p-header__nav li .ac-menu .school-box .common-list .list-item a img {
  width: 13.17715959vw;
}
@media (min-width: 1367px) {
  .p-header__nav li .ac-menu .school-box .common-list .list-item a img {
    width: 180px;
  }
}

.p-header__burger {
  position: relative;
  display: block;
  background-color: #fff;
  border: 1px solid #333333;
  border-radius: 3px;
  width: 61px;
  height: 48px;
}
.p-header__burger div {
  background-color: #333333;
  height: 3px;
  width: 20px;
  right: calc(50% - 9px);
}
.p-header__burger div:first-child {
  transform: translateY(-7px);
}
.p-header__burger div:last-child {
  transform: translateY(7px);
}

.p-header__nav li .ac-menu {
  width: fit-content !important;
  background-image: unset !important;
  background-color: #fff !important;
}

.p-header__nav li .ac-menu.p2 .school-box {
  padding: 0 !important;
}

.p-header__nav li .ac-menu.p2 .school-box.j .list-name {
  background-color: #E7213F;
  padding: 32px;
}
.p-header__nav li .ac-menu.p2 .school-box.j .list-name p {
  font-weight: bold;
  letter-spacing: 0;
  font-size: 20px;
  color: #fff;
}
.p-header__nav li .ac-menu.p2 .school-box.j .list-name .link-name {
  font-weight: 500;
  border-bottom: 1px solid #fff;
  display: block;
  position: relative;
  padding-right: 16px;
}
.p-header__nav li .ac-menu.p2 .school-box.j .list-name .link-name::before {
  content: "";
  width: 11px;
  height: 5px;
  background-image: url(../img/common/arrow_right.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.p-header__nav li a:has(+ .ac-menu) {
  position: relative;
}
.p-header__nav li a:has(+ .ac-menu)::before {
  content: "";
  width: 15px;
  height: 10px;
  background-image: url(../img/icon_drop.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  position: absolute;
  right: -21px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}
.l-header.change-color .p-header__nav li a:has(+ .ac-menu)::before {
  background-image: url(../img/icon_drop_r.svg);
}

.l-header.fixed-header {
    position: relative;
    min-width: 0 !important;
  }
.l-drawer {
  display: block;
}
.have_curtain .p-header__nav, .have_curtain .p-header__nav2, .have_curtain .p-header__logo {
  visibility: hidden;
  opacity: 0;
}
.have_curtain header.change-color {
  background-color: transparent !important;
}
.have_curtain header {
  pointer-events: none;
}
.have_curtain .p-header__burger {
  pointer-events: auto;
}

@media screen and (max-width: 1024px) {
  .p-header__burger div {
    height: 3px;
    width: 18px;
  }
  .p-header__inner {
    height: 100%;
  }
  .p-header__logo:has(.aie_link) {
    width: 350px !important;
  }
  .p-header__nav {
    display: none;
  }
  .p-header__nav2 {
    display: none;
  }
  .p-header__logo:has(.jhm_link) {
    width: 350px;
  }
}
@media screen and (max-width: 768px) {
  .l-header.fixed-header {
    padding: 15px 0;
  }
}
@media screen and (max-width: 480px) {
  .p-header__logo:has(.jhm_link) {
    width: 210px;
  }
  .l-header.fixed-header {
    padding: 12px 0 !important;
  }
  .l-header.fixed-header .p-header {
    padding: 0 12px !important;
  }
  .l-header.fixed-header .p-header__logo:has(.aie_link) {
    width: 203px !important;
  }
  .l-header.fixed-header .p-header__burger {
    width: 40px;
    height: 32px;
  }
}

.p-header__nav li .ac-menu .school-box.j .common-list .list-item a::before {
  display: none;
}
