/**
 * Conceptページ専用のスタイル
 */

.ms-concept-concept {
  padding-block: 3.4rem;
}
.ms-concept-concept__box1 {
  display: flex;
  gap: 0.5rem;

  > * {
    flex: 1 1 auto;
  }
  > div {
    flex: 1 1 50%;
  }
}

.ms-concept-point__item {
  gap: 1.5cqi;
  position: relative;

  &:nth-child(odd) {
    flex-direction: row-reverse;
    padding-left: 8.5cqi;
  }
  &:nth-child(even) {
    padding-right: 8.5cqi;
  }
}
@media print, screen and (max-width: 959px) {
  .ms-concept-concept__box1 {
    display: flex;
    gap: 0.5rem;

    > * {
      flex: 1 1 auto;
    }
    > div {
      flex: 1 0 50%;
    }
  }

  .ms-concept-point__item {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5cqi;

    &:nth-child(odd) {
      padding-left: 0;
    }
    &:nth-child(even) {
      padding-right: 0;
    }
  }
}
.ms-concept-point__item-number {
}
@media print, screen and (max-width: 959px) {
  .ms-concept-point__item-number {
    position: relative;
    width: fit-content;
    &::before {
      content: "";
      width: 64cqi;
      height: 1px;
      background-color: #000;
      position: absolute;
      top: 50%;
      left: 107%;
      transform: translateY(-50%);
    }
  }
}

.ms-concept-point__item-title {
  position: relative;
  width: fit-content;
  &::before {
    content: "";
    width: 80%;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 50%;
    left: 107%;
    transform: translateY(-50%);
  }
}
@media print, screen and (max-width: 959px) {
  .ms-concept-point__item-title {
    &::before {
      display: none;
    }
  }
}
.ms-concept-point__item-contents {
  position: relative;
}
.concept-point__illust2 {
  position: absolute;
  left: 370px;
  top: 360px;
  width: 162px;
}
@media print, screen and (max-width: 1240px) {
  .concept-point__illust2 {
    left: 310px;
    top: 390px;
    width: 132px;
  }
}
@media print, screen and (max-width: 959px) {
  .concept-point__illust2 {
    left: 65%;
    bottom: 0;
    width: 7rem;
  }
}
.concept-point__illust3 {
  position: absolute;
  left: 420px;
  top: 240px;
  width: 98px;
}
@media print, screen and (max-width: 1240px) {
  .concept-point__illust3 {
    left: 400px;
    top: 300px;
    width: 80px;
  }
}
@media print, screen and (max-width: 959px) {
  .concept-point__illust3 {
    left: 77%;
    bottom: 0;
    width: 4rem;
  }
}

/* ギャラリー自動スクロール */
.ms-concept-story__gallery {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ms-concept-story__gallery-inner {
  display: flex;
  gap: 3rem;
  animation: scroll-horizontal 50s linear infinite;
  will-change: transform;
}

.ms-concept-story__gallery-inner figure.wp-block-image {
  flex: 0 0 auto;
  margin: 0;
  width: auto;
  height: 492px;
}

@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(var(--scroll-distance, -50%));
  }
}

.ms-concept-story__contents {
  margin-top: -4.5rem;
  position: relative;
  z-index: 2;
}
@media print, screen and (max-width: 959px) {
  .ms-concept-story__contents {
    margin-top: -2.5rem;
  }
}
.ms-concept-story__contents-item {
  &:nth-child(2) {
    translate: 0 4rem;
  }
  &:nth-child(3) {
    translate: 0 8rem;
  }
}
@media print, screen and (max-width: 959px) {
  .ms-concept-story__contents-item {
    &:nth-child(2) {
      translate: 0 0;
    }
    &:nth-child(3) {
      translate: 0 0;
    }
  }
}
