/* 共通変数 */
:root {
  --header-wave-h: 58px;
  --hero-bottom-wave-h: 40px;
  --hero-content-h: 140px;
  --hero-safe-top: calc(var(--header-wave-h) + 18px);
  --hero-safe-bottom: calc(var(--hero-bottom-wave-h) + 10px);
}

/* ヘッダー下の波 */
.cloud-bottom {
  position: relative;
  line-height: 0;
  margin-bottom: -1px;
  z-index: 10;
}

.cloud-bottom svg {
  display: block;
  width: 100%;
  height: var(--header-wave-h);
}

.cloud-bottom path {
  fill: #ffffff;
}

body {
  font-family: "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #5b4a42;
}

/* mobile改行コントロール　<br class="u-sp-only"> 　*/
.u-sp-only {
  display: none;
}

@media (max-width: 768px) {
  .u-sp-only {
    display: block;
  }
}

/*==========================
  タイトル
============================*/
.page-hero {
  position: relative;
  overflow: hidden;
  background: #f8f3ed;
  z-index: 1;
  min-height: calc(
    var(--hero-content-h) + var(--hero-safe-top) + var(--hero-safe-bottom)
  );
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.76) 0%,
    rgba(255, 255, 255, 0.58) 45%,
    rgba(255, 255, 255, 0.64) 100%
  );
}

.page-hero-inner {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  min-height: calc(
    var(--hero-content-h) + var(--hero-safe-top) + var(--hero-safe-bottom)
  );
  padding-top: var(--hero-safe-top);
  padding-right: 20px;
  padding-bottom: var(--hero-safe-bottom);
  padding-left: 20px;
  display: grid;
  place-items: center;
  text-align: center;
}

.page-hero-title {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-title img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 92px;
  margin: 0 auto;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 28px rgba(255, 255, 255, 0.9));
}

.page-hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 4;
  pointer-events: none;
}

.page-hero-wave svg {
  display: block;
  width: 100%;
  height: var(--hero-bottom-wave-h);
}

.page-hero-wave path {
  fill: #fffcf1; /* 次セクションの背景色に合わせる */
}

@media (max-width: 1024px) {
  :root {
    --header-wave-h: 48px;
    --hero-bottom-wave-h: 32px;
    --hero-content-h: 150px;
    --hero-safe-top: calc(var(--header-wave-h) + 26px);
    --hero-safe-bottom: calc(var(--hero-bottom-wave-h) + 10px);
  }

  .page-hero-title img {
    max-height: 78px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-wave-h: 34px;
    --hero-bottom-wave-h: 22px;
    --hero-content-h: 120px;
    --hero-safe-top: calc(var(--header-wave-h) + 48px);
    --hero-safe-bottom: calc(var(--hero-bottom-wave-h) + 8px);
  }

  .page-hero-inner {
    padding-top: var(--hero-safe-top);
    padding-right: 15px;
    padding-left: 15px;
  }

  .page-hero-title img {
    max-height: 54px;
  }
}

/*==========================
  よくある質問
============================*/
.modern-faq {
  width: 100%;
  padding: 60px 20px;
  background: #fffcf1;
  box-sizing: border-box;
}

.modern-faq-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.modern-faq-lead {
  text-align: center;
  font-size: 20px;
  margin: 0 0 40px;
  color: #333;
  font-weight: bold;
  line-height: 1.8;
}

.faq-item {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 18px;
  overflow: hidden;
  background: #fff;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  border: none;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-sizing: border-box;
}

.faq-icon {
  width: 50px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.faq-text {
  flex: 1;
  margin-left: 12px;
  font-size: 19px;
  font-weight: bold;
  color: #333;
  line-height: 1.6;
  font-family: inherit;
}

.faq-toggle-icon {
  font-size: 22px;
  color: #73c800;
  margin-left: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
  box-sizing: border-box;
}

.faq-answer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 18px;
}

.faq-answer-inner p {
  font-size: 18px;
  color: #444;
  line-height: 1.8;
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 50px;
}

.modern-faq {
  position: relative;
  width: 100%;
  padding: 60px 20px 100px;
  background: #fffcf1;
  box-sizing: border-box;
  overflow: hidden;
}

.modern-faq-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.faq-wave svg {
  display: block;
  width: 100%;
  height: 44px;
}

.faq-wave path {
  fill: #fff7f3; /* 次のセクションの背景色に合わせて変更 */
}

@media (max-width: 768px) {
  .modern-faq {
    padding: 45px 16px;
  }

  .modern-faq-lead {
    font-size: 18px;
    margin-bottom: 28px;
  }

  .faq-question {
    padding: 16px;
  }

  .faq-text {
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-answer-inner p {
    font-size: 15px;
  }

  .faq-icon {
    width: 35px;
  }

  .faq-toggle-icon {
    font-size: 18px;
  }

  .modern-faq {
    padding: 45px 16px 70px;
  }

  .faq-wave svg {
    height: 24px;
  }
}

/*==========================
  CTA
============================*/
.cta-section,
.cta-section * {
  box-sizing: border-box;
}

.cta-section {
  position: relative;
  z-index: 2;
  background: #fff7f3;
  padding: 100px 20px 145px;
  margin: 0;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.cta-tel {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-tel img {
  display: block;
  width: 100%;
  height: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 44px;
}

.cta-button {
  width: 46%;
  max-width: 520px;
  min-height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.cta-button:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.cta-button img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.cta-button-mail {
  background: #1696e7;
}

.cta-button-line {
  background: #06c755;
}

.cta-notes {
  margin-top: 34px;
  text-align: left;
  display: inline-block;
}

.cta-notes p {
  margin: 5px 0;
  font-size: 20px;
  line-height: 1.8;
  color: #5a4a43;
}

/* CTA → Footer 波 */
.cta-footer-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.cta-footer-wave svg {
  display: block;
  width: 100%;
  height: 44px;
}

.cta-footer-wave path {
  fill: #fdf5e6;
}

@media (max-width: 640px) {
  .cta-section {
    padding: 72px 16px 105px;
    margin: 0;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 16px;
    margin-top: 26px;
  }

  .cta-button {
    width: 100%;
    max-width: 100%;
    min-height: 68px;
    font-size: 18px;
    gap: 10px;
  }

  .cta-button img {
    width: 28px;
    height: 28px;
  }

  .cta-notes {
    margin-top: 22px;
  }

  .cta-notes p {
    font-size: 16px;
  }

  .cta-footer-wave svg {
    height: 24px;
  }
}
