@charset "utf-8";

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

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

.c-heading__en {
  color: var(--color-blue);
  font-family: var(--font-noto-sans);
  font-size: 63px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.c-heading__en.is-long {
  @media (width < 768px) {
    font-size: 48px;
  }
}

.c-heading__ja {
  color: var(--color-gray);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
}

.c-sub-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.c-sub-heading__ja {
  font-weight: 600;
  font-size: 26px;
  line-height: 1.269;
  letter-spacing: 0.05em;
}

.c-sub-heading__en {
  font-family: var(--font-noto-sans);
  color: var(--color-blue);
  line-height: 1.4;
  margin-left: 0.3em;
}

.c-link-btn {
  border: 1px solid #9dbbdb;
  background: #fff;
  border-radius: 5px;
  display: flex;
  padding: 7px 9px;
  gap: 10px;
  align-items: center;
  width: fit-content;
  cursor: pointer;

  p {
    color: var(--color-d-blue);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  img {
    width: 26px;
    aspect-ratio: 1;
    object-fit: contain;
  }
}

.c-link-btn:hover {
  background: #f0f5f9;
}

.c-link-btn.is-blue {
  background: var(--color-d-blue);
  border: 1px solid var(--color-d-blue);

  p {
    color: #fff;
  }
}

.c-link-btn.is-blue:hover {
  background: #003e70;
}

.c-date {
  color: #9d9d9d;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.c-category {
  background: #e0ecfa;
  border-radius: 12px;
  color: var(--color-d-blue);
  font-size: 12px;
  width: fit-content;
  min-width: 78px;
  padding: 4px 10px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  flex-shrink: 0;
  text-align: center;
}

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

  .c-works-item__head {
    width: 100%;
    aspect-ratio: 358/247;
    border-radius: 10px;
    overflow: hidden;

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

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

  .c-works-item__tags {
    display: flex;
    align-items: center;
    gap: 25px;
  }

  .c-works-item__title {
    margin-top: 8px;
    line-height: 2.143;
    letter-spacing: 0.06em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    min-height: 50px;
  }
}

.c-blog-item {
  width: 100%;
  height: 84px;
  background: #f8f8f8;
  border-radius: 10px;
  display: flex;
  padding: 0 60px 0 40px;
  gap: 30px;
  align-items: center;
  position: relative;

  @media (width < 768px) {
    flex-direction: column;
    align-items: start;
    height: auto;
    padding: 16px 28px 16px 16px;
    gap: 6px;
  }

  .c-blog-item__date-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .c-category {
    padding: 4px 7px;
  }

  .c-blog-item__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.05em;

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

.c-blog-item::after {
  content: "";
  position: absolute;
  background: url("https://arrows8.co.jp/system_panel/uploads/images/blog-list-arrow.svg") no-repeat center center / contain;
  width: 26px;
  aspect-ratio: 1;
  top: 50%;
  transform: translateY(-50%);
  right: 40px;

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

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

.c-page-top {
  position: fixed;
  width: 102px;
  aspect-ratio: 1;
  bottom: 100px;
  right: 50px;
  background: #0273c7;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  z-index: 10;
  transition: all 0.3s ease;

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

  img {
    margin-top: 12px;
    width: 13px;
    aspect-ratio: 9/6;
    transform: rotate(-90deg);
    object-fit: contain;
    transition: all 0.3s ease;
  }

  p {
    text-align: center;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.333;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
}

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

.c-page-top:hover {
  background: #003e70;
}

.c-page-top.is-show {
  opacity: 1;
  visibility: visible;
}

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

  ul .number a {
    background: #ebebeb;
  }

  ul .number a:hover,
  ul .number.selected a {
    background: #0f55a4;
    color: #ffffff;
  }

  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;
  }

  ul .number a {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
  }

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

  li.next {
    margin-left: 20px;
  }

  li.prev {
    margin-right: 20px;
  }

  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://arrows8.co.jp/system_panel/uploads/images/pagination-arrow-blue.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://arrows8.co.jp/system_panel/uploads/images/pagination-arrow-gray.svg") no-repeat center center / contain;
    transition: all 0.3s ease-out;
  }

  li.prev:after {
    left: 0;
  }

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