/*
 * =====================================================
 *
 * [service.machinery.works]
 *
 * =====================================================
 */

/*
 * -----------------------------------------------------
 * 流れる納入実績
 * -----------------------------------------------------
 */
body.service.machinery.works .worksMarqueeArea {
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 20px;
  margin-bottom: 100px;
  overflow: hidden;
}

body.service.machinery.works .worksMarquee {
  width: 100%;
  overflow: hidden;
}

body.service.machinery.works .worksMarquee:not(:last-child) {
  margin-bottom: 12px;
}

body.service.machinery.works .worksMarqueeTrack {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

body.service.machinery.works .worksMarqueeItem {
  width: 420px;
  aspect-ratio: 16 / 7;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

body.service.machinery.works .worksMarqueeItem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
 * 1段目 →
 */
body.service.machinery.works .worksMarquee01 .worksMarqueeTrack {
  animation: worksMarqueeRight 100s linear infinite;
}

/*
 * 2段目 ←
 */
body.service.machinery.works .worksMarquee02 .worksMarqueeTrack {
  animation: worksMarqueeLeft 110s linear infinite;
}

/*
 * 3段目 →
 */
body.service.machinery.works .worksMarquee03 .worksMarqueeTrack {
  animation: worksMarqueeRight 105s linear infinite;
}

/*
 * -----------------------------------------------------
 * 最新3件
 * -----------------------------------------------------
 */
body.service.machinery.works .worksFeature {
  margin: 100px 0 120px;
}

body.service.machinery.works .worksFeatureHead {
  margin-bottom: 45px;
}

body.service.machinery.works .worksFeatureEn {
  margin: 0 0 8px;
  color: #FE7A0B;
  font-size: 13px;
  letter-spacing: 0.15em;
}

body.service.machinery.works .worksFeatureTitle {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.5;
}

body.service.machinery.works .worksFeatureLead {
  margin: 15px 0 0;
  line-height: 2;
}

/*
 * スライダー
 */
body.service.machinery.works .worksFeatureSlider {
  width: 100%;
  position: relative;
}

body.service.machinery.works .worksFeatureSlide {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 1.2s ease,
    transform 1.2s ease,
    visibility 1.2s ease;
}

body.service.machinery.works .worksFeatureSlide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/*
 * 画像左・文章右
 */
body.service.machinery.works .worksFeatureLink {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 45px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

body.service.machinery.works .worksFeatureImage {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

body.service.machinery.works .worksFeatureImage img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s ease;
}

body.service.machinery.works .worksFeatureSlide.is-active .worksFeatureImage img {
  transform: scale(1);
}

body.service.machinery.works .worksFeatureContent {
  padding: 15px 0;
}

body.service.machinery.works .worksFeatureNumber {
  margin: 0 0 25px;
  color: #FE7A0B;
  font-size: 13px;
  letter-spacing: 0.15em;
}

body.service.machinery.works .worksFeatureCategory {
  margin: 0 0 8px;
  color: #888;
  font-size: 11px;
  letter-spacing: 0.15em;
}

body.service.machinery.works .worksFeatureName {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5;
}

body.service.machinery.works .worksFeatureText {
  margin: 0;
  font-size: 14px;
  line-height: 2;
}

body.service.machinery.works .worksFeatureMore {
  margin: 20px 0 0;
  font-size: 12px;
  letter-spacing: 0.12em;
}

/*
 * ドット
 */
body.service.machinery.works .worksFeatureDots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 35px;
}

body.service.machinery.works .worksFeatureDot {
  display: block;
  width: 30px;
  height: 3px;
  padding: 0;
  border: 0;
  background: #ddd;
  border-radius: 10px;
  cursor: pointer;
  appearance: none;
  transition:
    width 0.4s ease,
    background 0.4s ease;
}

body.service.machinery.works .worksFeatureDot.is-active {
  width: 60px;
  background: #FE7A0B;
}

/*
 * -----------------------------------------------------
 * 納入実績一覧
 * -----------------------------------------------------
 */
body.service.machinery.works .worksArchive {
  margin: 110px 0 120px;
}

body.service.machinery.works .worksArchiveHead {
  margin-bottom: 35px;
}

body.service.machinery.works .worksArchiveEn {
  margin: 0 0 8px;
  color: #FE7A0B;
  font-size: 13px;
  letter-spacing: 0.15em;
}

body.service.machinery.works .worksArchiveTitle {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.5;
}

body.service.machinery.works .worksArchiveLead {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 2;
}

/*
 * 3列カード
 */
body.service.machinery.works .worksArchiveGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 45px 22px;
  width: 100%;
}

body.service.machinery.works .worksArchiveItem {
  display: block;
  width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body.service.machinery.works .worksArchiveImage {
  width: 100%;
  height: 180px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

body.service.machinery.works .worksArchiveImage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

body.service.machinery.works .worksArchiveContent {
  padding-top: 14px;
}

body.service.machinery.works .worksArchiveMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

body.service.machinery.works .worksArchiveCategory {
  color: #FE7A0B;
  font-size: 10px;
  letter-spacing: 0.12em;
}

body.service.machinery.works .worksArchiveDate {
  color: #aaa;
  font-size: 10px;
}

body.service.machinery.works .worksArchiveName {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

body.service.machinery.works .worksArchiveMore {
  margin: 10px 0 0;
  font-size: 10px;
  letter-spacing: 0.12em;
}

/*
 * -----------------------------------------------------
 * animation
 * -----------------------------------------------------
 */
@keyframes worksMarqueeLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 6px));
  }
}

