@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;
  overflow: hidden;
}

.qc-contact-inner {
  position: relative;
  z-index: 1;
  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: 720px;
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
}

/* =========================
   背景装飾画像
========================= */
.qc-contact-section__backgrounds {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.qc-contact-section__background-image {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

/* 右側・やや上・中央寄り */
.qc-contact-section__background-image--top {
  top: clamp(20px, 4vw, 65px);
  right: clamp(120px, 14vw, 240px);
  width: clamp(180px, 22vw, 360px);
}

/* 右側・やや下・大きめ・一部見切れ */
.qc-contact-section__background-image--bottom {
  top: auto;
  bottom: 60px;
  right: clamp(-160px, -7vw, -80px);
  width: clamp(260px, 32vw, 520px);
}

/* =========================
   フォーム上部テキスト
========================= */
.qc-contact-section__intro {
  width: 100%;
  margin: 0 0 clamp(42px, 5vw, 72px);
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.8;
  font-weight: 400;
  color: #444;
  letter-spacing: 0.02em;
  box-sizing: border-box;
}

.qc-contact-section__intro p {
  margin: 0 0 12px;
  padding: 0;
  font: inherit;
  color: inherit;
}

.qc-contact-section__intro p:last-child {
  margin-bottom: 0;
}

.qc-contact-section__intro a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qc-contact-section__intro strong {
  font-weight: 700;
}

.qc-contact-section__intro ul,
.qc-contact-section__intro ol {
  margin: 12px 0;
  padding-left: 1.5em;
}

.qc-contact-section__intro li {
  margin-bottom: 6px;
}

.qc-contact-section__intro,
.qc-contact-section__intro p,
.qc-contact-section__intro span,
.qc-contact-section__intro li {
  font-size: clamp(14px, 1.2vw, 16px); !important;
  line-height: 1.8;
}

/* 上部テキストがある場合は、セクション上部の余白を狭くする */
.qc-contact-section--has-intro {
  padding-top: clamp(30px, 4vw, 50px);
}

/* =========================
   右側フォーム
========================= */
.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;
  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 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 select {
  height: 56px !important;
  padding: 0 18px !important;
}

.qc-contact-section__form form textarea,
.qc-contact-section__form form .hs-fieldtype-textarea textarea {
  min-height: 200px !important;
  height: 200px !important;
  max-height: 200px !important;
  padding: 18px !important;
  resize: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block !important;
  line-height: 1.7 !important;
  -webkit-appearance: none;
  appearance: none;
}

.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;
  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;
}

/* 不要装飾を消す
   ※ submitted-message は消さない */
.qc-contact-section__form .form-title,
.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__form .submitted-message {
  display: block !important;
  width: 100% !important;
  padding: 28px 24px !important;
  border-radius: 10px !important;
  background: #f3f6f5 !important;
  border: 1px solid #dfe7e4 !important;
  color: #333 !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
  font-weight: 500 !important;
  box-sizing: border-box !important;
}

.qc-contact-section__form .submitted-message p,
.qc-contact-section__form .submitted-message div,
.qc-contact-section__form .submitted-message span {
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

/* 送信後に余白が詰まりすぎないように */
.qc-contact-section__form > div {
  width: 100%;
}

/* =========================
   電話エリア
========================= */
.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;
}

/* =========================
   タブレット
========================= */

@media (min-width: 768px) and (max-width: 1024px) {
  .qc-contact-section__background-image--top {
    top: 30px;
    right: -20px;
    width: clamp(220px, 32vw, 330px);
  }

  .qc-contact-section__background-image--bottom {
    top: 420px;
    right: -220px;
    width: clamp(500px, 68vw, 700px);
  }
}

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

  .qc-contact-section__background-image--top {
    top: 15px;
    right: -55px;
    width: 190px;
    opacity: 0.65;
  }

  .qc-contact-section__background-image--bottom {
    top: 430px;
    right: -160px;
    width: 380px;
    opacity: 0.55;
  }
}
  
  .qc-contact-section--has-intro {
  padding-top: 28px;
}
  
  .qc-contact-section__intro {
  margin-bottom: 36px;
  font-size: 13px;
  line-height: 1.9;
}
 

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

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

  .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__form .submitted-message {
    padding: 22px 18px !important;
    font-size: 14px !important;
    line-height: 1.8 !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;
  }
}