/* -------------------------------------------------- */
/* main */
/* -------------------------------------------------- */
.main {
  padding:  calc(var(--font-size_2)*2) var(--font-size_2);
  margin-top: var(--header_height);
  color: var(--black_color);
  position: relative;
  height: calc(100vh - var(--header_height));
  width: calc(100vw - var(--font-size_2)*4);
}

.hp-sample_img {
  position: absolute;
  right: 50%;
  transform: translateX(calc(50% + 10vw));
  z-index: 1;
}
.hp-sample_img img{
  /* width: 60vw; */
  height: auto;
  border: 3px solid var(--black_color);
  border-radius: 1vh;
}

.main-sentence {
  position: absolute;
  left: 50%;
  transform: translateX(calc(-50% - 10vw));
  text-align: center;
  padding: var(--font-size_3) var(--font-size_4);
  max-width: 800px;
  line-height: 1.5;
  font-size: var(--font-size_4);
  border: 3px solid var(--black_color);
  border-radius: 1vh;
  background-color: var(--white_color_a);
  text-align: left;
  top: 18vh;
  z-index: 2;
  letter-spacing: 0.2rem;
  opacity: 1;
}

.main-sentence h2{
  font-size: var(--font-size_1);
}

.main-sentence p {
  font-size: var(--font-size_3);
  margin-bottom: var(--font-size_2);
  /* text-align: right; */
}

.main-sentence h3 {
  font-size: var(--font-size_2);
}
.main-sentence h3:nth-child(3) {
  /* font-size: var(--font-size_4); */
  margin-bottom: var(--font-size_2);
}

.main-p {
  position: absolute;
  left: 50%;
  transform: translateX(calc(-50% - 10vw));
  font-size: var(--font-size_3);
  padding: var(--font-size_3) var(--font-size_4);
  margin-bottom: var(--font-size_2);
  top: 58vh;
  width: max-content;
  z-index: 2;
  letter-spacing: 0.2rem;
}

.main-p_s {
  font-size: var(--font-size_3);
  margin-bottom: var(--font-size_3);
}
.main-p_m {
  font-size: var(--font-size_2);
  margin-bottom: var(--font-size_3);
}

.main-button a {
  padding: 10px 20px;
  font-size: var(--font-size_3);
  color: var(--white_color);
  background-color: var(--orange_color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  animation: fadeInUp 1.8s ease-out;
  transition: background-color 0.3s;
  white-space: nowrap;
}
.main-button {
  position: absolute;
  bottom: var(--font-size_2);
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
}

#main-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 150vh;
  background: url("../webp/bakGround_pink.webp");
  background-size: auto;
  background-repeat: repeat;
  opacity: 0.8;
  z-index: -1;
}
#main-background2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 150vh;
  background: url("../webp/backGround_blue.webp");
  background-size: auto;
  background-repeat: repeat;
  opacity: 0.8;
  z-index: -1;
}
/* -------------------------------------------------- */
/* service */
/* -------------------------------------------------- */
#particle {
  width:100vw;
  margin:0 auto;
  background-color:var(--main_color_b);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  /* position: relative; */
  position: absolute;
}
#particle > canvas {
  display: block;
  /* vertical-align: bottom; */
  /* position: absolute; */
  top: 0;
  z-index: 1;
}

.section {
  text-align: center;
}

#services {
  position: relative;
  z-index: 2;
  width: 100vw;
}

.web-page_app_wrap {
  padding: 80px 40px;
  position: absolute;
  pointer-events: none;
  width: 100vw;
}

.services-container,
.blog-container {
  display: flex;
  justify-content: center;
  gap: 5%;
  flex-wrap: wrap;
}

.service,
.blog-post {
  background-color: transparent;
  border: 16px solid var(--main_color_r);
  color: var(--white_color);
  /* aspect-ratio: 3/1; */
  height: auto;
  padding: var(--font-size_2);
  border-radius: 8px;
  flex: 1;
  transition: transform 0.3s;
  margin-top: var(--font-size_0);
  max-width: calc(var(--font-size_2)*(13));
  width: fit-content;
  /* width: minmax(); */
  pointer-events: auto;
  opacity: 1;
}

#services  h2 {
  font-size: var(--font-size_1);
}

.service > h3 {
  font-size: var(--font-size_2);
  white-space: nowrap;
}

.service > p {
  font-size: var(--font-size_4);
  margin-top: var(--font-size_4);
}

.service:hover,
.blog-post:hover {
  transform: translateY(-10px);
}

.app {
  margin-top: calc(var(--font-size_0)*2);
  /* background-color: var(--white_color); */
  z-index: 2;
}

.app .service {
  background-color: transparent;
  border: 16px solid var(--main_color_r);
  color: var(--white_color);
}

#contact button {
  margin-top: 20px;
}


.priceSimulator_btn {
  background-color: var(--orange_color);
  color: var(--white_color);
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: var(--font-size_3);
  transition: background-color 0.3s;
  margin-top: var(--font-size_0);
  pointer-events: auto;
  display: inline-block;
  white-space: nowrap;
  height: fit-content;
}
/* -------------------------------------------------- */
/* Animation */
/* -------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* -------------------------------------------------- */
/* Responsive */
/* -------------------------------------------------- */
@media screen and (max-width: 768px) {
  /* === mainDesign === */
  .main {
    margin-top: calc(var(--header_height) - 1rem);
    padding: var(--font-size_3) var(--font-size_2);
  }
  .hp-sample_img {
    top: auto;
  }
  .hp-sample_img img{
    width: 65vw;
  }
  .main-sentence {
    font-size: var(--font-size_5);
    padding: var(--font-size_4) var(--font-size_5);
    width: 65vw;
    top: 13vh;
  }

  .main-sentence h2 {
    font-size: var(--font-size_2);
  }

  .main-sentence p {
    font-size: var(--font-size_4);
  }
  .main-sentence h3 {
    font-size: var(--font-size_6);
  }

  .main-p {
    font-size: var(--font-size_4);
    padding: var(--font-size_4) var(--font-size_5);
    top: 50vh;
  }

  .main-p_s {
    font-size: var(--font-size_5);
  }

  .main-p_m {
    font-size: var(--font-size_3);
  }

  .main-button {
    top: 75vh;
  }

  button {
    font-size: var(--font-size_4);
  }
  /* === serviceDesign === */
  .web-page_app_wrap {
    padding: 40px 20px;
  }

  .service {
    border: 14px solid var(--main_color_r);
  }

  .service > h3 {
    font-size: var(--font-size_3);
  }

  .service > p {
    font-size: var(--font-size_5);
  }

  .app h2 {
    font-size: var(--font-size_2);
  }

  .app .service {
    font-size: var(--font-size_5);
  }
  
}