.top-wrap {
  position: relative;
  background-image: url(../img/集合住宅煙突.png);
  background-position: center;
  background-size: cover;
  padding: 150px 0;
  isolation: isolate; /* 念のため。擬似要素の重なりを安定させる */
}
.about-wrap {
  margin: 30px auto;
}
.title {
  width: 100%;
  font-family: "Rajdhani", sans-serif;
  line-height: 1.5;
  display: block;
}
.title h3 {
  font-weight: 600;
  font-style: normal;
  font-size: 32px;
  color: #004fa4;
}
.about-wrap__body__right__img p {
  font-size: 12px;
  font-weight: 300;
  text-align: center;
}
.title p {
  font-size: 18px;
  font-weight: bold;
  border-left: 5px solid #004fa4; /*線の設定*/
  padding: 2px 5px;
  line-height: 0.8;
}
.about-wrap__body {
  max-width: 760px;
  margin: 30px auto;
  display: flex;
  justify-content: space-between;
}
.about-wrap__body__left {
  width: 70%;
}
.about-wrap__body__left {
  font-size: 14px;
  line-height: 1.8;
}
.about-wrap__body__right {
  width: 22%;
}
.about-wrap__body__right img {
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.feature-wrap {
  background-color: #fff;
  padding: 20px 30px;
  margin: 60px auto;
  width: 80%;
}
.feature-wrap__body {
  display: flex;
  margin: 30px auto;
  max-width: 760px;
}
ol.feature-wrap__body__list {
  counter-reset: list;
  list-style: none;
  padding: 0;
  width: 100%;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 200;
}
ol.feature-wrap__body__list ol {
  margin: 0 0 0 40px;
}

.feature-wrap__body__list a {
  position: relative;
  display: block;
  text-decoration: none;
  padding: 10px 6px 10px 14px;
  margin: 20px 0 10px 40px;
  background: #f1f8ff;
  color: #000000;
  font-weight: 500;
  transition: all 0.3s ease-out;
}

.feature-wrap__body__list a:hover {
  background: #ffd9d3;
}

.feature-wrap__body__list a:before {
  content: counter(list);
  counter-increment: list;
  position: absolute;
  left: -45px;
  top: 50%;
  height: 32px;
  width: 32px;
  margin-top: -1em;
  background: #004fa4;
  line-height: 30px;
  text-align: center;
  font-weight: bold;
  color: #fff;
  border-radius: 99px;
}

.feature-wrap__body__list a:after {
  content: "";
  position: absolute;
  left: -24px;
  top: 42%;
  margin-top: -6px;
  border: 8px solid transparent;
  transition: all 0.3s ease-out;
}

.feature-wrap__body__list a:hover:after {
  left: -10px;
  border-left-color: #004fa4;
}
@-webkit-keyframes borderFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes borderFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.question-wrap {
  padding-bottom: 80px;
}
.container {
  margin: 20px 0;
  position: relative;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.container .btn-box button {
  width: 100%;
  padding: 20px 35px 20px 0;
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  display: block;
  background: transparent;
  border: none;
  border-top: 1px solid #004fa4;
  border-bottom: 1px solid #004fa4;
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
}

.container .btn-box button::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  font-weight: 100;
  color: #000000;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container .btn-box button:hover {
  color: #000000;
  border-color: #004fa4;
}

.container .btn-box button:hover::after {
  color: #004fa4;
}

.container .more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: transparent;
}

.container .more.appear {
  max-height: 550px;
  -webkit-animation: borderFadeIn 0.3s ease;
  animation: borderFadeIn 0.3s ease;
}

.container:has(.more.appear) .btn-box button::after {
  content: "−";
  transform: translateY(-50%);
  color: #000;
}

.container:has(.more.appear) .btn-box button {
  border-bottom: none;
}

.container .more ul {
  list-style: none;
  padding: 20px 0;
  margin: 0 auto;
  max-width: 760px;
}

.container .more li {
  padding-bottom: 15px;
  color: #2c2c2c;
  font-size: 14px;
  line-height: 1.8;
  width: 100%;
  font-weight: 500;
}

