@charset "utf-8";

.p-nav {
  margin-top: -15px;
  background: var(--color-l-green);
  position: relative;
}

.p-nav::before {
  content: '';
  position: absolute;
  top: clamp(-136px, calc(-136vw / 13.66), -100px);
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: url('https://e-mot-weld.com/system_panel/uploads/images/nav-bg.png') no-repeat top center / clamp(1366px, 100vw, 100vw) auto;

  @media (width < 768px) {
    background: url('https://e-mot-weld.com/system_panel/uploads/images/nav-bg.png') no-repeat top center / 767px auto;
  }
}

.p-nav__container {
  border-bottom: 1px solid #c4d0bd;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.p-nav__list,
.p-nav__container > .webgene-blog {
  display: flex;
  flex-wrap: wrap;
  margin-left: -32px;

  @media (width < 1120px) {
    margin-left: -20px;
  }

  @media (width < 768px) {
    margin-left: 0;
    flex-direction: column;
    border-bottom: none;
  }
}

.p-nav__item {
  width: 100%;
  max-width: 298px;
  min-width: fit-content;

  @media (width < 1120px) {
    max-width: 230px;
  }

  @media (width < 768px) {
    max-width: 100%;
  }
}

.p-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 25px 54px 28px 30px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.3s ease;

  @media (width < 1120px) {
    padding: 25px 20px 28px 20px;
  }

  @media (width < 768px) {
    padding: 20px;
    border-bottom: 1px solid #c4d0bd;
  }
}

.p-nav__link::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: #c4d0bd;

  @media (width < 768px) {
    display: none;
  }
}

.p-nav__link::after {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: url('https://e-mot-weld.com/system_panel/uploads/images/nav-arrow.svg') no-repeat center center / contain;
  transition: all 0.3s ease;
}

.p-nav__link.is-selected {
  pointer-events: none;
}

.p-nav__link:hover,
.p-nav__link.is-selected {
  color: var(--color-green);
}

.p-nav__link:hover::after,
.p-nav__link.is-selected::after {
  background: url('https://e-mot-weld.com/system_panel/uploads/images/nav-arrow-green.svg') no-repeat center center / contain;
}
