.page-about-nishijin .content-section:has(.feature-grid) {
  background: linear-gradient(#ffffff 0%, #ffffff 56%, #f3f3f3 56%, #f3f3f3 100%)
}

.page-about-nishijin .history-block {
  width: 100%;
  max-width: none;
  padding-block: 70px;
  grid-template-columns: 45.833333% minmax(0, 1fr);
  gap: 8.611111%
}

.page-about-nishijin .history-block>img {
  height: 780px;
  object-fit: cover
}

.page-about-nishijin .history-block>div {
  max-width: 540px;
  padding-right: 40px
}

.page-about-nishijin .history-block .lead-title {
  font-size: 38px;
  line-height: 1.7
}

.page-about-nishijin .history-block>div>p {
  font-size: 16px;
  line-height: 2.1
}

@media(max-width:768px) {
  .page-about-nishijin .history-block {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 50px
  }

  .page-about-nishijin .history-block>img {
    width: 100%;
    height: 480px
  }

  .page-about-nishijin .history-block>div {
    max-width: none;
    padding: 0 25px
  }

  .page-about-nishijin .history-block .lead-title {
    font-size: 30px
  }
}

@media(max-width:576px) {
  .page-about-nishijin .history-block>img {
    height: 370px
  }

  .page-about-nishijin .history-block>div>p {
    font-size: 14px
  }
}

.page-about-nishijin .history-block {
  position: relative;
  isolation: isolate
}

.page-about-nishijin .history-block>div:not(.history-vertical) {
  padding-right: 95px;
  max-width: 540px
}

.page-about-nishijin .history-vertical {
  position: absolute;
  right: 5%;
  top: 125px;
  padding: 0;
  max-width: none
}

.page-about-nishijin .history-vertical h2 {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 400;
  writing-mode: vertical-rl;
  letter-spacing: 5px;
  color: #00563e
}

.page-about-nishijin body.on .history-vertical:before {
  content: '';
  position: absolute;
  top: -45px;
  left: -5px;
  width: 101px;
  height: 101px;
  background: url('https://kuzasakougei.jp/system_panel/uploads/images/motif-green.png') center/contain no-repeat;
  opacity: .3;
  z-index: -1
}

.page-about-nishijin .flow-section>.section-title {
  text-align: left;
  margin-bottom: 60px
}

.page-about-nishijin .flow-list {
  max-width: 940px
}

.page-about-nishijin .flow-row {
  min-height: 155px;
  padding-bottom: 55px
}

.page-about-nishijin .process-photos {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 60px 0 0;
  background: linear-gradient(#ffffff 65%, #f3f3f3 65%)
}

.page-about-nishijin .process-photos>img {
  width: 100%;
  aspect-ratio: .93;
  object-fit: cover
}

.page-about-nishijin .about-faq .section-top {
  display: block;
  margin-bottom: 80px
}

.page-about-nishijin .about-faq .section-title {
  text-align: right
}

@media(max-width:900px) {
  .page-about-nishijin .history-vertical {
    right: 20px;
    top: 100px
  }

  .page-about-nishijin .history-vertical h2 {
    font-size: 32px
  }

  .page-about-nishijin .history-block>div:not(.history-vertical) {
    padding-right: 65px
  }

  .page-about-nishijin .flow-row {
    min-height: 140px
  }

  .page-about-nishijin .process-photos {
    gap: 6px
  }
}

@media(max-width:768px) {
  .page-about-nishijin .history-block>div:not(.history-vertical) {
    padding: 0 60px 0 25px
  }

  .page-about-nishijin .history-vertical {
    top: 550px;
    right: 15px
  }

  .page-about-nishijin .history-vertical h2 {
    font-size: 27px
  }

  .page-about-nishijin .history-block .lead-title {
    font-size: 28px
  }

  .page-about-nishijin .flow-section>.section-title,
  .page-about-nishijin .about-faq .section-title {
    text-align: center
  }

  .page-about-nishijin .flow-row {
    min-height: 0
  }

  .page-about-nishijin .process-photos {
    gap: 5px;
    padding-top: 35px
  }
}

@media(max-width:576px) {
  .page-about-nishijin .history-vertical {
    top: 440px
  }

  .page-about-nishijin .history-vertical h2 {
    font-size: 23px
  }
}

.page-about-nishijin .process-photos {
  display: block;
  overflow: hidden
}

.page-about-nishijin .process-photo-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: process-photo-scroll 38s linear infinite
}

.page-about-nishijin .process-photo-track>img {
  display: block;
  flex: 0 0 auto;
  width: calc((100vw - 40px)/5);
  height: auto;
  aspect-ratio: .93;
  object-fit: cover
}

@keyframes process-photo-scroll {
  from {
    transform: translateX(0)
  }

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

@media(max-width:768px) {
  .page-about-nishijin .process-photo-track>img {
    width: 38vw
  }
}

@media(prefers-reduced-motion:reduce) {
  .page-about-nishijin .process-photo-track {
    animation: none
  }
}