@keyframes worksMarqueeRight {
  from {
    transform: translateX(calc(-50% - 6px));
  }

  to {
    transform: translateX(0);
  }
}

/**
 ****************************************************
 *
 * hover
 *
 ****************************************************
 */
@media (hover: hover) and (pointer: fine) {
  body.service.machinery.works .worksMarquee:hover .worksMarqueeTrack {
    animation-play-state: paused;
  }

  body.service.machinery.works .worksFeatureLink:hover .worksFeatureImage img {
    transform: scale(1.04);
  }

  body.service.machinery.works .worksArchiveItem:hover .worksArchiveImage img {
    transform: scale(1.04);
  }
}

/**
 ****************************************************
 *
 * screens smaller than $bp
 *
 ****************************************************
 */
@media only screen and (max-width: 767px) {

  /*
   * 流れる納入実績
   */
  body.service.machinery.works .worksMarqueeArea {
    width: 100vw;
    max-width: none;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 10px;
    margin-bottom: 60px;
  }

  body.service.machinery.works .worksMarquee:not(:last-child) {
    margin-bottom: 8px;
  }

  body.service.machinery.works .worksMarqueeTrack {
    gap: 8px;
  }

  body.service.machinery.works .worksMarqueeItem {
    width: 260px;
    border-radius: 8px;
  }

  /*
   * 最新3件
   */
  body.service.machinery.works .worksFeature {
    margin: 60px 0 80px;
  }

  body.service.machinery.works .worksFeatureHead {
    margin-bottom: 30px;
  }

  body.service.machinery.works .worksFeatureEn {
    font-size: 12px;
  }

  body.service.machinery.works .worksFeatureTitle {
    font-size: 24px;
  }

  body.service.machinery.works .worksFeatureLead {
    margin-top: 12px;
    font-size: 14px;
  }

  body.service.machinery.works .worksFeatureLink {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  body.service.machinery.works .worksFeatureImage {
    border-radius: 8px;
  }

  body.service.machinery.works .worksFeatureImage img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  body.service.machinery.works .worksFeatureContent {
    padding: 0;
  }

  body.service.machinery.works .worksFeatureNumber {
    margin-bottom: 15px;
    font-size: 12px;
  }

  body.service.machinery.works .worksFeatureCategory {
    font-size: 10px;
  }

  body.service.machinery.works .worksFeatureName {
    margin-bottom: 15px;
    font-size: 21px;
  }

  body.service.machinery.works .worksFeatureText {
    font-size: 13px;
  }

  body.service.machinery.works .worksFeatureDots {
    gap: 7px;
    margin-top: 25px;
  }

  body.service.machinery.works .worksFeatureDot {
    width: 24px;
  }

  body.service.machinery.works .worksFeatureDot.is-active {
    width: 45px;
  }

  /*
   * 納入実績一覧
   */
  body.service.machinery.works .worksArchive {
    margin: 70px 0 80px;
  }

  body.service.machinery.works .worksArchiveHead {
    margin-bottom: 25px;
  }

  body.service.machinery.works .worksArchiveEn {
    font-size: 12px;
  }

  body.service.machinery.works .worksArchiveTitle {
    font-size: 24px;
  }

  body.service.machinery.works .worksArchiveLead {
    font-size: 13px;
  }

  body.service.machinery.works .worksArchiveGrid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  body.service.machinery.works .worksArchiveImage {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
  }

  body.service.machinery.works .worksArchiveContent {
    padding-top: 12px;
  }

  body.service.machinery.works .worksArchiveName {
    font-size: 16px;
  }
}
