@charset "utf-8";
/* CSS Document */

.grecaptcha-badge {
  visibility: hidden;
}

.section.scrollable {
  height: auto;
  overflow-y: auto;
  display: block;
}

#form_wrap {
  width:60%;
  margin:0 auto;
  padding:0;
}

.form-title {
  margin: 60px auto 40px;
  text-align: center;
}

.form-title h2 {
  position: relative;
  display: inline-block;
  font-size: 2.2rem;
  color: #856b30;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.form-title h2:before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  display: inline-block;
  width: 80px;
  height: 1px;
  background-color: #bb8f55;
  transition: .5s all;
}

.form-title p {
  font-size: 1.1rem;
  color: #555;
}

.form-tel {
  width: 60%;
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 20px;
  background-color: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-tel p {
  margin-bottom: 10px;
  color: #666;
  font-size: 0.95rem;
}

.form-tel a {
  font-size: 1.8rem;
  color: #bb8f55;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.form-tel a:hover {
  color: #856b30;
}

#contact-form {
  display:block;
  width: 60%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3%;
  background: #FFF;
  border: solid 1px #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.color-wrap {
  padding: 0;
  background: none;
}

/* ★ 修正箇所 START */
dl.mailform {
  width: 100%;
  margin: 0 auto;
  border: none;
  background: none;
  padding: 30px;
 
}

dl.mailform dt {
  margin-bottom: 8px;
  color: #444;
  font-size: 1rem;
  display: block;
  text-align: left;
  width: 100%;
}

dl.mailform dd {
  margin-bottom: 25px;
  border-bottom: none;
  padding-bottom: 0;
  width:80%;

}
/* ★ 修正箇所 END */

.must {
  font-size: 10px;
  color: #D00;
  margin-left: 5px;
}

input[type="checkbox"] {
  width: auto;
  height: auto;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  padding: 0;
  outline: none;
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
  appearance: checkbox;
  box-sizing: content-box;
}

input[type="radio"] {
  width: auto;
  height: auto;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  padding: 0;
  outline: none;
  border-radius: 50%;
  -webkit-appearance: radio;
  -moz-appearance: radio;
  appearance: radio;
  box-sizing: content-box;
}

/* ★ 修正箇所 START */

.check_wrap {
  display: flex;
  align-items: center;
  gap: 20px; /* ラジオ間の間隔 */
  flex-wrap: wrap;
}
.check_wrap label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #444;
  cursor: pointer;
  white-space: nowrap;
}

/* ★ 修正箇所 END */

.privacy_link {
  text-align: center;
  margin: 30px 0;
  font-size: 0.9rem;
  color: #666;
}

