.page main {}

.page header {
  position: relative;
}

.page .sc__header {
  padding: 0;
}

.page .sc__header {
  margin-bottom: 40px;
}

/* .page .sc__ttl {
  text-align: center;
}

.page .sc__subttl {
  text-align: center;
} */

.page-template-default .wp-block-image {
  margin: 40px 0;
}

.page-template-default .wp-block-image img {
  max-width: 100%;
}

.page-template-default .wp-block-image.size-full img {
  width: 100%;
  height: auto;
}

.page-id-43 iframe {
  width: 100%;
  margin: 40px 0;
}

.page__abs {
  background-color: #F2F2F2;
  padding: 24px;
  margin-bottom: 40px;
  border-radius: 4px;
}


/* CONTACT PAGE */
h2.gform_title {
  display: none;
}

.page-id-45 .sc__inner {
  max-width: 720px;
}

/* Gravity Form 全体の調整 */
.gform_wrapper .gform_body .gform_fields .gfield {
  margin-bottom: 8px;
  /* デフォルト20px前後 → 8pxに調整 */
  display: grid;
  grid-template-columns: 180px 1fr;
  /* 左:ラベル120px / 右:入力欄 */
  align-items: center;
}

/* ラベル */
.gform_wrapper .gform_body .gform_fields .gfield_label {
  margin: 0;
}

/* 入力欄 */
.gform_wrapper .gform_body .gform_fields .ginput_container {
  grid-column: 2;
  /* 右側のカラムに配置 */
}

/* 説明文 */
.gform_wrapper .gfield_description {
  grid-column: 2;
  /* input と同じカラムに配置 */
  margin-top: 4px;
  font-size: 0.85em;
  color: #666;
}

span.gfield_required {
  background-color: red;
  padding: 0 4px;
  color: #ffffff !important;
  border-radius: 2px;
  margin-right: 4px;
}

.gform-theme--foundation .gform_fields {
  --gf-form-gap-y: 16px;
}

/* 送信ボタンを他の input と揃える */
.gform_footer {
  display: grid !important;
  grid-template-columns: 170px 1fr !important;
  padding: 0 !important;
}

.gform_footer input[type="submit"] {
  grid-column: 2;
  /* input と同じカラムに配置 */
  width: 100%;
  /* 他inputと同じ幅 */
  max-width: 100%;
  /* 余計な制限を解除 */
  margin: 0;
  /* 左寄せ余白を削除 */
  box-sizing: border-box;
  height: 65px !important;
  background-color: #4E4E4E !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 4px !important;
  /* 角丸。不要なら削除 */
  cursor: pointer !important;
  transition: opacity 0.3s ease !important;
}

.gform_footer input[type="submit"]:hover {
  opacity: 0.85 !important;
  /* ホバーで少し薄く */
}

@media (max-width: 768px) {

  /* 項目全体を1カラムにする */
  .gform_wrapper .gform_body .gform_fields .gfield {
    display: block;
    /* grid → block に戻す */
  }

  /* ラベルを100%幅で */
  .gform_wrapper .gform_body .gform_fields .gfield_label {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    /* ラベルと入力欄の間に余白 */
  }

  /* 入力欄も100%幅で */
  .gform_wrapper .gform_body .gform_fields .ginput_container {
    grid-column: auto;
    /* grid指定を解除 */
    width: 100%;
  }

  /* 説明文もラベルの下に */
  .gform_wrapper .gfield_description {
    grid-column: auto;
    margin-top: 4px;
  }

  /* 送信ボタンも1カラムに */
  .gform_footer {
    display: block !important;
    /* grid解除 */
    padding: 0 !important;
  }

  .gform_footer input[type="submit"] {
    width: 100%;
    margin-top: 12px;
    /* フォームとの間に余白 */
  }
}

@media (max-width: 768px) {
  .page .sc__header {
    margin-bottom: 24px;
  }
}