/* フォーム部分の見た目は celebvilla FC の部品(src/ui/components.ts)に合わせる。ヘッダー・メニュー・フッターは as.css */
:root {
  --black: #000;
  --text: #545454;
  --border: #b5b5b5;
  --line: #e7e7e7;
  --muted: #8c8c8c;
  --soft: #f4f4f4;
  --accent: #ff5a6a;
  --error: #e70000;
  --disabled: #808080;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
a { color: var(--black); }
a:hover { color: var(--text); }
[hidden] { display: none !important; }

/* 上下の余白と流れの表示の下の余白は、完了画面のモック(Claude Design)に合わせる */
main { max-width: 640px; margin: 0 auto; padding: 32px 20px 96px; }

/* 中身が短い画面(完了画面など)でもフッターを画面の下端に置く(フッターは as.css) */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
main { flex: 1 0 auto; width: 100%; }

.steps { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 56px; font-size: 12px; }
.steps li { padding: 6px 16px; border-radius: 24px; border: 1px solid var(--border); color: var(--muted); }
.steps li[aria-current="step"] { background: var(--black); border-color: var(--black); color: #fff; }

.notice { padding: 20px; background: var(--soft); border-radius: 4px; font-size: 12px; font-weight: 300; line-height: 1.8; }
.notice p { margin: 0 0 8px; font-size: 14px; font-weight: 400; color: var(--black); }
.notice ul { margin: 0; padding-left: 1.2em; }
/* 長いメールアドレスを折り返す(文字を大きくした狭い端末で横にはみ出すため) */
.notice li, .done p { overflow-wrap: anywhere; }

.fields { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.work-fields { display: flex; flex-direction: column; gap: 32px; padding: 24px; border: 1px solid var(--line); border-radius: 4px; }
.work-fields > p { margin: 0; font-size: 12px; }

.label, legend.label { display: block; margin: 0 0 8px; padding: 0; font-weight: 300; color: var(--black); }
.req { color: var(--accent); margin-left: 4px; }
.opt { color: var(--muted); margin-left: 6px; font-size: 12px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.input, .textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  font-size: 16px; /* iOS がフォーカス時に拡大しないよう 16px */
  color: var(--black);
  background: #fff;
}
.input { height: 40px; padding: 0 12px; }
.textarea { min-height: 200px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--border); }
.input:focus, .textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--border); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }
/* 14px にするのはマウスで操作する PC だけ。スマホの横向き(600px 超)で 14px にすると iOS がフォーカス時に拡大する */
@media (min-width: 601px) and (hover: hover) and (pointer: fine) { .input, .textarea { font-size: 14px; } }

.help { margin: 6px 0 0; font-size: 12px; font-weight: 300; }
.count { text-align: right; }
.error { margin: 4px 0 0; font-size: 12px; color: var(--error); }

.radios { display: flex; flex-direction: column; gap: 8px; }
.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--black);
  cursor: pointer;
}
.radio input { accent-color: var(--black); width: 16px; height: 16px; margin: 0; }
.radio:has(input:checked) { border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.radio:has(input:focus-visible) { outline: 2px solid var(--black); outline-offset: 2px; }

.lead { margin: 0 0 24px; line-height: 1.8; }
.confirm-list { margin: 0; border-top: 1px solid var(--black); }
.confirm-list div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.confirm-list dt { flex: 0 0 180px; font-weight: 300; color: var(--black); }
.confirm-list dd { flex: 1 1 280px; margin: 0; color: var(--black); white-space: pre-wrap; overflow-wrap: anywhere; }

.turnstile { display: flex; justify-content: center; margin-top: 40px; min-height: 65px; }
.form-error { margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--error); border-radius: 4px; color: var(--error); font-size: 13px; }

.buttons { display: flex; flex-direction: row-reverse; justify-content: center; gap: 12px; margin-top: 56px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 274px;
  height: 48px;
  border-radius: 24px;
  font: inherit;
  font-size: 14px;
  font-weight: 300;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--black); border: 1px solid var(--black); color: #fff; }
.btn-primary:hover { opacity: .8; color: #fff; }
.btn-primary:disabled { background: var(--disabled); border-color: var(--disabled); opacity: 1; cursor: not-allowed; }
.btn-outline { background: #fff; border: 1px solid var(--text); color: var(--text); }
.btn-outline:hover { opacity: .8; }

.done h2 { margin: 0 0 24px; text-align: center; font-size: 20px; font-weight: 400; color: var(--black); }
.done p { margin: 0; text-align: center; line-height: 1.9; }
.done .small { margin-top: 24px; font-size: 12px; line-height: 1.8; }
.done .cooldown { pointer-events: none; }

/* PC は FC の部品どおり 40px。指で押す端末(横向きのスマホを含む)は 44px にする */
@media (pointer: coarse) { .input { height: 44px; } }
@media (max-width: 600px) {
  .input { height: 44px; }
  .fields, .work-fields { gap: 20px; }
  .buttons { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 40px; }
  .btn { max-width: none; }
}
.noscript { text-align: center; padding: 0 20px 40px; }