.container .more li:last-child {
  border-bottom: 1px solid #004fa4;
}
.img-box1 {
  width: 43%;
}
.img-box1 img {
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.img-box2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 55%;
}
.img-box2 img {
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.img-box2 p {
  font-size: 13px;
  text-align: center;
  margin: 5px 0;
}
.btn-box p {
  width: 95%;
}
.image-wrap__body {
  display: flex;
  align-items: center;
  padding: 20px 0 60px 0;
  flex-direction: column;
  text-align: center;
}
.image-wrap__body__video {
  width: 65%;
}
.image-wrap__body__video video {
  width: 100%;
}
.image-wrap__body__group {
  display: flex;
  align-items: flex-start;
  padding: 40px 0 60px 0;
  justify-content: space-between;
  text-align: center;
}
.image-wrap__body__group figure {
  width: 45%;
}
.image-wrap__body__group video {
  width: 100%;
}
.image-box {
  width: 50%;
}
.image-box img {
  width: 100%;
}
.image-ttl {
  margin-bottom: 5px;
  font-size: 20px;
}
.flow-wrap__body__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flow-wrap__body__item__txt {
  margin-bottom: 5px;
}
.flow-wrap__body__item__head {
  width: 100%;
  margin-top: 10px;
}
.flow-wrap__body__item__head h4 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #004fa4;
  position: relative;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}
.flow-wrap__body__item__head h4 p {
  margin: 0;
  padding: 0;
}
.health-wrap__body {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0;
  overflow: hidden;
}
.health-wrap__body__list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.health-wrap__bottom {
  display: flex;
  justify-content: space-between;
}
.health-wrap__head {
  font-size: 24px;
  margin-bottom: 5px;
  color: #004fa4;
}
.health-wrap__head h5 {
  font-weight: 500;
}
.health-wrap__bottom__left {
  width: 70%;
}
.health-wrap__bottom__right {
  width: 27%;
}
.health-wrap__bottom__right img {
  display: flex;
  text-align: center;
  margin: 0 auto;
}
.health-caption {
  text-align: center;
  font-size: 10px;
  margin-top: 5px;
}
/* ===== FLOW 全体（白い角丸の大枠） ===== */
.flow-wrap__body {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0;
  overflow: hidden;
}

/* 中央の縦ライン（タイムライン） */
.flow-wrap__body::before {
  content: "";
  position: absolute;
  top: 75px;
  bottom: calc(6% - 16px);
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(0, 0, 0, 0.7); /* ライン色は後で差し替えOK */
}

/* ===== 1ステップ（左右レイアウトの土台） ===== */
.flow-wrap__body__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 45px 1fr; /* 左 / 真ん中(ライン+丸) / 右 */
  align-items: start;
  gap: 10px;
  padding: 16px 0;
}

/* ステップの丸（中央のドット） */
.flow-wrap__body__item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  border-radius: 999px;
  background: #004fa4;
  z-index: 2;
}

/* 丸の中に step番号を表示（data-step を使用） */
.flow-wrap__body__item::after {
  content: attr(data-step);
  position: absolute;
  left: 50%;
  top: 21px;
  transform: translateX(-50%);
  font-size: 20px;
  z-index: 3;
  color: #fff;
}

/* 左右どちらに置くか：奇数=左、偶数=右（JAJAANのFLOWっぽい） */
.flow-wrap__body__item:nth-child(odd) > * {
  grid-column: 1;
}
.flow-wrap__body__item:nth-child(even) > * {
  grid-column: 3;
}

/* 見出し */
.flow-wrap__body__item__head h4 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

/* テキスト */
.flow-wrap__body__item__txt p {
  margin: 0;
  line-height: 1.8;
  font-size: 15px;
}
.flow-wrap__body__item__img {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
.flow-wrap__body__item__figure {
  width: 100%;
  margin: 0;
}
.flow-wrap__body__item__img img {
  width: 75% !important;
  aspect-ratio: 4 / 3;
  -o-object-fit: cover;
  object-fit: cover;
  margin-right: auto;
  display: block;
}
.flow-wrap__body__item__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}
.flow-wrap__body__item__caption {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: #333;
  min-height: 1.6em;
}

/* 2枚のときだけ2カラム */
.flow-wrap__body__item__figure:first-child:nth-last-child(2),
.flow-wrap__body__item__figure:first-child:nth-last-child(2)
  ~ .flow-wrap__body__item__figure {
  width: calc(50% - 5px);
}
/* 2枚以上あるときだけ半分幅 */
.flow-wrap__body__item__img img:first-child:nth-last-child(2),
.flow-wrap__body__item__img img:first-child:nth-last-child(2) ~ img {
  width: calc(100% - 5px) !important;
}
/* YouTube（レスポンシブ） */
.flow-wrap__body__item__youtube {
  padding: 0;
  overflow: hidden;
}

