/* お問い合わせページ専用 */
.contact-intro {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 20px 24px;
}

.contact-lead,
.contact-guide,
.contact-info-box {
  line-height: 1.9;
  color: #333;
}

.contact-guide {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 4px solid #66cc33;
  background: #f6f8f9;
}

.contact-info-box {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #c4ced4;
  border-radius: 8px;
  background: #fff;
}

.contact-info-box h3 {
  margin: 0 0 12px;
  padding: 0 0 0 12px;
  border-left: 3px solid #66cc33;
  font-size: 20px;
}

.contact-info-box a {
  color: #1f75bf;
  text-decoration: underline;
}

.contact-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px 60px;
}

.contact-form {
  width: 100%;
  border-top: 1px solid #c4ced4;
}

.contact-row {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid #c4ced4;
}

.contact-label {
  display: block;
  margin-bottom: 12px;
  color: #333;
  font-weight: bold;
}

.required,
.optional {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: normal;
  vertical-align: middle;
}

.required {
  background: #fff0f0;
  color: #d34b4b;
}

.optional {
  background: #eef1f3;
  color: #66727a;
}

.contact-fields-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.contact-name-field {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.contact-name-field.kana {
  grid-template-columns: 60px minmax(0, 1fr);
}

.contact-phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.contact-phone-separator {
  display: block;
  text-align: center;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  border: 1px solid #c4ced4;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font: inherit;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #66cc33;
  box-shadow: 0 0 0 3px rgba(102,204,51,.18);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #c9302c;
  background: #fffafa;
}

.contact-form textarea {
  min-height: 240px;
  resize: vertical;
}

.contact-confirm-label {
  display: block;
  margin: 14px 0 8px;
  color: #333;
}

.field-error,
.error-message {
  display: none;
  margin-top: 8px;
  color: #c9302c;
  font-size: 14px;
  font-weight: bold;
}

.field-error.is-visible,
.error-message.is-visible {
  display: block;
}

.privacy-agreement {
  margin: 32px auto 0;
  padding: 20px;
  border: 1px solid #c4ced4;
  border-radius: 8px;
  background: #f6f8f9;
  text-align: center;
  line-height: 1.8;
}

.privacy-agreement a {
  color: #1f75bf;
  text-decoration: underline;
}

.contact-actions {
  margin-top: 30px;
  text-align: center;
}

.contact-submit {
  width: 100%;
  max-width: 360px;
  min-height: 56px;
  padding: 14px 24px;
  border: 1px solid #66cc33;
  border-radius: 100vh;
  background: #66cc33;
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: #fff;
  color: #66cc33;
}

.contact-mail-note {
  max-width: 820px;
  margin: 18px auto 0;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.62);
  opacity: 0;
  transition: opacity .22s ease;
}

.confirm-modal.is-open {
  display: flex;
  opacity: 1;
}

.confirm-dialog {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.32);
  transform: translateY(14px) scale(.98);
  transition: transform .22s ease;
}

.confirm-modal.is-open .confirm-dialog {
  transform: translateY(0) scale(1);
}

.confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(to right, #66cc33, #b0ff62);
  color: #fff;
}

.confirm-header h3 {
  margin: 0;
  padding: 0;
  border-left: none;
  color: #fff;
  font-size: 24px;
}

.confirm-close {
  width: 42px;
  height: 42px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.confirm-body {
  padding: 24px;
}

.confirm-message,
.confirm-mail-guide {
  line-height: 1.8;
}

.confirm-mail-guide {
  margin: 10px 0 20px;
  padding: 12px 14px;
  border-left: 4px solid #66cc33;
  background: #f6f8f9;
}

.confirm-list {
  width: 100%;
  border-collapse: collapse;
}

.confirm-list th,
.confirm-list td {
  width: auto;
  padding: 14px 16px;
  border: 1px solid #c4ced4;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.confirm-list th {
  width: 30%;
  background: #f6f8f9;
  font-weight: bold;
}

.confirm-list td {
  white-space: pre-wrap;
}

.confirm-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  padding: 0 24px 28px;
  text-align: center;
}

.confirm-button {
  width: 100%;
  min-height: 54px;
  padding: 13px 20px;
  border-radius: 100vh;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
}

.confirm-back {
  border: 1px solid #c4ced4;
  background: #fff;
  color: #333;
}

.confirm-back:hover,
.confirm-back:focus-visible {
  background: #f6f8f9;
}

.confirm-mail {
  border: 1px solid #66cc33;
  background: #66cc33;
  color: #fff;
}

.confirm-mail:hover,
.confirm-mail:focus-visible {
  background: #fff;
  color: #66cc33;
}

body.modal-open {
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .contact-intro {
    padding-top: 50px;
  }

  .contact-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px;
    padding: 30px 0;
    align-items: start;
  }

  .contact-label {
    margin-bottom: 0;
    padding-top: 14px;
  }

  .contact-fields-two {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .confirm-actions {
    flex-direction: row;
    justify-content: center;
  }

  .confirm-button {
    max-width: 280px;
  }
}

@media screen and (min-width: 1280px) {
  .contact-intro,
  .contact-container {
    padding-left: 0;
    padding-right: 0;
  }

  .contact-row {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 42px;
  }
}


.botcheck {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.send-status {
  display: none;
  margin: 20px 24px 0;
  padding: 14px 16px;
  border-radius: 6px;
  line-height: 1.7;
  font-weight: bold;
}

.send-status.is-visible {
  display: block;
}

.send-status.is-success {
  background: #eefbea;
  border: 1px solid #66cc33;
  color: #2d6b16;
}

.send-status.is-error {
  background: #fff1f1;
  border: 1px solid #d9534f;
  color: #a12622;
}

.confirm-button:disabled {
  opacity: .65;
  cursor: not-allowed;
}
