/* ========================================
   株式会社VERTA 個人事業主 WEB申込み 公開4画面 専用スタイル
   entry-privacy.html / entry-form.html / entry-confirm.html / entry-complete.html

   前提：css/home.css を先に読み込むこと。
     - カラー/フォントのトークン（:root）
     - 共通ヘッダー（.site-header / .drawer）
     - 共通フッター（.site-footer）
     - 汎用クラス（.btn-primary / .visually-hidden）
   はすべて home.css のものを流用し、このファイルでは上書きしない。

   他ページのクラスと衝突しないよう、すべて .en- 接頭辞。
   ======================================== */

/* ---------- レイアウト ---------- */
.en-main {
  --en-gap: 40px;

  padding-block: 56px 88px;
  background: var(--color-white);
}

/* 読み物・フォームの本文幅（仕様書 3章：720〜860px 目安） */
.en-container {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .en-main {
    --en-gap: 48px;

    padding-block: 72px 104px;
  }

  .en-container {
    padding-inline: 32px;
  }
}

@media (min-width: 1024px) {
  .en-main {
    --en-gap: 56px;

    padding-block: 88px 128px;
  }
}

/* ---------- 共通ページタイトル ---------- */
.en-head {
  text-align: center;
}

.en-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: var(--color-primary);
}

.en-title {
  margin-top: 16px;
  font-family: var(--font-sans-jp);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.en-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 22px auto 0;
  background: var(--color-primary);
}

.en-desc {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--color-text-sub);
}

@media (min-width: 768px) {
  .en-label {
    font-size: 13px;
  }

  .en-title {
    font-size: 36px;
  }

  .en-desc {
    margin-top: 26px;
    font-size: 16px;
    line-height: 2;
  }
}

/* ---------- 01 個人情報の取扱い ---------- */
.en-blocks {
  margin-top: var(--en-gap);
}

.en-block {
  padding-block: 28px;
  border-top: 1px solid var(--color-line-light);
}

.en-block:last-child {
  border-bottom: 1px solid var(--color-line-light);
}

/* 見出し左のティールの細い縦線（丸アイコンは使わない） */
.en-block__title {
  position: relative;
  padding-left: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
}

.en-block__title::before {
  content: "";
  position: absolute;
  top: 0.18em;
  left: 0;
  width: 3px;
  height: 1.2em;
  background: var(--color-primary);
}

.en-block__text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-sub);
}

.en-block__list {
  margin-top: 14px;
}

.en-block__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-sub);
}

.en-block__list li::before {
  content: "";
  position: absolute;
  top: 0.92em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.55;
}

@media (min-width: 768px) {
  .en-block {
    padding-block: 32px;
  }

  .en-block__title {
    font-size: 18px;
  }

  .en-block__text,
  .en-block__list li {
    font-size: 15px;
  }
}

/* ---------- 同意欄 ---------- */
.en-consent {
  margin-top: var(--en-gap);
  padding: 24px 20px;
  background: var(--color-bg-soft);
}

.en-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  cursor: pointer;
}

.en-consent__box {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

@media (min-width: 768px) {
  .en-consent {
    padding: 30px 32px;
    text-align: center;
  }

  .en-consent__label {
    justify-content: center;
    align-items: center;
    font-size: 15px;
  }
}

/* ---------- 必須 / 任意バッジ ---------- */
.en-badge {
  flex: none;
  display: inline-block;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.en-badge--required {
  color: #c0392b;
  border: 1px solid currentColor;
}

.en-badge--optional {
  color: var(--color-text-muted);
  border: 1px solid var(--color-line);
}

/* ---------- ボタン ---------- */
.en-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: var(--en-gap);
}

.en-actions .btn-primary,
.en-btn-outline {
  width: 100%;
  max-width: 420px;
  height: 60px;
}

/* 既存サイトの線ボタン（.fl-btn-outline と同一仕様） */
.en-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-primary);
  background: var(--color-white);
  border: 1px solid var(--color-primary);
  transition: background-color 0.2s ease;
}

.en-btn-outline .arrow {
  flex: none;
  transition: transform 0.2s ease;
}

/* 送信不可・未同意など。色だけに頼らず cursor と文字色でも判別できるようにする */
.en-actions .btn-primary[disabled] {
  color: var(--color-text-sub);
  background: var(--color-line);
  border-color: var(--color-line);
  cursor: not-allowed;
}

.en-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: 0;
  cursor: pointer;
}

.en-back:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .en-actions {
    margin-top: 48px;
  }

  .en-actions .btn-primary,
  .en-btn-outline {
    min-width: 340px;
    height: 64px;
    font-size: 16px;
  }

  .en-actions--pair {
    flex-direction: row-reverse;
    justify-content: center;
    gap: 20px;
  }

  .en-actions--pair .btn-primary,
  .en-actions--pair .en-btn-outline {
    width: auto;
    max-width: none;
  }

  .en-btn-outline:hover {
    background: var(--color-primary-very-light);
  }

  .en-btn-outline:hover .arrow {
    transform: translateX(4px);
  }
}

