/* ヒーローセクション */
.heroSection {
  position: relative;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fbfbfb;
  overflow: hidden;
  background-image: url("../images/heroImage.webp");
  background-size: cover;
  background-position: center;
}

.heroSection::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.4); /* 明るめのオーバーレイ */
}

.heroContent {
  position: relative; /* オーバーレイより手前に表示するため */
  text-align: center;
  max-width: 880px;
  padding: 3rem;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari用 */
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.heroContent h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 4.5rem);
  margin-bottom: 1rem;
  color: #fbfbfb;
  text-shadow: 0 2px 4px #00000080;
}

.heroContent h2 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px #00000080;
}

.heroContent h2 span.price {
  color: #ff8c00;
  font-size: 1.2em;
}

.heroContent p {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px #00000080;
}

.heroButtons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.primaryBtn {
  background-color: #e94e77;
  color: #fbfbfb;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(233, 78, 119, 0.3);
}

.primaryBtn:hover {
  background-color: #d94269;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(233, 78, 119, 0.4);
}

.secondaryBtn {
  background-color: transparent;
  color: #fbfbfb;
  padding: 0.95rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  border: 2px solid #fbfbfb;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.secondaryBtn:hover {
  background-color: #fbfbfb;
  color: #333;
}

/* Features Section */
.featuresSection {
  background-color: #fbfbfb;
}

.featureCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.featureCard {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featureCard:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.featureCard figure {
  height: 200px;
  overflow: hidden;
}

.featureCard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: saturate(1.5);
}

.featureCard:hover img {
  transform: scale(1.05);
}

.featureCard h3 {
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.75rem);
  color: #5e8c31;
  padding: 1.5rem 1.5rem 0.75rem;
}

.featureCard p {
  padding: 0 1.5rem 1.5rem;
  color: #666;
  line-height: 1.6;
}

/* Services Section */
.servicesSection {
  background-color: #f5f7fa;
}

.serviceCards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.serviceCard {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.serviceCard:hover {
  transform: translateY(-8px);
}

.serviceCard figure {
  height: 200px;
  overflow: hidden;
}

.serviceCard .serviceContent {
  padding: 1.5rem;
}

.serviceCard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.serviceCard {
  &:nth-of-type(3) {
    img {
      filter: saturate(1.5);
    }
  }
}

.serviceCard:hover img {
  transform: scale(1.05);
}

.serviceCard h3 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem);
  color: #333;
  margin-bottom: 1rem;
}

.serviceCard p {
  color: #666;
  line-height: 1.6;
  font-weight: 700;
  color: #2e8b57 !important;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem);
  padding-bottom: 1.5rem !important;
  margin-top: 0.75rem;
}

/* Process Section */
.processSection {
  position: relative;
}

.processImage {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  object-fit: cover;
  /* clip-path: polygon(60% 0,100% 0,100% 100%,55% 100%); */
}

.processSteps {
  max-width: 800px;
  margin-inline: auto;
}

.processStep {
  display: flex;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
  align-items: flex-start;
}

.processStep:last-child {
  margin-bottom: 0;
}

.stepNumber {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #a4d65b;
  color: #fbfbfb;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.stepContent {
  padding-top: 0.5rem;
}

.stepContent h3 {
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.75rem);
  margin-bottom: 0.5rem;
  color: #5e8c31;
}

.stepContent p {
  color: #666;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonialsSection {
  background-color: #f1f8e9;
}

.testimonialCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonialCard {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonialCard:hover {
  transform: translateY(-5px);
}

.testimonialContent {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.testimonialContent p {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  line-height: 1.6;
  color: #333;
  position: relative;
}

.testimonialContent p:first-child {
  flex: 1;
  margin-bottom: 1.5rem;
}

.testimonialContent p:first-child::before {
  content: "";
  font-size: 4rem;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  color: rgba(164, 214, 91, 0.25);
  font-family: serif;
}

.testimonialAuthor {
  font-weight: 500;
  color: #888 !important;
  text-align: right;
  margin-bottom: 0 !important;
}

/* FAQ Section */
.faqSection {
  background-color: #fbfbfb;
}

.faqItems {
  max-width: 800px;
  margin-inline: auto;
}

.faqItem {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faqQuestion {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.faqQuestion h3 {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  color: #333;
  margin-right: 2rem;
}

.faqToggle {
  position: relative;
  width: 20px;
  height: 20px;
}

.faqToggle::before,
.faqToggle::after {
  content: "";
  position: absolute;
  background-color: #a4d65b;
  transition: transform 0.3s ease;
}

.faqToggle::before {
  width: 20px;
  height: 2px;
  top: 9px;
  left: 0;
}

.faqToggle::after {
  width: 2px;
  height: 20px;
  top: 0;
  left: 9px;
}

.faqItem.active .faqToggle::after {
  transform: rotate(90deg);
}

.faqAnswer {
  padding: 0 1.5rem;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.faqItem.active .faqAnswer {
  padding: 0 1.5rem 1.5rem;
  height: auto;
}

.faqAnswer p {
  color: #666;
  line-height: 1.6;
}

/* Contact Section */
.contactSection {
  background-color: #eaf2fd;
}

.contactInfo {
  display: grid;
  text-align: center;
}

.phoneContact {
  padding: 2rem;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.phoneContact h3 {
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.75rem);
  color: #4a90e2;
  margin-bottom: 1rem;
}

.phoneNumber {
  display: block;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
  font-weight: 700;
  color: #e94e77;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.phoneNumber:hover {
  color: #d94269;
}

@media (width < 768px) {
  .heroSection {
    background-position: 30% 50%;
  }
  .heroContent {
    /* すりガラス効果を無効化 */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* 背景を少し濃くして可読性を確保 */
    background-color: rgba(0, 0, 0, 0.65);
    /* スマホ向けに余白を少し調整 */
    padding: 2rem;
  }

  .serviceCards {
    grid-template-columns: 1fr;
  }

  .heroContent h2 {
    font-size: clamp(1.75rem, 1.5rem + 1.25vw, 3rem);
  }

  .heroButtons {
    flex-direction: column;
    gap: 1rem;
  }

  .processStep {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .stepNumber {
    margin-inline: auto;
  }

  .contactInfo {
    grid-template-columns: 1fr;
  }
}
