@charset "UTF-8";
/* =========================================================================
   page-entry.css — エントリーページ
   Figma: エントリーページ (node 53:125) 1440 x 2294
   カード 1206x1869 / 入力欄 1062x68 / 角丸5px / 枠線 #d9d9d9
   ========================================================================= */

.entry {
  /* 固定ヘッダー(90px)ぶんを空け、カンプの上端 240px に合わせる */
  padding-top: calc(var(--header-h) + clamp(40px, 10.4vw, 150px));
  padding-bottom: clamp(64px, 6.9vw, 99px);
}

.entry__card {
  padding: clamp(32px, 3.75vw, 54px) clamp(20px, 4.8vw, 69px) clamp(48px, 6.2vw, 89px);
  background: var(--c-cream);
  border-radius: clamp(14px, 1.7vw, 25px);
}

.entry__title {
  font-size: var(--fs-page-title);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--c-ink);
}

.entry__lead {
  margin-top: clamp(18px, 1.7vw, 24px);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-loose);
  color: var(--c-ink);
  text-wrap: pretty;
}

/* --------------------------------------------------------------- field -- */
.entry-form { margin-top: clamp(32px, 3.4vw, 49px); }

.field + .field { margin-top: 14px; }

.field__label {
  display: block;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-loose);
  color: var(--c-ink);
}

.field__input {
  display: block;
  width: 100%;
  min-height: 68px;
  padding: 14px 20px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 5px;
  color: var(--c-text);
  font: inherit;
  font-weight: var(--fw-medium);
  line-height: 1.6;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field__input:hover { border-color: #bfbfbf; }

.field__input:focus-visible {
  border-color: var(--c-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 80, 157, .18);
}

/* 保有資格・志望動機・質問。カンプは1行の箱だが、複数行入力になるため textarea にしている */
.field__input--area {
  resize: vertical;
  min-height: 68px;
}

/* 希望する応募区分（チェックボックス・複数選択可）。fieldset の既定の枠と余白を消す */
.field--choices {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field--choices .field__label { padding: 0; }

.choices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-loose);
  color: var(--c-text);
  cursor: pointer;
}

/* ------------------------------------------------------------ filedrop -- */
.filedrop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 68px;
  padding: 14px 20px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.filedrop:hover { border-color: var(--c-primary); }

.filedrop.is-dragover {
  border-color: var(--c-primary);
  border-style: dashed;
  background: #f2f7fc;
}

.filedrop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.filedrop:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(0, 80, 157, .18);
}

.filedrop__text {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-loose);
  color: var(--c-ink);
  overflow-wrap: anywhere;
}

.filedrop.is-selected .filedrop__text { color: var(--c-primary); }

/* ------------------------------------------------------------- consent -- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: clamp(28px, 2.8vw, 40px);
}

.consent__input,
.choice__input {
  flex: none;
  width: 23px;
  height: 23px;
  margin-top: 8px;   /* 16px/40px の行の中心に合わせる */
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 0;
  appearance: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.consent__input:checked,
.choice__input:checked {
  background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 15px 15px;
  border-color: var(--c-primary);
}

.consent__input:focus-visible,
.choice__input:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
}

.consent__label {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-loose);
  color: var(--c-text);
  cursor: pointer;
}

.consent__label a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent__label a:hover { text-decoration-thickness: 2px; }

/* 応募区分は単一選択（2026-10-31）なので、チェックボックスと見分けられるよう丸いラジオボタンにし、
   選んだら白枠の中に青い丸を出す（チェックマークは使わない） */
.choice__input { border-radius: 50%; }

.choice__input:checked {
  background: var(--c-primary);
  box-shadow: inset 0 0 0 5px var(--c-white);
}

.choice__input:not(:checked):hover,
.consent__input:not(:checked):hover { border-color: #bfbfbf; }

/* -------------------------------------------------------------- submit -- */
.entry-form__actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 4.2vw, 60px);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 316px;
  min-height: 58px;
  padding: 10px 32px;
  background: var(--c-btn-dark);
  border-radius: 9px;
  color: var(--c-white);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  transition: background-color .25s ease, transform .25s ease;
}