/* ---------- 02 入力フォーム ---------- */
.en-form {
  margin-top: var(--en-gap);
}

.en-row {
  padding-block: 22px;
  border-bottom: 1px solid var(--color-line-light);
}

.en-row:first-child {
  border-top: 1px solid var(--color-line-light);
}

.en-row__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
}

.en-row__field {
  margin-top: 12px;
}

.en-input,
.en-select,
.en-textarea {
  width: 100%;
  padding: 0 14px;
  /* iOSの自動ズームを防ぐため16px以上を維持する */
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 0;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.en-input,
.en-select {
  height: 54px;
}

.en-textarea {
  min-height: 148px;
  padding: 14px;
  line-height: 1.9;
  resize: vertical;
}

.en-select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2300586c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.en-input:focus,
.en-select:focus,
.en-textarea:focus {
  border-color: var(--color-primary);
  outline: 2px solid var(--color-primary-light);
  outline-offset: 1px;
}

.en-input[aria-invalid="true"],
.en-select[aria-invalid="true"],
.en-textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

/* 年齢：数値入力＋単位。生年月日は取得しない */
.en-age {
  display: flex;
  align-items: center;
  gap: 10px;
}

.en-age .en-input {
  max-width: 160px;
}

.en-age__unit {
  font-size: 15px;
  color: var(--color-text-sub);
}

.en-radios {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.en-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  font-size: 15px;
  color: var(--color-text);
  cursor: pointer;
}

.en-radio input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.en-help {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* エラーは色だけに依存させない（記号＋aria-invalid / aria-describedby を併用） */
.en-error {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #c0392b;
}

.en-error::before {
  content: "！ ";
  font-weight: 700;
}

.en-error[data-show="true"] {
  display: block;
}

@media (min-width: 768px) {
  .en-row {
    display: grid;
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 0 32px;
    align-items: start;
    padding-block: 26px;
  }

  .en-row__label {
    padding-top: 15px;
    font-size: 16px;
  }

  .en-row__field {
    margin-top: 0;
  }

  .en-radios {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding-top: 15px;
  }
}

/* ---------- 03 入力内容の確認 ---------- */
.en-summary {
  margin-top: var(--en-gap);
  border-top: 1px solid var(--color-line-light);
}

.en-summary__row {
  padding-block: 20px;
  border-bottom: 1px solid var(--color-line-light);
}

.en-summary__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
}

.en-summary__value {
  /* dd の既定インデントを打ち消す */
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-sub);
  /* textarea の改行をそのまま見せる */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .en-summary__row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0 32px;
    padding-block: 24px;
  }

  .en-summary__label {
    font-size: 15px;
  }

  .en-summary__value {
    margin: 0;
    font-size: 16px;
  }
}

/* ---------- 薄いティールの案内領域 ---------- */
.en-note {
  margin-top: var(--en-gap);
  padding: 22px 20px;
  background: var(--color-primary-very-light);
}

.en-note__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-primary);
}

.en-note__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--color-text-sub);
}

@media (min-width: 768px) {
  .en-note {
    padding: 28px 32px;
  }

  .en-note__title {
    font-size: 16px;
  }

  .en-note__text {
    font-size: 15px;
  }
}

/* ---------- Turnstile（確認画面） ---------- */
.en-turnstile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
}

.en-turnstile__error {
  margin-top: 12px;
  text-align: center;
}

@media (min-width: 768px) {
  .en-turnstile {
    margin-top: 40px;
  }
}

/* 送信エラー */
.en-alert {
  display: none;
  margin-top: 28px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text);
  background: #fdf3f2;
  border-left: 3px solid #c0392b;
}

.en-alert[data-show="true"] {
  display: block;
}

.en-alert a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- 04 応募受付完了 ---------- */
.en-lead {
  margin-top: var(--en-gap);
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-primary);
}

.en-message {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 2.1;
  color: var(--color-text-sub);
}

.en-message strong {
  font-weight: 700;
  color: var(--color-text);
}

.en-flow {
  margin-top: var(--en-gap);
}

.en-flow__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
}

.en-flow__list {
  display: grid;
  gap: 22px;
  margin-top: 22px;
  /* 番号は .en-flow__num で出すので、リスト既定のマーカーと字下げは消す */
  padding-left: 0;
  list-style: none;
}

/* 丸アイコンは使わず、数字＋ティール線＋テキストで見せる */
.en-flow__num {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--color-primary);
}

.en-flow__num::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  background: var(--color-primary);
}

.en-flow__step-title {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
}

.en-flow__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
}

@media (min-width: 768px) {
  .en-lead {
    font-size: 20px;
  }

  .en-message {
    font-size: 16px;
  }

  .en-flow__title {
    font-size: 16px;
  }

  .en-flow__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-top: 28px;
  }
}
