/* ============================================================
   カジュアル面談 応募フォームページ（entry.html 専用）
   - styles.css のトークン／ヘッダー／フッターを踏襲
============================================================ */

/* 現在ページのアクティブ表示 */
.header__nav a.is-current { position: relative; }

/* ------------------------------------------------------------
   Entry Hero
------------------------------------------------------------ */
.ehero {
  position: relative;
  padding: clamp(104px, 12vh, 148px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 88% 20%, rgba(47, 142, 235, 0.12), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F4F9FF 60%, #EEF6FF 100%);
}
.ehero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.ehero__title {
  font-size: clamp(38px, 6vw, 72px); font-weight: 900; line-height: 1.1;
  letter-spacing: 0.02em; color: #171C61;
  margin-top: 6px;
}
/* 「Entry」は見出しの上・パープル→ブルーのグラデーション */
.ehero__en {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px); font-weight: 800; letter-spacing: 0.04em;
  margin: 0;
  background: linear-gradient(100deg, #8B7BFF 0%, #5CC5FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  width: fit-content;
}
.ehero__lead {
  margin-top: clamp(18px, 2.2vw, 26px);
  font-size: clamp(14px, 1.15vw, 16px); font-weight: 500; line-height: 2;
  color: var(--color-text-sub);
}
.ehero__badges {
  display: flex; flex-wrap: wrap; gap: clamp(10px, 1.4vw, 16px);
  margin-top: clamp(26px, 3vw, 38px);
}
.ehero__badges li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px clamp(16px, 1.6vw, 22px);
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(47, 74, 125, 0.07);
  font-size: clamp(13px, 1.1vw, 14.5px); font-weight: 700; color: #171C61;
}
/* アイコンは囲み枠なし・グラデーションの線画 */
.ehero__badge-ic {
  width: 24px; height: 24px; flex: none;
  display: grid; place-items: center;
  border: 0;
}
.ehero__badge-ic svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: url(#eheroIcGrad);
  stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.ehero__visual { position: relative; }
.ehero__photo {
  position: relative; z-index: 1;
  border-radius: 28px 28px 90px 28px; overflow: hidden;
  box-shadow: 0 26px 60px rgba(47, 74, 125, 0.18);
}
.ehero__photo img { display: block; width: 100%; height: auto; }
.ehero__spark {
  position: absolute; z-index: 2; left: 6%; top: -14px;
  width: 22px; height: 22px;
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) center / 100% 3px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) center / 3px 100% no-repeat;
  transform: rotate(20deg);
}