.privacy_link a {
  display: inline;
  color: #bb8f55;
  text-decoration: underline;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.privacy_link a:hover {
  color: #856b30;
}

div.mfp_buttons {
  clear: both;
  padding: 20px 0;
  text-align: center;
}

div.mfp_buttons button {
  background: linear-gradient(to bottom, #8dcd38 0%, #53af25 100%);
  border: none;
  padding: 15px 20px;
  font-size: 14px;
  color: #FFF;
  width: 300px;
  border-radius: 10px;
  text-shadow: none;
  transition: .3s ease-in-out;
}

div.mfp_buttons button:hover {
  background: linear-gradient(to bottom, #8dcd38 0%, #53af25 100%);
  opacity: .5;
}

.thanks-cap {
  margin: 50px auto;
  text-align: center;
  font-size: 1.2rem;
  color: #555;
}

.done a {
  display: inline-block;
  text-align: center;
  padding: 15px;
  width: 300px;
  margin: 30px auto;
  transition: .5s all;
  background: linear-gradient(to bottom, #8dcd38 0%, #53af25 100%);
  border-radius: 5px;
  color: #FFF;
  text-decoration: none;
}

.done a:hover {
  opacity: .8;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-content {
  background-color: #fff;
  margin: 80px auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: #000;
  text-decoration: none;
}

.modal-content h2 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.modal-form-details {
  margin-top: 20px;
}

.modal-form-details p {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.modal-form-details strong {
  color: #555;
  display: inline-block;
  width: 120px;
}

.modal-actions {
  text-align: center;
  margin-top: 30px;
}

.modal-button {
  padding: 12px 25px;
  margin: 0 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.confirm-button {
  background-color: #bb8f55;
  color: white;
}

.confirm-button:hover {
  background-color: #cd853f;
}

.cancel-button {
  background-color: #777;
  color: white;
}

.cancel-button:hover {
  background-color: #555;
}

.agree-checkbox {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: #444;
}

.agree-checkbox input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
  appearance: checkbox;
  height: 18px;
  width: 18px;
  cursor: pointer;
}

.agree-checkbox label {
  cursor: pointer;
  vertical-align: middle;
}

a.back-link {
  display: block;
  width: 300px;
  margin: 20px auto;
  text-align: center;
  background: linear-gradient(to bottom, #8dcd38 0%, #53af25 100%);
  border-radius: 30px;
  color: #FFF;
  padding: 15px;
  transition: .3s ease-in-out;
}

a.back-link i {
  color: #FFF;
  margin-right: 10px;
}

a.back-link:hover {
  opacity: .5;
}

@media screen and (max-width: 768px) {
  .agree-checkbox {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 1024px) {
  #form_wrap {
    width:95%;
    margin:0 auto;
    padding:0;
  }#contact-form {
    width: 85%;
    padding: 30px;
  }
  .form-tel {
    width: 85%;
  }
}

@media screen and (max-width: 768px) {
  .form-title h2 {
    font-size: 1.8rem;
  }
  .form-title h2:before {
    width: 50px;
    bottom: -8px;
  }
  .form-tel {
    width: 90%;
    padding: 15px;
  }
  .form-tel a {
    font-size: 1.4rem;
  }
  #contact-form {
    width: 90%;
    padding: 15px;
  }
  .half {
    flex-direction: column;
    gap: 0;
  }
  .half > div {
    width: 100%;
  }
  .half dt {
    margin-top: 15px;
  }
  .half dt:first-child {
    margin-top: 0;
  }
  dl.mailform dd {
    margin-bottom: 20px;
  }
  div.mfp_buttons button {
    width: 90%;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .modal-content {
    margin: 40px auto;
    width: 95%;
    padding: 20px;
  }
  .modal-form-details strong {
    display: block;
    width: auto;
    margin-bottom: 5px;
  }
  .modal-button {
    display: block;
    width: calc(100% - 20px);
    margin: 10px auto;
  }
}

@media screen and (max-width: 480px) {
  .form-title h2 {
    font-size: 1.5rem;
  }
  .form-title p {
    font-size: 1rem;
  }
  .form-tel a {
    font-size: 1.2rem;
  }
}

.mfp_rows {
  display: block !important;
}

.mfp_col5,
.mfp_col10 {
  width: 100% !important;
}

form#mailformpro input,
form#mailformpro select,
form#mailformpro textarea,
#contact-form input:not([type="radio"]),
#contact-form select,
#contact-form textarea {
  width: 90%;
  padding: 12px 15px;
  border-radius: 6px;
  border: solid 1px #ccc;
  font-size: 1rem;
  color: #333;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#contact-form select {
  background: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23333%22%3E%3Cpath%20d%3D%22M7%2010l5%205%205-5z%22%2F%3E%3C%2Fsvg%3E') no-repeat right 10px center / 18px 18px;
}

@media screen and (max-width: 600px) {
  .formTable th {
    width: auto;
    white-space: normal;
  }
  .mailform input,
  .mailform select,
  .mailform textarea {
    width: 90%;
    box-sizing: border-box;
    font-size: 1rem;
  }
  .mailform dt,
  .mailform dd {
    display: block;
    width: 100%;
  }
  .check_wrap label {
    display: flex;
    align-items: center;
    gap: 5px;
  }
}

@media screen and (max-width: 600px) {
  
  .mailform select {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .mailform input[type="date"] {
    width: 100%;
    box-sizing: border-box;
  }
  .mailform dd {
    width:90% !important;
    padding-right:0;
    margin-left:0;
  }

  
}
/* ▼ select の余白とリセット */
#contact-form select,
dl.mailform select {
  background: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"%3E%3Cpath d="M7 10l5 5 5-5z"/%3E%3C/svg%3E') no-repeat right 10px center / 18px 18px;
  padding-right: 40px;
  border: 1px solid #ccc;
  height: 44px;
  background-color: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

dl.mailform input,
dl.mailform textarea {
  border: 1px solid #ccc;
  background-color: #fff;
  outline: none;
  width: 100%;
  padding: 12px 15px;
  border-radius: 6px;
  box-sizing: border-box;
}
/* ★修正 dd 幅 */
dl.mailform dd {
  width: 100%;
}


@media screen and (max-width: 600px) {
  .mailform dd {
    width: 100% !important;
    padding-right: 0;
    margin-left: 0;
  }
  .check_wrap {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }
  .check_wrap label {
    min-width: auto;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    font-size: 16px;
    white-space: nowrap;
  }
  input[type="radio"] {
    width: 20px !important;
    height: 20px;
  }
}
