html, body {
  overflow-x: hidden;
  width: 100%;
}

#contact {
  background-color:#e4f0f4;
}

/* ---------------- 見出し ---------------- */
#contact .hero-section-contact {
  position: relative;
  background: url('../images/contact/menu-contact.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px 120px;
  overflow: hidden;
  margin-bottom:50px;
}
@media screen and (max-width: 757px) {
#contact .hero-section-contact {
    background: url('../images/contact/menu-contact_sp.png') center/cover no-repeat;
    background-size: 100%;
    padding: 80px;
    margin-bottom:0px;
  }
}

#contact .hero-content {
  position: relative;
  z-index: 2;
}

#contact .hero-content h1 {
  font-size: 3.5rem;
  margin-bottom:5px;
  font-weight:normal;
  letter-spacing: 0.2em;
}

#contact .hero-content p {
  font-size: 2rem;
  font-weight:200;
  letter-spacing: 0.1em;
}



/* ---------------- tel ---------------- */
.contact-cta {
  text-align: center;
  padding: 30px 20px;
}

/* 上部テキスト */
.contact-cta__desc {
  max-width: 640px;
  margin: 0 auto 40px;
  color: #707070;
  font-size: 16px;
  line-height: 2;
}
@media screen and (max-width: 757px) {
.contact-cta__desc {
    text-align: justify;
  }
}

.contact-cta__desc span {
  display: block;
}
@media screen and (max-width: 757px) {
.contact-cta__desc span {
    display: inline;
  }
}

/* 電話ボタン */
.contact-cta__btn {
  display: inline-flex;
  align-items: center;      /* 垂直方向の中央揃え */
  justify-content: center;  /* 水平方向の中央揃え ← 追加！ */
  flex-wrap: wrap;          /* 折り返し許可 */
  background-color: #25819A;
  color: #fff;
  text-decoration: none;
  padding: 20px;
  border-radius: 50px;
  transition: background-color .3s;
    transition: transform 0.3s ease;
}
@media screen and (max-width: 757px) {
.contact-cta__btn {
    width:100%;
    border-radius: 40px;
  }
}


/* 電話アイコン */
.contact-cta__icon {
  width: 24px;
  height: 24px;
  margin-right: 16px;
}
@media screen and (max-width: 757px) {
.contact-cta__icon {
    margin-right: 10px;
  }
}

/* 電話番号 */
.contact-cta__tel {
  font-family: futura-pt, "游ゴシック Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo;
  font-size: 32px;
  letter-spacing: 2px;
  margin-right: 16px;
}
@media screen and (max-width: 757px) {
.contact-cta__tel {
    font-size:28px;
    margin-right: 10px;
  }
}

/* 注記テキスト */
.contact-cta__note {
  flex-basis: 100%;
  text-align: center;
  font-size: 16px;
  opacity: 0.8;
  white-space: normal;    /* 自動折り返しを有効に */
}



/* ---------------- form ---------------- */
/* 全体コンテナ */
.cf7-contact {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #e6f0f5;
}

/* 行（ラベル＋フィールド） */
.cf7-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}
@media screen and (max-width: 757px) {
.cf7-row {
margin-bottom: 40px;
  }
}


/* 左側ラベル幅 */
.cf7-label {
  flex: 0 0 270px; 
  font-size: 16px;
  line-height: 2;
  color: #707070;
}
@media screen and (max-width: 757px) {
.cf7-label {
    flex: 0; 
  }
}

/* 「必須」「任意」バッジ */
.cf7-required,
.cf7-optional {
  display: inline-block;
  font-size: 14px;
  color: #fff;
  border-radius: 20px;
  padding: 2px 15px;
  margin-right: 8px;
  vertical-align: middle;
}
.cf7-required { background-color: #e73123; }
.cf7-optional { background-color: #a2a4a9; }

/* 右側フィールド */
.cf7-field {
  flex: 1;
}
.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="tel"],
.cf7-field textarea,s
.cf7-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccd3d9;
  border-radius: 8px;
  font-size: 16px;
  color: #707070;
  box-sizing: border-box;
  background-color: #fff;
}

/* テキストエリア高さ調整 */
.cf7-field textarea {
  resize: vertical;
}

