/* Main Content */
main section {
  padding: 60px 0;
  text-align: center;
  scroll-margin-top: 76px;
}

main h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

/* Hero */
#hero {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  height: calc(100dvh - var(--header-block-size));
}

#hero img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  object-fit: cover;
  overflow: hidden;
  height: 100%;
  aspect-ratio: 16/9;
}

#hero .container {
  background-color: oklch(var(--black-l) 0 0 / 0.4);
  padding: 1rem;
  border-radius: 1rem;
  > p {
    > span {
      display: inline-block;
    }
  }
}

#hero h2 {
  color: oklch(var(--white-l) 0 0);
  font-size: 36px;
  margin-bottom: 20px;
}

#hero p {
  color: oklch(var(--white-l) 0 0);
  font-size: 18px;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  background-color: #ff5722;
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #e64a19;
}

:where(#work-time, #fee, #flow, #area, #contact) {
  padding: 40px 0;
  text-align: center;
  background-color: #f9f9f9;
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      #eee 25px
    ),
    repeating-linear-gradient(90deg, transparent, transparent 24px, #eee 25px);
  background-size: 25px 25px;
}

#work-time .container,
#fee .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  border: 2px solid #005bab;
  border-radius: 10px;
  background-color: #f0f8ff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#work-time h2,
#fee h2 {
  font-size: 24px;
  font-weight: bold;
  color: #005bab;
  margin-bottom: 20px;
}

#work-time .time-info {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
  color: #005bab;
  margin-bottom: 20px;
}

#work-time .time-info .icon {
  font-size: 48px;
  margin-right: 15px;
}

#work-time p,
#fee p {
  font-size: 14px;
  color: #333;
}

#fee .container {
  border-color: #f39c12;
  background-color: #fffaf0;
}

#fee h2 {
  color: #005bab;
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

#fee h2::before,
#fee h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100px;
  height: 2px;
  background-color: #005bab;
}

#fee h2::before {
  left: -120px;
}

#fee h2::after {
  right: -120px;
}

#fee .price-info {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

#fee .price-info .price {
  color: #e67e22;
  font-size: 48px;
}

#fee .price-info .yen {
  font-size: 24px;
  color: #e67e22;
}

#fee .price-info .zero {
  color: #e67e22;
}

/* Services */
#services {
  position: relative;
  width: 100%;
  max-width: revert;
  padding: 60px 1%;
  > img {
    position: absolute;
    inset: 0;
    z-index: -1;
    object-fit: cover;
    overflow: hidden;
    opacity: 0.7;
    height: 100%;
  }
}

.service-items {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.service-item {
  width: 30%;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
}

.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.service-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* Flow */
#flow {
  width: 100%;
  max-width: revert;
  padding: 60px 1%;
}

.flow-steps {
  display: flex;
  justify-content: space-around;
  counter-reset: flow-counter;
}

.flow-steps li {
  font-size: 18px;
  font-weight: bold;
  > figure {
    display: grid;
    place-items: center;
    gap: 8px 0;
    > img {
      width: 50%;
    }
  }
}

/* Warning Section */
#warning {
  background-color: oklch(0.9824 0.013 71.33);
  padding: 60px 0;
}

#warning .container {
  background-color: oklch(var(--white-l) 0 0);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 3px solid #ff4500;
}

#warning h2 {
  color: #ff4500;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

#warning .warning-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

#warning .warning-icon {
  margin-right: 30px;
}

#warning .warning-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

#warning .warning-text ul li {
  background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff4500"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>')
    no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 16px;
}

#warning .warning-text p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Area Section */
#area {
  width: 100%;
  max-width: revert;
  padding: 60px 1%;
  background-color: #f9f9f9;
}

#area ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px 20px;
  max-width: 800px;
  margin: 40px auto 20px;
  text-align: center;
}

#area ul li {
  background-color: oklch(var(--white-l) 0 0);
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#area p {
  max-width: 800px;
  margin-inline: auto;
}

/* FAQ */
#faq {
  position: relative;
  width: 100%;
  max-width: revert;
  padding: 60px 1%;
  > img {
    position: absolute;
    inset: 0;
    z-index: -1;
    object-fit: cover;
    overflow: hidden;
    opacity: 0.2;
    height: 100%;
  }
}

.faq-item {
  width: 70%;
  text-align: left;
  margin-bottom: 20px;
  margin-inline: auto;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.faq-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Contact */
#contact {
  background-color: #f9f9f9;
}

.reception-time {
  margin-top: 15px;
  font-size: 14px;
}

@media (width < 768px) {
  main section {
    padding: 40px 20px;
  }

  main h2 {
    font-size: 28px;
  }

  /* Hero */
  #hero h2 {
    font-size: 24px;
  }

  #hero p {
    font-size: 16px;
  }

  /* Work Time & Fee */
  #work-time .time-info {
    flex-direction: column;
    gap: 10px;
    font-size: 28px;
  }

  #work-time .time-info .icon {
    font-size: 36px;
    margin-right: 0;
  }

  #fee .price-info {
    font-size: 22px;
  }

  #fee .price-info .price {
    font-size: 36px;
  }

  #fee h2::before,
  #fee h2::after {
    display: none;
  }

  /* Services */
  .service-items {
    flex-direction: column;
  }

  .service-item {
    width: 100%;
  }

  /* Flow */
  .flow-steps {
    flex-direction: column;
    gap: 20px;
  }

  /* Warning */
  #warning .warning-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  #warning .warning-icon {
    margin-right: 0;
    > img {
      width: 50%;
      aspect-ratio: 1/1;
      margin-inline: auto;
    }
  }

  #warning .warning-text ul {
    text-align: left;
  }

  /* FAQ */
  .faq-item {
    width: 100%;
    padding: 12px;
  }
}
