/* ==========================================================================
   ジョブゼミ 無料相談予約ページ スタイルシート
   ========================================================================== */

.hero-sub {
  font-size: 20px;
  font-weight: 400;
}

/* ==========================================================================
   1. FLOWセクション
   ========================================================================== */

.flow {
  background: #fff;
  padding: 40px 50px 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ラベルは他ページ同様センター(ユーザー指示による視認性優先の調整) */

.flow-title {
  font-size: 30px;
  line-height: 45px;
  color: #333;
  font-weight: 800;
  text-align: center;
}

.flow-grid {
  display: flex;
  align-items: center;
  gap: 24px;
}

.flow-card {
  width: 237px;
  height: 300px;
  background: var(--lgray);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.flow-step {
  font-size: 17px;
  line-height: 25.5px;
  color: var(--yellow);
  font-weight: 800;
}

.flow-card-title {
  font-size: 24px;
  line-height: 36px;
  color: #333;
  font-weight: 800;
}

.flow-card-text {
  font-size: 15px;
  line-height: 22.5px;
  color: #333;
}

.flow-arrow {
  flex-shrink: 0;
  font-size: 40px;
  color: var(--yellow);
}

/* ==========================================================================
   2. CONTACT FOAM見出しセクション
   ========================================================================== */

.contact-heading {
  background: #fff;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* CONTACT FOAMラベルもセンター(同上) */

.contact-heading-title {
  font-size: 30px;
  line-height: 45px;
  color: #333;
  font-weight: 800;
  text-align: center;
}

.contact-note {
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  color: #333;
  text-align: center;
}

.contact-note strong {
  font-size: 20px;
  font-weight: 400;
  color: var(--yellow);
}

/* ==========================================================================
   3. フォーム本体セクション
   ========================================================================== */

.form-section {
  background: #fff;
  padding: 40px 50px;
  display: flex;
  justify-content: center;
}

.contact-form {
  width: 700px;
  max-width: 100%;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-group {
  /* 単独グループ(従業員規模・ご相談内容・メッセージ)が左半分に潰れないよう全幅 */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row .form-group {
  flex: 1;
}

.form-label {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.required {
  margin-left: 4px;
  color: #FF5035;
}

.form-input,
.form-textarea {
  height: 50px;
  border: 1px solid var(--lgray);
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 16px;
  font-family: inherit;
  color: #333;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #A2A2A2;
}

.select-wrap {
  position: relative;
  width: 640px;
  max-width: 100%;
  height: 54px;
}

.form-select {
  width: 100%;
  height: 100%;
  appearance: none;
  border: 1px solid var(--lgray);
  border-radius: 4px;
  padding: 15px 10px;
  font-size: 16px;
  font-family: inherit;
  color: #333;
  background: #fff;
}

.select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #BDBDBD;
  pointer-events: none;
}

.checkbox-list {
  /* 視認性優先(ユーザー指示): 等幅グリッドで全幅を使い、各項目1行で表示 */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.checkbox-item:not(.privacy-check):hover {
  background: #fafafa;
}

.checkbox-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.checkbox-item span {
  font-size: 16px;
  color: #333;
}

.privacy-check {
  width: auto;
  padding: 0;
}

.form-textarea {
  width: 640px;
  max-width: 100%;
  height: 160px;
  resize: vertical;
}

.form-submit {
  width: 640px;
  max-width: 100%;
  height: 54px;
  background: var(--yellow);
  border: none;
  border-radius: 4px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.form-caution {
  font-size: 16px;
  color: #333;
  text-align: center;
}

/* ==========================================================================
   モバイルレイアウト（941px以下 = 原本の構造切替帯）
   ========================================================================== */

@media (max-width: 941px) {

  /* ヒーロー(style.cssの汎用45pxを上書き。原本のcontactサブは16px) */
  .hero-sub {
    font-size: 16px;
    line-height: 1.6;
  }

  /* FLOW(原本: 下パディングも40px・カード中央揃え) */
  .flow {
    padding: 40px 10px;
  }

  .flow-grid {
    flex-direction: column;
    gap: 16px;
  }

  .flow-card {
    width: 100%;
    height: auto;
    align-items: center;
    text-align: center;
  }

  /* 原本: モバイルのSTEPチップは28px */
  .flow-step {
    font-size: 28px;
    line-height: 1.4;
  }

  .flow-card-text {
    font-size: 16px;
    line-height: 1.5;
  }

  /* 原本: 941px以下は矢印を90度回転して下向きに */
  .flow-arrow {
    width: 40px;
    height: 40px;
    rotate: 90deg;
  }

  /* CONTACT FOAM */
  .contact-heading {
    padding: 40px 10px;
  }

  /* フォーム */
  .form-section {
    padding: 40px 10px;
  }

  .contact-form {
    width: 100%;
    padding: 40px 0;
  }

  .form-row {
    gap: 10px;
  }

  /* inputの固有最小幅で2列が潰れないようflexの縮小を許可(原本は50%2列) */
  .form-row .form-group {
    min-width: 0;
  }

  .select-wrap,
  .form-textarea,
  .form-submit {
    width: 100%;
  }

  .form-submit {
    height: auto;
    padding: 15px;
  }
}

/* ==========================================================================
   スマホ帯（540px以下）
   ========================================================================== */

@media (max-width: 540px) {

  .flow-title {
    font-size: 20px;
    line-height: 30px;
  }

  .flow-card-title {
    font-size: 16px;
    line-height: 24px;
  }

  /* 見出しセクション(原本は上下パディング0だが、詰まりすぎるため40pxに調整) */
  .contact-heading {
    padding: 40px 10px;
    gap: 24px;
  }

  .contact-heading-title {
    font-size: 20px;
    line-height: 30px;
  }
}

/* ハニーポット。視覚的にもスクリーンリーダーからも隠すが、display:none にはしない
   (display:none だと埋めないbotが増え、罠として機能しなくなる)。coding8と同じ。 */
.contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
