@property --100vw {
  syntax: "<length>";
  initial-value: 0px;
  inherits: false;
}

:root {
  --100vw: 100vw;
  --100vwpx: calc(
    10000 * tan(atan2(var(--100vw), 10000px))
  );
  timeline-scope: --kv-timeline, --footer-timeline;
}

@keyframes inquiry-entry {
  from {
    translate: 0 100%;
    opacity: 0;
    visibility: hidden;
  }

  to {
    translate: 0 0;
    opacity: 1;
    visibility: visible;
  }
}

@keyframes inquiry-exit {
  from {
    translate: 0 0;
    opacity: 1;
  }

  to {
    translate: 0 100%;
    opacity: 0;
    visibility: hidden;
  }
}

.stage {
  overflow: clip;
}

.wrap {
  background-color: #E5E7EB;
}

.kv {
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221%22%20height%3D%224%22%3E%3Crect%20fill%3D%22%23E5E7EB%22%20width%3D%221%22%20height%3D%224%22%2F%3E%3C%2Fsvg%3E") repeat-x center bottom 43px,
    url("../images/202310/img_kv_bg_02.png") no-repeat center bottom 45px,
    url("../images/202310/img_kv_bg_01.jpg") no-repeat center bottom 45px/cover,
  #E5E7EB;
  view-timeline: --kv-timeline y;
}

footer {
  view-timeline: --footer-timeline y;
}

.inquiry {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  animation: inquiry-entry linear 1ms both;
  animation-timeline: --kv-timeline;
  animation-range: exit 0 exit 94px;
}

.inquiry__inner {
  display: flex;
  justify-content: center;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.8);
  animation: inquiry-exit linear 1ms both;
  animation-timeline: --footer-timeline;
  animation-range: entry 0 entry 94px;
}

@media (min-width: 768px) {
  .inquiry {
    position: absolute;
    inset: unset;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.reason {
  padding-top: 45px;
}

.p-article-carousel {
  --article-carousel-primary: #4c87fc;
  width: 824px;
  max-width: calc(100% - 40px);
  margin: 60px auto 0;
  letter-spacing: 0;
}

.p-article-carousel__stage {
  position: relative;
}

.p-article-carousel__swiper {
  padding-top: 32px;
}

.p-article-carousel .swiper-slide {
  height: auto;
}

.p-article-carousel__card {
  position: relative;
  display: flex;
  gap: 16px;
  height: 100%;
  padding: 24px;
  border-radius: 20px;
  background: var(--color-white, #fff);
  color: #120a32;
  text-decoration: none;
}

.p-article-carousel__image {
  display: block;
  flex: 0 0 46.3917525773%;
}

.p-article-carousel__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 360 / 203;
  border-radius: 10px;
  object-fit: cover;
}

.p-article-carousel__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.p-article-carousel__title {
  width: 100%;
  margin: 0;
  font-size: 20px;
  font-weight: var(--font-weight-bold, 700);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.p-article-carousel__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--article-carousel-primary);
  box-shadow: 0 5px 5px rgb(18 10 50 / 20%);
  color: var(--color-white, #fff);
  overflow: hidden;
  font-size: 16px;
  font-weight: var(--font-weight-bold, 700);
  line-height: 1.3;
  white-space: nowrap;
}

.p-article-carousel__link::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: -5%;
  width: 0;
  height: 100%;
  background: #0557a6;
  transition: width var(--hover-transition-duration, 0.3s)
    var(--hover-transition-easing, ease-out);
}

.p-article-carousel__check {
  position: absolute;
  top: -32px;
  left: 24px;
}

.p-article-carousel__check picture,
.p-article-carousel__check img,
.p-article-carousel__nav picture,
.p-article-carousel__nav img {
  display: block;
}

.p-article-carousel__check > span {
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  color: var(--color-white, #fff);
  font-size: 20px;
  font-weight: var(--font-weight-bold, 700);
  line-height: 1.5;
  text-align: center;
}

.p-article-carousel__nav {
  position: absolute;
  z-index: 2;
  top: calc(50% + 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e5e7eb;
  cursor: pointer;
  transform: translateY(-50%);
}

.p-article-carousel__nav--prev {
  left: -24px;
}

.p-article-carousel__nav--prev picture {
  transform: scaleX(-1);
}

.p-article-carousel__nav--next {
  right: -24px;
}

.p-article-carousel__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 8px;
  margin-top: 24px;
}

.p-article-carousel .p-article-carousel__pagination .swiper-pagination-bullet {
  display: block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-white, #fff);
  opacity: 1;
  cursor: pointer;
  transform: scale(0.5);
}

.p-article-carousel .p-article-carousel__pagination .swiper-pagination-bullet-active {
  background: var(--article-carousel-primary);
  transform: none;
}

.p-article-carousel__card:focus-visible,
.p-article-carousel__nav:focus-visible,
.p-article-carousel__pagination .swiper-pagination-bullet:focus-visible {
  outline: 2px solid var(--article-carousel-primary);
  outline-offset: -2px;
}

.p-article-carousel__nav.swiper-button-lock,
.p-article-carousel__pagination.swiper-pagination-lock {
  display: none;
}

@media (hover: hover) {
  .p-article-carousel__link:hover::before {
    width: 110%;
  }
}

@media (max-width: 767px) {
  .kv {
    background:
      url("../images/202310/img_kv_bg_02.png")
      no-repeat
      calc(50% - 16vw) calc(100% - 16vw)/256% auto,
      linear-gradient(to bottom, #e5e7eb 0%, #e5e7eb 100%)
      no-repeat
      0 100%/100% 16vw,
      #000 url("../images/202611/img_kv_bg_01_sp.jpg") no-repeat center calc(100% + var(--100vwpx) / 375 * 80px)/100% auto;
  }

  .kv .box {
    padding-bottom: calc(250 / 375 * 100%);
  }

  .p-article-carousel {
    width: calc(304 / 345 * 100%);
    margin-top: 32px;
  }

  .p-article-carousel__swiper {
    padding-top: 24px;
  }

  .p-article-carousel__card {
    flex-direction: column;
  }

  .p-article-carousel__image {
    flex: none;
    width: 100%;
  }

  .p-article-carousel__image img {
    aspect-ratio: 16 / 9;
  }

  .p-article-carousel__body {
    align-items: center;
  }

  .p-article-carousel__title {
    display: -webkit-box;
    height: 72px;
    overflow: hidden;
    font-size: 16px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .p-article-carousel__check {
    top: -24px;
  }

  .p-article-carousel__check > span {
    top: 5px;
    font-size: 16px;
  }

  .p-article-carousel__nav {
    top: calc(50% + 12px);
    width: 32px;
    height: 32px;
  }

  .p-article-carousel__nav--prev {
    left: -20px;
  }

  .p-article-carousel__nav--next {
    right: -20px;
  }

  .p-article-carousel__pagination {
    margin-top: 16px;
  }
}
