/* HomeCame アンケート（回答画面）。色は公式サイトの色に合わせています */
:root {
  --ink: #1c2533;
  --muted: #5a6577;
  --line: #dde3eb;
  --line-strong: #c2cbd7;
  --bg: #ffffff;
  --bg-subtle: #f2f5f9;
  --accent: #2f6da8;
  --accent-dark: #245a8d;
  --accent-light: #e6eef7;
  --focus: #1f4d8f;
  --err: #b42318;
  --err-bg: #fdf1f0;
  --radius: 14px;
}
* { box-sizing: border-box }
/* hidden 属性は、display を指定した要素でも必ず隠す */
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  background: var(--bg-subtle);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}
a { color: var(--accent-dark) }
.top { background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 16px }
.brand { font-weight: 700; letter-spacing: .04em; color: var(--ink); text-decoration: none; font-size: 15px }
.wrap { max-width: 680px; margin: 0 auto; padding: 28px 16px 56px }

.hero { margin-bottom: 20px }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em }
.hero h1 { margin: 0; font-size: clamp(22px, 5.4vw, 28px); line-height: 1.5; font-weight: 700; word-break: auto-phrase; text-wrap: balance }
.lead { margin: 10px 0 0; color: var(--muted); font-size: 15px }
.intro { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; font-size: 15px }
.intro p { margin: 0 }
.intro p + p { margin-top: 8px }

.survey { display: grid; gap: 16px }
.q { margin: 0; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 22px }
.q.follow { margin-top: -8px; border-color: var(--accent-light); background: #fbfdff; border-left: 4px solid var(--accent) }
.q[hidden] { display: none }
.q.has-err { border-color: var(--err); box-shadow: 0 0 0 1px var(--err) inset }
legend, .qlabel { word-break: auto-phrase; display: block; padding: 0; font-weight: 700; font-size: 17px; line-height: 1.6; width: 100% }
fieldset.q legend { float: left; margin-bottom: 12px }
fieldset.q > .err, fieldset.q > .opts { clear: both }
.qtext { margin-right: 6px }
.num { display: inline-block; margin-right: 8px; color: var(--accent); font-size: 14px; letter-spacing: .04em }
.badge { display: inline-block; vertical-align: 2px; font-size: 12px; line-height: 1; padding: 4px 7px; border-radius: 999px; font-weight: 700 }
.badge.req { background: var(--accent); color: #fff }
.hint { display: inline-block; vertical-align: 1px; font-size: 13px; font-weight: 400; color: var(--muted) }

.opts { display: grid; gap: 8px }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; background: var(--bg); line-height: 1.6 }
.opt:hover { border-color: var(--accent) }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-light) }
.opt input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent) }
.opt.other { display: block; cursor: default }
.opt.other > label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer }
.other-text { margin-top: 10px }

input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.7 }
.qlabel + .err, .qlabel ~ input, .qlabel ~ textarea { margin-top: 10px }
input:disabled { background: var(--bg-subtle); color: var(--muted) }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px }
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px }
.opt input:focus-visible { outline: none }

.note { margin: 12px 0 0; padding: 12px 14px; background: var(--bg-subtle); border-radius: 10px; font-size: 14px; color: var(--muted); line-height: 1.75 }
.err { margin: 0 0 10px; color: var(--err); font-size: 14px; font-weight: 700 }
.err[hidden] { display: none }
.err-summary { background: var(--err-bg); border: 1px solid var(--err); color: var(--err); border-radius: 10px; padding: 12px 16px; font-weight: 700; font-size: 15px }
.err-summary p { margin: 0 }
.err-summary[hidden] { display: none }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }

.actions { margin-top: 8px; text-align: center }
.send {
  font: inherit; font-weight: 700; font-size: 17px; color: #fff; background: var(--accent);
  border: 0; border-radius: 999px; padding: 15px 48px; min-width: 240px; cursor: pointer;
}
.send:hover { background: var(--accent-dark) }
.send:disabled { opacity: .6; cursor: wait }
.send-note { margin: 10px 0 0; min-height: 1.8em; font-size: 14px; color: var(--err); font-weight: 700 }
.small { font-size: 13px; color: var(--muted) }

.thanks { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center }
.thanks h2 { margin: 0 0 10px; font-size: 20px }
.thanks p { margin: 0 }
.thanks p + p { margin-top: 6px }
.thanks:focus { outline: none }

.foot { max-width: 680px; margin: 0 auto; padding: 0 16px 40px; font-size: 13px; color: var(--muted); text-align: center }
.foot p { margin: 0 }

@media (max-width: 480px) {
  .q { padding: 18px 16px 20px }
  .intro { padding: 16px }
  .send { width: 100%; min-width: 0 }
  .foot .sep { display: block; height: 0; overflow: hidden }
}
