:root {
  font-family:  "noto-sans-cjk-jp", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #333;
  background-color: #FFF;
}

.container {
  max-width: 1200px;
}

.contact-section {
  margin: 0;
}

.contact-heading {
  margin: 0 0 2.4rem;
  text-align: center;

  color: #004A82;
  font-size: 1.875rem;
  font-style: normal;
  font-weight: 700;
  line-height: 2.125rem; /* 113.333% */
  letter-spacing: 0.0375rem;
}

.contact-headText  {
  text-align: center;
color:  #002C44;
font-size: 0.9375rem;
font-weight: 500;
line-height: 1.5625rem; /* 166.667% */
letter-spacing: 0.01875rem;
margin-bottom: 4.7rem;

}

.phone-contact {
  margin-bottom: 4rem;
  text-align: center;
  padding-bottom: 4rem;
  border-bottom: solid 0.03rem #707070;
}

.phone-number {
  color: #002C44;
  font-size: 1.75rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.035rem;
}

.business-hours {
  color: #002C44;
  text-align: center;
font-size: 0.9375rem;
font-weight: 400;
line-height: 1.25rem; /* 133.333% */
letter-spacing: 0.01875rem;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.required, .optional {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  margin-bottom: 1rem;
  white-space: nowrap;


    font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5625rem; /* 178.571% */
  letter-spacing: 0.02625rem;
}

.required::before {
  content: "必須";
  background: #0297E0;
  color: white;
  padding: 0.2rem 1rem;
  margin-right:1rem;
  border-radius: 1rem;
  white-space: nowrap;

  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5625rem; /* 208.333% */
  letter-spacing: 0.0225rem;
}

.optional::before {
  content: "任意";
  background: #FFF;
  color: #0297E0;
  border: solid 1px #0297E0;
  font-size: 0.75rem;
  padding: 0.2rem 1rem;
  margin-right:1rem;
  border-radius: 1rem;
  white-space: nowrap;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #CDD6DD;
  border-radius: 0.4375rem;
  font-size: 0.75rem;
}

/* 入力エラー時 */
.form-input.wpcf7-not-valid {
  border: 1px solid #C02A2D;
}


.form-input::placeholder {
  color: #CDD6DD;
  font-size: 0.8rem;
font-weight: 400;
line-height: 1.5625rem; /* 208.333% */
letter-spacing: 0.0225rem;
}
.form-input:focus {
  outline: none;
  border-color: #0297E0;
}

.form-input.error {
  border-color: #C02A2D;
  position: relative;
}

.error-message {
  position: absolute;
  right: .8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #C02A2D;
  display: flex;
  align-items: center;
}

.error-message::before {
  content: "!";
  background: #C02A2D;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-right: 0.5rem;
}

.form-note {
color: #4F5558;
font-family:  "noto-sans-cjk-jp", sans-serif;
font-size: 0.6875rem;
font-style: normal;
font-weight: 400;
line-height: 1.3; /* 227.273% */
letter-spacing: 0.02063rem;
margin-top: .5rem;
}

.radio-group {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  column-gap: 2rem;
  row-gap: .5rem;
  font-size: 0.875rem;
}
.radio-group.contact-method {
  flex-direction: row;
}


.wpcf7-list-item label{
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}
/* .wpcf7-list-item label::before {
  content: "";
  appearance: none;
  width: 1rem;
  height:1rem;
  border: 1.5px solid #CDD6DD;
  border-radius: 50%;
  margin-right: 0.5rem;
  cursor: pointer;
}

.wpcf7-list-item label::after {  
  content: "";
  position: absolute;
  top: 18%;
  left: 2%;
  background: #0297E0;
  border-radius: 50%;
  opacity: 1;
  width: .6rem;
  height: .6rem;
}

.wpcf7-list-item label:has(:checked)::after {  
  opacity: 1;
} */

/* ラジオボタンの元のスタイルを非表示にする */
.wpcf7-radio input[type="radio"] {
  display: none;
}

/* ラベルのスタイルをカスタマイズ */
.wpcf7-radio label {
  position: relative;
  padding-left: 2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* カスタムラジオボタンの外枠 */
.wpcf7-radio label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid #CDD6DD;
  border-radius: 50%;
  background-color: #fff;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.3s;
}

/* カスタムラジオボタンの選択時のチェック */
.wpcf7-radio input[type="radio"]:checked + span::before {
  border-color: #0297E0;
}

.wpcf7-radio input[type="radio"]:checked + span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.3rem;
  transform: translateY(-50%);
  width: 0.6rem;
  height: 0.6rem;
  background-color: #0297E0;
  border-radius: 50%;
}


.phone-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phone-input {
  flex: 1;
}

