.hp {
  position: relative;
  z-index: -2;
}

main {
  background: url(../../img/hp/about-bg.jpg) center center/contain repeat-y;
  position: relative;
  z-index: -1;
}

.hp-fv {
  aspect-ratio: 1920 / 432;
  position: relative;
}

.hp-fv-bg {
  position: absolute;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 と同義 */
  background: url(../../img/hp/about-fv.webp) center center / cover no-repeat;
  clip-path: inset(0 100% 0 0); /* 初期状態：右100%カット */
  animation: revealFromLeft 1s ease-out forwards;
}

@keyframes revealFromLeft {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.hp-fv-title {
  position: absolute;
  top: 40%;
  left: 7%;
  color: #f27200;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hp-about-structure {
  margin-bottom: 6.195%;
  position: relative;
}

.hp-about-structure-text {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto 4.2%;
}

.hp-about-structure-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.65;
  letter-spacing: 0.1em;
  margin-bottom: 5.546%;
  color: #f17300;
  text-align: center;
}

.hp-about-structure-text > p:nth-of-type(1) {
  font-size: 16px;
  font-weight: 500;
  line-height: 3;
  letter-spacing: 0.05em;
  color: #262626;
  text-align: center;
  margin-bottom: 4%;
}

.hp-about-structure-text > p:nth-of-type(2) {
  position: relative;
  display: block;
  padding: 14px;
  background-color: #f17300;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0 auto 7.917%;
  width: fit-content;
}

.hp-about-structure-text > p:nth-of-type(2)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 10px 7.5px 0 7.5px;
  border-color: #f17300 transparent transparent;
  translate: -50% 100%;
}

.hp-about-structure-text > p:nth-of-type(3) {
  font-size: 16px;
  font-weight: 500;
  line-height: 3;
  color: #262626;
  letter-spacing: 0.05em;
  margin: 0 auto 7.167%;
  text-align: center;
}

.hp-about-structure-text > p:nth-of-type(4) {
  font-size: 16px;
  font-weight: 500;
  line-height: 3;
  color: #262626;
  letter-spacing: 0.05em;
  margin: 0 auto 5.455%;
}

.hp-about-structure-text > p:nth-of-type(5) {
  font-size: 16px;
  font-weight: 500;
  line-height: 3;
  color: #262626;
  letter-spacing: 0.05em;
  margin: 0 auto;
}

.hp-about-structure-img {
  width: 56.429%;
  position: absolute;
  top: 48%;
  right: 0;
  z-index: -2;
}

@media screen and (max-width: 975px) {
  .hp-about-structure-img {
    width: 48.429%;
    position: absolute;
    top: 48%;
    right: 0;
    z-index: -2;
  }
}

.hp-about-structure-lightning1 {
  position: absolute;
  top: 12%;
  left: 13%;
  width: 13.646%;
  z-index: -1;
  max-width: 262px;
}

.hp-about-structure-lightning2 {
  position: absolute;
  bottom: 0%;
  right: 6%;
  width: 11.563%;
  z-index: -1;
  max-width: 222px;
}

.hp-about-structure-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 8.755%;
}

.hp-about-background {
  background: url(../../img/hp/about-background-bg.webp) bottom center / cover
    no-repeat;
  padding-top: 8.39%;
  padding-bottom: 14.122%;
  position: relative;
}

.hp-about-background-container {
  background-color: #fff;
  width: 90%;
  max-width: 1610px;
  padding-top: 8.286%;
  padding-bottom: 20.949%;
}

.hp-background-section-title {
  background-color: #fff;
  text-align: right;
  font-size: 67px;
  font-weight: 900;
  position: absolute;
  top: 3%;
  right: clamp(2.5rem, -6.269rem + 18.245vw, 15.625rem);
  width: fit-content;
  padding: 3.1% 2.2%;
  background: url(../../img/hp/about-background-section-title-bg.png) bottom
    right no-repeat;
}