.flow-wrap__body__item__youtube iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 0;
}
/* ===== FLOW 見出しの寄せ方向 ===== */
/* 奇数＝右寄せ */
.flow-wrap__body__item:nth-child(odd) .flow-wrap__body__item__head h4 {
  justify-content: flex-end;
  text-align: left;
}

/* 偶数＝左寄せ */
.flow-wrap__body__item:nth-child(even) .flow-wrap__body__item__head h4 {
  justify-content: flex-start;
  text-align: left;
}
@media (max-width: 768px) {
  .flow-wrap__body {
    padding: 40px 0 40px 40px;
    overflow: auto;
  }
  .flow-wrap__body::before {
    left: 40px;
    transform: none;
  }
  .flow-wrap__body__item {
    grid-template-columns: 44px 1fr;
    padding: 14px 0;
  }
  .flow-wrap__body__item::before,
  .flow-wrap__body__item::after {
    left: 1px;
    transform: translateX(-50%);
  }
  .flow-wrap__body__item > * {
    grid-column: 2 !important;
  }
  .flow-wrap__body__item:nth-child(odd) .flow-wrap__body__item__head h4 {
    justify-content: flex-start;
  }
  .image-wrap__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 60px 0;
  }
  .image-wrap__body__video {
    width: 100%;
  }
  .image-wrap__body__img {
    width: 100%;
  }
}
/* =========================
FLOW スクロールアニメーション
========================= */

/* 初期状態（非表示） */
.flow-wrap__body__item {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 奇数：左から */
.flow-wrap__body__item:nth-child(odd) {
  transform: translateX(-60px);
}

/* 偶数：右から */
.flow-wrap__body__item:nth-child(even) {
  transform: translateX(60px);
}

/* 表示状態 */
.flow-wrap__body__item.is-show {
  opacity: 1;
  transform: translateX(0);
}

/* 丸のアニメ */
.flow-wrap__body__item::before {
  transform: translateX(-50%) scale(0.6);
  opacity: 0.4;
  transition: all 1s ease;
}
.flow-wrap__body__item.is-show::before {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* ===== FLOW 全体（白い角丸の大枠） ===== */
.flow-wrap__body {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0;
  overflow: hidden;
}

/* 中央の縦ライン（タイムライン） */
.flow-wrap__body::before {
  content: "";
  position: absolute;
  top: 75px;
  bottom: calc(4% - 16px);
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(0, 0, 0, 0.7); /* ライン色は後で差し替えOK */
}

/* ===== 1ステップ（左右レイアウトの土台） ===== */
.flow-wrap__body__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 45px 1fr; /* 左 / 真ん中(ライン+丸) / 右 */
  align-items: start;
  gap: 10px;
  padding: 16px 0;
}

/* ステップの丸（中央のドット） */
.flow-wrap__body__item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  border-radius: 999px;
  background: #004fa4;
  z-index: 2;
}

/* 丸の中に step番号を表示（data-step を使用） */
.flow-wrap__body__item::after {
  content: attr(data-step);
  position: absolute;
  left: 50%;
  top: 21px;
  transform: translateX(-50%);
  font-size: 20px;
  z-index: 3;
  color: #fff;
}

/* 左右どちらに置くか：奇数=左、偶数=右（JAJAANのFLOWっぽい） */
.flow-wrap__body__item:nth-child(odd) > * {
  grid-column: 1;
}
.flow-wrap__body__item:nth-child(even) > * {
  grid-column: 3;
}

/* 見出し */
.flow-wrap__body__item__head h4 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

/* テキスト */
.flow-wrap__body__item__txt p {
  margin: 0;
  line-height: 1.8;
  font-size: 15px;
}
/* 画像が2枚のときは半分ずつ */
.flow-wrap__body__item__img img + img {
  width: calc(50% - 5px);
}
.flow-wrap__body__item__img img:first-child:has(+ img) {
  width: calc(50% - 5px);
}

/* YouTube（レスポンシブ） */
.flow-wrap__body__item__youtube {
  padding: 0;
  overflow: hidden;
}

