/* ===========================
   COZEO Entry (会員登録) page
   依存: cozeo-common.css (header/footer/breadcrumb)
        cozeo-cart.css   (.page-bar / .steps-light / .cart-card-head / .cart-alert)
        cozeo-login.css  (.btn-outline / .auth-error / .toggle-pass)
   =========================== */

/* MAIN */
.entry-main{max-width:1100px;margin:32px auto 60px;padding:0 24px;display:grid;grid-template-columns:1fr 320px;gap:28px;align-items:flex-start;}

/* CARD */
.entry-card{background:#fff;border-radius:14px;box-shadow:0 4px 16px rgba(30,42,82,.04);overflow:hidden;margin-bottom:18px;}
.entry-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px 16px;background:#fff;border-bottom:1px solid var(--line);flex-wrap:wrap;}
.entry-card-head .title{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:900;color:var(--navy);letter-spacing:-.01em;}
.entry-card-head .title::before{content:"";width:4px;height:20px;background:var(--gold);border-radius:2px;}
.entry-card-head .en{font-family:var(--font-en);font-size:10px;font-weight:700;color:var(--text-mute);letter-spacing:.25em;}
.entry-card-head .req-note{font-size:11px;color:var(--text-mute);}
.entry-card-body{padding:22px;}

/* INFO NOTE */
.info-note{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;background:rgba(25,118,237,.05);border:1px solid rgba(25,118,237,.18);border-radius:10px;font-size:12px;color:var(--text-sub);line-height:1.6;margin-bottom:18px;}
.info-note svg{width:16px;height:16px;color:var(--blue);flex-shrink:0;margin-top:2px;}
.info-note strong{color:var(--navy);font-weight:700;}

/* REQ / OPT badge */
.req{background:var(--red);color:#fff;font-size:9px;font-weight:800;padding:2px 6px;border-radius:3px;letter-spacing:.05em;font-family:var(--font-en);line-height:1.3;display:inline-block;}
.opt{background:var(--bg-soft);color:var(--text-sub);font-size:9px;font-weight:800;padding:2px 6px;border-radius:3px;letter-spacing:.05em;font-family:var(--font-en);line-height:1.3;display:inline-block;}

/* FORM GRID */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;}
.form-grid .full{grid-column:1 / -1;}

/* FIELD */
.entry-field{display:flex;flex-direction:column;gap:6px;}
.entry-field > label{font-size:12px;font-weight:700;color:var(--text-sub);letter-spacing:.04em;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.entry-field > label .en{font-family:var(--font-en);font-size:9.5px;font-weight:700;color:var(--text-mute);letter-spacing:.2em;}
.entry-field input[type="text"],
.entry-field input[type="email"],
.entry-field input[type="password"],
.entry-field input[type="tel"],
.entry-field input[type="number"],
.entry-field select,
.entry-field textarea{padding:11px 14px;border:1.5px solid var(--line);border-radius:10px;font-size:13px;color:var(--navy);outline:none;transition:border-color .2s, box-shadow .2s;background:#fff;font-family:inherit;width:100%;}
.entry-field input:focus,
.entry-field select:focus,
.entry-field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(25,118,237,.12);}
.entry-field input::placeholder,
.entry-field textarea::placeholder{color:var(--text-mute);}
.entry-field .hint{font-size:11px;color:var(--text-mute);margin-top:1px;}
.entry-field.has-error input,
.entry-field.has-error select,
.entry-field.has-error textarea{border-color:var(--red);background:#fff8f8;}
.entry-field .field-error{font-size:11.5px;color:var(--red);margin-top:2px;line-height:1.5;}
.entry-field .field-error ul{list-style:none;padding:0;margin:0;}

/* Composite rows */
.row-half{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:start;}
/* 各列を input + その field-error の縦積みにし、エラーを対応する入力欄の直下に表示する */
.row-half > .half-col{display:flex;flex-direction:column;gap:6px;min-width:0;}
.row-zip{display:grid;grid-template-columns:auto auto 1fr;gap:8px;align-items:center;}
.row-zip > span.zip-prefix{font-family:var(--font-en);font-weight:800;color:var(--text-mute);}
.row-zip > .zip-help{justify-self:end;}
.row-zip a{color:var(--blue);font-size:11.5px;font-weight:700;display:inline-flex;align-items:center;gap:5px;}
.row-zip a:hover{color:var(--navy);text-decoration:underline;}
.row-bday{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:8px;align-items:center;}

/* Adjust EC-CUBE's flat composite widgets: postal_code, phone_number, address.pref, birth, email.first/second, plain_password.first/second */
.entry-field .form-collection-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.entry-field .form-collection-inline > *{flex:1;min-width:0;}

/* PASSWORD WRAP */
.pass-wrap{position:relative;}
.pass-wrap input[type="password"],
.pass-wrap input[type="text"]{padding-right:42px;}

/* PASSWORD STRENGTH METER */
.pass-meter{display:flex;gap:4px;margin-top:6px;}
.pass-meter span{flex:1;height:4px;border-radius:2px;background:var(--line);transition:background .2s;}
.pass-meter.s1 span:nth-child(-n+1){background:var(--red);}
.pass-meter.s2 span:nth-child(-n+2){background:#f5a623;}
.pass-meter.s3 span:nth-child(-n+3){background:var(--blue);}
.pass-meter.s4 span{background:var(--green);}
.pass-rules{font-size:11px;color:var(--text-mute);margin-top:5px;line-height:1.55;}
.pass-rules .ok{color:var(--green);font-weight:700;}

/* GENDER pills (style overlay on top of EC-CUBE radios) */
/* EC-CUBEのchoice_widget_expandedは .gender-row > div(=#form_sex) の中に input+label を並べるため、
   その内側divをflexコンテナにして横並びにする */
.gender-row > div{display:flex;flex-wrap:wrap;gap:8px;}
.gender-row label{flex:0 0 auto;min-width:96px;padding:11px 20px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:13px;color:var(--text-sub);font-weight:600;cursor:pointer;transition:all .2s;text-align:center;display:flex;align-items:center;justify-content:center;}
.gender-row label:hover{border-color:var(--blue-light);}
.gender-row label.is-active{border-color:var(--blue);background:rgba(25,118,237,.06);color:var(--navy);font-weight:800;}
.gender-row input[type="radio"]{position:absolute;opacity:0;pointer-events:none;width:0;height:0;}

/* AUTO-RENDER extension fields wrapper */
.entry-extension{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin-top:6px;padding-top:18px;border-top:1px dashed var(--line);}
.entry-extension > *{grid-column:1 / -1;}

/* AGREE */
.agree-block{padding:18px 20px;background:var(--bg);border-radius:12px;border:1px solid var(--line);margin-bottom:14px;}
.agree-block label{display:flex;align-items:flex-start;gap:10px;font-size:12.5px;color:var(--text-sub);line-height:1.7;cursor:pointer;}
.agree-block input[type="checkbox"]{accent-color:var(--blue);width:16px;height:16px;flex-shrink:0;margin-top:2px;}
.agree-block a{color:var(--blue);font-weight:700;text-decoration:underline;}
.agree-block .sub{font-size:11.5px;color:var(--text-mute);margin-top:8px;padding-left:26px;line-height:1.6;}

/* SUBMIT ROW */
.submit-row{display:flex;gap:12px;margin-top:18px;}
.submit-row .btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:16px 24px;background:linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);color:#fff;font-size:14.5px;font-weight:800;border-radius:12px;letter-spacing:.04em;position:relative;overflow:hidden;transition:transform .2s, box-shadow .2s;flex:2;border:none;cursor:pointer;font-family:inherit;}
.submit-row .btn-primary::before{content:"";position:absolute;top:0;left:-80%;width:60%;height:100%;background:linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18), transparent 70%);transition:left .6s;}
.submit-row .btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(20,29,58,.3);}
.submit-row .btn-primary:hover::before{left:120%;}
.submit-row .btn-primary svg{width:16px;height:16px;}
.btn-back{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:16px 24px;background:#fff;border:1.5px solid var(--line);color:var(--text-sub);font-size:14.5px;font-weight:800;letter-spacing:.04em;border-radius:12px;transition:transform .2s, box-shadow .2s, border-color .2s, color .2s, background .2s;flex:1;text-decoration:none;}
.btn-back:hover{border-color:var(--navy);color:var(--navy);background:var(--bg);transform:translateY(-2px);box-shadow:0 12px 24px rgba(20,29,58,.12);}
.btn-back svg{width:18px;height:18px;}

/* ASIDE - benefits */
.aside-card{padding:0;}
.aside-card .aside-body{padding:18px 20px;}
.bene-list{list-style:none;display:flex;flex-direction:column;gap:14px;padding:0;margin:0;}
.bene-list li{display:flex;align-items:flex-start;gap:11px;font-size:12.5px;color:var(--text-sub);line-height:1.6;}
.bene-list li .ico{width:32px;height:32px;border-radius:8px;background:rgba(245,184,31,.12);color:var(--gold-deep);display:grid;place-items:center;flex-shrink:0;border:1px solid rgba(245,184,31,.25);}
.bene-list li .ico svg{width:16px;height:16px;}
.bene-list li strong{color:var(--navy);font-weight:800;font-size:13px;display:block;margin-bottom:1px;}
.aside-foot{padding:14px 20px;border-top:1px solid var(--line);background:var(--bg);font-size:11.5px;color:var(--text-sub);line-height:1.6;}
.aside-foot a{color:var(--blue);font-weight:700;}

/* RESPONSIVE */
@media (max-width: 1000px){
  .entry-main{grid-template-columns:1fr;}
}
@media (max-width: 760px){
  .entry-main{padding:0 16px;margin:24px auto 40px;}
  .form-grid{grid-template-columns:1fr;}
  .row-half{grid-template-columns:1fr 1fr;}
  .row-zip{grid-template-columns:auto 1fr;}
  .row-zip .zip-help{grid-column:1 / -1;justify-self:start;}
  .submit-row{flex-direction:column-reverse;}
  .entry-card-head{padding:12px 16px;}
  .entry-card-body{padding:16px;}
  .entry-card-head .title{font-size:15px;}
  .entry-card-head .en{font-size:9.5px;letter-spacing:.2em;}
}
