/* 専用ツールのご要望フォーム（勝手にブランディングLPの色・書体・キャラクターに合わせる） */
:root {
  --navy: #151b3c; --ink-2: #2c324f; --g700: #5b5f76; --g500: #8a8d9d; --g200: #d0d1d8; --g100: #e8e8eb; --g050: #f3f4f5; --g025: #f9f9fa;
  --blue: #0381ef; --blue-600: #405ea6; --blue-100: #cde6fc; --blue-050: #e6f2fd; --sky-100: #ebf6ff; --yellow: #ffd84a; --cream: #fff3dc; --red: #d93a2b;
  --ff: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif; --ff-num: 'Roboto Condensed', 'Zen Kaku Gothic New', sans-serif;
  --gut: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--g025); color: var(--ink-2); font-family: var(--ff); font-weight: 500; line-height: 1.8; letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
button, input, textarea { font: inherit; color: inherit; }
.sp { display: none; }

/* ヘッダー */
.hd { background: #fff; border-bottom: 1px solid var(--g100); }
.hd__in { max-width: 1080px; margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hd__logo { color: var(--navy); font-weight: 900; font-size: 18px; letter-spacing: .04em; text-decoration: none; }
.hd__link { color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--g050); }
.hd__link:hover { background: var(--g100); }

/* 冒頭 */
.hero { position: relative; max-width: 1080px; margin: 0 auto; padding: 56px var(--gut) 40px; }
.hero__in { position: relative; z-index: 1; max-width: 760px; }
.hero__en { margin: 0; font-family: var(--ff-num); font-size: 14px; letter-spacing: .12em; color: var(--blue); text-transform: uppercase; }
.hero__ttl { margin: 6px 0 0; color: var(--navy); font-weight: 900; font-size: clamp(30px, 5vw, 46px); line-height: 1.3; letter-spacing: .02em; }
.hero__lead { margin: 18px 0 0; font-size: 16px; line-height: 2; max-width: 40em; }
.hero__ch { position: absolute; right: var(--gut); top: 40px; width: 200px; }
.flow { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.flow__i { background: #fff; border-radius: 16px; padding: 18px 18px 20px; box-shadow: 0 0 0 1px var(--g100); }
.flow__n { display: block; font-family: var(--ff-num); color: var(--blue); font-size: 15px; letter-spacing: .06em; }
.flow__i b { display: block; margin-top: 2px; color: var(--navy); font-size: 16px; line-height: 1.5; }
.flow__i span:last-child { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.8; color: var(--g700); }

/* チャットの枠 */
.chat { max-width: 760px; margin: 8px auto 0; background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--g100), 0 12px 40px rgba(21, 27, 60, .06); overflow: hidden; }
.chat__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; background: var(--sky-100); }
.chat__who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chat__who img { width: 40px; height: 40px; flex: none; }
.chat__who b { display: block; color: var(--navy); font-size: 15px; line-height: 1.3; }
.chat__who small { display: block; color: var(--g700); font-size: 12px; line-height: 1.4; }
.prog { display: flex; align-items: center; gap: 10px; flex: none; }
.prog__t { font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.prog__bar { width: 120px; height: 6px; border-radius: 999px; background: #fff; overflow: hidden; }
.prog__bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: inherit; transition: width .3s ease; }
.chat__log { padding: 24px 20px 28px; display: flex; flex-direction: column; gap: 14px; min-height: 360px; }
.chat__noscript { padding: 0 20px 24px; }

/* 吹き出し */
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg.is-new, .ans.is-new, .done.is-new { animation: msg-in .28s ease both; }
.msg.is-new + .msg.is-new { animation-delay: .25s; }
.msg.is-new + .ans.is-new, .msg.is-new + .msg.is-new + .ans.is-new { animation-delay: .4s; }
.msg__face { flex: none; width: 48px; height: 48px; }
.msg__body { min-width: 0; max-width: 560px; }
.msg__name { display: block; font-size: 12px; font-weight: 700; color: var(--g700); margin: 0 0 2px 2px; }
.bubble { background: var(--g050); border-radius: 4px 16px 16px 16px; padding: 12px 16px; font-size: 15px; line-height: 1.85; color: var(--navy); overflow-wrap: anywhere; }
.bubble p { margin: 0; }
.bubble p + p { margin-top: 8px; }
.bubble small { display: block; margin-top: 4px; color: var(--g700); font-size: 13px; }
.msg--me { justify-content: flex-end; }
.msg--me .msg__body { display: flex; flex-direction: column; align-items: flex-end; }
.msg--me .bubble { background: var(--blue); color: #fff; border-radius: 16px 4px 16px 16px; font-weight: 700; white-space: pre-wrap; }
.msg--me .bubble.is-skip { background: var(--g100); color: var(--g700); font-weight: 500; }
.redo { margin-top: 4px; border: 0; background: none; padding: 4px 6px; color: var(--g700); font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.redo:hover { color: var(--navy); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 回答の入力 */
.ans { margin-left: 58px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 2px var(--blue-100); }
.ans--start { box-shadow: none; padding: 0; }
.ans--start .acts { justify-content: flex-start; margin-top: 0; }
.ans__lab { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.ans__lab .req, .ans__lab .opt { margin-left: 6px; font-size: 11px; padding: 1px 7px; border-radius: 4px; vertical-align: 1px; }
.ans__lab .req { background: var(--navy); color: #fff; }
.ans__lab .opt { background: var(--g100); color: var(--g700); }
.ans__row + .ans__row { margin-top: 12px; }
.in, .ta { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--g200); border-radius: 10px; background: #fff; font-size: 16px; line-height: 1.6; }
.ta { min-height: 128px; resize: vertical; line-height: 1.8; }
.in:focus, .ta:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 16px; border: 1px solid var(--g200); border-radius: 999px; background: #fff; color: var(--navy); font-size: 14.5px; font-weight: 700; line-height: 1.4; cursor: pointer; transition: background-color .12s ease, border-color .12s ease; }
.chip:hover { background: var(--g050); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.hints { margin-top: 10px; }
.hints__h { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--g700); }
.hint { min-height: 36px; padding: 6px 12px; border: 1px dashed var(--g200); border-radius: 999px; background: var(--g025); color: var(--ink-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.hint:hover { background: var(--g050); }
.count { margin: 4px 2px 0; text-align: right; font-size: 12px; color: var(--g500); }
.err { margin: 10px 0 0; color: var(--red); font-size: 13px; font-weight: 700; }
.err[hidden] { display: none; }
.acts { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .04em; cursor: pointer; text-decoration: none; transition: background-color .12s ease, transform .12s ease; }
.btn:hover { background: var(--ink-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn__arr { width: 22px; height: 22px; border-radius: 50%; background: #fff; flex: none; position: relative; }
.btn__arr::after { content: ""; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px; border-top: 2px solid var(--navy); border-right: 2px solid var(--navy); transform: translateX(-1px) rotate(45deg); }
.btn--ghost { background: var(--g050); color: var(--navy); }
.btn--ghost:hover { background: var(--g100); }
.btn--lg { min-height: 56px; padding: 0 34px; font-size: 16px; }
.btn:focus-visible, .chip:focus-visible, .hint:focus-visible, .redo:focus-visible, .agree input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 確認 */
.sum { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--g100); }
.sum__i { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 4px 12px; align-items: start; padding: 12px 2px; border-bottom: 1px solid var(--g100); }
.sum__k { font-size: 13px; font-weight: 700; color: var(--g700); }
.sum__v { font-size: 14.5px; color: var(--navy); white-space: pre-wrap; overflow-wrap: anywhere; }
.sum__v.is-empty { color: var(--g500); }
.agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 4px 0 0; flex: none; accent-color: var(--navy); }
.done { text-align: center; padding: 8px 0 4px; }
.done img { width: 140px; margin: 0 auto; }
.done__ttl { margin: 6px 0 0; color: var(--navy); font-size: 22px; font-weight: 900; }
.done p { margin: 10px auto 0; max-width: 32em; font-size: 15px; line-height: 1.9; text-align: left; }
.done .acts { justify-content: center; }

.alt { max-width: 760px; margin: 16px auto 0; padding: 0 var(--gut); font-size: 13px; color: var(--g700); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* フッター */
.ft { margin-top: 72px; background: var(--navy); color: #fff; }
.ft__in { max-width: 1080px; margin: 0 auto; padding: 32px var(--gut); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.ft__logo { color: #fff; font-weight: 900; text-decoration: none; letter-spacing: .04em; }
.ft__links { margin: 0; font-size: 13px; }
.ft__links a { color: #fff; }
.ft__copy { margin: 0 0 0 auto; font-size: 12px; opacity: .7; }

@media (max-width: 860px) {
  .hero__ch { width: 120px; top: 28px; }
  .hero__in { max-width: none; }
  .hero__ttl { padding-right: 110px; }
  .flow { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --gut: 16px; }
  .sp { display: inline; }
  .hd__in { height: 56px; }
  .hd__logo { font-size: 16px; }
  .hero { padding-top: 32px; padding-bottom: 28px; }
  .hero__ch { width: 92px; right: 12px; top: 22px; }
  .hero__ttl { padding-right: 84px; font-size: 28px; }
  .hero__lead { font-size: 15px; line-height: 1.9; }
  .chat { border-radius: 0; box-shadow: 0 0 0 1px var(--g100); }
  .chat__bar { padding: 10px 16px; }
  .chat__who small { display: none; }
  .prog__bar { width: 72px; }
  .chat__log { padding: 20px 12px 24px; }
  .msg__face { width: 40px; height: 40px; }
  .bubble { padding: 10px 14px; font-size: 15px; }
  .ans { margin-left: 0; padding: 14px 12px; }
  .acts { justify-content: stretch; }
  .acts .btn { flex: 1 1 auto; }
  .sum__i { grid-template-columns: 1fr auto; }
  .sum__k { grid-column: 1 / -1; }
  .ft__copy { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .msg.is-new, .ans.is-new, .done.is-new { animation: none; } .prog__bar i, .btn, .chip { transition: none; } }
