/* 共通スタイル（index.html と同じパレット） + フォーム用 */
:root{
  --navy:#0d2a4a; --navy-2:#10365e; --blue:#0b6bff; --blue-dark:#0952c9;
  --sky:#e8f1ff; --accent:#e8402a; --ink:#1a2230; --muted:#5c6675;
  --line:#e3e8f0; --bg:#ffffff; --bg-soft:#f5f8fc; --ok:#1a9e59; --err:#d23b2e;
  --radius:16px; --shadow:0 10px 30px rgba(13,42,74,.08); --shadow-lg:0 20px 50px rgba(13,42,74,.14);
  --maxw:1140px;
  --font:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP",Meiryo,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--bg-soft);
  line-height:1.75;font-size:16px;-webkit-font-smoothing:antialiased;letter-spacing:.01em}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}
h1,h2,h3{line-height:1.4;letter-spacing:.02em;margin:0}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:.5em;justify-content:center;padding:15px 30px;
  border-radius:999px;font-weight:800;font-size:1rem;border:none;cursor:pointer;
  background:linear-gradient(135deg,var(--accent),#f2603d);color:#fff;
  box-shadow:0 10px 24px rgba(232,64,42,.28);transition:.2s transform,.2s box-shadow}
.btn:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(232,64,42,.36);text-decoration:none}
.btn.ghost{background:#fff;color:var(--blue);box-shadow:none;border:2px solid var(--blue)}
.btn.ghost:hover{background:var(--sky)}
.btn.small{padding:11px 22px;font-size:.92rem}
.btn.gray{background:#eef2f7;color:var(--ink);box-shadow:none}
.btn.gray:hover{background:#e2e8f1}

/* header */
header.site{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{display:flex;align-items:center;gap:12px}
.brand .logo{height:44px;width:auto}
.nav-links{display:flex;align-items:center;gap:26px}
.nav-links a{font-size:.92rem;font-weight:600;color:var(--ink)}
.nav-links a:hover{color:var(--blue);text-decoration:none}

/* page shell */
.page{padding:44px 0 72px}
.page-head{text-align:center;max-width:760px;margin:0 auto 34px}
.page-head .eyebrow{color:var(--blue);font-weight:700;font-size:.82rem;letter-spacing:.14em}
.page-head h1{font-size:clamp(1.6rem,3.4vw,2.2rem);margin:10px 0 12px}
.page-head p{color:var(--muted);margin:0}

/* steps */
.steps{display:flex;gap:8px;justify-content:center;margin:0 auto 34px;flex-wrap:wrap}
.steps .s{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.86rem;font-weight:700}
.steps .s .num{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  background:#e6ebf3;color:var(--muted);font-size:.82rem}
.steps .s.active{color:var(--blue)}
.steps .s.active .num{background:var(--blue);color:#fff}
.steps .s.done .num{background:var(--ok);color:#fff}
.steps .sep{color:#cbd4e0}

/* card / form */
.panel{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);
  max-width:760px;margin:0 auto;padding:34px}
.field{margin-bottom:22px}
.field > label{display:block;font-weight:700;margin-bottom:8px;font-size:.96rem}
.req{color:#fff;background:var(--accent);font-size:.68rem;font-weight:800;padding:2px 8px;
  border-radius:5px;margin-left:8px;vertical-align:middle}
.opt{color:var(--muted);background:#eef2f7;font-size:.68rem;font-weight:800;padding:2px 8px;
  border-radius:5px;margin-left:8px;vertical-align:middle}
.hint{color:var(--muted);font-size:.82rem;margin:6px 0 0}
input[type=text],input[type=email],input[type=tel],select,textarea{
  width:100%;padding:13px 14px;border:1.5px solid var(--line);border-radius:11px;font-size:1rem;
  font-family:inherit;color:var(--ink);background:#fff;transition:.15s border-color,.15s box-shadow}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(11,107,255,.15)}
textarea{min-height:120px;resize:vertical}
input.bad,select.bad,textarea.bad{border-color:var(--err);box-shadow:0 0 0 3px rgba(210,59,46,.12)}
.field-err{color:var(--err);font-size:.84rem;font-weight:700;margin:7px 0 0}

/* 郵便番号 → 住所自動入力 */
.zip-row{display:flex;gap:12px;align-items:center}
.zip-row input{max-width:180px}
.zip-row .btn{white-space:nowrap;flex:0 0 auto}

/* クレジットカード入力欄 */
.card-box{border:1.5px solid var(--line);border-radius:14px;padding:20px 20px 16px;background:var(--bg-soft)}
.card-box > label:first-child{font-size:1rem}
.card-box label.sub{font-weight:700;font-size:.85rem;color:var(--muted);display:block;margin-bottom:6px}
.card-box .field{margin-bottom:16px}
.card-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;margin-bottom:16px}
.expire-row{display:flex;align-items:center;gap:8px}
.expire-row .slash{color:var(--muted);font-weight:700}
.secure-note{background:#eef7f1;border:1px solid #cfe8d9;color:#1c6b43;border-radius:10px;padding:10px 14px;margin-top:4px}
#cardErr:empty{display:none}

.captcha-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.captcha-q{font-weight:800;font-size:1.1rem;background:var(--sky);color:var(--navy);
  padding:10px 16px;border-radius:10px;white-space:nowrap}
.captcha-row input{max-width:160px}

.actions{display:flex;gap:14px;justify-content:center;margin-top:30px;flex-wrap:wrap}

/* alerts */
.alert{border-radius:12px;padding:16px 18px;margin:0 auto 24px;max-width:760px;font-size:.94rem;font-weight:600}
.alert.error{background:#fdeceb;color:#9c2b21;border:1px solid #f4c4bf}
.alert.info{background:var(--sky);color:var(--navy);border:1px solid #cadcff}

/* confirm table */
.confirm{width:100%;border-collapse:collapse}
.confirm th,.confirm td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line);
  font-size:.96rem;vertical-align:top}
.confirm th{width:34%;color:var(--muted);font-weight:700;background:var(--bg-soft)}
.confirm td{white-space:pre-wrap;word-break:break-word}

/* done（完了パネル。ステップ表示の .s.done と衝突しないよう done-box とする） */
.done-box{text-align:center;max-width:640px;margin:0 auto}
.done-box .ic{width:76px;height:76px;border-radius:50%;background:#e7f6ee;color:var(--ok);
  display:grid;place-items:center;font-size:2.2rem;margin:0 auto 20px}
.done-box h2{font-size:1.5rem;margin-bottom:12px}
.done-box p{color:var(--muted)}

/* footer */
footer.site{background:#0a1b30;color:#b8c4d6;font-size:.9rem;margin-top:auto}
footer.site .wrap{padding:40px 20px 28px}
.foot-top{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;align-items:center}
.foot-logo{background:#fff;padding:11px 16px;border-radius:12px;display:inline-block;box-shadow:var(--shadow)}
.foot-logo img{height:40px;width:auto;display:block}
.foot-nav a{color:#c7d2e2;margin-left:20px;font-size:.9rem}
.foot-nav a:hover{color:#fff}
.company{margin-top:16px;line-height:1.9;font-size:.85rem;color:#98a6ba}
.legal{border-top:1px solid rgba(255,255,255,.1);margin-top:22px;padding-top:20px;
  font-size:.78rem;color:#7d8ba1;line-height:1.8}
.legal strong{color:#aab6c8}

body{display:flex;flex-direction:column;min-height:100vh}
main{flex:1 0 auto}

@media(max-width:640px){
  .panel{padding:24px 18px}
  .nav-links{display:none}
  .brand .logo{height:36px}
  .confirm th{width:40%}
  .actions .btn{width:100%}
  .foot-nav a{margin:0 16px 0 0}
}
