@charset "UTF-8";
/* ==========================================================================
   P07 相談する ＋ 送信完了（ワイヤー：P07 相談する.dc.html／見た目：design/P00・P01）
   2カラム（左5：右6）。左カラム（見出し・リード・安心チップ・流れ）は sticky。
   1023px以下は1カラムで 見出し・リード・チップ → フォーム → 流れ の順。
   ========================================================================== */

/* ワイヤーのデスクトップ改行を行ブロックで再現（モバイルは自然改行）。
   左カラムが狭い幅（1024〜1279px）では行ブロック内でバランス改行し、短い孤立行を作らない */
.lab-contact__line {
  display: block;
  text-wrap: balance;

  @media (max-width: 767px) {
    display: inline;
  }
}

/* 文節・固有名詞を途中で割らない（「法務 / AI研究所」のような改行を防ぐ） */
.lab-contact__phrase {
  display: inline-block;
}

/* --------------------------------------------------------------------------
   P07-1 相談（2カラム）
   -------------------------------------------------------------------------- */
.lab-contact {
  padding: 96px 0 128px;

  @media (max-width: 1023px) {
    padding: 64px 0 96px;
  }

  @media (max-width: 767px) {
    padding: 48px 0 64px;
  }

  & .lab-contact__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--lab-gutter);
    align-items: start;

    @media (max-width: 1023px) {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 48px;
    }

    @media (max-width: 767px) {
      gap: 32px;
    }
  }

  /* 左カラム（sticky）。1023px以下は中身をフォームの前後に並べ替える */
  & .lab-contact__aside {
    grid-column: 1 / span 5;
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    gap: 48px;

    @media (max-width: 1023px) {
      display: contents;
    }
  }

  & .lab-contact__intro {
    display: flex;
    flex-direction: column;
    gap: 32px;

    @media (max-width: 1023px) {
      order: 1;
      gap: 24px;
    }

    @media (max-width: 767px) {
      gap: 16px;
    }
  }

  /* 5カラム幅に1行で収める（1024px時 40px〜1440px時 56px）。1023px以下は .lab-h1 と同じ */
  & .lab-contact__title {
    font-size: clamp(2.5rem, 3.9vw, var(--lab-fs-display));

    @media (max-width: 1023px) {
      font-size: 2.75rem;
    }

    @media (max-width: 767px) {
      margin-bottom: 8px;
      font-size: 1.875rem;
    }
  }

  & .lab-contact__lead {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 40em;

    @media (max-width: 767px) {
      gap: 12px;
    }

    & .lab-lead {
      text-wrap: pretty;
    }

    & .lab-contact__lead-first {
      text-wrap: balance;
    }
  }

  /* 安心チップ：bg-2 の面＋紺 14px 700・角丸4px・チェック */
  & .lab-contact__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    @media (max-width: 767px) {
      margin-top: 8px;
    }
  }

  & .lab-contact__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px 8px 12px;
    border-radius: var(--lab-radius-sm);
    background: var(--lab-bg-2);
    font-size: var(--lab-fs-small);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .04em;
    color: var(--lab-navy);

    &::before {
      content: '';
      flex: none;
      width: 6px;
      height: 11px;
      margin: -3px 4px 0;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg);
    }
  }

  /* 流れ：番号＋区切り線（矢印は使わない） */
  & .lab-contact__flow {
    display: flex;
    flex-direction: column;
    gap: 16px;

    @media (max-width: 1023px) {
      order: 3;
    }
  }

  & .lab-contact__steps {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--lab-line);
  }

  & .lab-contact__step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 16px;
    align-items: baseline;
    padding: 16px 0;
    border-top: 1px solid var(--lab-line);

    @media (max-width: 767px) {
      grid-template-columns: 40px minmax(0, 1fr);
      padding: 12px 0;
    }
  }

  & .lab-contact__step-no {
    font-size: var(--lab-fs-label);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .08em;
    color: var(--lab-primary);
  }

  & .lab-contact__step-text {
    font-size: var(--lab-fs-body);
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: .04em;
  }

  /* 右カラム：フォーム（HubSpot埋め込み位置） */
  & .lab-contact__form {
    grid-column: 7 / span 6;
    padding: 48px;
    border: 1px solid var(--lab-line);
    border-radius: var(--lab-radius-md);
    background: var(--lab-white);

    @media (max-width: 1023px) {
      order: 2;
      padding: 40px;
    }

    @media (max-width: 767px) {
      padding: 24px 16px;
    }

    & .lab-form__submit {
      align-self: stretch;
      min-width: 0;
    }
  }
}

/* --------------------------------------------------------------------------
   P07-2 まだ相談の段階ではない方へ（全幅・控えめ）
   -------------------------------------------------------------------------- */
.lab-contact-more {
  border-top: 1px solid var(--lab-line);
  background: var(--lab-bg-1);

  & .lab-contact-more__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 48px;
    row-gap: 8px;
    padding-block: 32px;

    @media (max-width: 767px) {
      flex-direction: column;
      align-items: flex-start;
      row-gap: 4px;
      padding-block: 24px;
    }
  }

  & .lab-contact-more__title {
    font-size: var(--lab-fs-small);
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: .04em;
    color: var(--lab-ink-2);
  }

  & .lab-contact-more__links {
    display: flex;
    flex-wrap: wrap;
    column-gap: 32px;

    @media (max-width: 767px) {
      flex-direction: column;
    }
  }
}

/* --------------------------------------------------------------------------
   P07-6 送信完了（返信目安。売り込み導線・共通CTAは置かない）
   -------------------------------------------------------------------------- */
.lab-contact-thanks {
  padding: 128px 0;

  @media (max-width: 1023px) {
    padding: 96px 0;
  }

  @media (max-width: 767px) {
    padding: 64px 0;
  }

  & .lab-contact-thanks__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;

    @media (max-width: 767px) {
      gap: 16px;
    }
  }

  & .lab-contact-thanks__title {
    font-size: var(--lab-fs-heading-l);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .02em;
    font-feature-settings: 'palt';
    text-wrap: balance;

    @media (max-width: 767px) {
      font-size: var(--lab-fs-h4);
    }
  }

  & .lab-contact-thanks__text {
    max-width: 40em;
    font-size: var(--lab-fs-lead);
    line-height: 1.9;
    letter-spacing: .04em;
    color: var(--lab-ink-3);

    @media (max-width: 767px) {
      font-size: var(--lab-fs-body);
      line-height: 1.85;
    }
  }

  & .lab-contact-thanks__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;

    @media (max-width: 767px) {
      align-self: stretch;
      flex-direction: column;
      margin-top: 8px;
    }
  }
}
