/*=============================================================
  header Setting
=============================================================*/
.c-header {
  position: relative;
  z-index: 3;
}
.c-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  height: 106px;
}
.c-header__content {
  display: flex;
  justify-content: end;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 24px 3%;
  box-sizing: border-box;
}
.c-header__content::after {
  content: "";
  background: #fff;
  width: 100%;
  height: 110px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}
.c-header:has(.c-header__nav.is-open.is-scroll) .c-header__content::after {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.3s ease,
    visibility 0s;
}
.c-header__menu {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  z-index: 999;
}

/* c-header__logo
--------------------------------------------------------------*/
.c-header__logo {
  position: absolute;
  top: 24px;
  left: 3%;
}
.c-header__logo a {
  display: inline-grid;
  grid-template-columns: 120px auto;
  align-items: baseline;
  gap: 18px;
  font-weight: 600;
  position: relative;
  z-index: 999;
}
.c-header__logo--img {
  width: 120px;
}
.c-header__logo--name {
  position: relative;
  top: -2px;
}

/* c-header__entry 
--------------------------------------------------------------*/
.c-header__entry {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
}
.c-header__entry .c-nav__entry-button {
  width: 184px;
}
.c-header__entry .c-nav__entry-button .c-link-button {
  padding: 10px 13px;
  border: 1px solid var(--buttonColor);
  background: var(--buttonColor);
}
.c-header__entry .c-nav__entry-button .c-link-button:hover {
  background: #fff;
}
.c-header__entry .c-nav__entry-button .c-link-button:hover span,
.c-header__entry .c-nav__entry-button .c-link-button:hover span.is-clone {
  color: var(--buttonColor);
}
.c-header__entry
  .c-nav__entry-button
  .c-link-button:not([target="_blank"])::after {
  background: url(/recruit/assets/img/icon-arrow--white.svg) no-repeat;
}
.c-header__entry
  .c-nav__entry-button
  .c-link-button:not([target="_blank"]):hover::after {
  background: url(/recruit/assets/img/icon-arrow--blue.svg) no-repeat;
}
.c-header__entry .c-nav__entry-button a::after {
  right: 10px;
}
.c-header__entry .c-nav__entry-button .c-link-button span {
  font-size: 15px;
  font-weight: var(--fontMedium);
  line-height: 120%;
  color: #fff;
}
@media (min-width: 1024px) {
  .c-header__entry .c-link-button:hover span:not(.is-clone) {
    transform: translateY(-130%);
  }
  .c-header__entry .c-link-button:hover span.is-clone {
    transform: translateY(-130%);
    height: auto;
  }
  .c-header__entry .c-link:not(:hover) span {
    transition: none;
  }
}

/* c-header__hamburger
--------------------------------------------------------------*/
.c-header__hamburger {
  width: 59px;
  height: 59px;
  background: #3c3c3c;
  border-radius: 4px;
  border: none;
  position: relative;
  cursor: pointer;
}
.c-header__hamburger-border {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 31px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease;
  transform: translateX(-50%) scaleX(0.8);
}
.c-header__hamburger-border::before,
.c-header__hamburger-border::after {
  content: "";
  position: absolute;
  top: 0;
  left: 15px;
  width: 31px;
  height: 2px;
  background: #fff;
  transform-origin: center;
  transition: transform 0.3s ease;
}
.c-header__hamburger-border::before {
  transform: translateX(-50%) translateY(-9px) scaleX(0.7);
}
.c-header__hamburger-border::after {
  transform: translateX(-50%) translateY(9px) scaleX(0.7);
}
.c-header__hamburger:not(.is-open):hover .c-header__hamburger-border {
  transform: translateX(-50%) scaleX(1);
}
.c-header__hamburger:not(.is-open):hover .c-header__hamburger-border::before {
  transform: translateX(-50%) translateY(-9px) scaleX(1);
}
.c-header__hamburger:not(.is-open):hover .c-header__hamburger-border::after {
  transform: translateX(-50%) translateY(9px) scaleX(1);
}
.c-header__hamburger.is-open .c-header__hamburger-border {
  background: transparent;
  transform: translateX(-50%) scaleX(1);
}
.c-header__hamburger.is-open .c-header__hamburger-border::before {
  transform: translateX(-50%) translateY(0) rotate(35deg);
}
.c-header__hamburger.is-open .c-header__hamburger-border::after {
  transform: translateX(-50%) translateY(0) rotate(-35deg);
}

