.solution-main1 {
  background-color: #fff;
}

.solution-main-bg {
  width: 100%;
  height: 750px;
  background-image: url("../assets/img/solution-main-bg1.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}

.solution-main-user {
  width: 100%;
  height: 750px;
  background-image: url("../assets/img/solution-user.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}
.solution-main2 {
  background-color: #ffe200;
  width: 100%;
}
.solution-main2 > div {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}
.solution-main-bg2 {
  width: 100%;
  aspect-ratio: 16/9;
  background-image: url("../assets/img/solution-main-bg2.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.solution-main-bg2 > div {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.solution-main-bg2 > div > p {
  font-size: 70px;
  font-weight: 600;
  font-family: "Noto Sans JP";
}

.solution-main-bg2 > h2 {
  width: 100%;
  height: 220px;
  background-image: url("../assets/img/solution-text.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}

.solution-main3 {
  width: 100%;
  background-image: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 90%,
      #ffffff 100%
    ),
    url("../assets/img/explanation-bg.png");
  background-size: 100% 100%, cover;
  background-position: center bottom, center top;
  background-repeat: no-repeat, no-repeat;
  margin: 0 auto;
  overflow: hidden;
}
.solution-main3 > div {
  max-width: 960px;
  margin: 0 auto;
  margin-top: 0px;
  font-family: "Noto Sans JP", sans-serif;
  padding: 40px 16px;
}
.solution-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 100px;
  margin-bottom: 40px;
}

.solution-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.good {
  position: absolute;
  top: -20px;
  right: -30px;
  width: 30%;
  height: auto;
  aspect-ratio: 1/1;
  display: block;
  background-image: url("../assets/img/good.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 5;
  transition: transform 0.3s ease;
  will-change: transform;
}

.good.wide {
  right: -40px;
  width: 15%;
}

.solution-row.single {
  justify-content: center;
}

.solution-box {
  max-width: 420px;
  width: 100%;
  height: 500px;
  background-color: #f9f8f9;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.solution-box.wide {
  max-width: 960px;
  width: calc(420px * 2 + 100px);
}

.solution-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.solution-box-title {
  position: relative;
  background-color: #ffe200;
  color: #333;
  font-weight: bold;
  padding: 12px;
  font-size: 32px;
  font-weight: 800;
}

.solution-box-image1 {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  display: block;
  background-image: url("../assets/img/kaiteki.jpg");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
}
.solution-box-image2 {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  display: block;
  background-image: url("../assets/img/shinrai.jpg");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
}

.solution-box-image3 {
  width: 50%;
  height: auto;
  display: block;
  aspect-ratio: 3/2;
  background-image: url("../assets/img/sabetsuka.jpg");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.solution-box-text {
  padding: 16px 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.7;
  text-align: left;
}

.solution-box-text.wide {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.highlight-box {
  padding: 30px 0;
  text-align: center;
}

.highlight-box p {
  display: inline-block;
  background-color: #fff;
  border: 4px solid #000;
  border-radius: 20px;
  padding: 40px 80px;
  font-size: 32px;
  font-weight: 700;
  color: #000;
  line-height: 1.6;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 960px) {
  .solution-main-bg {
    width: 100%;
    height: 650px;
  }

  .solution-main-user {
    width: 100%;
    height: 650px;
  }
  .solution-main-bg2 > div > p {
    font-size: 56px;
    font-weight: 600;
    font-family: "Noto Sans JP";
  }
  .solution-main-bg2 > h2 {
    width: 100%;
    height: 200px;
  }
  .good {
    top: -20px;
    right: 0px;
  }
  .good.wide {
    right: 0px;
  }
  .solution-box {
    max-width: 100%;
  }
  .solution-box.wide {
    max-width: none;
    width: 100%;
  }
}

@media screen and (max-width: 800px) {
  .solution-main-bg {
    width: 100%;
    height: 600px;
  }

  .solution-main-user {
    width: 100%;
    height: 600px;
  }
  .solution-main-bg2 > div > p {
    font-size: 56px;
    font-weight: 600;
    font-family: "Noto Sans JP";
  }
  .solution-main-bg2 > h2 {
    width: 100%;
    height: 200px;
  }
}

@media screen and (max-width: 767px) {
  .solution-main-bg {
    width: 100%;
    height: 500px;
  }

  .solution-main-user {
    width: 100%;
    height: 500px;
  }
  .solution-main-bg2 > div {
    margin-top: 80px;
  }
  .solution-main-bg2 > div > p {
    font-size: 54px;
    font-weight: 600;
    font-family: "Noto Sans JP";
  }
  .solution-main-bg2 > h2 {
    width: 100%;
    height: 160px;
  }
  .solution-row {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .solution-box,
  .solution-box.wide {
    max-width: 90%;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .solution-box-image1,
  .solution-box-image2,
  .solution-box-image3 {
    width: 100%;
    margin: 0 auto;
  }
  .good,
  .good.wide {
    top: -20px;
    right: 20px;
    width: 20%;
  }

  .solution-box-text {
    padding: 20px 40px 20px;
  }
  .solution-box-text.wide {
    text-align: left;
    font-size: 16px;
    font-weight: 600;
  }
  .solution-main3 > div {
    padding: 20px 16px;
  }
}

@media screen and (max-width: 670px) {
  .solution-main-bg2 > div {
    margin-top: 60px;
  }
  .solution-main-bg2 > div > p {
    font-size: 50px;
    font-weight: 600;
    font-family: "Noto Sans JP";
  }
  .solution-main-bg2 > h2 {
    width: 100%;
    height: 160px;
  }

  .highlight-box p {
    font-size: 24px;
  }
}

@media screen and (max-width: 608px) {
  .solution-main-bg {
    width: 100%;
    height: 450px;
  }

  .solution-main-user {
    width: 100%;
    height: 450px;
  }
  .solution-main-bg2 > div {
    margin-top: 50px;
  }
  .solution-main-bg2 > div > p {
    font-size: 50px;
    font-weight: 600;
    font-family: "Noto Sans JP";
  }
  .solution-main-bg2 > h2 {
    width: 100%;
    height: 160px;
  }
}

@media screen and (max-width: 540px) {
  .solution-main-bg {
    width: 100%;
    height: 420px;
  }

  .solution-main-user {
    width: 100%;
    height: 420px;
  }
  .solution-main-bg2 > div {
    margin-top: 50px;
  }
  .solution-main-bg2 > div > p {
    font-size: 40px;
    font-weight: 600;
    font-family: "Noto Sans JP";
  }
  .solution-main-bg2 > h2 {
    width: 100%;
    height: 120px;
  }
  .good,
  .good.wide {
    top: -20px;
    right: 20px;
    width: 25%;
  }
  .highlight-box p {
    font-size: 20px;
  }
}

@media screen and (max-width: 430px) {
  .solution-main-bg {
    width: 100%;
    height: 320px;
  }

  .solution-main-user {
    width: 100%;
    height: 320px;
  }
  .solution-main-bg2 > div {
    margin-top: 50px;
  }
  .solution-main-bg2 > div > p {
    font-size: 32px;
    font-weight: 600;
    font-family: "Noto Sans JP";
  }
  .solution-main-bg2 > h2 {
    width: 100%;
    height: 100px;
  }
  .highlight-box p {
    font-size: 18px;
    padding: 40px 40px;
  }
}

@media screen and (max-width: 412px) {
  .solution-main-bg {
    width: 100%;
    height: 310px;
  }

  .solution-main-user {
    width: 100%;
    height: 310px;
  }
  .solution-main-bg2 > div {
    margin-top: 45px;
  }
  .solution-main-bg2 > div > p {
    font-size: 32px;
    font-weight: 600;
    font-family: "Noto Sans JP";
  }
  .solution-main-bg2 > h2 {
    width: 100%;
    height: 90px;
  }
  .highlight-box p {
    font-size: 18px;
    padding: 40px 30px;
  }
}
@media screen and (max-width: 390px) {
  .solution-main-bg {
    width: 100%;
    height: 300px;
  }

  .solution-main-user {
    width: 100%;
    height: 300px;
  }
  .solution-main-bg2 > div {
    margin-top: 40px;
  }
  .solution-main-bg2 > div > p {
    font-size: 30px;
    font-weight: 600;
    font-family: "Noto Sans JP";
  }
  .solution-main-bg2 > h2 {
    width: 100%;
    height: 80px;
  }
  .highlight-box p {
    font-size: 18px;
    padding: 40px 20px;
  }
  .solution-box-text {
    font-size: 14px;
  }
  .solution-box-text.wide {
    font-size: 14px;
  }
}

@media screen and (max-width: 375px) {
  .solution-main-bg {
    width: 100%;
    height: 280px;
  }

  .solution-main-user {
    width: 100%;
    height: 280px;
  }
  .solution-main-bg2 > div {
    margin-top: 38px;
  }
  .solution-main-bg2 > div > p {
    font-size: 28px;
    font-weight: 600;
    font-family: "Noto Sans JP";
  }
  .solution-main-bg2 > h2 {
    width: 100%;
    height: 70px;
  }
  .highlight-box p {
    font-size: 18px;
    padding: 40px 15px;
  }
}

@media screen and (max-width: 340px) {
  .solution-main-bg {
    width: 100%;
    height: 260px;
  }

  .solution-main-user {
    width: 100%;
    height: 260px;
  }
  .solution-main-bg2 > div {
    margin-top: 35px;
  }
  .solution-main-bg2 > div > p {
    font-size: 28px;
    font-weight: 600;
    font-family: "Noto Sans JP";
  }
  .solution-main-bg2 > h2 {
    width: 100%;
    height: 60px;
  }
  .highlight-box p {
    font-size: 16px;
    padding: 40px 5px;
  }
}