/* ------------------------------------------------------------
   Entry Form
------------------------------------------------------------ */
.eform-section {
  position: relative; z-index: 1;
  padding: 0 0 clamp(80px, 9vw, 120px);
}
.eform {
  max-width: 920px; margin-inline: auto;
  margin-top: clamp(12px, 2vw, 28px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.eform__head { text-align: center; margin-bottom: clamp(28px, 3.4vw, 44px); }
.eform__head-ic {
  display: inline-grid; place-items: center;
  width: clamp(56px, 5vw, 66px); height: clamp(56px, 5vw, 66px);
  border-radius: 50%; background: #EEF3FB;
  margin-bottom: 16px;
}
.eform__head-ic svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--color-secondary); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.eform__title {
  font-size: clamp(20px, 2.2vw, 27px); font-weight: 900; color: #171C61;
  letter-spacing: 0.02em;
}
.eform__desc {
  margin-top: 12px;
  font-size: clamp(13px, 1.1vw, 14.5px); font-weight: 500; line-height: 1.8;
  color: var(--color-text-sub);
}

.eform-row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 30px);
  align-items: center;
  padding: clamp(18px, 2vw, 24px) 0;
  border-top: 1px solid var(--color-border);
}
.eform-row:first-of-type { border-top: 0; }
.eform-row--top { align-items: start; }
/* 見出しは「上に必須/任意チップ、下に項目名」の縦並び */
.eform-label {
  display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 8px;
  font-size: clamp(13.5px, 1.15vw, 15px); font-weight: 800; color: #171C61;
  line-height: 1.5;
}
.eform-tag {
  flex: none;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 5px; line-height: 1.4;
}
.eform-tag--req { color: #E1355B; background: rgba(225, 53, 91, 0.10); }
.eform-tag--opt { color: #5B6B8C; background: #EEF1F7; }

.eform-field { min-width: 0; }
.eform-field input[type="text"],
.eform-field input[type="email"],
.eform-field input[type="url"],
.eform-field textarea,
.eform-select select {
  width: 100%;
  font-family: inherit;
  font-size: clamp(14px, 1.1vw, 15px); font-weight: 500; color: #171C61;
  background: #fff;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.eform-field textarea { resize: vertical; line-height: 1.7; }
.eform-field input::placeholder,
.eform-field textarea::placeholder { color: #A6AEC1; font-weight: 500; }
.eform-field input:focus,
.eform-field textarea:focus,
.eform-select select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47, 142, 235, 0.15);
}

.eform-select { position: relative; }
.eform-select select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px; cursor: pointer;
  color: #171C61;
}
.eform-select select:invalid,
.eform-select select option[value=""] { color: #A6AEC1; }
.eform-select__caret {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; pointer-events: none;
  fill: none; stroke: var(--color-text-sub); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ファイルアップロード */
.eform-file {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  min-height: 96px; padding: 18px;
  border: 1.5px dashed var(--color-border-strong);
  border-radius: 12px; background: #FAFCFF;
  cursor: pointer; text-align: center;
  transition: border-color .2s ease, background .2s ease;
}
.eform-file:hover { border-color: var(--color-primary); background: #F4F9FF; }
.eform-file__ic {
  width: 22px; height: 22px;
  fill: none; stroke: var(--color-primary); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.eform-file__main {
  font-size: clamp(13px, 1.1vw, 14.5px); font-weight: 800; color: var(--color-primary);
}
.eform-file__main em { font-style: normal; font-weight: 600; color: var(--color-text-sub); }
.eform-file__note { font-size: 11.5px; font-weight: 500; color: var(--color-text-sub); }

/* 同意 */
.eform-consent {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: clamp(26px, 3vw, 36px) 0 clamp(20px, 2.4vw, 28px);
  font-size: clamp(13px, 1.1vw, 14px); font-weight: 600; color: var(--color-text-sub);
  cursor: pointer;
}
.eform-consent input {
  width: 18px; height: 18px; flex: none; accent-color: var(--color-primary);
  cursor: pointer;
}
.eform-consent a { color: var(--color-primary); font-weight: 700; text-decoration: underline; }

/* 送信ボタン（他のCVボタンと同じグラデーションに統一） */
.eform-submit {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 460px; margin: 0 auto;
  padding: 18px 28px;
  font-family: inherit; font-size: clamp(15px, 1.3vw, 17px); font-weight: 800; letter-spacing: 0.04em;
  color: #fff; cursor: pointer;
  background: var(--gradient-main);
  border: 0; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(58, 110, 230, 0.32);
  transition: transform .25s ease, box-shadow .25s ease;
}
.eform-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(58, 110, 230, 0.42); }
.eform-submit__ic {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.eform-submit__ic svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* LINE ボタン */
.eform-line {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 460px; margin: 16px auto 0;
  padding: 15px 28px;
  font-size: clamp(14px, 1.2vw, 16px); font-weight: 800; letter-spacing: 0.02em;
  color: #06C755;
  background: #fff; border: 2px solid #06C755; border-radius: 999px;
  transition: background .25s ease, transform .25s ease;
}
.eform-line:hover { background: rgba(6, 199, 85, 0.08); transform: translateY(-2px); }
/* LINE公式ブランドアイコン（ガイドライン: 最小高 PC 20px / Mobile 40px） */
.eform-line__ic {
  display: block;
  width: 24px; height: 24px;
  border-radius: 5px;
}
.eform-line__ext { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------
   レスポンシブ
------------------------------------------------------------ */
@media (max-width: 900px) {
  .ehero__inner { grid-template-columns: 1fr; }
  .ehero__visual { order: -1; max-width: 520px; }
}
@media (max-width: 640px) {
  .eform-row {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }
  .eform-submit, .eform-line { max-width: none; }

  /* LINEブランドガイドライン: Mobileの最小高は40px */
  .eform-line__ic { width: 40px; height: 40px; border-radius: 9px; }
  .eform-line { padding-top: 10px; padding-bottom: 10px; }
  .ehero__badges li { flex: 1 1 auto; justify-content: center; }

  /* SPでは行の幅を確保できるため、PC用の改行をやめて1行にする */
  label[for="f-portfolio"] br {
    display: none;
  }
}

/* ============================================================
   フォーム送信まわり（form-handler.php 連携）
============================================================ */

/* スパム対策のハニーポット。人には見せず、支援技術からも隠す。
   display:none だと一部botに検知されるため画面外へ逃がす。 */
.eform-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 送信エラー時のメッセージ */
.eform-error {
  margin-bottom: clamp(20px, 2.4vw, 28px);
  padding: 14px 18px;
  border: 1px solid rgba(225, 53, 91, 0.28);
  border-radius: 12px;
  background: rgba(225, 53, 91, 0.06);
  color: #C42A4D;
  font-size: clamp(13px, 1.1vw, 14.5px);
  font-weight: 700;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Thanks（送信完了ページ）
------------------------------------------------------------ */
.thanks {
  position: relative;
  padding: clamp(120px, 15vh, 180px) 0 clamp(80px, 9vw, 120px);
}
.thanks__card {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px);
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(47, 74, 125, 0.12);
}
.thanks__ic {
  display: inline-grid;
  place-items: center;
  width: clamp(64px, 6vw, 78px);
  height: clamp(64px, 6vw, 78px);
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--gradient-main);
  box-shadow: 0 12px 28px rgba(58, 110, 230, 0.28);
}
.thanks__ic svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.thanks__en {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  background: linear-gradient(100deg, #8B7BFF 0%, #5CC5FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.thanks__title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #171C61;
  margin: 0;
}
.thanks__lead {
  margin-top: clamp(18px, 2.2vw, 26px);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
  line-height: 2;
  color: var(--color-text-sub);
}
.thanks__note {
  margin-top: clamp(20px, 2.4vw, 28px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--color-border);
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  font-weight: 500;
  line-height: 1.9;
  color: var(--color-text-sub);
}
.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

@media (max-width: 560px) {
  .thanks__actions .btn { width: 100%; }
}
