@charset "utf-8";
.header {
  position: relative;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 77px;
}

.header__inner {
  padding-inline: clamp(20px, 2.93vw, 40px) clamp(20px, 3.3vw, 45px);
  padding-top: 30px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  width: 156px;
  height: 30px;
  position: relative;
  z-index: 999;
}

.header__logo img {
  aspect-ratio: 156/30;
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
}

.header__logo-title {
  width: 1px;
  height: 1px;
  opacity: 0;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.05vw, 28px);
  display: none;
}

@media screen and (min-width: 950px) {
  .header__menu {
    display: block;
  }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

@media screen and (min-width: 1200px) {
  .header__nav {
    gap: 35px;
  }
}

.header__nav-item p {
  font-size: clamp(12px, 0.96vw, 13px);
  font-weight: 700;
  letter-spacing: calc(30 / 1000 * 1em);
  color: var(--color-white);
}

.header__nav-item--dropdown {
  position: relative;
  margin-top: 12px;
  margin-right: -17px;
}

.header__nav-item--dropdown:hover {
  cursor: pointer;
}

.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #e8eff4;
  padding: 15px 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  margin-top: 8px;
  z-index: 100;
}

.header__nav-item--dropdown:hover .header__dropdown-menu,
.header__dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
}

.header__dropdown-menu-heading {
  color: var(--color-title-ja) !important;
  font-size: clamp(13px, 1.1vw, 15px) !important;
  font-weight: 700 !important;
  letter-spacing: calc(30 / 1000 * 1em) !important;
}

.header__dropdown-menu-item-wrap {
  margin-top: 30px;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.67vw, 50px);
}

.header__dropdown-menu-item-wrap::after {
  position: absolute;
  content: "";
  top: -67px;
  left: 50%;
  transform: translateX(-50%);
  width: 23px;
  height: 13px;
  background: url(../images/header__dropdown-menu-after.svg) no-repeat center
    center/contain;
  flex-shrink: 0;
}

.header__dropdown-menu-item {
  display: block;
  transition: background-color 0.3s;
  white-space: nowrap;
  padding-bottom: 9px;
  position: relative;
}

.header__dropdown-menu-item::before,
.header__dropdown-menu-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
}

.header__dropdown-menu-item::before {
  background: #a8a8a8;
  width: 100%;
  height: 2px;
}

.header__dropdown-menu-item::after {
  background: var(--color-title-ja);
  width: 45%;
  height: 2px;
}

.header__dropdown-menu-item p {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.05vw, 28px);
  color: var(--color-base);
  font-size: clamp(11px, 0.96vw, 13px);
  font-weight: 700;
  letter-spacing: calc(30 / 1000 * 1em);
}

.header__dropdown-menu-item p::after {
  content: "";
  margin-right: 5px;
  width: 7px;
  height: 7px;
  background: var(--color-title-ja);
  border-radius: 50%;
  flex-shrink: 0;
}

.header__dropdown-menu-item:first-child {
  border-radius: 4px 4px 0 0;
}

.header__dropdown-menu-item:last-child {
  border-radius: 0 0 4px 4px;
}

.header__dropdown-menu-item:hover {
  opacity: 0.5;
}

.header__button p {
  font-size: clamp(12px, 0.96vw, 13px);
  font-weight: 700;
  letter-spacing: calc(50 / 1000 * 1em);
  color: var(--color-white);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 13px 25px;
  background: #2059aa;
  border-radius: 5px;
}

.header__open-button {
  position: absolute;
  z-index: 102;
  top: 30px;
  right: 25px;
  width: 30px;
  height: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

@media screen and (min-width: 950px) {
  .header__open-button {
    display: none;
  }
}

.header__open-button.is-open .header__open-bar:nth-of-type(1) {
  transform: rotate(45deg) translate(5px, 10px);
}

.header__open-button.is-open .header__open-bar:nth-of-type(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__open-button.is-open .header__open-bar:nth-of-type(3) {
  transform: rotate(-45deg) translate(6px, -12px);
}

.header__open-bar {
  width: 30px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s ease;
  transform-origin: center;
  border-radius: 3px;
  position: relative;
}

.header__drawer {
  position: fixed;
  z-index: 99;
  top: 0;
  right: 0;
  padding: 160px 20px 50px;
  width: 100%;
  height: 100%;
  background: var(--color-grade);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(100vw);
  opacity: 0;
  transition: all 0.8s ease;
  overflow-y: scroll;
}

.header__drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  transition: all 0.8s ease;
}

.header__drawer-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 150px;
  margin-inline: auto;
}

.header__drawer-item p {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: calc(60 / 1000 * 1em);
  line-height: 1.2;
  color: var(--color-white);
}

.drawer__service-menu {
  margin: 20px 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer__service-menu-item {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: calc(60 / 1000 * 1em);
  line-height: 1.2;
  color: var(--color-white);
}

.header__drawer-button {
  text-align: center;
}

.header__drawer-button p {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: calc(50 / 1000 * 1em);
  color: var(--color-white);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 13px 25px;
  background: #2059aa;
  border-radius: 5px;
  border: 1px solid var(--color-white);
}
