@charset "utf-8";

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

.fade-up {
  animation-name: fadeUp;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gjs-dashed *[data-highlightable] .js-fade-trigger {
  opacity: 1;
  transform: translateY(0);
}

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

.c-heading {
  display: flex;
  flex-direction: column;
}

.c-heading.is-underline {
  border-bottom: 1px solid var(--color-base);
  padding-bottom: 18px;
}

.c-heading__en {
  text-transform: uppercase;
  font-family: var(--font-heading-en);
  font-size: 60px;
  font-weight: 500;
  line-height: 1;
}

.c-heading__ja {
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.c-arrow-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  background: var(--color-base);
  min-width: 220px;
  height: 50px;
  border-radius: 100px;

  div {
    flex: 1 1 auto;
    text-align: center;

    p {
      font-weight: 500;
      color: var(--color-white);
      line-height: normal;
      transition: all 0.3s ease-out;
    }
  }
}

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

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

.c-arrow-btn::after {
  content: '';
  flex-shrink: 0;
  width: 32px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--color-white);
  background: transparent url('https://tkk4649.jp/system_panel/uploads/images/btn-arrow-white.svg') no-repeat center center / 40%;
  transition: all 0.3s ease-out;
}

.c-arrow-btn:hover::after {
  background: var(--color-base) url('https://tkk4649.jp/system_panel/uploads/images/btn-arrow-white.svg') no-repeat center center / 40%;
}

.c-arrow-btn.is-entry,
.c-arrow-btn.is-recruit,
.c-arrow-btn.is-line {
  max-width: 255px;
  width: 100%;
  min-width: auto;
  padding: 0 10px 0 20px;
  position: relative;

  div p {
    @media (width < 1120px) {
      font-size: 12px;
    }
  }
}

.c-arrow-btn.is-entry::before,
.c-arrow-btn.is-recruit::before,
.c-arrow-btn.is-line::before {
  content: '';
  flex-shrink: 0;
  transition: all 0.3s ease-out;
  position: absolute;
  left: 25px;

  @media (width < 1120px) {
    left: 16px;
  }
}

.c-arrow-btn.is-entry::before {
  width: 12px;
  height: 18px;
  background: url('https://tkk4649.jp/system_panel/uploads/images/entry-icon-white.svg') no-repeat center center / contain;
}

.c-arrow-btn.is-entry:hover::before {
  background: url('https://tkk4649.jp/system_panel/uploads/images/entry-icon-black.svg') no-repeat center center / contain;
}

.c-arrow-btn.is-recruit::before {
  width: 14px;
  height: 19px;
  background: url('https://tkk4649.jp/system_panel/uploads/images/board-icon-white.svg') no-repeat center center / contain;
}

.c-arrow-btn.is-recruit:hover::before {
  background: url('https://tkk4649.jp/system_panel/uploads/images/board-icon-black.svg') no-repeat center center / contain;
}

.c-arrow-btn.is-line::before {
  width: 22px;
  height: 21px;
  background: url('https://tkk4649.jp/system_panel/uploads/images/line-icon-white.svg') no-repeat center center / contain;
}

.c-arrow-btn.is-line:hover::before {
  background: url('https://tkk4649.jp/system_panel/uploads/images/line-icon-black.svg') no-repeat center center / contain;
}

.c-arrow-btn.is-recruit::after {
  background: var(--color-base) url('https://tkk4649.jp/system_panel/uploads/images/new-window-icon-white.svg') no-repeat center center / 40%;
}

.c-text-slide {
  overflow: hidden;
  display: flex;
  width: max-content;
  animation: slideText 20s linear infinite;

  div {
    flex: 0 0 auto;
    white-space: nowrap;

    p {
      padding-right: 2em;
      font-family: var(--font-noto-sans);
      color: rgba(241, 198, 45, 0.5);
      font-size: clamp(140px, calc(224vw / 13.66), 300px);
      line-height: 1;
      letter-spacing: 0.03em;

      @media (width < 768px) {
        font-size: 124px;
      }
    }
  }
}

.gjs-dashed *[data-highlightable] .c-text-slide {
  animation: none;

  p {
    font-size: 60px;
    line-height: 1;
  }
}

@keyframes slideText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.c-date {
  font-family: var(--font-noto-sans);
  font-weight: 400;
  font-size: 12px;
  line-height: normal;
  color: #43423f;
}

.c-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 4px 5px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: var(--color-base);
  color: var(--color-white);
}

.c-news-item {
  width: 100%;
  height: 80px;
  border-radius: 5px;
  display: flex;
  padding: 0 80px 0 40px;
  background: var(--color-white);
  gap: 45px;
  align-items: center;
  position: relative;

  @media (width < 1120px) {
    flex-direction: column;
    align-items: start;
    height: auto;
    padding: 16px 40px 16px 16px;
    gap: 5px;
  }

  .c-news-item__date-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 98px;
  }

  .c-news-item__title {
    width: 100%;
    line-height: calc(30 / 14);
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease-out;
  }
}

.c-news-item::after {
  content: '';
  position: absolute;
  background: var(--color-base) url('https://tkk4649.jp/system_panel/uploads/images/btn-arrow-white.svg') no-repeat center/ 50%;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  top: 50%;
  transform: translateY(-50%);
  right: 38px;
  transition: all 0.3s ease-out;

  @media (width < 1120px) {
    right: 12px;
  }
}

.c-news-item:hover {
  .c-news-item__title {
    color: var(--color-yellow);
  }
}

.c-page-top {
  position: fixed;
  width: 102px;
  aspect-ratio: 1;
  bottom: 80px;
  right: 20px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  z-index: 10;
  background: var(--color-white);

  @media (width < 768px) {
    right: 20px;
    width: 70px;
    gap: 10px;
  }

  img {
    margin-top: 12px;
    width: 8px;
    aspect-ratio: 9/6;
    object-fit: contain;
  }

  p {
    font-family: var(--font-noto-sans);
    text-align: center;
    color: #505050;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    @media (width < 768px) {
      font-size: 10px;
    }
  }
}

.c-page-top.is-show,
.gjs-dashed *[data-highlightable] .c-page-top {
  opacity: 1;
  visibility: visible;
}

.webgene-pagination {
  justify-self: center;
  grid-column: 1 / -1;
  color: #4b4b4b;

  ul .number a {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 400;
    line-height: 1;
    background: #f9f9f9;
  }

  ul .number a:hover,
  ul .number.selected a {
    background: var(--color-base);
    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://tkk4649.jp/system_panel/uploads/images/page-arrow-black.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://tkk4649.jp/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;
  }
}