.phone-separator {
  color: #666;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}


.checkbox-label {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid #CDD6DD;
  border-radius: 4px;
  margin-right: 0.5rem;
  position: relative;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked {
  background: #0297E0;
  border-color: #0297E0;
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.privacy-text {
  color: #002C44;
  margin-top: 0.44rem;
font-size: 0.875rem;
font-weight: 400;
line-height: 1.5625rem; /* 178.571% */
letter-spacing: 0.02625rem;
}

.privacy-text a {
  text-decoration: underline;
  color: #0297E0;
}

.privacy-text a:hover {
  opacity: 0.7;
}

.form-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.8rem;
  row-gap: .9rem;
  margin-top: 5rem;
}

.submit-button,
.back-button {
  border-radius: 3.125rem;
  width: auto;
  padding: 1rem 3.1rem;
  cursor: pointer;
  transition: .3s ease all;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4375rem; /* 153.333% */
  letter-spacing: 0.0375rem;
  text-align: center;
  white-space: wrap;
  width: 12rem;
}

.submit-button {
  color: white;
  background: var(--button-bg-blue);
}


/* contact form7の使用で挿入されるものを削除 */

/* spiner */
.wpcf7-spinner {
  display: none !important;
}

/* 注意書き表示　エラーなどを吐き出してくれる */
.wpcf7 form .wpcf7-response-output {
  display: none !important;
}


.back-button  {
  color: #00547D;
  border: solid 1px #00547D;
}
.back-button:hover  {
  background: #00547D;
  color: white;
}

/* ラジオボタンを縦並びに */
.radio-group.column .wpcf7-form-control.wpcf7-radio  {
  margin-top: .4rem;
  display: flex;
  flex-direction: column;
  row-gap: .44rem;
}


.submit-button:hover {
  background: var(--button-bg-blue-hover);
  color: var(--text-color-normal);
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.form-group {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
}

.form-output {
  color: #002C44;
font-size: 0.875rem;
font-weight: 500;
line-height: 1.5625rem; /* 178.571% */
letter-spacing: 0.02625rem;
}
.form-group.start {
  align-items: flex-start;
}

.required, .optional {
  width: 35%;
  margin-bottom: 0;
}

.form-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-input,
.radio-group,
.phone-input-group,
.privacy-agreement,
.form-content,
.form-output {
  width: 100%;
}



/* thanks　ページ */

.thnaks-content{
  margin:  0 auto;
  text-align: center;

}
.thnaks-content img {
  width: 3rem;
  margin-bottom: 4rem;
}

.thnaks-content .contact-heading {
  margin-bottom: 1.3rem;
}

.thnaks-content .phone-contact {
  border: none;
  margin-bottom: 0;
  padding-bottom: 0;
}


.contact-section.thanks .contact-headText {
  margin-bottom: 2rem;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .required, .optional {
    width: 40%;
  }

  .form-input,
.radio-group,
.phone-input-group,
.privacy-agreement,
.form-content,
.form-output {
  width: 60%;
}
  
.form-content .form-input {
  width: 100%;
}

}

@media (max-width: 768px) {
  .container {
    padding-bottom: 0;
  }

  .contact-heading {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
  }

  .business-hours {
  font-size: 0.875rem;
  line-height: 1.5625rem; 
  }
  .phone-contact {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .contact-headText {
    margin-bottom: 2.5rem;
  }
  .phone-number {
    font-size: 1.4375rem;
    font-style: normal;
    font-weight: 700;
    line-height: 2.75rem; /* 191.304% */
    letter-spacing: 0.02875rem;
  }
  .required, .optional {
    width: 100%;  
    margin-bottom: 0;
  }
  .form-input,
  .radio-group,
  .phone-input-group,
  .privacy-agreement,
  .form-content {
    width: 100%;
  }

  .form-group {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .required::before,
  .optional::before  {
    padding: 0.4rem .8rem;
    margin-right:.5rem;
    border-radius: 1rem;
    white-space: nowrap;
    font-size: 0.75rem;
    line-height: normal; /* 208.333% */
    letter-spacing: 0.0225rem;
  }
  


  .form-submit {
    flex-direction: column;
  }


  .radio-group.row .wpcf7-form-control.wpcf7-radio  {
    margin-top: .4rem;
    display: flex;
    flex-direction: column;
    row-gap: .44rem;
  }

  .phone-input-group {
    flex-direction: row;
  }

  .checkbox-label {
    margin-bottom: 0;
  }

  .privacy-agreement {
    margin-top: 0;
  }

  .submit-button {
    display: inline-block;
    padding: 1rem 1.8rem;
  }


  .form-note {
    margin-top: 0.3rem;
  }


  .error-message {
    position: absolute;
    right: .8rem;
    top: 75%;
    transform: translateY(-50%);
    color: #C02A2D;
    display: flex;
    align-items: center;
  }

  .thnaks-content img {
    width: 2.7rem;
  }
  .pc-br {
    display: none;
  }


  .wpcf7-list-item label span{
    font-size: .87rem;

  }
}


  /* Updated checkbox styles */
  .radio-label input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #D8D8D8;
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.2s;
    cursor: pointer;
    transition: .3s ease all;
  }
  
  /* .radio-label input[type="checkbox"]:hover {
    background-color:rgba(2, 126, 187, 0.1)
    ;
  } */





  /* ラジオボタンの元のスタイルを非表示にする */
.wpcf7-checkbox input[type="checkbox"] {
  display: none;
}

/* ラベルのスタイルをカスタマイズ */
.wpcf7-checkbox label {
  position: relative;
  padding-left: 2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* カスタムラジオボタンの外枠 */
.wpcf7-checkbox label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid #CDD6DD;
  border-radius: .2rem;
  background-color: #fff;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.3s;
}

/* カスタムラジオボタンの選択時のチェック */
.wpcf7-checkbox input[type="checkbox"]:checked + span::before {
  border-color: #0297E0;
}

.wpcf7-checkbox input[type="checkbox"]:checked + span::after {


    content: '';
    position: absolute;
    top: 50%;
    left: 0.3rem;
    transform: translateY(-50%) rotate(-45deg);
    width: 10px;
    height: 6px;
    border-left: 2.5px solid #0297E0;
    border-bottom: 2.5px solid #0297E0;
}


.wpcf7-checkbox  .wpcf7-list-item.first,
.wpcf7-radio  .wpcf7-list-item.fist {
  margin: 0;
}

/* LPへのリンク */
.link-lp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap:2%;
  margin: 5rem 0;
}

.link-lp-container img {
  width: 8rem;
}

/* サマリー */
.link-lp-container.summary img {
  width: 10rem;
}

.link-lp-container a:hover {
  opacity: 0.7;
}

.link-lp-container .lp-ttl {
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
}