@charset "utf-8";

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

.l-anchor {
  scroll-margin-top: 122px;

  @media (width < 768px) {
    scroll-margin-top: 70px;
  }
}

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

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

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

.c-heading__ja {
  color: #555555;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
}

.c-heading.is-small {
  gap: 10px;

  .c-heading__en {
    font-size: 33px;
  }
}

.c-arrow-btn {
  background: #fff;
  border-radius: 5px;
  display: flex;
  padding: 0 9px;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 350px;
  height: 51px;
  cursor: pointer;
}

.c-arrow-btn__text {
  flex: 1 1 auto;

  p {
    color: var(--color-red);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
    transition: all 0.3s ease;
  }
}

.c-arrow-btn__arrow {
  width: 34px;
  aspect-ratio: 1;
  background: #e76a60;
  box-shadow: inset 0px 3px 16px #ffffff45;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;

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

.c-arrow-btn:hover {
  p {
    color: var(--color-d-red);
  }

  .c-arrow-btn__arrow {
    background: var(--color-d-red);
  }
}

.c-arrow-btn.is-red {
  background: var(--color-l-red);
  box-shadow: inset 0px 3px 16px #ffffff52;

  .c-arrow-btn__text {
    p {
      color: var(--color-white);
    }
  }

  .c-arrow-btn__arrow {
    background: var(--color-white);
    box-shadow: none;
  }
}

.c-arrow-btn.is-red:hover {
  background: var(--color-d-red);
}

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

  div {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 181px;
    font-family: var(--font-noto-sans);
    color: var(--color-white);
    font-weight: 400;
    line-height: 1;

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

    p {
      padding-right: 1em;
    }
  }
}

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

  div {
    font-size: 60px;
  }
}

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

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

.c-category {
  background: #e8e8e8;
  border-radius: 50px;
  color: var(--color-red);
  font-size: 11px;
  width: fit-content;
  min-width: 78px;
  padding: 4px 8px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
}

.c-category.is-news {
  background: var(--color-white);
}

.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: 20px;

    @media (width < 768px) {
      gap: 8px;
    }
  }

  .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-news-item {
  width: 100%;
  height: 84px;
  background: #f8f8f8;
  border-radius: 10px;
  display: flex;
  padding: 0 70px 0 36px;
  gap: 5px;
  align-items: center;
  position: relative;

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

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

    @media (width < 1120px) {
      gap: 8px;
    }
  }

  .c-category {
    background: var(--color-white);
    font-size: 12px;
  }

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

.c-news-item::after {
  content: "";
  position: absolute;
  background: var(--color-red) url("https://daishin-reform.com/system_panel/uploads/images/arrow-right-white.svg") no-repeat center center / 30%;
  width: 26px;
  aspect-ratio: 1;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  right: 40px;

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

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

.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: #e66258;
    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://daishin-reform.com/system_panel/uploads/images/page-arrow-red.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://daishin-reform.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;
  }
}