.hp-background-section-title > span {
  background: linear-gradient(to right, #f1b500, #f17200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hp-about-background-inner {
  width: 80%;
  max-width: 950px;
  margin-left: auto;
  margin-right: 15.528%;
  position: relative;
  z-index: 2;
}

.hp-about-background-text > h4 {
  font-family: Helvetica, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #f17300;
  margin-bottom: 4.212%;
}

.hp-about-background-text > p {
  font-size: 16px;
  font-weight: 500;
  line-height: 3;
  letter-spacing: 0.05em;
  color: #242424;
  margin-bottom: 6.212%;
}

.hp-about-background-summary {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
  background-color: #fffce9;
  padding-top: 3.127%;
  padding-bottom: 3.127%;
  padding-left: 16.363%;
  padding-right: 4%;
  position: absolute;
  right: 0;
  bottom: 5%;
  width: 94.8412%;
  max-width: 1820px;
  font-size: 16px;
  font-weight: 500;
  line-height: 3;
  letter-spacing: 0.05em;
  color: #242424;
}

.hp-about-background-lightning1 {
  position: absolute;
  top: 4%;
  left: 14.7%;
  width: 11.563%;
  z-index: 0;
  max-width: 222px;
}

.hp-about-background-lightning2 {
  position: absolute;
  bottom: 9%;
  right: 8%;
  width: 12.563%;
  z-index: 0;
  max-width: 241px;
}

.hp-about-knowhow {
  width: 100%;
  background: url(../../img/hp/about-know-how-bg.jpg) center center/cover
    no-repeat;
  position: relative;
  aspect-ratio: 1919 / 499;
  clip-path: inset(0 100% 0 0); /* ← 初期状態：右側100%隠す */
  z-index: 12;
}

.hp-about-knowhow-text {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.94;
  letter-spacing: 0.1em;
  text-align: center;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

@media screen and (max-width: 1500px) {
  .hp-about-background {
    padding-bottom: 16%;
  }

  .hp-about-background-summary {
    bottom: 2%;
  }
}

@media screen and (max-width: 1280px) {
  .hp-about-background {
    padding-bottom: 40%;
  }

  .hp-about-background-summary {
    bottom: 2%;
  }
}

@media screen and (max-width: 1130px) {
  .hp-about-background {
    padding-bottom: 90%;
  }

  .hp-about-background-summary {
    bottom: 2%;
  }
}

@media screen and (max-width: 768px) {
  .hp-fv {
    aspect-ratio: 750 / 334;
  }

  .hp-fv-bg {
    background: url(../../img/hp/sp/about-fv.png) center center / cover
      no-repeat;
  }

  .hp-fv-title {
    bottom: 30%;
    font-size: 26px;
  }

  .hp-about-structure {
    margin-bottom: 13.2%;
  }

  .hp-about-structure-text {
    width: 88.667%;
    margin: 0 auto;
  }

  .hp-about-structure-title {
    font-size: 20px;
    margin-bottom: 8.874%;
  }

  .hp-about-structure-text > p:nth-of-type(1) {
    font-size: 26px;
    line-height: 1.92;
    margin-bottom: 9.023%;
  }

  .hp-about-structure-text > p:nth-of-type(2) {
    padding: 10px 0;
    font-size: 26px;
    margin: 0 auto 9.023%;
    width: 97.745%;
  }

  .hp-about-structure-text > p:nth-of-type(2)::after {
    border-width: 15px 8px 0 8px;
  }

  .hp-about-structure-text > p:nth-of-type(3) {
    font-size: 25px;
    line-height: 1.92;
    margin: 0 auto 15.038%;
  }

  .hp-about-structure-text > p:nth-of-type(4) {
    font-size: 24px;
    line-height: 1.92;
    margin: 0 auto 75.49%;
  }

  .hp-about-structure-text > p:nth-of-type(5) {
    font-size: 24px;
    line-height: 1.92;
    color: #262626;
    letter-spacing: 0.05em;
    margin: 0 auto;
  }

  .hp-about-structure-img {
    width: 94.4%;
    top: 59%;
  }

  .hp-about-structure-lightning1 {
    top: -1.5%;
    left: 0%;
    width: 23.646%;
  }

  .hp-about-structure-lightning2 {
    bottom: 20%;
    right: 4%;
    width: 14.563%;
  }

  .hp-about-background {
    background: url(../../img/hp/sp/about-background-bg.jpg) bottom center /
      cover no-repeat;
    padding-top: 17.334%;
    padding-bottom: 50%;
  }

  .hp-about-background-container {
    width: 94.667%;
    padding-top: 16.667%;
    padding-bottom: 124.134%;
  }

  .hp-background-section-title {
    font-size: 49px;
    font-weight: 900;
    position: absolute;
    top: 3%;
    right: clamp(0.46875rem, 0rem + 2vw, 0.9375rem);
    padding: 2% 4.2% 5%;
    background: url(../../img/hp/sp/about-background-section-title-bg.png)
      bottom right no-repeat;
  }

  .hp-about-background-inner {
    width: 89.578%;
    margin-left: auto;
    margin-right: auto;
  }

  .hp-about-background-text > h4 {
    font-size: 24px;
    margin-bottom: 6.134%;
  }

  .hp-about-background-text > p {
    font-size: 24px;
    line-height: 1.92;
    margin-bottom: 9.434%;
  }

  .hp-about-background-summary {
    padding-top: 9.334%;
    padding-bottom: 9.334%;
    padding-left: 12.267%;
    padding-right: 4.667%;
    right: 0;
    bottom: 5%;
    width: 94.8412%;
    font-size: 23px;
    line-height: 1.92;
  }

  .hp-about-background-lightning1 {
    top: 8%;
    left: -2%;
    width: 20.563%;
  }

  .hp-about-background-lightning2 {
    bottom: 0%;
    right: 8%;
    width: 29.563%;
    z-index: -1;
  }

  .hp-about-knowhow {
    width: 100%;
    background: url(../../img/hp/sp/about-know-how-img.jpg) center center/cover
      no-repeat;
    position: relative;
    aspect-ratio: 750 / 400;
    clip-path: inset(0 100% 0 0); /* ← 初期状態：右側100%隠す */
    z-index: 12;
  }

  .hp-about-knowhow-text {
    font-size: 26px;
    line-height: 2.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
  }

  .hp-footer-lightning {
    position: absolute;
    top: -8%;
    left: 0;
    width: 63.907%;
    z-index: -1;
  }
}
@media screen and (max-width: 740px) {
  .hp-about-background-summary {
    bottom: 2%;
  }
}

@media screen and (max-width: 726px) {
  .hp-about-structure-text > p:nth-of-type(2) {
    font-size: 18px;
  }
}

@media screen and (max-width: 686px) {
  .hp-about-background {
    padding-bottom: 70%;
  }
}

@media screen and (max-width: 650px) {
  .hp-about-background {
    padding-bottom: 120%;
  }
}

@media screen and (max-width: 620px) {
  .hp-about-structure-text > p:nth-of-type(1),
  .hp-about-structure-text > p:nth-of-type(3),
  .hp-about-structure-text > p:nth-of-type(4),
  .hp-about-structure-text > p:nth-of-type(5) {
    font-size: 14px;
  }
}

@media screen and (max-width: 600px) {
  .hp-background-section-title {
    font-size: 29px;
    padding: 4% 4.7% 5%;
    background-size: contain;
  }

  .hp-about-background-text > p {
    font-size: 14px;
  }

  .hp-about-background-summary {
    font-size: 15px;
  }

  .hp-about-background-container {
    padding-bottom: 90%;
  }

  .hp-about-background {
    padding-bottom: 50%;
  }
}

@media screen and (max-width: 520px) {
  .hp-about-background-container {
    padding-bottom: 120%;
  }

  .hp-about-background {
    padding-bottom: 50%;
  }
}

@media screen and (max-width: 483px) {
  .hp-about-background-container {
    padding-bottom: 100%;
  }
  .hp-about-background-summary {
    font-size: 13px;
  }
}

@media screen and (max-width: 440px) {
  .hp-about-background-container {
    padding-bottom: 130%;
  }
  .hp-about-background-summary {
    font-size: 13px;
  }
}

@media screen and (max-width: 388px) {
  .hp-about-background-container {
    padding-bottom: 140%;
  }
  .hp-about-background-summary {
    font-size: 13px;
  }
}

@media screen and (max-width: 500px) {
  .hp-about-knowhow-text {
    font-size: 20px;
  }
}

@media screen and (max-width: 414px) {
  .hp-about-structure-img {
    width: 94.4%;
    top: 62%;
  }
}

@media screen and (max-width: 397px) {
  .hp-about-structure-img {
    width: 94.4%;
    top: 59%;
  }
}
