/* お問い合わせページ
   下層ページ共通の about.css / company.css をベースに、
   ヒーロー画像・連絡先カード・フォームだけを上書き／追加する。 */

.contact-page .footer { border-radius: 0; }

/* HERO — company-hero の写真だけ差し替え */
.contact-hero::before { background: linear-gradient(90deg, rgba(10,16,13,.88) 0%, rgba(10,16,13,.66) 46%, rgba(10,16,13,.30) 100%), url("../assets/about/about-site-meeting.jpeg") center 42% / cover; }
.contact-hero__inner > p:last-child { line-height: 1.9; }

/* 連絡先カード */
.company-heading > p:last-child:not(.eyebrow) { margin-top: 18px; color: #68717c; font-size: 14px; font-weight: 500; line-height: 1.9; }
.contact-methods__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card { display: flex; flex-direction: column; border: 1px solid #dfe3e1; border-radius: 5px; padding: 36px 36px 34px; background: #fff; }
/* アイコンSVGは線が緑なので、下地は淡いグリーン（サイト共通のタグ色）にする。
   SVG側が preserveAspectRatio="none" のため、TOPのCONTACT同様に
   アートワークと同じ縦横比を px で指定して歪みを防ぐ。 */
.contact-card__icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 50%; background: #e8f6ee; }
.contact-card__icon img { display: block; max-width: none; }
.contact-card__icon--tel img { width: 25px; height: 25px; }
.contact-card__icon--mail img { width: 25px; height: 19px; }
.contact-card h3 { margin-bottom: 16px; font-size: 20px; }
.contact-card__value { font-family: var(--font-en); font-size: 30px; font-weight: 700; letter-spacing: -.02em; word-break: break-all; }
.contact-card__value a { color: var(--text-primary); transition: color var(--dur-short, .2s) ease; }
.contact-card__value a:hover { color: var(--brand); }
.contact-card dl { margin-top: 22px; }
.contact-card dl > div { display: grid; grid-template-columns: 80px 1fr; border-top: 1px solid #e4e7e5; padding: 11px 0; font-size: 12px; line-height: 1.7; }
.contact-card dt { font-weight: 700; }
.contact-card dd { color: #59626d; }
.contact-notes { display: grid; gap: 8px; margin-top: 30px; }
.contact-notes li { position: relative; padding-left: 16px; color: #68717c; font-size: 12px; line-height: 1.8; }
.contact-notes li::before { content: "※"; position: absolute; left: 0; top: 0; }

/* LINE案内 */
.contact-line { display: grid; grid-template-columns: minmax(0, 1fr) 154px; align-items: center; gap: 48px; min-height: 220px; margin-bottom: 88px; border: 1px solid #bfc6c2; padding: 32px 46px; background: #fff; }
.contact-line__label { margin-bottom: 10px; color: var(--brand); font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.contact-line h2 { color: var(--text-primary); font-size: 28px; line-height: 1.45; }
.contact-line__copy > p:last-child { margin-top: 14px; color: #59626d; font-size: 13px; font-weight: 500; line-height: 1.85; }
.contact-line__qr { display: grid; place-items: center; width: 154px; height: 154px; border: 1px solid #bfc6c2; padding: 12px; background: #fff; }
.contact-line__qr img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* フォーム */
.contact-form { border: 1px solid #dfe3e1; border-radius: 5px; padding: 46px 48px 44px; background: #fff; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.contact-form__row--full { grid-column: 1 / -1; }
.contact-form label { display: block; color: var(--text-primary); font-size: 14px; font-weight: 700; }
.contact-form__row label { margin-bottom: 10px; }
.contact-form em, .contact-form__row label > span { display: inline-block; margin-left: 10px; border-radius: 3px; padding: 4px 8px; font-size: 11px; font-style: normal; font-weight: 700; }
.contact-form em { background: var(--brand); color: #fff; }
.contact-form__row label > span { border: 1px solid #cfd5d1; background: #fff; color: #79828c; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; border: 1px solid #dce2de; border-radius: 7px; padding: 16px; background: #fff; color: var(--text-primary); font: inherit; font-size: 14px; font-weight: 500; }
.contact-form input, .contact-form select { height: 58px; }
.contact-form textarea { height: 190px; resize: vertical; }
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6b737d 50%), linear-gradient(135deg, #6b737d 50%, transparent 50%); background-position: calc(100% - 22px) 26px, calc(100% - 16px) 26px; background-size: 6px 6px; background-repeat: no-repeat; }
.contact-form ::placeholder { color: #a8b0b6; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { border-color: var(--brand); outline: 2px solid rgba(13,164,79,.25); outline-offset: 0; }
.contact-form__consent { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 34px; font-size: 13px; }
.contact-form__consent input { width: 18px; height: 18px; accent-color: var(--brand); }
.contact-form__consent a { border-bottom: 1px solid; color: var(--brand); }
.contact-form__submit { display: flex; align-items: center; justify-content: center; gap: 22px; width: 240px; height: 62px; margin: 26px auto 0; border: 0; border-radius: 100px; background: var(--brand); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity var(--dur-short, .2s) ease; }
.contact-form__submit:hover { opacity: .85; }

@media (max-width: 768px) {
  .contact-page .header { padding: 9px 15px; }
  .contact-hero { min-height: 400px; }
  .contact-hero::before { background-position: 64% center; }
  .contact-methods__grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-card { padding: 28px 24px 26px; }
  .contact-card h3 { font-size: 18px; }
  .contact-card__value { font-size: 24px; }
  .contact-line { grid-template-columns: 1fr; gap: 26px; min-height: 0; margin-bottom: 64px; padding: 30px 24px; text-align: center; }
  .contact-line h2 { font-size: 23px; }
  .contact-line__copy > p:last-child { font-size: 12px; }
  .contact-line__qr { width: 144px; height: 144px; margin: 0 auto; }
  .contact-form { padding: 28px 20px 30px; }
  .contact-form__grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-form input, .contact-form select { height: 54px; }
  .contact-form textarea { height: 160px; }
  .contact-form__consent { align-items: flex-start; text-align: left; }
  .contact-form__submit { width: 100%; max-width: 320px; height: 56px; }
}

/* Contact Form 7 */
.contact-form .wpcf7-form-control-wrap {
  display: block;
}

.contact-form__row p {
  margin: 0;
}

.contact-form input.contact-form__submit {
  width: 240px;
  height: 62px;
  padding: 0 24px;
  border: 0;
  border-radius: 100px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .contact-form input.contact-form__submit {
    width: 100%;
    max-width: 320px;
    height: 56px;
  }
}