.btn-submit:hover { transform: translateY(-2px); }   /* 塗りは motion.css の ::before */

@media (prefers-reduced-motion: reduce) {
  .btn-submit,
  .field__input,
  .filedrop { transition-duration: .01ms; }
}

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 767px) {
  .btn-submit { min-width: 0; width: 100%; }

  .filedrop__text { font-size: var(--fs-xs); }

  .consent__input,
  .choice__input { margin-top: 5px; }
}

/* =========================================================================
   WordPress 版（Contact Form 7）の追加分
   CF7 の CSS は読み込まず（inc/contact.php）、CF7 が足す要素だけをここで整える
   ========================================================================= */

/* CF7 が送信用の隠し項目を入れる fieldset（既定の枠線が出るので消す。中の hidden 入力は送信される） */
.entry-form .hidden-fields-container { display: none; }

/* CF7 が入力欄を包む span。入力欄の下にエラー文を出すため block にする */
.entry-form .wpcf7-form-control-wrap { display: block; }

/* 応募区分のラジオ（CF7 の [radio]。クラスは inc/contact.php で .choice / .choice__input に合わせている） */
.choices .wpcf7-form-control-wrap,
.choices .wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.choices .wpcf7-list-item { display: block; margin: 0; }

/* 同意チェック（CF7 の [acceptance]）。包む span は無いものとして .consent の flex に並べる */
.consent .wpcf7-form-control-wrap,
.consent .wpcf7-acceptance,
.consent .wpcf7-list-item { display: contents; }

/* 添付欄: ファイル入力は .filedrop いっぱいに重ねる（包む span は位置に影響させない） */
.filedrop .wpcf7-form-control-wrap { position: static; }

/* 迷惑メール対策の囮欄（人には見せない） */
.entry-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 送信は確認画面の「送信する」から行う。CF7 の送信ボタンは画面に出さない */
.entry-form .entry-form__send,
.entry-form .wpcf7-spinner { display: none; }

.entry-form .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* エラー表示 */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #c62828;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  line-height: 1.6;
}

.field__input.wpcf7-not-valid,
.filedrop:has(.wpcf7-not-valid) { border-color: #c62828; }

.wpcf7-response-output {
  margin-top: 24px;
  padding: 14px 20px;
  background: var(--c-white);
  border: 1px solid #c62828;
  border-radius: 5px;
  color: #c62828;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-loose);
}

.wpcf7-response-output:empty,
.wpcf7 form.sent .wpcf7-response-output { display: none; }

/* --------------------------------------------------------- confirm -- */
/* 「入力内容を確認する」の後に、同じカードの中で入力内容の一覧に切り替える（entry-confirm.js） */
.entry-confirm { margin-top: clamp(24px, 2.8vw, 40px); }

.entry-confirm__title {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  color: var(--c-ink);
  outline: none;
}

.entry-confirm__lead {
  margin-top: 8px;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-loose);
  color: var(--c-ink);
}

.entry-confirm__list {
  margin-top: clamp(20px, 2.2vw, 32px);
  border-top: 1px solid var(--c-line);
}

.entry-confirm__row {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 8px 24px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--c-line);
}

.entry-confirm__row dt {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1.75;
  color: var(--c-ink);
}

.entry-confirm__row dd {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.75;
  color: var(--c-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.entry-confirm__row dd.is-empty { color: #9a9a9a; }

.entry-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-top: clamp(32px, 3.5vw, 50px);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 58px;
  padding: 10px 32px;
  background: var(--c-white);
  border: 1px solid var(--c-btn-dark);
  border-radius: 9px;
  color: var(--c-btn-dark);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  transition: background-color .25s ease, color .25s ease;
}

.btn-back:hover { background: #f1f1f1; }

.btn-submit:disabled,
.btn-back:disabled { opacity: .5; cursor: wait; }

/* --------------------------------------------------------- thanks -- */
.entry__back {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 4.2vw, 60px);
}

.entry--thanks .entry__lead p + p { margin-top: .5em; }

@media (max-width: 767px) {
  .entry-confirm__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 14px 2px;
  }

  .entry-confirm__actions { flex-direction: column-reverse; align-items: stretch; }

  .btn-back { min-width: 0; width: 100%; }
}
