@charset "UTF-8";
/* ===========================================================
 * /apply/ 個人申込フォーム 専用スタイル
 * このファイルは /apply/ ページ以外からは読み込まれない。
 * Figma「Apply /apply/ ステップ形式」(1755:2) の指定値を踏襲。配色は /lp/・/guide/ と同じトーン。
 * スマホ(390px)が正。PCでは max-width 480px で中央寄せ（/lp/ と同じ）。
 * =========================================================== */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background: #EEF1F6;
  color: #1B2333;
}
p, h1 { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.ap-page {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: #F7F8FB;
  display: flex;
  flex-direction: column;
}

/* ---------- ヘッダー ---------- */
.ap-header {
  background: #12264F;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.7;
}
.ap-header__brand { font-size: 11px; font-weight: 700; color: #FFDE59; }
.ap-header__title { font-size: 17px; font-weight: 900; color: #FFFFFF; }

/* ---------- 進み具合 ---------- */
.ap-progress {
  background: #FFFFFF;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ap-progress__label { font-size: 12px; font-weight: 900; line-height: 1.7; color: #12264F; }
.ap-progress__dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}
.ap-progress__dots li {
  flex: 1 1 0;
  height: 6px;
  border-radius: 999px;
  background: #DDE2EC;
}
.ap-progress__dots li.is-on { background: #12264F; }

/* ---------- 本文 ---------- */
.ap-form { display: flex; flex-direction: column; flex: 1 0 auto; }
.ap-step { display: flex; flex-direction: column; }
.ap-body-sec {
  background: #FFFFFF;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ap-body-sec--agree { gap: 14px; }
.ap-h { font-size: 16px; font-weight: 900; line-height: 1.7; color: #12264F; }

.ap-alert {
  margin: 12px 20px 0;
  background: #FDEBEB;
  border: 1.5px solid #B51809;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
  color: #8E1207;
}
.ap-nav .ap-alert { margin: 0; }

/* ---------- STEP1 カード ---------- */
.ap-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #DDE2EC;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ap-card__title { font-size: 14px; font-weight: 900; line-height: 1.7; color: #12264F; }
.ap-card__row { display: flex; align-items: center; gap: 12px; }
.ap-card__body { flex: 1 1 0; min-width: 0; font-size: 12.5px; line-height: 1.7; color: #44506B; }
.ap-card__img { display: block; height: auto; flex: 0 0 auto; }
.ap-card__img--text   { width: 113px; }
.ap-card__img--camera { width: 113px; }
.ap-card__img--clock  { width: 79px; margin: 0 17px; }
.ap-card--alert { border: 1.5px solid #B51809; }
.ap-card--alert .ap-card__title { color: #B51809; }

/* ---------- STEP2 同意 ---------- */
.ap-box-title { font-size: 14px; font-weight: 700; line-height: 1.75; color: #0C2651; }
.ap-eligible {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #374151;
}
.ap-notes {
  background: #EFF6FF;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ap-notes__lead { font-size: 12.5px; line-height: 1.75; color: #374151; }
.ap-notes__scroll {
  height: 190px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.75;
  color: #374151;
}
.ap-notes__scroll p + p { margin-top: 12px; }
.ap-notes__scroll a, .ap-check a { color: #12264F; text-decoration: underline; }

.ap-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.ap-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #12264F;
}
.ap-check__lbl {
  flex: 1 1 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 13px;
  line-height: 1.75;
  color: #374151;
}

.ap-req, .ap-opt {
  display: inline-block;
  margin-left: 6px;
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.7;
  color: #FFFFFF;
  background: #DC2626;
  vertical-align: 1px;
}
.ap-check__lbl .ap-req { margin-left: 0; }
.ap-opt { background: #8A93A6; }

/* ---------- STEP3 入力 ---------- */
.ap-field { display: flex; flex-direction: column; gap: 4px; }
.ap-field label, .ap-persons__label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  color: #5A6478;
}
.ap-field input, .ap-field select, .ap-detail select, .ap-kd input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: #FFFFFF;
  border: 1px solid #C9D2E4;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;   /* iOS のズーム防止 */
  color: #1B2333;
}
.ap-field select, .ap-detail select { font-size: 15px; }
.ap-field input:disabled { background: #F2F4F8; color: #5A6478; }
.is-error input, .is-error select { border-color: #B51809; border-width: 1.5px; }
.ap-ferr { font-size: 11.5px; font-weight: 700; line-height: 1.6; color: #B51809; }

.ap-persons { display: flex; flex-direction: column; gap: 6px; }
.ap-stepper { display: flex; align-items: center; gap: 12px; }
.ap-stepper__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid #12264F;
  background: #FFFFFF;
  color: #12264F;
  font-family: inherit;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ap-stepper__val { font-size: 18px; font-weight: 900; line-height: 1.7; color: #12264F; min-width: 3em; text-align: center; }
.ap-hint { font-size: 11px; line-height: 1.7; color: #5A6478; }
.ap-hint--pay { font-size: 12px; }

/* 法人バナー（/lp/ と同じ誘導導線） */
.ap-corp {
  border: 1.5px solid #12264F;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #12264F;
  text-decoration: none;
  background: #FFFFFF;
}
.ap-corp__text { font-size: 12.5px; font-weight: 700; line-height: 1.7; }
.ap-corp__arrow { flex: 0 0 auto; font-size: 16px; font-weight: 900; }

.ap-attendees { display: flex; flex-direction: column; gap: 12px; }
.ap-att {
  background: #FFFFFF;
  border: 1px solid #DDE2EC;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ap-att__title { font-size: 12.5px; font-weight: 900; line-height: 1.7; color: #12264F; }
.ap-att__same {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.7;
  color: #44506B;
  cursor: pointer;
}
.ap-att__same input { width: 16px; height: 16px; margin: 3px 0 0; flex: 0 0 auto; accent-color: #12264F; }

/* きっかけ詳細（E/R のみ） */
.ap-detail {
  background: #F6F8FC;
  border: 1.5px solid #9AA3B5;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ap-detail label { font-size: 12px; font-weight: 700; line-height: 1.7; color: #1B2333; }
.ap-detail select { border: 1.5px solid #9AA3B5; }

/* 建デポ会員No（via=e または きっかけ=建デポ） */
.ap-kd {
  background: #FFF6D6;
  border: 1.5px solid #B4700A;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ap-kd__title { font-size: 12.5px; font-weight: 900; line-height: 1.7; color: #B4700A; }
.ap-kd label { font-size: 12px; font-weight: 700; line-height: 1.7; color: #1B2333; }
.ap-kd input { border: 1.5px solid #B4700A; }
.ap-kd__note { font-size: 11.5px; line-height: 1.6; color: #7A5208; }

/* ---------- STEP4 お支払い ---------- */
.ap-pay {
  background: #FFFFFF;
  border: 2px solid #12264F;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ap-pay__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #44506B;
}
.ap-pay__ex { font-weight: 700; white-space: nowrap; }
.ap-pay__row--total { font-size: 15px; font-weight: 900; color: #12264F; }
.ap-pay__row--total p:last-child { white-space: nowrap; }
.ap-pay__divider { height: 1px; background: #DDE2EC; }
.ap-pay__note { font-size: 11.5px; line-height: 1.7; color: #5A6478; }

/* ---------- ボタン ---------- */
.ap-nav {
  background: #FFFFFF;
  padding: 6px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ap-nav--done { height: 100px; }
.ap-btn, .ap-paybtn button, .ap-paybtn input[type="button"], .ap-paybtn input[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 15px 0;
  background: #B51809;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.7;
  cursor: pointer;
}
.ap-paybtn { width: 100%; }
.ap-paybtn > * { width: 100%; }
.ap-btn-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1.5px solid #8A93A6;
  border-radius: 999px;
  padding: 11px 0;
  background: #FFFFFF;
  color: #44506B;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  cursor: pointer;
}

/* ---------- STEP5 完了 ---------- */
.ap-done {
  align-items: center;
  text-align: center;
}
.ap-done__mark {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #E4F3EA;
  color: #1E7E4D;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-done__title { font-size: 18px; font-weight: 900; line-height: 1.7; color: #12264F; }
.ap-done__text { font-size: 13px; line-height: 1.7; color: #44506B; max-width: 330px; }
.ap-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #12264F;
  border-radius: 999px;
  padding: 12px 32px;
  color: #12264F;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;
  text-decoration: none;
  background: #FFFFFF;
}

/* ---------- フッター ---------- */
.ap-footer {
  margin-top: auto;
  padding: 16px 20px 24px;
  text-align: center;
}
.ap-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-size: 11px;
}
.ap-footer__links a { color: #5A6478; }
.ap-footer__copy { margin-top: 8px; font-size: 10px; color: #8A93A6; }
