@font-face {
  font-family: 'Cabinet Grotesk';
  src:
    url('https://19853391.fs1.hubspotusercontent-na2.net/hubfs/19853391/CabinetGrotesk-Extrabold.woff2') format('woff2'),
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* =========================
CONTACT SECTION
========================= */

.qc-contact-section {
  position: relative;
  z-index: 2;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: clamp(70px, 9vw, 120px);
  background: #fff;
  box-sizing: border-box;
}

.qc-contact-inner {
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  box-sizing: border-box;
}

.qc-contact-section__inner {
  width: 100%;
  max-width: 1183px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: clamp(64px, 7vw, 120px);
  align-items: start;
  box-sizing: border-box;
}

/* =========================
左側見出し
========================= */

.qc-contact-section__left {
  min-width: 0;
}

.qc-contact-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

.qc-contact-heading__en {
  display: block;
  margin: 0;
  padding: 0;
  font-family:
    'Cabinet Grotesk',
    serif;
  font-size: clamp(18px, 6.5vw, 70px);
  line-height: 1.2;
  font-weight: 900;
  color: #111;
  letter-spacing: 0;
  white-space: nowrap;
}

.qc-contact-heading__ja {
  margin: 6px 0 0;
  padding: 0;
  font-family:
    "Noto Sans JP",
    sans-serif;
  font-size: clamp(10px, 3vw, 15px);
  line-height: 1.4;
  font-weight: 500;
  color: #111;
  letter-spacing: 0;
}

/* =========================
右側フォーム
========================= */

.qc-contact-section__right {
  min-width: 0;
  width: 100%;
}

.qc-contact-section__form {
  width: 100%;
  background: transparent !important;
}

.qc-contact-section__phone,
.qc-contact-section__phone * {
  font-family: inherit !important;
}

.qc-contact-section__form form,
.qc-contact-section__form .hs-form,
.qc-contact-section__form form fieldset {
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.qc-contact-section__form form fieldset {
  margin-bottom: 24px !important;
}

/* HubSpot 2カラム */
.qc-contact-section__form form .form-columns-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100% !important;
}

/* Eメール・電話番号は縦並びに固定 */
.qc-contact-section__form form .form-columns-2:has(.hs_email):has(.hs_phone),
.qc-contact-section__form form .form-columns-2:has(.hs-email):has(.hs-phone),
.qc-contact-section__form form .form-columns-2:has(input[type='email']):has(input[type='tel']) {
  grid-template-columns: 1fr !important;
}

.qc-contact-section__form form .form-columns-2 .hs-form-field,
.qc-contact-section__form form .form-columns-1 .hs-form-field {
  width: 100% !important;
  min-width: 0 !important;
  float: none !important;
}

.qc-contact-section__form form .hs-form-field {
  margin-bottom: 0 !important;
}

.qc-contact-section__form form label {
  display: block;
  margin-bottom: 10px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  color: #333 !important;
}

.qc-contact-section__form form input[type='text'],
.qc-contact-section__form form input[type='email'],
.qc-contact-section__form form input[type='tel'],
.qc-contact-section__form form input[type='number'],
.qc-contact-section__form form textarea,
.qc-contact-section__form form select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 56px !important;
  padding: 0 18px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: #f3f6f5 !important;
  color: #333 !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.qc-contact-section__form form textarea,
.qc-contact-section__form form .hs-fieldtype-textarea textarea {
  min-height: 200px !important;  /* 170px → 200px */
  height: 200px !important;
  padding-top: 18px !important;
  resize: vertical;
}

.qc-contact-section__form form input::placeholder,
.qc-contact-section__form form textarea::placeholder {
  color: #b9bdbc !important;
  font-size: 11px !important;   /* 追加：小さくして折り返し */
  line-height: 1.6 !important;  /* 追加：折り返し時の行間 */
  font-weight: 400 !important;  /* 追加：細めに */
}

.qc-contact-section__form form input:focus,
.qc-contact-section__form form textarea:focus,
.qc-contact-section__form form select:focus {
  outline: none !important;
  border-color: #222 !important;
  background: #fff !important;
}

.qc-contact-section__form form input:not(:placeholder-shown),
.qc-contact-section__form form textarea:not(:placeholder-shown) {
  background: #fff !important;
  border: 1px solid #222 !important;
}

.qc-contact-section__form form select:valid {
  background: #fff !important;
  border: 1px solid #222 !important;
}

.qc-contact-section__form form .hs-input.error {
  border-color: #ef6b51 !important;
  background: #fff8f6 !important;
}

.qc-contact-section__form form .hs-error-msgs,
.qc-contact-section__form form .hs-error-msg {
  margin-top: 8px !important;
  color: #ef6b51 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.qc-contact-section__form form .hs-richtext,
.qc-contact-section__form form .legal-consent-container {
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: #555 !important;
}

.qc-contact-section__form form .actions {
  margin-top: 24px;
  width: 100%;
}

.qc-contact-section__form form input[type='submit'],
.qc-contact-section__form form .hs-button,
.qc-contact-section__form form .actions .hs-button {
  width: 100% !important;
  height: 58px !important;
  border: 2px solid #252525 !important;  /* noneからsolidに変更（hover時の枠のガタつき防止） */
  border-radius: 999px !important;
  background: #252525 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;  /* 追加 */
}

.qc-contact-section__form form input[type='submit']:hover,
.qc-contact-section__form form .hs-button:hover {
  background: #fff !important;
  color: #111 !important;
  border: 2px solid #111 !important;
  transition: all 0.2s ease !important;
}

/* 不要装飾を消す */
.qc-contact-section__form .form-title,
.qc-contact-section__form .submitted-message,
.qc-contact-section__form > div:first-child:empty,
.qc-contact-section__form form::before,
.qc-contact-section__form .hs-form::before {
  display: none !important;
  content: none !important;
  background: transparent !important;
}

/* =========================
電話エリア
========================= */

.qc-contact-section__phone {
  margin-top: 40px;
  padding: 34px 36px 36px;
  border-radius: 10px;
  background: #f3f6f5;
  text-align: center;
  box-sizing: border-box;
  color: #555;
}

.qc-contact-section__phone-title {
  margin: 0 0 8px;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  font-weight: 700;
  color: #555;
}

.qc-contact-section__phone-time {
  margin: 0 0 22px;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
  color: #888;
}

.qc-contact-section__phone-list {
  width: fit-content;
  margin: 0 auto;
}

.qc-contact-section__phone-row {
  display: grid;
  grid-template-columns: 96px 180px;
  column-gap: 18px;
  align-items: baseline;
  justify-content: center;
  margin-top: 10px;
}

.qc-contact-section__phone-office {
  text-align: right;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: #555;
}

.qc-contact-section__phone-number {
  text-align: right;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.qc-contact-section__phone-number--sp {
  display: none;
}

.qc-contact-section__phone-number--pc {
  display: block;
}

.sp-only {
  display: none;
}

.qc-contact-section__phone p {
  margin: 6px 0;
  font-size: clamp(10px, 0.8vw, 11px);
  line-height: 1.8;
  color: #555;
}

/* =========================
個人情報テキスト
========================= */
.qc-contact-section__privacy {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #555;
}

.qc-contact-section__privacy a {
  color: #555;
  text-decoration: underline;
}

.qc-contact-section__privacy a:hover {
  color: #111;
}

/* =========================
SP
========================= */

@media (max-width: 767px) {
  .qc-contact-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-top: 56px;
  }

  .qc-contact-inner {
    padding: 0 24px;
  }

  .qc-contact-section__inner {
    display: block;
  }

  .qc-contact-section__left {
    margin-bottom: 40px;
  }

  .qc-contact-heading__en {
    font-size: clamp(28px, 9vw, 48px);
    line-height: 1.15;
    white-space: normal;
  }

  .qc-contact-heading__ja {
    font-size: 12px;
    line-height: 1.5;
  }

  .qc-contact-section__form form .form-columns-2 {
    display: block !important;
  }

  .qc-contact-section__form form fieldset {
    margin-bottom: 22px !important;
  }

  .qc-contact-section__form form .form-columns-2 .hs-form-field {
    margin-bottom: 22px !important;
  }

  .qc-contact-section__phone {
    margin-top: 36px;
    padding: 28px 20px 30px;
  }

  .qc-contact-section__phone-title {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 6px;
  }

  .qc-contact-section__phone-time {
    font-size: 11px;
    margin-bottom: 20px;
  }

  .qc-contact-section__phone-list {
    width: 100%;
    max-width: 290px;
  }

  .qc-contact-section__phone-row {
  grid-template-columns: 75px 1fr;
column-gap: 4px;
}

  .qc-contact-section__phone-office {
    font-size: 13px;
  }

  .qc-contact-section__phone-number {
    font-size: 21px;
    color: #555;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .qc-contact-section__phone-number:hover,
  .qc-contact-section__phone-number:focus,
  .qc-contact-section__phone-number:visited {
    color: #555;
  }

  .sp-only {
    display: block;
  }
  .qc-contact-section__phone-number--pc {
  display: none;
}

.qc-contact-section__phone-number--sp {
  display: block;
  color: #555;
  text-decoration: underline;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

.qc-contact-section__phone-number--sp:hover,
.qc-contact-section__phone-number--sp:focus,
.qc-contact-section__phone-number--sp:active,
.qc-contact-section__phone-number--sp:visited {
  color: #555;
  text-decoration: underline;
  font-weight: 600;
}
  
  .qc-contact-section__phone .qc-contact-section__phone-row {
    grid-template-columns: 76px 170px !important;
    column-gap: 10px !important;
    justify-content: center !important;
  }

  .qc-contact-section__phone .qc-contact-section__phone-office {
    text-align: right !important;
  }

  .qc-contact-section__phone .qc-contact-section__phone-number {
    text-align: left !important;
  }
}
