/*==============================================================
reason
==============================================================*/
.common-fv-re {
  .bg {
    &::before {
      content: "";
      position: absolute;
      display: block;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100%;
      height: 100%;
      background: linear-gradient(0deg, #000 0%, #00000000 60%);
    }
  }
}

.fv-des {
  background-color: #000;
  padding: 80px 40px;

  .des {
    text-align: center;
    line-height: 1.8;
  }
}

.cp-txt {
  opacity: 0;
}

.reason {
  .cont {
    @media screen and (max-width: 991px) {
      padding: 80px 32px;
    }

    @media screen and (max-width: 560px) {
      padding: 40px 16px;
    }

    .box {
      max-width: 1320px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 64px;

      @media screen and (max-width: 991px) {
        gap: 24px;
      }

      .main-ttl {
        text-align: center;

        .ttl {
          font-size: clamp(1.5rem, 1.1667rem + 0.6944vw, 2rem);
          font-weight: 900;
          font-family: "Noto serif jp", serif;
          letter-spacing: 0.5em;

          & span {
            color: #0479ff;
            font-size: clamp(2rem, 1.3333rem + 1.3889vw, 3rem);
            position: relative;

            &::before {
              content: "";
              position: absolute;
              bottom: 5px;
              left: 35%;
              transform: translateX(-50%);
              background-color: #0479ff;
              width: 100%;
              height: 1px;
            }
          }
        }
      }

      .item-list {
        display: flex;
        align-items: center;
        gap: 80px;
        width: 100%;
        max-width: 90%;
        margin: 0 auto;

        @media screen and (max-width: 991px) {
          max-width: 100%;
          gap: 18px;
        }

        @media screen and (max-width: 560px) {
          flex-direction: column;
        }

        .item {
          display: flex;
          flex-direction: column;
          justify-content: center;
          position: relative;

          @media screen and (max-width: 560px) {
            width: 100%;
          }

          .left {
            background-color: #0479ff;
            padding: 8px;
            border-radius: 10px 10px 0 0;
            text-align: center;
          }

          .right {
            @media screen and (max-width: 560px) {
              width: 100%;
            }

            .img {
              @media screen and (max-width: 560px) {
                width: 100%;
              }

              & img {
                border-radius: 0 0 10px 10px;

                @media screen and (max-width: 560px) {
                  height: 160px;
                  width: 100%;
                }
              }
            }
          }

          .side-txt {
            position: absolute;
            top: 50%;
            left: -42px;
            transform: translateY(-50%);
            writing-mode: vertical-rl;
            color: #0000001c;
            font-family: Arial, Helvetica, sans-serif;
            font-weight: 900;
            font-size: clamp(1.75rem, 1.0833rem + 1.3889vw, 2.75rem);
            z-index: -1;

            @media screen and (max-width: 991px) {
              left: -32px;
            }
            @media screen and (max-width: 560px) {
              writing-mode: unset;
              top: unset;
              bottom: -29px;
              left: 50%;
              transform: translateX(-50%);
            }
          }
        }
      }
    }
  }

  .cont-02 {
    background-color: #0479ff;
    overflow: hidden;
    position: relative;
    height: 130px;

    @media screen and (max-width: 1280px) {
      height: 100px;
    }

    @media screen and (max-width: 991px) {
      height: 80px;
    }

    @media screen and (max-width: 560px) {
      height: 60px;
    }

    .re-txt {
      position: absolute;
      bottom: -50px;
      left: 50%;
      transform: translateX(-50%);
      font-family: Arial, Helvetica, sans-serif;
      font-weight: 900;
      font-size: clamp(4rem, 0rem + 8.3333vw, 10rem);
      color: rgba(255, 255, 255, 0.275);
      width: max-content;
      line-height: 1;

      @media screen and (max-width: 1280px) {
        bottom: -30px;
      }

      @media screen and (max-width: 991px) {
        bottom: -15px;
      }
    }
  }

  .re-01,
  .re-02,
  .re-03 {
    & img {
      border-radius: 10px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .box {
      max-width: 1100px;

      .item {
        .top {
          .re-ttl {
            font-family: "Noto Serif JP", serif;
            font-size: clamp(1.25rem, 0.75rem + 1.0417vw, 2rem);
            font-weight: 900;
          }
        }
      }
    }
  }

  .re-01 {
    background-color: #f5f5f5;

    .box {
      .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 64px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;

        @media screen and (max-width: 560px) {
          gap: 24px;
        }

        .top {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 24px;

          .re-ttl {
            font-family: "Noto Serif JP", serif;
            font-size: clamp(1.25rem, 0.75rem + 1.0417vw, 2rem);
            font-weight: 900;
          }

          .content {
            display: flex;
            align-items: center;
            gap: 64px;

            @media screen and (max-width: 560px) {
              flex-direction: column;
              gap: 24px;
            }

            .right {
              display: flex;
              flex-direction: column;
              gap: 16px;

              .ttl {
                font-size: clamp(1.125rem, 0.875rem + 0.5208vw, 1.5rem);
                font-weight: 600;

                @media screen and (max-width: 560px) {
                  text-align: center;
                }
              }

              .des {
                line-height: 1.6;
              }
            }
          }
        }

        .bottom {
          display: flex;
          flex-direction: column;
          gap: 12px;
          align-items: center;
          width: 100%;
          max-width: 100%;
          overflow-x: hidden;

          @media screen and (max-width: 560px) {
            background-color: #fff;
            padding: 24px 0 0px;
            border-radius: 15px;
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            box-sizing: border-box;
          }

          .ttl {
            font-size: clamp(1.125rem, 0.875rem + 0.5208vw, 1.5rem);
            font-weight: 600;
            background-color: #99c6f9;
            border-radius: 5px;
            padding: 0px 16px;
          }

          .content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 24px;
            width: 100%;
            min-width: 0;

            @media screen and (max-width: 560px) {
              width: 100%;
              max-width: 100%;
              flex-direction: row;
              flex-wrap: nowrap;
              align-items: flex-start;
              gap: 24px;
              overflow-x: auto;
              -webkit-overflow-scrolling: touch;
              overscroll-behavior-x: contain;
              box-sizing: border-box;
              padding: 0 24px 15px;
            }

            .flow-cont {
              display: flex;
              align-items: center;
              gap: 40px;

              @media screen and (max-width: 560px) {
                flex: 0 0 auto;
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                width: max-content;
                gap: 24px;
              }

              .flow,
              .flow-img {
                display: flex;
                align-items: center;
                flex-direction: column;
                justify-content: center;
                gap: 14px;

                @media screen and (max-width: 560px) {
                  flex: 0 0 140px;
                  width: 140px;
                  padding: 0;
                }

                .flow-ttl {
                  padding: 0 16px;
                  border-radius: 50px;
                  border: 1px solid #0479ff;
                  color: #0479ff;
                  font-weight: 500;
                  font-size: 14px;
                  width: 100%;
                  max-width: 140px;
                  text-align: center;
                }

                .img {
                  padding: 0 40px;

                  @media screen and (max-width: 560px) {
                    padding: 0;
                    width: 140px;
                    box-sizing: border-box;
                  }
                }
              }

              .flow {
                flex: 1;

                @media screen and (max-width: 560px) {
                  flex: 0 0 140px;
                }
              }

              .flow-img {
                flex: 2;

                @media screen and (max-width: 560px) {
                  flex: 0 0 140px;
                }
              }

              .icon {
                & img {
                  box-shadow: unset;
                  max-height: 94px;
                }
              }

              .arrow {
                @media screen and (max-width: 560px) {
                  flex: none;
                }

                & img {
                  box-shadow: unset;

                  @media screen and (max-width: 560px) {
                    width: 70px;
                    max-width: none;
                  }
                }
              }
            }
          }
        }
      }
    }
  }

  .re-02 {
    .box {
      .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;

        .top {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 24px;

          .des {
            text-align: center;
          }
        }

        .bottom {
          display: flex;
          flex-direction: column;
          gap: 40px;

          @media screen and (max-width: 560px) {
            gap: 16px;
          }

          .list {
            display: flex;
            gap: 64px;

            @media screen and (max-width: 560px) {
              flex-direction: column-reverse;
              gap: 16px;
            }

            .left {
              flex: 1;

              .ttl {
                color: #0479ff;
                font-size: clamp(1.125rem, 0.875rem + 0.5208vw, 1.5rem);
                font-weight: 600;
                display: flex;
                align-items: center;
                gap: 8px;
                padding-left: 1rem;

                @media screen and (max-width: 560px) {
                  padding-left: 0rem;
                }

                & span {
                  content: "";
                  display: block;
                  width: 20px;
                  height: 20px;
                  background: #0479ff;
                  border-radius: 50px;
                  position: relative;

                  &::before {
                    content: "";
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    width: 26px;
                    height: 26px;
                    background: #0479ffab;
                    border-radius: 50px;
                  }
                }
              }

              .line {
                content: "";
                display: block;
                width: 100%;
                height: 1px;
                background: #cacaca;
                margin: 4px 0;
              }

              .des {
                padding-left: 2.7rem;

                @media screen and (max-width: 560px) {
                  padding-left: 0rem;
                }
              }
            }

            .right {
              flex: 1;
            }
          }
        }
      }
    }
  }
  .re-03 {
    .box {
      .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;

        .bottom {
          display: flex;
          align-items: center;
          gap: 64px;

          @media screen and (max-width: 991px) {
            flex-direction: column;
            gap: 24px;
            width: 100%;
            max-width: 80%;
            margin: 0 auto;
          }

          @media screen and (max-width: 560px) {
            max-width: 100%;
          }

          .left {
            flex: 1.2;
          }

          .right {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 16px;

            .content {
              background-color: #fff;
              border: 2px solid #0479ff;
              border-radius: 10px;

              & h4 {
                width: max-content;
                background: #0479ff;
                border-radius: 5px;
                padding: 2px 16px;
              }

              .des {
                padding: 8px 16px;
              }
            }
          }
        }
      }
    }
  }
}

#re-01,
#re-02,
#re-03 {
  scroll-margin-top: 240px;
}

.arrow.sp {
  display: none !important;

  @media screen and (max-width: 560px) {
    display: block !important;
  }

  & img {
    width: 100%;
  }
}
