:root{
  --dark:#3d4550;
  --req:#e0453a;
}

/* ---------- layout ---------- */
.wrap{max-width:628px;margin:0 auto;padding:62px 0 70px;}
@media (max-width:660px){ .wrap{padding-left:16px;padding-right:16px;} }

/* ---------- stepper ---------- */
.steps{display:flex;justify-content:center;align-items:flex-start;padding-bottom:32px;margin-bottom:26px;}
.step{position:relative;width:36px;}
.step .dot{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;
  justify-content:center;font-size:15px;font-weight:700;color:#fff;background:var(--blue-deep);}
.step.todo .dot{background:#cdd5df;}
.step .label{position:absolute;top:46px;left:50%;transform:translateX(-50%);
  white-space:nowrap;font-size:12.5px;font-weight:700;color:#1d2c44;}
.step.todo .label{color:#a7b1bd;font-weight:400;}
.bar{width:150px;height:2px;background:#ccd4de;margin-top:17px;}

/* ドット 36px＋バー 150px でステッパーは 408px 幅になり SP では収まらないため、
   completion と同じくバーを詰めて全体を少し縮小する。 */
@media (max-width:560px){
  .steps{transform:scale(.88);}
  .bar{width:100px;}
}

/* ---------- cards ---------- */
.card{background:#fff;border:1px solid #e9eef4;border-radius:12px;
  padding:24px 20px;margin-bottom:20px;box-shadow:0 1px 2px rgba(20,45,85,.04);}
.card-title{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:700;margin:0 0 18px;}

.errorbox{border-radius:8px;color:#CC0000;background:#fff0f0 url(/common/images_app/pc/default/icon_error.svg) no-repeat 20px center;
  background-size:70px;padding:20px 20px 20px 100px;font-size:13.5px;line-height:1.8;margin:0 0 20px;}
.errorbox p{margin:0;}
@media (max-width:600px){
  .errorbox{background-position-x:14px;padding-left:90px;}
}

/* ---------- section head ---------- */
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;}
.sec-head .l{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;}
.sec-head .l .ico{color:var(--blue);flex:none;}
.badge{flex:none;background:#eef1f6;color:#5d6a7a;font-size:11px;font-weight:700;
  border-radius:5px;padding:5px 10px;white-space:nowrap;}
.divider{border:none;border-top:1px solid #eef1f5;margin:26px 0 22px;}

/* ---------- fields ---------- */
.field{margin-bottom:16px;}
.field:last-child{margin-bottom:0;}
.field label{display:block;font-size:11.5px;font-weight:700;color:#3d4753;margin-bottom:7px;}
.field label .req{color:var(--req);margin-left:4px;}
.field input,.field select{width:100%;border:1px solid #e0e6ee;border-radius:7px;
  padding:11px 13px;font-size:13.5px;color:#26303c;font-family:inherit;background:#fff;}
.field input::placeholder{color:#b8c0cb;}
.field input:focus,.field select:focus{outline:none;border-color:var(--blue-border);
  box-shadow:0 0 0 3px rgba(26,95,208,.10);}
.field.has-error input,.field.has-error select{border-color:var(--req);}
.field select{appearance:none;-webkit-appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235d6a7a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 13px center;padding-right:34px;}
.hint{font-size:11px;color:var(--muted);margin:6px 0 0;line-height:1.6;}
.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;}

/* ---------- 生年月日 ---------- */
.dob{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:10px;}
.dob-col select{min-width:0;}

/* ---------- 性別（セグメント選択） ---------- */
.radio-row{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
/* Hidden visually but still focusable (display:none would drop it from the tab
   order); absolute keeps it out of the grid so each label still gets a column. */
.radio-row input{position:absolute;width:1px;height:1px;margin:0;padding:0;border:0;
  opacity:0;clip:rect(0 0 0 0);clip-path:inset(50%);}
.radio-row label{display:flex;align-items:center;justify-content:center;margin:0;
  border:1px solid #e0e6ee;border-radius:7px;padding:11px 6px;
  font-size:13.5px;font-weight:400;color:#3d4753;background:#fff;
  cursor:pointer;white-space:nowrap;}
.radio-row label:hover{border-color:var(--blue-border);}
.radio-row input:checked + label{border-color:var(--blue);background:var(--blue-soft);
  color:var(--blue-deep);font-weight:700;}
.radio-row input:focus-visible + label{outline:2px solid var(--blue);outline-offset:2px;}

/* 郵便番号 + ボタン */
.zip-row{display:flex;gap:10px;align-items:flex-end;}
.zip-row .field{flex:1;margin-bottom:0;}
.zip-btn{flex:none;background:var(--dark);color:#fff;border:none;border-radius:7px;
  font-family:inherit;font-size:12px;font-weight:700;padding:12px 16px;cursor:pointer;white-space:nowrap;}
.zip-btn:hover{background:#2e353f;}
.zip-btn:disabled{opacity:.6;cursor:default;}

/* ---------- agree + cta ---------- */
.agree{display:flex;align-items:center;gap:9px;font-size:12.5px;color:#3d4753;
  cursor:pointer;margin-bottom:18px;line-height:1.6;}
.agree input{display:none;}
.chk{width:15px;height:15px;border-radius:3px;border:1.5px solid #bcc5d1;background:#fff;
  display:inline-flex;align-items:center;justify-content:center;flex:none;}
.agree input:checked ~ .chk{background:var(--blue);border-color:var(--blue);}
.agree input:checked ~ .chk::after{content:"";width:4px;height:8px;border:solid #fff;
  border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-1px);}
.agree a{color:var(--blue);}

.cta{width:100%;border:none;border-radius:8px;background:var(--blue);color:#fff;
  font-size:15px;font-weight:700;font-family:inherit;padding:17px 22px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;position:relative;}
.cta:hover{background:#1550b8;}
.cta .arrow{position:absolute;right:22px;font-weight:400;}

.back{display:block;width:100%;text-align:center;margin-top:2px;background:none;border:none;
  font-family:inherit;font-size:12.5px;color:#0f172a;cursor:pointer;padding:6px 0;text-decoration:none;}
.back:hover{color:var(--blue);}

/* ---------- responsive ---------- */
@media (max-width:600px){
  .wrap{padding-left:14px;padding-right:14px;}
  .card{padding:20px 16px;margin-bottom:16px;}
  .card-title{font-size:15px;}
  .two{gap:10px;}
  .zip-row{flex-wrap:nowrap;gap:8px;}
  .zip-row .field{flex:1 1 auto;min-width:0;}
  .zip-btn{font-size:11.5px;padding:11px 13px;}
  .field label{font-size:11px;}
  .field input,.field select{padding:10px 11px;font-size:13px;}
  .field select{padding-right:30px;background-position:right 10px center;}
  .hint{font-size:10.5px;}
  .badge{font-size:10.5px;padding:4px 8px;}
  .sec-head .l{font-size:12.5px;}
  .agree{font-size:11.5px;}
  .cta{font-size:14px;padding:16px 18px;}
  .cta .arrow{right:16px;}
  .radio-row{gap:8px;}
  .radio-row label{padding:10px 4px;font-size:12.5px;}
}
@media (max-width:380px){
  .bar{width:48px;}
  .step .label{font-size:11px;}
  .two{gap:8px;}
  .field input,.field select{font-size:12.5px;}
  .radio-row label{font-size:11.5px;padding:10px 2px;}
}