/* c-header__nav
--------------------------------------------------------------*/
.c-header__nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 100dvh;
  padding: 126px 3% 100px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  background: linear-gradient(
    234.15deg,
    #e9f6fd 2.06%,
    #e4f2fe 43.16%,
    #caf2ff 93.94%
  );
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0s linear 0.5s;
}
.c-header__nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0s;
  z-index: 99;
  box-shadow: 0 10px 30px rgba(12, 42, 72, 0.12);
}
.c-header__nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.c-header__nav.is-open .c-header__nav-inner {
  opacity: 1;
  transition-delay: 0.2s;
}
@media (min-width: 1024px) {
  .c-header__nav-inner {
    grid-template-rows: 1fr 1fr;
  }
  .c-header__nav-block {
    grid-row: 1 / 3;
  }
  .c-header__nav-block:first-of-type {
    grid-column: 1;
  }
  .c-header__nav-block:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 60px;
  }
  .c-header__nav-block:nth-of-type(3) {
    grid-column: 2 / 3;
    grid-row: 2;
    margin-top: -7%;
  }
  .c-header__nav-block:nth-of-type(4) {
    grid-column: 3;
  }
}
.c-header__nav-heading {
  font-size: 24px;
  font-weight: var(--fontMedium);
  color: var(--keyColor);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 36px;
  line-height: 140%;
}
.c-header__nav-heading span {
  color: var(--keyColor);
  font-family: "Inter", sans-serif;
  font-weight: var(--fontNormal);
  font-size: 16px;
  margin-top: -5px;
}
.c-header__nav-list li {
  line-height: 100%;
}
.c-header__nav-list li + li {
  margin-top: 24px;
}
.c-header__nav-list + .c-header__nav-heading {
  margin-top: 64px;
}
@media (min-width: 1024px) {
  .c-header__nav-list .c-link:not(:hover) span {
    transition: none;
  }
}

/* c-link-banner */
.c-header__nav-list .c-link-banner {
  display: grid;
  gap: 10px;
  max-width: 321px;
  padding: 0;
  transition: transform var(--transition);
}
.c-header__nav-list .c-link-banner[target="_blank"]::before,
.c-header__nav-list .c-link-banner[target="_blank"]::after {
  content: none;
}
.c-header__nav-list .c-link-banner__container {
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 4px;
}
.c-header__nav-list .c-link-banner__image {
  transition: transform var(--transition);
}
.c-header__nav-list .c-link-banner:hover .c-link-banner__image {
  transform: scale(1.1);
}
.c-header__nav-list .c-link-banner p {
  overflow: hidden;
  position: relative;
  padding-right: 18px;
}
.c-header__nav-list .c-link-banner p::before {
  content: "";
  background: url(/recruit/assets/img/icon-link--light-blue.svg) no-repeat;
  background-size: cover;
  width: 24px;
  height: 24px;
  position: absolute;
  top: 2px;
  left: 0;
}
.c-header__nav-list .c-link-banner p::after {
  content: "";
  background: url(/recruit/assets/img/icon-blank--light-blue.svg) no-repeat;
  background-size: cover;
  width: 24px;
  height: 24px;
  display: inline-block;
  position: absolute;
  bottom: 1px;
}
.c-header__nav-list .c-link-banner.c-link span {
  padding-left: 30px;
  line-height: 140%;
}
.c-header__nav-list .c-link-banner:hover span {
  color: var(--keyColor);
}
.c-header__nav-list small {
  font-size: 12px;
  display: block;
  font-weight: var(--fontNormal);
  margin-top: 10px;
}
@media (min-width: 1024px) {
  .c-header__nav-list .c-link-banner:hover span:not(.is-clone) {
    transform: translateY(-110%);
  }
  .c-header__nav-list .c-link-banner:hover span.is-clone {
    transform: translateY(-117%);
  }
  .c-header__nav-list .c-link-banner span.is-clone {
    position: absolute;
    padding-left: 0;
  }
}

