@charset "UTF-8";

/**
 * 応募フォーム / 応募完了ページ
 * ------------------------------------------------------------------
 * job-list.css の後に読み込む前提（トークンとタグの見た目を共有する）。
 * Figma: PC_応募フォーム02-04（1440px） / SP_応募フォーム02-04（375px）
 *        PC_サンクスページ / SP_サンクスページ 準拠。
 */

:root {
  /* プレースホルダー・任意バッジ・ファイル選択の枠 */
  --job-muted: #c3c3c3;
}

/* ------------------------------------------------------------------
   ページ全体
   ------------------------------------------------------------------ */
.l-apply {
  font-family: var(--job-jp-family);
  margin: 0 auto;
  max-width: 880px;
  padding: 112px 0 120px;
}

/* 「応募フォーム」「応募完了」 */
.c-apply__title {
  color: var(--job-ink);
  font-size: 35px;
  font-weight: 700;
  line-height: 51px;
  margin: 0 0 58px;
  text-align: center;
}

/* ------------------------------------------------------------------
   応募する求人情報
   ------------------------------------------------------------------ */
/* 見出し（詳細ページの見出しと同じ体裁） */
.c-apply__heading {
  align-items: center;
  color: var(--job-ink);
  display: flex;
  font-size: 20px;
  font-weight: 700;
  gap: 12px;
  line-height: 28px;
  margin: 0 0 14px;
}

.c-apply__heading::before {
  background-color: var(--job-primary);
  content: "";
  flex: 0 0 auto;
  height: 20px;
  width: 4px;
}

.c-apply-job {
  background-color: var(--job-white);
  border-radius: 5px;
  /* 下は「詳細を見る」の分だけ広い（Figma: カード 880x269） */
  padding: 24px 24px 32px;
  position: relative;
}

.c-apply-job__head {
  align-items: center;
  display: flex;
  gap: 16px;
}

