@charset "utf-8";

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

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

.js-fadein-trigger {
  opacity: 0;
}

.fade-in {
  animation-name: fadeIn;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

.c-noise {
  position: relative;
  z-index: 0;
}

.c-noise::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent url('https://mykako.co.jp/system_panel/uploads/images/noise.png') repeat top left;
}

.c-square {
  position: relative;
  z-index: 0;
}

.c-square::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 599px;
  height: 598px;
  top: 0;
  background: linear-gradient(180deg, hsla(211, 81%, 42%, 0.8) 0%, #2fe4c044 80%, #2fe4c000 100%);
  clip-path: polygon(52% 0%, 100% 0%, 48% 100%, 0% 100%);
}

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

.c-heading__en {
  font-family: var(--font-noto-sans);
  font-weight: 600;
  font-size: 65px;
  line-height: 1;
  color: var(--color-blue);
}

.c-heading__ja {
  font-weight: 700;
  line-height: calc(32 / 14);
}

.c-btn {
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 220px;
  height: 50px;
  padding: 0 26px 0 40px;
  background: linear-gradient(#1b6fc5 0%, #85cad1 100%);
  border-radius: 10px;
  transition: all 0.3s ease;

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

  p {
    color: var(--color-white);
    font-weight: 600;
  }
}

.c-btn::after {
  content: '';
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  background: url('https://mykako.co.jp/system_panel/uploads/images/arrow-white.svg') no-repeat center center / contain;
}

.c-btn:hover {
  filter: brightness(0.8);
}

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

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

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

  @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: 12px;
    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;
  }
}

.c-news-item::after {
  content: '';
  position: absolute;
  background: var(--color-blue) url('https://mykako.co.jp/system_panel/uploads/images/arrow-white.svg') no-repeat center center / 50%;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  top: 50%;
  transform: translateY(-50%);
  right: 43px;

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

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

.c-page-top {
  position: fixed;
  width: 102px;
  aspect-ratio: 1;
  bottom: 40px;
  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: 10px;
    width: 8px;
    aspect-ratio: 9/6;
    object-fit: contain;
  }

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

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

.c-page-top.is-show:hover {
  opacity: 0.7;
}

.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%;
    background: var(--color-white);
  }

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