@media (max-width: 1119px) {
  :root {
    --header-height: 84px;
  }
}
@media (min-width: 1120px) {
  :root {
    --header-height: 96px;
  }
}
body {
  border-top: var(--header-height) solid var(--color-gray, #EAE9EE);
}
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: grid;
  align-items: center;
  height: var(--header-height);
  transition: transform 0.3s;
  transform: translateY(0);
}
#header.hidden {
  transform: translateY(-100%);
}
@media (max-width: 1119px) {
  #header {
    grid-template-columns: 1fr 32px;
    gap: 8px;
  }
}
@media (min-width: 1120px) {
  #header {
    grid-template-columns: 224px 1fr;
    gap: 16px;
  }
}
#logo img,
#logo_opened_menu img {
  width: auto;
}
@media (max-width: 1119px) {
  #logo img,
  #logo_opened_menu img {
    height: 36px;
  }
}
@media (min-width: 1120px) {
  #logo img,
  #logo_opened_menu img {
    height: 48px;
  }
}
#logo_opened_menu {
  display: none;
}
@media (max-width: 1119px) {
  #menu {
    display: none;
    font-size: var(--font-size-h3, 20px);
  }
}
@media (min-width: 1120px) {
  #menu {
    text-align: right;
    font-size: var(--font-size-small, 14px);
  }
  #menu ul {
    display: inline-block;
  }
  #menu ul li {
    display: inline-block;
    margin: 0 8px;
  }
  #menu ul a {
    font-size: var(--font-size-text);
    color: var(--color-blue1);
    text-decoration: none;
  }
  #menu ul a:hover {
    color: var(--color-blue2);
    text-decoration: underline;
  }
}
#menu_opener {
  display: none;
  text-align: right;
  font-size: 0;
  width: 32px;
  height: 32px;
  padding: 4px;
}
@media (max-width: 1119px) {
  #menu_opener {
    display: block;
  }
}
#menu_opener label {
  display: inline-block;
  position: relative;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
#menu_opener label:before,
#menu_opener label:after,
#menu_opener i {
  content: ' ';
  position: absolute;
  background-color: var(--color-blue1);
  display: block;
  width: 24px;
  height: 2px;
  transition: all 0.3s;
}
#menu_opener:hover label:before,
#menu_opener:hover label:after,
#menu_opener:hover i {
  background-color: var(--color-blue2);
}
#menu_opener label:before {
  top: 6px;
}
#menu_opener i {
  top: 12px;
}
#menu_opener label:after {
  top: 18px;
}
#is_mobile_menu_opened {
  display: none;
}
body:has(#is_mobile_menu_opened:checked) {
  overflow: hidden;
  max-height: 100vh;
}
#is_mobile_menu_opened:checked ~ #header {
  position: fixed;
  top: 0;
  bottom: 0;
  height: auto;
  left: 0;
  right: 0;
  z-index: 9;
  background-color: var(--color-blue1);
  grid-template-columns: 1fr 32px;
  grid-template-rows: var(--header-height) 1fr;
}
#is_mobile_menu_opened:checked ~ #header #logo {
  display: none;
}
#is_mobile_menu_opened:checked ~ #header #logo_opened_menu {
  display: block;
  order: 1;
}
#is_mobile_menu_opened:checked ~ #header #menu {
  display: block;
  order: 4;
  grid-column: 1 / -1;
  text-align: right;
  height: calc(100dvh - var(--header-height));
  overflow: auto;
  padding: 16px 0;
  margin: 0 -24px;
}
#is_mobile_menu_opened:checked ~ #header #menu a {
  display: block;
  color: var(--color-white);
  text-decoration: none;
  padding: 0 24px;
}
#is_mobile_menu_opened:checked ~ #header #menu {
  padding: 48px 0;
}
#is_mobile_menu_opened:checked ~ #header #menu ul {
  display: grid;
  gap: 32px;
  padding: 0;
  margin: 0;
}
#is_mobile_menu_opened:checked ~ #header #menu ul li {
  display: block;
}
#is_mobile_menu_opened:checked ~ #header #menu ul a {
  font-size: var(--font-size-h3, 20px);
  line-height: var(--line-height-h3, 24px);
}
#is_mobile_menu_opened:checked ~ #header #menu_opener {
  order: 3;
  text-align: right;
}
#is_mobile_menu_opened:checked ~ #header #menu_opener label:before {
  transform: translate(0, 5px) rotate(-45deg) scalex(1.35);
  background-color: var(--color-white);
}
#is_mobile_menu_opened:checked ~ #header #menu_opener i {
  background-color: transparent;
}
#is_mobile_menu_opened:checked ~ #header #menu_opener label:after {
  transform: translate(0, -7px) rotate(45deg) scalex(1.35);
  background-color: var(--color-white);
}