.flow-wrap__body__item__youtube iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 0;
}
/* ===== FLOW 見出しの寄せ方向 ===== */
/* 奇数＝右寄せ */
.flow-wrap__body__item:nth-child(odd) .flow-wrap__body__item__head h4 {
  justify-content: flex-end;
  text-align: left;
}

/* 偶数＝左寄せ */
.flow-wrap__body__item:nth-child(even) .flow-wrap__body__item__head h4 {
  justify-content: flex-start;
  text-align: left;
}
@media (max-width: 768px) {
  .flow-wrap__body {
    padding: 40px 0 40px 40px;
    overflow: auto;
  }
  .flow-wrap__body::before {
    left: 40px;
    transform: none;
  }
  .flow-wrap__body__item {
    grid-template-columns: 44px 1fr;
    padding: 14px 0;
  }
  .flow-wrap__body__item::before,
  .flow-wrap__body__item::after {
    left: 1px;
    transform: translateX(-50%);
  }
  .flow-wrap__body__item > * {
    grid-column: 2 !important;
  }
  .flow-wrap__body__item:nth-child(odd) .flow-wrap__body__item__head h4 {
    justify-content: flex-start;
  }
  .image-wrap__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 60px 0;
  }
  .image-wrap__body__video {
    width: 100%;
  }
  .image-wrap__body__img {
    width: 100%;
  }
  .health-wrap__bottom {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    gap: 20px;
  }
  .health-wrap__bottom__right {
    width: 40%;
    margin: 0 auto;
  }
  .health-wrap__bottom__left {
    font-size: 12px;
    width: 100%;
  }
}
/* =========================
FLOW スクロールアニメーション
========================= */

/* 初期状態（非表示） */
.flow-wrap__body__item {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 奇数：左から */
.flow-wrap__body__item:nth-child(odd) {
  transform: translateX(-60px);
}

/* 偶数：右から */
.flow-wrap__body__item:nth-child(even) {
  transform: translateX(60px);
}

/* 表示状態 */
.flow-wrap__body__item.is-show {
  opacity: 1;
  transform: translateX(0);
}

/* 丸のアニメ */
.flow-wrap__body__item::before {
  transform: translateX(-50%) scale(0.6);
  opacity: 0.4;
  transition: all 1s ease;
}
.flow-wrap__body__item.is-show::before {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}
@media (max-width: 1100px) {
  .sprayed-wrap__body,
  .dioxin-wrap__body,
  .jet-wrap__body,
  .Corrosion-wrap__body {
    max-width: 85%;
  }
  .gray {
    width: 90%;
  }
  ol.feature-wrap__body__list {
    font-size: 14px;
  }
  .about-wrap__body__right {
    width: 25%;
  }
}
@media (max-width: 767px) {
  .flow-wrap__body__item img {
    -o-object-fit: cover;
    object-fit: cover;
    margin-bottom: 15px;
  }
}
@media (max-width: 540px) {
  .top-wrap {
    padding: 60px 0;
  }
  .title h3 {
    font-size: 24px;
  }
  .title p {
    font-size: 12px;
  }
  .about-wrap__body {
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .about-wrap__body__left {
    width: 100%;
  }
  ol.feature-wrap__body__list {
    font-size: 12px;
  }
  .flow-wrap__body__item__head h4 {
    font-size: 16px;
    margin-bottom: 15px;
    display: inline-block;
    text-align: left;
  }
  .container .btn-box button {
    font-size: 12px;
  }
  .feature-wrap {
    padding: 15px 20px;
    margin: 40px auto;
    width: 85%;
  }
  .about-wrap__body__right {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
  }
  .about-wrap__body__right {
    width: 100%;
  }
  .about-wrap__body__right__img {
    width: 45%;
  }
  .flow-wrap__body__item img {
    width: 50%;
  }
  /* これを付けた画像だけグレーにする */
  .gray {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    transition:
      filter 0.5s ease-in-out,
      -webkit-filter 0.5s ease-in-out; /* なめらか */
    will-change: filter;
  }

  /* 100%見えて1秒後にカラー化 */
  .gray.is-color {
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
  }
  .flow-wrap__body__item__head h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
  }
  .flow-wrap__body__item__txt p {
    margin: 0;
    font-size: 12px;
  }
}
