/* ─────────────────────────────────────────────────────────────
   CONTACT ページ固有スタイル
   ─　common.css + site.css の上に重ねることを前提とした、
     このページだけで使われるスタイルを集約
   ───────────────────────────────────────────────────────────── */

.contact-body {
  padding: clamp(80px, 10vw, 140px) 0 clamp(120px, 16vw, 200px);
  background: #fff
}

.contact-lead {
  margin: 0 0 30px;
  font-family: var(--lato);
  font-weight: 200;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--ink-900);
  text-wrap: balance
}

.contact-lead em {
  font-family: var(--lato);
  font-weight: 300;
  color: var(--teal-1)
}

.contact-keywords {
  font-family: var(--jp-bold);
  font-size: 14px;
  letter-spacing: .16em;
  color: var(--ink-500);
  margin: 0 0 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px
}

.contact-keywords span {
  padding: 4px 0;
  position: relative
}

.contact-keywords span::after {
  content: "/";
  color: var(--ink-300);
  margin-left: 14px
}

.contact-keywords span:last-child::after {
  display: none
}

.contact-note {
  margin: 0 0 60px;
  padding: 24px 28px;
  background: rgba(15, 111, 118, .06);
  border-left: 3px solid var(--teal-1);
  font-family: var(--jp);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-700)
}

/* Form (placeholder structure — to be wired to existing PHP) */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 50px;
  max-width: 1080px;
  margin-top: 40px
}

.form .full {
  grid-column: 1/-1
}

.field label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 14px;
  font-weight: 600
}

.field label .req {
  font-family: var(--display);
  color: var(--teal-1);
  font-size: 10px;
  letter-spacing: .18em
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink-300);
  background: transparent;
  padding: 14px 0 16px;
  color: var(--ink-900);
  font-family: var(--jp-bold);
  font-size: 16.5px;
  transition: border-color .4s, padding .3s;
  border-radius: 0;
  min-height: 48px;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.7
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--teal-1);
  border-bottom-width: 2px;
  padding-bottom: 15px
}

.field .err {
  display: none;
  color: #c0392b;
  font-family: var(--jp);
  font-size: 13px;
  margin-top: 8px
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-bottom-color: #c0392b
}

.field.has-error .err {
  display: block
}

.field label .req.opt {
  color: var(--ink-500)
}

.err--privacy {
  display: none;
  color: #c0392b;
  font-family: var(--jp);
  font-size: 13px;
  margin: -20px 0 0 32px
}

.privacy-check.has-error+.err--privacy {
  display: block
}

.privacy-check.has-error input {
  outline: 2px solid #c0392b;
  outline-offset: 3px
}

/* Submit button states */
#contactSubmit {
  position: relative;
  transition: opacity .35s, color .35s, border-color .35s, background .35s, transform .35s
}

/* 同意前: グレー無効化 */
#contactSubmit.is-locked {
  color: var(--ink-500);
  border: 1px solid var(--ink-300);
  background: transparent;
  cursor: not-allowed;
  pointer-events: none;
}

#contactSubmit.is-locked:hover {
  background: transparent;
  color: var(--ink-500);
  border-color: var(--ink-300);
  transform: none;
}

/* 送信中 */
#contactSubmit[disabled] {
  opacity: .55;
  cursor: wait;
  pointer-events: none
}

#contactSubmit.is-sending .btn__label::after {
  content: " …"
}

#contactSubmit.is-sending .ar {
  animation: spin 1s linear infinite;
  display: inline-block
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* Result message */
.form-result {
  margin-top: 24px;
  padding: 0;
  font-family: var(--jp);
  font-size: 14.5px;
  line-height: 1.8;
  display: none
}

.form-result.is-visible {
  display: block;
  padding: 22px 26px;
  border-left: 3px solid var(--teal-1);
  background: rgba(15, 111, 118, .06)
}

.form-result.is-error {
  border-left-color: #c0392b;
  background: rgba(192, 57, 43, .06);
  color: #8a2820
}

.form-result strong {
  font-family: var(--jp-bold);
  font-weight: 700;
  display: block;
  margin-bottom: 4px
}

.privacy {
  font-family: var(--jp);
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-500);
  max-width: 760px;
  margin: 30px 0
}

.privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--teal-1)
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 40px;
  font-family: var(--jp-bold);
  font-size: 14px;
  color: var(--ink-700);
  cursor: pointer
}

.privacy-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal-1)
}

.form-submit {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center
}

.form-submit .btn {
  cursor: pointer
}

.form-submit button.btn {
  background: transparent;
  font: inherit;
  letter-spacing: inherit
}

.form-submit small {
  font-family: var(--jp);
  font-size: 13px;
  color: var(--ink-500)
}

/* Contact alternates (channels) */
.contact-channels {
  margin-top: 80px;
  border-top: 1px solid rgba(14, 20, 23, .18);
  padding-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px
}

.contact-channels .c {
  padding: 24px 0
}

.contact-channels .c h5 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600
}

.contact-channels .c p {
  margin: 0;
  font-family: var(--lato);
  font-weight: 200;
  font-size: 22px;
  color: var(--ink-900);
  letter-spacing: -.005em
}

.contact-channels .c a {
  color: var(--teal-1);
  border-bottom: 1px solid var(--teal-1);
  padding-bottom: 2px
}

@media (max-width:780px) {
  .form {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .contact-channels {
    grid-template-columns: 1fr;
    gap: 0
  }

  .contact-channels .c {
    border-bottom: 1px solid rgba(14, 20, 23, .12);
    padding: 24px 0
  }

  .contact-keywords {
    font-size: 12px
  }
}

/* Phone (≤640px) */
@media (max-width:640px) {
  .contact-body {
    padding: 60px 0 90px
  }

  .contact-lead {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.4;
    margin-bottom: 22px
  }

  .contact-keywords {
    font-size: 11px;
    letter-spacing: .1em;
    gap: 6px 10px;
    margin-bottom: 36px
  }

  .contact-keywords span::after {
    margin-left: 10px
  }

  .contact-note {
    padding: 16px 18px;
    font-size: 12.5px;
    line-height: 1.85;
    margin-bottom: 36px
  }

  .form {
    gap: 28px;
    margin-top: 24px
  }

  .field label {
    font-size: 10px;
    letter-spacing: .2em;
    margin-bottom: 10px;
    gap: 8px
  }

  .field label .req {
    font-size: 9px
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
    padding: 12px 0 14px;
    min-height: 46px
  }

  .field textarea {
    min-height: 140px
  }

  .privacy {
    font-size: 12.5px;
    line-height: 1.9;
    margin: 24px 0
  }

  .privacy-check {
    font-size: 13px;
    margin: 24px 0 28px;
    gap: 10px
  }

  .privacy-check input {
    width: 18px;
    height: 18px
  }

  .form-submit {
    margin-top: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px
  }

  .form-submit .btn {
    width: 100%;
    justify-content: space-between
  }

  .form-submit small {
    text-align: center;
    font-size: 12px
  }

  .form-result {
    font-size: 13.5px
  }

  .form-result.is-visible {
    padding: 16px 18px
  }

  .err--privacy {
    margin-left: 30px;
    font-size: 12px
  }

  .contact-channels {
    margin-top: 52px;
    padding-top: 36px
  }

  .contact-channels .c {
    padding: 18px 0
  }

  .contact-channels .c h5 {
    font-size: 10px;
    letter-spacing: .2em;
    margin-bottom: 8px
  }

  .contact-channels .c p {
    font-size: 18px
  }
}