/* 共通変数 */
: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;
}

/*==========================
  タイトル
============================*/
.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: #eaf3f6; /* 次セクションの背景色に合わせる */
}

@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;
  }
}

/*==========================
  フォーム
============================*/
/* ページ全体の背景色をベージュに */
body {
  background-color: #fffdf5 !important;
  margin: 0;
  padding: 0;
}

/* フォームを囲むコンテナ（中央寄せ・最大幅） */
.contact-outer {
  background-color: #fffdf5; /* 全体と同じ色 */
  width: 100%;
  padding: 50px 0;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px; /* 左右の余白 */
}

/* ステップ表示 */
.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
}

.step-item {
  width: 220px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #55b38a;
  background-color: #fff; /* ボックス内は白 */
  color: #55b38a;
  font-weight: bold;
  font-size: 18px;
}

.step-item.active {
  background-color: #55b38a;
  color: #fff;
}

.step-arrow {
  color: #55b38a;
  font-weight: bold;
}

/* フォームの各行 */
.form-group {
  display: flex;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px dotted #ccc;
  flex-wrap: wrap;
}

.form-group.no-border {
  border-bottom: none;
}

.form-group label {
  width: 300px;
  font-size: 16px;
  font-weight: bold;
}

.form-group label span {
  color: #ff6b6b;
  margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  flex: 1;
  padding: 12px;
  border: 1px solid #e0e0e0;
  background-color: #f8f8f8;
  border-radius: 4px;
}

.form-group textarea {
  height: 200px;
}

/* エラーメッセージ */
.error-msg {
  width: 100%;
  margin-left: 300px;
  color: #ff0000;
  font-size: 13px;
  margin-top: 5px;
}

/* reCAPTCHA */
.g-recaptcha-wrapper {
  margin: 30px 0 30px 300px;
}

/* ボタン */
.btn-submit {
  display: block;
  margin: 40px auto;
  padding: 15px 80px;
  background-color: #55b38a;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.btn-area {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-back {
  padding: 15px 50px;
  background-color: #999;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

/* 確認画面テーブル */
.confirm-table {
  width: 100%;
  border-collapse: collapse;
}

.confirm-table th,
.confirm-table td {
  padding: 20px;
  border-bottom: 1px dotted #ccc;
  text-align: left;
}

.confirm-table th {
  width: 300px;
}

@media (max-width: 768px) {
  .form-group label {
    width: 100%;
    margin-bottom: 10px;
  }
  .error-msg,
  .g-recaptcha-wrapper {
    margin-left: 0;
  }
  .step-item {
    width: 100px;
    font-size: 14px;
  }
}

/*==========================
  タイトル
============================*/
.page-hero {
  position: relative !important;
  overflow: hidden !important;
  background: #f8f3ed !important;
  z-index: 1 !important;
  min-height: calc(
    var(--hero-content-h) + var(--hero-safe-top) + var(--hero-safe-bottom)
  ) !important;
}

.page-hero-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

.page-hero-bg img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.page-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  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%
  ) !important;
}

.page-hero-inner {
  position: relative !important;
  z-index: 3 !important;
  box-sizing: border-box !important;
  min-height: calc(
    var(--hero-content-h) + var(--hero-safe-top) + var(--hero-safe-bottom)
  ) !important;
  padding-top: var(--hero-safe-top) !important;
  padding-right: 20px !important;
  padding-bottom: var(--hero-safe-bottom) !important;
  padding-left: 20px !important;
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
}

.page-hero-title {
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.page-hero-title img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 92px !important;
  margin: 0 auto !important;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 28px rgba(255, 255, 255, 0.9)) !important;
}

.contact-page-hero .page-hero-inner {
  min-height: 340px !important;
}

.contact-page-hero .page-hero-title img {
  transform: translateY(75px) !important;
}

.page-hero-wave {
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
  width: 100% !important;
  line-height: 0 !important;
  z-index: 4 !important;
  pointer-events: none !important;
}

.page-hero-wave svg {
  display: block !important;
  width: 100% !important;
  height: var(--hero-bottom-wave-h) !important;
}

.page-hero-wave path {
  fill: #fffdf5 !important;
}

@media (max-width: 1024px) {
  :root {
    --header-wave-h: 48px !important;
    --hero-bottom-wave-h: 32px !important;
    --hero-content-h: 150px !important;
    --hero-safe-top: calc(var(--header-wave-h) + 26px) !important;
    --hero-safe-bottom: calc(var(--hero-bottom-wave-h) + 10px) !important;
  }

  .page-hero-title img {
    max-height: 78px !important;
  }

  .contact-page-hero .page-hero-inner {
    min-height: 280px !important;
  }

  .contact-page-hero .page-hero-title img {
    transform: translateY(45px) !important;
  }
}

@media (max-width: 640px) {
  :root {
    --header-wave-h: 34px !important;
    --hero-bottom-wave-h: 22px !important;
    --hero-content-h: 120px !important;
    --hero-safe-top: calc(var(--header-wave-h) + 48px) !important;
    --hero-safe-bottom: calc(var(--hero-bottom-wave-h) + 8px) !important;
  }

  .page-hero-inner {
    padding-top: var(--hero-safe-top) !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
  }

  .page-hero-title img {
    max-height: 54px !important;
  }

  .contact-page-hero .page-hero-inner {
    min-height: 180px !important;
  }

  .contact-page-hero .page-hero-title img {
    transform: translateY(12px) !important;
  }
}
