@charset "utf-8";

.js-fade-trigger {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1s,
    transform 1s;
}

.gjs-dashed .js-fade-trigger {
  opacity: 1;
  transform: none;
}

.js-fade-trigger.fade-up {
  opacity: 1;
  transform: none;
}

.fade-up.is-delay01 {
  transition-delay: 0.2s;
}

.fade-up.is-delay02 {
  transition-delay: 0.4s;
}

.l-inner {
  max-width: 1242px;
  margin: 0 auto;
  padding: 0 20px;
}

.c-heading__en {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-inter);
  color: var(--color-green);
  font-size: 12px;
  line-height: calc(32 / 12);
  letter-spacing: 0.03em;

  &::before {
    content: '';
    width: 50px;
    height: 1px;
    background: currentColor;
  }
}

.c-heading__ja {
  margin-top: 28px;
  font-family: var(--font-noto-serif-jp);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;

  @media (width < 1120px) {
    font-size: 30px;
  }

  @media (width < 768px) {
    margin-top: 12px;
    font-size: 26px;
  }
}

.c-page-heading__en {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-inter);
  color: var(--color-base);
  font-size: 12px;
  line-height: calc(32 / 12);
  letter-spacing: 0.02em;

  &::before {
    content: '';
    width: 50px;
    height: 1px;
    background: currentColor;
  }
}

.c-page-heading__ja {
  font-family: var(--font-noto-serif-jp);
  font-size: 36px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;

  @media (width < 1120px) {
    font-size: 30px;
  }

  @media (width < 768px) {
    margin-top: 12px;
    font-size: 26px;
  }
}

.c-arrow-btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  height: 50px;
  padding: 0 20px;
  border: 1px solid var(--color-green);
  font-weight: 700;

  p {
    font-weight: 500;
    color: var(--color-green);
    line-height: 1;
  }
}

.c-arrow-btn,
.c-arrow-btn p,
.c-arrow-btn::after {
  transition: all 0.3s ease;
}

.c-arrow-btn::after {
  content: '';
  width: 12px;
  height: 10px;
  background: url('https://e-mot-weld.com/system_panel/uploads/images/arrow-green.svg') no-repeat center center / contain;
}

.c-arrow-btn:hover::after {
  background: url('https://e-mot-weld.com/system_panel/uploads/images/arrow-white.svg') no-repeat center center / contain;
}

.c-arrow-btn:hover {
  background: var(--color-green);

  p {
    color: var(--color-white);
  }
}

.c-arrow-btn--light {
  border: 1px solid var(--color-l-green);

  p {
    color: var(--color-l-green);
  }
}

.c-arrow-btn--light::after {
  background: url('https://e-mot-weld.com/system_panel/uploads/images/arrow-white.svg') no-repeat center center / contain;
}

.c-arrow-btn--light:hover {
  background: var(--color-white);

  p {
    color: var(--color-green);
  }
}

.c-arrow-btn--light:hover::after {
  background: url('https://e-mot-weld.com/system_panel/uploads/images/arrow-green.svg') no-repeat center center / contain;
}

.c-date {
  font-size: 12px;
  color: var(--color-green);
}

.c-category {
  width: fit-content;
  padding: 4px 5px;
  border: 1px solid #c4d0bd;
  color: var(--color-green);
  font-size: 10px;
  line-height: 1.3;
}

.c-works-item a:hover {
  opacity: 0.7;
}

.c-works-item__link--product {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.c-works-item__head {
  width: 100%;
  aspect-ratio: 38/28;
  overflow: hidden;
  border-radius: 2px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.c-works-item__body {
  margin-top: 15px;
}

.c-works-item__title {
  margin-top: 20px;
  font-family: var(--font-noto-serif-jp);
  font-size: 22px;
  font-weight: 600;
  line-height: calc(30 / 22);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  min-height: 1em;
}

.c-works-item__title--works {
  margin-top: 17px;
  font-size: 20px;
  font-weight: 500;
}

.c-works-item__comment {
  margin-top: 14px;
  line-height: calc(25 / 14);
  min-height: 50px;
}

.c-works-item__btn {
  margin-top: 22px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  line-height: calc(20 / 14);
  padding-bottom: 2px;
  border-bottom: 1px solid #c4d0bd;
}

.c-works-item__btn::after {
  content: '';
  width: 14px;
  height: 6px;
  background: url('https://e-mot-weld.com/system_panel/uploads/images/arrow-black.svg') no-repeat center center / contain;
}

.c-news-item {
  width: 100%;
  height: 75px;
  display: flex;
  padding: 24px 0;
  align-items: center;
  border-bottom: 1px solid #c4d0bd;

  @media (width < 768px) {
    flex-direction: column;
    align-items: start;
    height: auto;
    padding: 14px 0;
  }

  .c-news-item__date-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    min-width: 218px;

    @media (width < 1120px) {
      min-width: 150px;
    }
  }

  .c-news-item__title {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.c-news-item:hover {
  opacity: 0.7;
}

.webgene-pagination {
  justify-self: center;
  grid-column: 1 / -1;

  ul .number a {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 400;
    line-height: 1;
    border: 1px solid #c4c4c4;
    background: var(--color-white);
    transition: all 0.3s ease;
  }

  ul .number a:hover,
  ul .number.selected a {
    background: var(--color-green);
    border: 1px solid var(--color-green);
    color: var(--color-white);
  }

  ul .number.selected a {
    pointer-events: none;
  }

  ul {
    display: flex;
    list-style: none;
    gap: 10px;
    padding-inline-start: 0;
    justify-content: center;
    align-items: center;
  }

  li.next,
  li.prev {
    position: relative;
  }

  li.next {
    margin-left: 20px;

    @media (width < 768px) {
      margin-left: 8px;
    }
  }

  li.prev {
    margin-right: 20px;

    @media (width < 768px) {
      margin-right: 8px;
    }
  }

  li.next a,
  li.prev a {
    height: 40px;
    width: 76px;
    line-height: 1;
    display: flex;
    align-items: center;
  }

  li.prev a {
    justify-content: end;
  }

  li.next:hover::after,
  li.prev:hover::after {
    background: url('https://e-mot-weld.com/system_panel/uploads/images/page-arrow-green.svg') no-repeat center center / contain;
  }

  li.prev:after,
  li.next:after {
    pointer-events: none;
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 40px;
    height: 40px;
    background: url('https://e-mot-weld.com/system_panel/uploads/images/page-arrow-white.svg') no-repeat center center / contain;
    transition: all 0.3s ease-out;
  }

  li.prev:after {
    left: 0;
    transform: translateY(-50%) rotate(180deg);
  }

  li.next:after {
    right: 0;
  }
}
