@charset "UTF-8";
/* カウンセリングフォーム 回答画面 */
/* 色とボタンの形は data.js の設定で上書きされます（app.js が設定） */
:root {
  --bg: #f6f4f0;
  --card: #ffffff;
  --panel: #faf8f4;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --line: #ddd8cf;
  --card-line: #ddd8cf;
  --field-line: #c9c2b6;
  --accent: #2f7a70;
  --accent-dark: #22605a;
  --accent-soft: #e6f2ef;
  --on-accent: #ffffff;
  --focus: rgba(47, 122, 112, 0.3);
  --err: #c0392b;
  --err-soft: rgba(192, 57, 43, 0.08);
  --req: #c0392b;
  --btn-radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.hd { margin-bottom: 20px; }
.hd h1 { font-size: 1.5rem; margin: 0 0 8px; letter-spacing: 0.04em; }
.hd .desc { margin: 0; color: var(--muted); white-space: pre-wrap; }
.hd .thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  margin: 4px 0 14px;
  border-radius: 14px;
}
.sec {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 20px 18px;
  margin-bottom: 20px;
}
.sec > h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}
.field { padding: 14px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field.has-err { background: var(--err-soft); margin: 0 -18px; padding: 14px 18px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .lbl { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.req {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #fff;
  background: var(--req);
  border-radius: 4px;
  vertical-align: 2px;
}
.opt { margin-left: 4px; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.help { margin: -4px 0 8px; color: var(--muted); font-size: 0.9rem; white-space: pre-wrap; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"] { min-width: 0; }
input[type="file"] {
  display: block;
  width: 100%;
  padding: 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--card);
  border: 1px dashed var(--field-line);
  border-radius: 10px;
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  font: inherit;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: var(--btn-radius);
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--focus);
  border-color: var(--accent);
}
.has-err input, .has-err select, .has-err textarea { border-color: var(--err); }
.opts { display: grid; gap: 8px; }
.body-parts .opts { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.opt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.opt-item input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
.opt-item:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.other-input { margin-top: 8px; }
.err { margin: 6px 0 0; color: var(--err); font-size: 0.9rem; font-weight: 700; }
.err:empty { display: none; }
.consent-text {
  margin: 0 0 14px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  white-space: pre-wrap;
}
.consent-check { font-weight: 700; }
.summary {
  margin: 0 0 12px;
  color: var(--err);
  font-weight: 700;
}
.summary:empty { display: none; }
.submit {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: var(--btn-radius);
  cursor: pointer;
}
.submit:hover { background: var(--accent-dark); }
.submit:disabled { background: var(--accent); opacity: 0.4; cursor: not-allowed; }
.thanks { text-align: center; padding: 48px 18px; }
.thanks h2 { border: 0; padding: 0; font-size: 1.4rem; }
.thanks .note { color: var(--muted); font-size: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 600px) {
  .wrap { padding-top: 40px; }
  .sec { padding: 28px; }
  .field.has-err { margin: 0 -28px; padding: 14px 28px; }
  .opts.inline { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ===== 作成画面で選んだ色とボタンの形 ===== */
:root {
  --bg: #f6f4f0;
  --card: #fefdfd;
  --panel: #faf9f7;
  --text: #5a4130;
  --muted: #918073;
  --card-line: #b6a396;
  --field-line: #b6a396;
  --line: #d6ccc4;
  --accent: #8cb1ac;
  --accent-dark: #708e8a;
  --accent-soft: #f0f4f3;
  --on-accent: #1a1a1a;
  --focus: rgba(140, 177, 172, 0.3);
  --btn-radius: 999px;
  color-scheme: light;
}