/* nav.is-open */
.c-header:has(.c-header__nav.is-open) .c-header__menu {
  width: 59px;
}
.c-header__nav.is-open .c-header__entry {
  grid-template-columns: 1fr 1fr;
  margin-top: 38px;
}
.c-header__nav.is-open .c-nav__entry-button {
  width: 100%;
}

/* c-header__overlay
--------------------------------------------------------------*/
.c-header__overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none;
}
.c-header__nav {
  z-index: 100;
}
.c-header__overlay.is-show {
  display: block;
}

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 Tablet
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
@media (max-width: 1023px) {
  .c-header__inner {
    padding: 0;
    height: 118px;
    align-items: flex-start;
  }
  .c-header__content {
    padding: 8px 3%;
  }
  .c-header__content::after {
    height: 75px;
  }

  /* c-header__logo
  --------------------------------------------------------------*/
  .c-header__logo {
    top: 8px;
    left: 3%;
  }
  .c-header__logo a {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .c-header__logo--img {
    width: 87px;
    margin: 6px 0 20px;
  }
  .c-header__logo--name {
    font-size: 12px;
    line-height: 140%;
    top: 1px;
  }
  .c-header__logo--name span {
    display: block;
  }
  /* nav.is-open */
  .c-header:has(.c-header__nav.is-open) .c-header__logo a {
    grid-template-columns: 87px auto;
    gap: 18px;
    align-items: center;
  }
  .c-header:has(.c-header__nav.is-open) .c-header__logo--name span {
    display: inline;
  }

  /* c-header__entry
  --------------------------------------------------------------*/
  .c-header__entry {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .c-header__entry .c-nav__entry-button {
    width: 160px;
  }
  .c-header__entry .c-nav__entry-button a::after {
    right: 5px;
  }
  .c-header__entry .c-nav__entry-button a span br {
    display: none;
  }
  .c-header__nav.is-open .c-header__entry {
    grid-column: 1 / -1;
    margin-top: 23px;
    gap: 10px;
  }
  .c-header__entry .c-nav__entry-button .c-link-button {
    padding: 5px 10px;
  }
  .c-header__entry .c-nav__entry-button .c-link-button span {
    font-size: 12px;
  }
  .c-header__nav.is-open .c-nav__entry-button a span br {
    display: block;
  }
  .c-header__nav.is-open .c-header__entry .c-nav__entry-button .c-link-button {
    padding: 10px 15px;
  }
  .c-header__nav.is-open
    .c-header__entry
    .c-nav__entry-button
    .c-link-button
    span {
    font-size: 15px;
  }

  /* c-header__nav
  --------------------------------------------------------------*/
  .c-header__nav {
    padding: 80px 5% 80px;
    height: 100vh;
  }
  .c-header__nav-inner {
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 32px;
  }
  .c-header__nav-block {
    display: grid;
    grid-template-columns: 109px 1fr;
    gap: 5%;
  }
  .c-header__nav-heading {
    display: block;
    font-size: 14px;
    margin-bottom: 0;
  }
  .c-header__nav-heading span {
    display: block;
    font-size: 12px;
    margin-top: 0;
  }
  .c-header__nav-list li + li {
    margin-top: 16px;
  }
  .c-header__nav-list .c-link-banner span {
    font-size: 14px;
  }
  .c-header__nav-list .c-link {
    padding: 0;
    font-size: 14px;
    line-height: 140%;
  }
  .c-header__nav-list .c-link:before {
    content: none;
  }
  .c-header__nav-list .c-link span {
    font-size: 14px;
  }
  .c-header__nav-list .c-link-banner span::after {
    height: 19px;
    display: inline-block;
    position: static;
  }
  .c-header__nav-list small {
    margin-top: 5px;
  }
  .c-header__nav-list .c-link-banner p::before {
    content: none;
  }
  .c-header__nav-list .c-link-banner.c-link span {
    padding-left: 0;
    display: inline;
  }
}
