/* TAKAOKA Contact Form v1.1.5 */
.takaoka-contact {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  color: #243044;
}

.takaoka-contact__notice {
  margin: 0 0 28px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #d8dee6;
  border-left: 5px solid #f27117;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(8, 10, 13, .05);
}

.takaoka-contact__notice p {
  margin: 0;
  line-height: 1.9;
}

.takaoka-contact__notice p + p {
  margin-top: 8px;
}

.takaoka-contact__notice-title {
  margin-bottom: 10px !important;
  color: #0d1f40;
  font-weight: 700;
  font-size: 1.12rem;
}

.takaoka-contact__message {
  margin: 0 0 24px;
  padding: 18px 22px;
  border-radius: 16px;
  font-weight: 700;
}

.takaoka-contact__message--success {
  border: 1px solid #b7dec2;
  background: #edf8f0;
  color: #135d2b;
}

.takaoka-contact__message--error {
  border: 1px solid #f2b7b7;
  background: #fff1f1;
  color: #a32222;
}

.takaoka-contact__form {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid #d8dee6;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(8, 10, 13, .06);
}

.takaoka-contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 0;
}

.takaoka-contact__field {
  display: block;
  margin-bottom: 22px;
}

.takaoka-contact__field > span,
.takaoka-contact__field--choice legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  color: #0d1f40;
  font-weight: 700;
  line-height: 1.5;
}

.takaoka-contact__field em,
.takaoka-contact__field--choice legend em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f27117;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  line-height: 1;
}

.takaoka-contact__field input,
.takaoka-contact__field textarea {
  width: 100%;
  border: 1px solid #cdd5df;
  border-radius: 14px;
  background: #fbfcfe;
  color: #243044;
  font: inherit;
  line-height: 1.6;
  box-sizing: border-box;
}

.takaoka-contact__field input {
  min-height: 52px;
  padding: 12px 14px;
}

.takaoka-contact__field textarea {
  min-height: 145px;
  padding: 14px;
  resize: vertical;
}

.takaoka-contact__field input:focus,
.takaoka-contact__field textarea:focus {
  outline: none;
  border-color: #f27117;
  box-shadow: 0 0 0 4px rgba(242, 113, 23, .12);
  background: #fff;
}

.takaoka-contact__field--choice {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.takaoka-contact__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.takaoka-contact__choice {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.takaoka-contact__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.takaoka-contact__choice span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #cdd5df;
  border-radius: 999px;
  background: #fbfcfe;
  color: #243044;
  font-weight: 700;
  line-height: 1.4;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}

.takaoka-contact__choice input:focus + span {
  border-color: #f27117;
  box-shadow: 0 0 0 4px rgba(242, 113, 23, .12);
}

.takaoka-contact__choice input:checked + span {
  border-color: #f27117;
  background: #fff4ec;
  color: #0d1f40;
  box-shadow: 0 0 0 3px rgba(242, 113, 23, .13);
}

.takaoka-contact__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 28px;
  padding: 18px;
  border-radius: 16px;
  background: #f7f9fb;
  color: #243044;
  font-weight: 700;
}

.takaoka-contact__agree input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: #f27117;
}

.takaoka-contact__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.takaoka-contact__actions {
  text-align: center;
}

.takaoka-contact__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 58px;
  padding: 14px 34px;
  border: 0;
  border-radius: 999px;
  background: #0d1f40;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.takaoka-contact__actions button:hover {
  transform: translateY(-1px);
  background: #122b59;
  box-shadow: 0 14px 28px rgba(13, 31, 64, .22);
}

@media (max-width: 760px) {
  .takaoka-contact__grid {
    grid-template-columns: 1fr;
  }

  .takaoka-contact__form {
    border-radius: 20px;
  }

  .takaoka-contact__actions button {
    width: 100%;
  }
}