/* プライバシー同意文 */
.cf7-privacy {
  margin-bottom: 24px;
  font-size: 16px;
  color: #707070;
  margin-left:270px;
  text-align: left;
  margin-top: -20px;
}
@media screen and (max-width: 757px) {
.cf7-privacy {
    margin-left:0px;
    margin-top: -40px;
  }
}

.cf7-privacy a {
  color: #007d85;
  text-decoration: underline;
}
.cf7-privacy label {
  margin-left: 8px;
  vertical-align: middle;
}

/* チェックボタン */
.cf7-check {
    margin-left:260px;
    margin-top:20px;
    font-size: 16px;
    color: #707070;
}
@media screen and (max-width: 757px) {
.cf7-check {
    margin-left:0px;
  }
}

.cf7-check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  margin-right:5px;
  vertical-align: middle; 
}

.cf7-check input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color:#38AFCB;
  font-size: 27px;
  line-height: 1;
}

/* 送信ボタン */
.cf7-submit.c-btn {
  width: 100%;
  max-width: 350px;   
  margin-top: 40px;
  margin-left: 270px; 
  transition: transform 0.3s ease;
}
@media screen and (max-width: 757px) {
.cf7-submit.c-btn {
    margin-left:0px;
    max-width:100%; 
  }
}


.cf7-submit.c-btn input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 56px;
  line-height: 56px;
  border: none;
  border-radius: 28px;
  text-align: center;      /* テキスト中央寄せ */
  font-size: 16px;
  color: #fff !important;
  font-family: "Zen Kaku Gothic New","游ゴシック Medium",YuGothic, /*…*/ Meiryo;
  font-weight: normal;
  cursor: pointer;
  box-sizing: border-box;
  padding: 0 60px;
  background-image:
    url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 18l6-6-6-6' stroke='%23FFF' stroke-width='1' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"),
    linear-gradient(90deg, #38AFCB 0%, #0C4281 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right 25px center, center center;
  background-size: 30px 30px, cover;  /* 矢印サイズも小さく */
}

.cf7-submit.c-btn input[type="submit"]:hover {
  opacity: 0.6;
}

/* メールフォームの送信先アドレス
 [_site_admin_email]　*/





/* ラジオボタン */
.cf7-field .wpcf7-list {
  list-style: none; 
}

.cf7-field .wpcf7-list-item {
  margin: 5px 0 0 5px;  /* 上余白＆左余白 */
}

.cf7-field .wpcf7-list-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  color: #707070;
}

.cf7-field .wpcf7-list-item input[type="radio"] {
  /* 見た目をモダンに：対応ブラウザなら accent-color で色づけ */
  accent-color: #007d85;
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;     /* テキストとの間隔 */
  vertical-align: middle;
}

.cf7-field .wpcf7-form-control.wpcf7-radio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2列 */
}
@media screen and (max-width: 757px) {
.cf7-field .wpcf7-form-control.wpcf7-radio {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cf7-field .wpcf7-list-item {
    flex: 0 0 50%;
  }
}


/* 文字フィールド例文　標準 */
.cf7-field input::placeholder,
.cf7-field textarea::placeholder {
  color: #c1c0c0;
  opacity: 1;            /* Chrome などで薄くなるのを防ぐ */
}

/* WebKit（Safari, Chrome）用 */
.cf7-field input::-webkit-input-placeholder,
.cf7-field textarea::-webkit-input-placeholder {
  color: #c1c0c0;
}
/* Firefox 用 */
.cf7-field input::-moz-placeholder,
.cf7-field textarea::-moz-placeholder {
  color: #c1c0c0;
  opacity: 1;
}
/* IE 10+ 用 */
.cf7-field input:-ms-input-placeholder,
.cf7-field textarea:-ms-input-placeholder {
  color: #c1c0c0;
}
/* Edge 用 */
.cf7-field input::-ms-input-placeholder,
.cf7-field textarea::-ms-input-placeholder {
  color: #c1c0c0;
}




/* モバイル対応 */
@media (max-width: 767px) {
  .cf7-row {
    flex-direction: column;
  }
  .cf7-label {
    margin-bottom: 8px;
  }
  .cf7-submit {
    text-align: center;
  }
}
