:root { --ac:#245b73; --ac-d:#173f50; --ac-l:#eef3f4; --line:#cdd9de; --ink:#1d2b33; --gray:#66767d; --err:#a4432f; --err-bg:#fbf1ef;
  --serif:"Hiragino Mincho ProN","Yu Mincho","Noto Serif JP","Noto Serif CJK JP",serif; --sans:"Hiragino Sans","Yu Gothic","Meiryo","Noto Sans JP","Noto Sans CJK JP",sans-serif; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:#f4f7f8; color:var(--ink); font-family:var(--sans); font-size:16px; line-height:1.6; }
.bar { height:6px; background:linear-gradient(90deg,#1e4d63,#3c8a9c); }
.wrap { max-width:720px; margin:0 auto; padding:0 16px 56px; }
.head { text-align:center; padding:28px 0 18px; }
.head .en { font-size:11px; letter-spacing:.4em; color:var(--gray); }
.head h1 { font-family:var(--serif); font-weight:600; font-size:30px; letter-spacing:.35em; text-indent:.35em; margin:4px 0 2px; }
.head .clinic { font-size:14px; }
.head .rule { width:34px; border-top:2px solid var(--ac); margin:12px auto 0; }
.lead { font-size:14px; color:#44545b; margin:0 0 16px; }

.card { background:#fff; border:1px solid var(--line); border-top:3px solid var(--ac); border-radius:4px; padding:18px 16px 8px; margin-bottom:16px; }
.card > h2 { margin:0 0 12px; font-size:15px; color:var(--ac-d); display:flex; align-items:baseline; gap:10px; }
.card > h2 .no { font-size:12px; letter-spacing:.1em; color:var(--ac); background:var(--ac-l); padding:1px 8px; border-radius:2px; }
.field { margin-bottom:16px; }
.field > label, .field > .lbl { display:block; font-size:13px; font-weight:700; color:var(--ac-d); margin-bottom:5px; }
.req::after { content:"必須"; margin-left:6px; font-size:10px; color:#fff; background:var(--err); padding:1px 5px; border-radius:2px; vertical-align:1px; font-weight:400; }
input[type=text], input[type=tel], input[type=email], input[type=number], textarea, input[type=password] { width:100%; font:inherit; padding:11px 12px; border:1px solid #aebdc4; border-radius:4px; background:#fff; color:var(--ink); }
input:focus, textarea:focus { outline:2px solid #7fb4c6; border-color:var(--ac); }
textarea { min-height:120px; resize:vertical; }
.row { display:flex; gap:10px; flex-wrap:wrap; }
.row > * { flex:1 1 140px; }
.birth { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.birth input { width:78px; text-align:center; }
.birth span.u { color:var(--gray); }
.age { margin-left:auto; font-size:13px; color:var(--gray); }

/* 選択チップ */
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chips.block { flex-direction:column; align-items:stretch; }
.chip { position:relative; display:inline-flex; }
.chip input { position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; }
.chip span { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 14px; border:1px solid #aebdc4; border-radius:4px; background:#fff; font-size:15px; line-height:1.35; width:100%; }
.chip span::before { content:""; flex:none; width:18px; height:18px; border:1.5px solid #6e8590; border-radius:3px; background:#fff center/12px no-repeat; }
.chip input[type=radio] + span::before { border-radius:50%; }
.chip input:checked + span { border-color:var(--ac); background:var(--ac-l); color:var(--ac-d); font-weight:600; }
.chip input:checked + span::before { border-color:var(--ac); background-color:var(--ac); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='1.6,5.4 4,7.8 8.6,2.2' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chip input:focus-visible + span { outline:2px solid #7fb4c6; outline-offset:1px; }
.sub { font-size:12px; color:var(--gray); display:block; font-weight:400; }
.inline-in { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:2px 0 0 4px; font-size:14px; }
.inline-in input { width:auto; flex:1 1 150px; max-width:260px; padding:8px 10px; }
.inline-in[hidden] { display:none; }
.opt-wrap { display:flex; flex-direction:column; gap:6px; }
.gt { font-size:12px; font-weight:700; color:var(--ac); margin:10px 0 6px; }
.gt:first-child { margin-top:0; }
.q-body { margin-bottom:12px; }

.consent { background:var(--ac-l); border-radius:4px; padding:14px; font-size:13px; color:#33444b; margin-bottom:14px; }
.consent .chip { margin-top:8px; display:flex; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.btn { display:block; width:100%; font:inherit; font-size:17px; font-weight:700; letter-spacing:.2em; color:#fff; background:var(--ac); border:0; border-radius:4px; padding:15px; cursor:pointer; }
.btn:hover { background:var(--ac-d); }
.btn:disabled { opacity:.55; cursor:wait; }
.btn.sec { background:#fff; color:var(--ac); border:1px solid var(--ac); letter-spacing:.05em; font-size:14px; padding:9px 14px; display:inline-block; width:auto; }
.btn.sec:hover { background:var(--ac-l); }
.errbox { background:var(--err-bg); color:var(--err); border:1px solid #e7c3bb; border-radius:4px; padding:12px 14px; font-size:14px; margin:0 0 14px; }
.errbox[hidden] { display:none; }
.invalid > input[type=text], .invalid > input[type=tel], .invalid .birth input, .invalid .chips span { border-color:var(--err); background:var(--err-bg); }
.thanks { text-align:center; padding:48px 16px; background:#fff; border:1px solid var(--line); border-top:3px solid var(--ac); border-radius:4px; }
.thanks h2 { font-family:var(--serif); letter-spacing:.2em; margin:0 0 10px; }
.foot { text-align:center; padding-top:8px; }
.foot img { height:44px; }
.foot p { font-size:11px; color:var(--gray); margin:6px 0 0; }
.hint { display:block; font-size:12px; color:var(--gray); margin-top:4px; }
.birth input.wide { width:96px; }
.extras { margin-top:12px; }
.photo-consent { margin-top:8px; }
.photo-consent .chip, .consent .chip span { width:100%; }
.photo-consent .chip span { font-size:13px; font-weight:400; }
.draftbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; background:#fff8e6; border:1px solid #ecd9a6; border-radius:4px; padding:10px 14px; font-size:14px; margin:0 0 14px; }
.draftbar[hidden] { display:none; }
.draftbar button { font:inherit; font-size:13px; color:var(--ac); background:#fff; border:1px solid var(--ac); border-radius:4px; padding:6px 12px; cursor:pointer; margin-left:auto; }
.invalid > input[type=email] { border-color:var(--err); background:var(--err-bg); }
.captcha { display:flex; justify-content:center; margin:0 0 12px; }
.captcha:empty { margin:0; }
#zipHint button { font:inherit; font-size:12px; color:var(--ac); background:#fff; border:1px solid var(--ac); border-radius:4px; padding:3px 8px; margin-left:4px; cursor:pointer; }