.c-apply-job__company {
  color: var(--job-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 25px;
}

.c-apply-job__title {
  color: var(--job-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  margin: 7px 0 0;
}

.c-apply-job__body {
  display: flex;
  gap: 23px;
  margin-top: 15px;
}

/* 求人画像（232x136） */
.c-apply-job__thumb {
  border-radius: 5px;
  flex: 0 0 232px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.c-apply-job__thumb img {
  display: block;
  height: 136px;
  object-fit: cover;
  width: 100%;
}

.c-apply-job__thumb-note {
  bottom: 4px;
  color: var(--job-white);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  position: absolute;
  right: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* サマリー（アイコン / 項目名 / ： / 値） */
.c-apply-job__list {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}

.c-apply-job__row {
  align-items: start;
  display: grid;
  /* アイコン17 + 余白6 / 項目名42 / 「：」14 / 値 */
  grid-template-columns: 23px 42px 14px 1fr;
  letter-spacing: 0;
  /* 詳細ページと同じく palt を無効にして「：」を全角幅で描く */
  font-feature-settings: normal;
}

.c-apply-job__icon {
  align-items: center;
  color: var(--job-primary);
  display: flex;
  height: 27px;
  justify-content: flex-start;
}

.c-apply-job__icon svg {
  height: 17px;
  width: 17px;
}

.c-apply-job__row dt,
.c-apply-job__row dd,
.c-apply-job__sep {
  color: var(--job-ink);
  font-size: 14px;
  line-height: 27px;
  margin: 0;
}

.c-apply-job__row dt {
  font-weight: 500;
  white-space: nowrap;
}

.c-apply-job__row dd {
  font-weight: 400;
}

/* 「詳細を見る」（カード右下・サマリー最終行と同じ高さ） */
.c-apply-job__more {
  bottom: 31px;
  line-height: 0;
  margin: 0;
  position: absolute;
  right: 32px;
  text-align: right;
}

.c-apply-job__more a {
  color: var(--job-primary);
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  text-decoration: none;
}

.c-apply-job__more-label {
  display: block;
  padding-right: 13px;
}

.c-apply-job__more-line {
  display: block;
  height: 6px;
  margin-top: 1px;
  width: 93px;
}

/* ------------------------------------------------------------------
   フォーム
   ------------------------------------------------------------------ */
.c-form {
  margin-top: 39px;
}

.c-form__field {
  margin-bottom: 31px;
}

/* 条件によって出し分ける項目 */
.c-form__field[hidden],
.c-form__group[hidden] {
  display: none;
}

.c-form__label {
  align-items: center;
  color: var(--job-ink);
  display: flex;
  font-size: 18px;
  font-weight: 700;
  gap: 10px;
  line-height: 26px;
  margin-bottom: 11px;
}

.c-form__badge {
  background-color: var(--job-white);
  border-radius: 10px;
  color: var(--job-primary);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  min-width: 46px;
  text-align: center;
}

.c-form__badge--optional {
  color: var(--job-muted);
}

/* --- 入力欄 --- */
.c-form__input,
.c-form__textarea {
  appearance: none;
  background-color: var(--job-white);
  border: 0;
  border-radius: 5px;
  color: var(--job-ink);
  display: block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  width: 100%;
}

.c-form__input {
  height: 70px;
  padding: 0 24px;
}

.c-form__textarea {
  height: 140px;
  padding: 22px 24px;
  resize: vertical;
}

.c-form__input::placeholder,
.c-form__textarea::placeholder {
  color: var(--job-muted);
  opacity: 1;
}

.c-form__input:focus,
.c-form__textarea:focus,
.c-form__choice input:focus-visible + span,
.c-form__file-button:focus-within {
  outline: 2px solid var(--job-primary);
  outline-offset: 2px;
}

/* 姓名・カナのような横並び */
.c-form__pair {
  display: flex;
  gap: 10px;
}

.c-form__pair > * {
  flex: 1 1 0;
  min-width: 0;
}

/* 短い入力欄（生年月日など） */
.c-form__control--short {
  max-width: 286px;
}

/* --- 日付 --- */
.c-form__date {
  max-width: 286px;
  position: relative;
}

.c-form__date .c-form__input {
  padding-right: 56px;
}

/* ブラウザ標準のカレンダーアイコンは隠してデザインのアイコンを出す */
.c-form__date input::-webkit-calendar-picker-indicator {
  opacity: 0;
}

/* 入力後の日付が右に寄らないよう左揃えにする */
.c-form__date input::-webkit-date-and-time-value {
  text-align: left;
}

.c-form__date input::-webkit-datetime-edit {
  flex: 0 0 auto;
}

.c-form__date-icon {
  align-items: center;
  color: var(--job-ink);
  display: flex;
  height: 100%;
  pointer-events: none;
  position: absolute;
  right: 26px;
  top: 0;
}

.c-form__date-icon svg {
  /* 線幅1.3を含めた実寸（Figma: 15x15の中心線 + 0.65ずつ） */
  height: 16.5px;
  width: 16.5px;
}

/* 勤務期間（日付2つ） */
.c-form__period {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-form__period-row {
  align-items: center;
  display: flex;
  gap: 16px;
}

/* 「〜」と並んでも日付欄の幅は単独のときと同じにする */
.c-form__period-row .c-form__date {
  flex: 0 0 286px;
}

.c-form__period-sep {
  color: var(--job-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
}

/* --- 選択ボタン（性別・はい/いいえ） --- */
.c-form__choices {
  display: flex;
  gap: 11px;
}

.c-form__choice {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}

.c-form__choice input {
  /* 透明な input が span の上に重なるので、指アイコンはこちらに要る */
  cursor: pointer;
  height: 100%;
  left: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.c-form__choice span {
  align-items: center;
  background-color: var(--job-white);
  border-radius: 5px;
  color: var(--job-ink);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 500;
  height: 70px;
  justify-content: center;
  line-height: 26px;
  text-align: center;
}

.c-form__choice input:checked + span {
  background-color: var(--job-primary);
  color: var(--job-white);
  font-weight: 700;
}

/* --- 補足文（※1度に〜） --- */
.c-form__note {
  color: var(--job-ink);
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
  margin: -4px 0 10px;
}

.c-form__note--lg {
  font-size: 14px;
  line-height: 22px;
  margin: -4px 0 15px;
}

/* --- ファイル選択 --- */
.c-form__file {
  align-items: center;
  display: flex;
  gap: 16px;
}

.c-form__file-button {
  align-items: center;
  background-color: var(--job-white);
  border: 1px solid var(--job-muted);
  border-radius: 5px;
  color: var(--job-ink);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 500;
  height: 47px;
  justify-content: center;
  line-height: 21px;
  width: 168px;
}

.c-form__file-button input {
  /* 透明な input が span の上に重なるので、指アイコンはこちらに要る */
  cursor: pointer;
  height: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

.c-form__file-state {
  color: var(--job-ink);
}

.c-form__file-max {
  display: block;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
}

.c-form__file-name {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

/* --- プライバシーポリシー同意 --- */
.c-form__agree {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 42px;
}

.c-form__agree input {
  /* 透明な input が span の上に重なるので、指アイコンはこちらに要る */
  cursor: pointer;
  height: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

.c-form__agree-box {
  align-items: center;
  background-color: var(--job-white);
  border: 1px solid var(--job-muted);
  border-radius: 1px;
  color: transparent;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  height: 14px;
  justify-content: center;
  width: 14px;
}

.c-form__agree input:checked + .c-form__agree-box {
  background-color: var(--job-primary);
  border-color: var(--job-primary);
  color: var(--job-white);
}

.c-form__agree-box svg {
  height: 8px;
  width: 8px;
}

.c-form__agree-text {
  color: var(--job-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.c-form__agree-text a {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
}

/* --- 送信ボタン --- */
.c-form__submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.c-form__submit {
  align-items: center;
  background-color: var(--job-primary);
  border: 0;
  /* 高さが変わってもピル型（Figma: 80→r40 / 65→r32.5） */
  border-radius: 999px;
  color: var(--job-white);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  gap: 15px;
  height: 80px;
  justify-content: center;
  line-height: 29px;
  position: relative;
  text-decoration: none;
  width: 384px;
}

.c-form__submit:hover {
  opacity: 0.85;
}

.c-form__submit-icon {
  align-items: center;
  display: flex;
}

.c-form__submit-icon svg {
  height: 20px;
  width: 20px;
}

.c-form__submit-chev {
  height: 14px;
  position: absolute;
  right: 40px;
  width: 8px;
}

/* ------------------------------------------------------------------
   応募完了（サンクス）
   ------------------------------------------------------------------ */
/* 応募完了はタイトル下の余白がフォームより狭い */
.c-apply__title--thanks {
  margin-bottom: 31px;
}

.c-thanks__lead {
  color: var(--job-ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  margin: 0;
  text-align: center;
}

/* ステップはフォーム幅(880)より広い1224pxで並ぶ（Figma: 232x5 + 余白16x4） */
.c-thanks__steps {
  display: flex;
  gap: 16px;
  margin: 49px -172px 0;
}

.c-thanks__step {
  background-color: var(--job-white);
  border-radius: 5px;
  flex: 1 1 0;
  min-width: 0;
  /* Figma: STEPのベースラインが y=451.44（カード上端から39.4） */
  padding: 26px 20px 32px;
  text-align: center;
}

/* Figma: Google Sans Flex 72pt / SemiBold 600 / 16px / 行間100% / 字送り0 */
.c-thanks__step-no {
  color: var(--job-primary);
  /* テーマの line-height:1.8em を受けないようブロックにする */
  display: block;
  font-family: var(--job-num-family);
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
}

.c-thanks__step-icon {
  display: block;
  height: 84px;
  /* アイコン上端が Figma の y=470 に来るよう調整 */
  margin: 16px auto 0;
  width: 84px;
}

.c-thanks__step-title {
  align-items: center;
  color: #242424;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  line-height: 24px;
  margin: 14px 0 0;
  min-height: 48px;
}

.c-thanks__step-text {
  color: #4d4d4d;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  margin: 8px 0 0;
  text-align: left;
}

.c-thanks__foot {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* ------------------------------------------------------------------
   タブレット
   ------------------------------------------------------------------ */
@media screen and (max-width: 1199px) {
  .l-apply {
    padding: 80px 24px 96px;
  }

  .c-apply-job__more {
    right: 24px;
  }

  /* 折り返したときは残りのカードを中央に寄せる */
  .c-thanks__steps {
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
  }

  /* 3列で折り返し、余った2枚も同じ幅にする */
  .c-thanks__step {
    flex: 0 1 calc(33.333% - 11px);
  }
}

/* ------------------------------------------------------------------
   スマートフォン（Figma: 375px 基準）
   ------------------------------------------------------------------ */
@media screen and (max-width: 767px) {
  .l-apply {
    padding: 56px 20px 96px;
  }

  .c-apply__title {
    font-size: 24px;
    line-height: 35px;
    margin-bottom: 32px;
  }

  /* SPには「応募する求人情報」の見出しは無い */
  .c-apply__heading {
    display: none;
  }

  .c-apply-job {
    /* 下は「詳細を見る」の分だけ広い（Figma: カード 336x325） */
    padding: 20px 20px 42px;
  }

  .c-apply-job__head {
    gap: 10px;
  }

  .c-apply-job__company {
    font-size: 13px;
  }

  .c-apply-job__title {
    font-size: 18px;
    line-height: 26px;
    margin-top: 10px;
  }

  /* SPでは画像を出さない */
  .c-apply-job__thumb {
    display: none;
  }

  .c-apply-job__body {
    margin-top: 14px;
  }

  .c-apply-job__list {
    /* デザイン上、サマリーだけ4px内側に寄っている */
    padding-left: 4px;
  }

  .c-apply-job__row {
    grid-template-columns: 23px 42px 14px 1fr;
  }

  .c-apply-job__more {
    bottom: 20px;
    right: 20px;
  }

  .c-apply-job__more-label {
    font-size: 12px;
    padding-right: 10px;
  }

  .c-apply-job__more-line {
    height: 5px;
    margin-top: 0;
    width: 72px;
  }

  /* --- フォーム --- */
  .c-form {
    margin-top: 27px;
  }

  .c-form__field {
    margin-bottom: 28px;
  }

  .c-form__label {
    font-size: 16px;
    gap: 8px;
    line-height: 24px;
    margin-bottom: 8px;
    /* デザイン上、ラベルは入力欄より4px内側 */
    padding-left: 4px;
  }

  .c-form__badge {
    border-radius: 9px;
    line-height: 18px;
    min-width: 42px;
  }

  .c-form__input,
  .c-form__textarea {
    border-radius: 3px;
    font-size: 15px;
    line-height: 24px;
  }

  .c-form__input {
    height: 55px;
    padding: 0 20px;
  }

  .c-form__textarea {
    height: 165px;
    padding: 15px 20px;
  }

  .c-form__pair {
    gap: 9px;
  }

  .c-form__control--short,
  .c-form__date {
    max-width: none;
  }

  .c-form__date .c-form__input {
    padding-right: 48px;
  }

  .c-form__date-icon {
    right: 22px;
  }

  /* 勤務期間は「日付＋〜」を1行、2つ目を下に置く */
  .c-form__period {
    gap: 8px;
  }

  .c-form__period-row {
    gap: 12px;
  }

  /* 2つの日付欄はどちらも221px（Figma: SP 20〜241）
     縦並びのflex内なので flex-basis ではなく width で指定する */
  .c-form__period .c-form__date {
    flex: none;
    max-width: 221px;
    width: 221px;
  }

  .c-form__period-sep {
    font-size: 15px;
  }

  .c-form__choices {
    gap: 9px;
  }

  .c-form__choice span {
    font-size: 15px;
    height: 60px;
    line-height: 24px;
  }

  .c-form__note {
    padding-left: 4px;
  }

  .c-form__note--lg {
    margin-bottom: 14px;
  }

  .c-form__file-state {
    font-size: 0;
  }

  .c-form__agree {
    margin-top: 36px;
  }

  .c-form__submit-wrap {
    margin-top: 31px;
  }

  .c-form__submit {
    font-size: 16px;
    gap: 12px;
    height: 65px;
    line-height: 23px;
    max-width: 296px;
    width: 100%;
  }

  .c-form__submit-chev {
    right: 32px;
  }

  /* --- 応募完了 --- */
  .c-apply__title--thanks {
    margin-bottom: 23px;
  }

  .c-thanks__lead {
    font-size: 16px;
    line-height: 30px;
    text-align: left;
  }

  .c-thanks__steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
  }

  /* SPは「STEP＋アイコン」を左、見出しと本文を右に置く */
  .c-thanks__step {
    align-items: center;
    display: flex;
    gap: 20px;
    padding: 24px 20px;
    text-align: left;
  }

  .c-thanks__step-head {
    flex: 0 0 70px;
  }

  .c-thanks__step-no {
    font-size: 12px;
    line-height: 12px;
    /* Figma: STEPのベースラインが y=401.58（アイコン上端の7.4上） */
    padding-top: 5px;
    text-align: center;
  }

  .c-thanks__step-icon {
    height: 70px;
    margin-top: 5px;
    width: 70px;
  }

  .c-thanks__step-body {
    flex: 1 1 auto;
    min-width: 0;
  }

  .c-thanks__step-title {
    display: block;
    margin: 0;
    min-height: 0;
    text-align: left;
  }

  .c-thanks__step-text {
    margin-top: 6px;
  }

  .c-thanks__foot {
    margin-top: 40px;
  }
}

/* ------------------------------------------------------------------
   プライバシーポリシーのポップアップ
   ------------------------------------------------------------------ */
.c-modal[hidden] {
  display: none;
}

.c-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1000;
}

.c-modal__overlay {
  background-color: rgba(0, 0, 0, 0.5);
  inset: 0;
  position: absolute;
}

.c-modal__panel {
  background-color: var(--job-white);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  font-family: var(--job-jp-family);
  font-feature-settings: normal;
  letter-spacing: 0;
  max-height: 100%;
  max-width: 640px;
  padding: 32px 0 32px 32px;
  position: relative;
  width: 100%;
}

.c-modal__close {
  align-items: center;
  background-color: var(--job-primary);
  border: 0;
  border-radius: 50%;
  color: var(--job-white);
  cursor: pointer;
  display: flex;
  height: 28px;
  justify-content: center;
  position: absolute;
  right: -10px;
  top: -10px;
  width: 28px;
}

.c-modal__close svg {
  height: 11px;
  width: 11px;
}

.c-modal__title {
  color: var(--job-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  margin: 0 32px 16px 0;
  text-align: center;
}

.c-modal__body {
  color: var(--job-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
  overflow-y: auto;
  padding-right: 32px;
}

.c-modal__body h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  margin: 20px 0 0;
}

.c-modal__body p,
.c-modal__body ul {
  margin: 0;
}

.c-modal__body ul {
  list-style: none;
  padding: 0;
}

.c-modal__note {
  background-color: var(--job-field);
  border-radius: 3px;
  font-size: 12px;
  line-height: 20px;
  margin-bottom: 16px !important;
  padding: 10px 12px;
}

.c-modal__note a {
  color: var(--job-primary);
  word-break: break-all;
}

/* スクロールを止める */
body.is-modal-open {
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .c-modal {
    padding: 20px;
  }

  .c-modal__panel {
    padding: 24px 0 24px 20px;
  }

  .c-modal__title {
    font-size: 17px;
    line-height: 26px;
    margin-right: 20px;
  }

  .c-modal__body {
    font-size: 13px;
    line-height: 24px;
    padding-right: 20px;
  }
}

/* ------------------------------------------------------------------
   送信エラーの表示
   サーバー側の検証で差し戻したときにフォーム上部へ出す。
   ------------------------------------------------------------------ */
.c-apply-error {
  margin: 0 0 32px;
  padding: 20px 24px;
  border: 1px solid #d93025;
  border-radius: 8px;
  background: #fdf3f2;
  color: #b3261e;
}

.c-apply-error__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.c-apply-error__list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.8;
}

/* 自動投稿よけの入力欄を、画面からも読み上げからも外す */
.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media screen and (max-width: 767px) {
  .c-apply-error {
    margin-bottom: 24px;
    padding: 16px;
  }
  .c-apply-error__title { font-size: 15px; }
  .c-apply-error__list  { font-size: 13px; }
}
