/* ============================================
   United Promotions +AI — 2026 リニューアル
   デザイン基準: united_ai_redesign.html（ChatGPT 制作の試作）
   既存の診断・相談機能（js/app.js）が使うクラスもここで定義する
   ============================================ */
:root {
  --ink: #172c36;
  --muted: #63737b;
  --green: #087e71;
  --green-dark: #126a61;
  --cream: #f6f7f2;
  --line: #dce5e2;
  --night: #203942;
  --deep: #153b3b;
  --red: #b3261e;
  --red-bg: #fdecea;
  --orange: #9a5b00;
  --orange-bg: #fff4dc;
  --font: Arial, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
body { margin: 0; color: var(--ink); font-family: var(--font); background: #fff; -webkit-font-smoothing: antialiased; }
button, a, input, textarea { font: inherit; }
a { text-decoration: none; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: auto; padding: 0 30px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- ヘッダー ---------- */
.site-header { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf1ee; }
.brand { font-size: 18px; font-weight: 850; letter-spacing: -.8px; line-height: 1.2; }
.brand span { color: var(--green); }
.brand small { font-size: 9px; display: block; letter-spacing: 2px; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 700; }
.site-nav a:hover { color: var(--green); }
.pill { background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 40px; display: inline-block; border: 0; cursor: pointer; font-weight: 750; text-align: center; transition: background .2s; }
.pill:hover { background: var(--green-dark); }
.pill:disabled { opacity: .45; cursor: not-allowed; background: var(--ink); }
.ghost { display: inline-flex; align-items: center; gap: 10px; padding: 13px 0; font-weight: 750; color: var(--ink); }
.ghost:hover { color: var(--green); }

/* ---------- ヒーロー ---------- */
.hero { background: var(--cream); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 42px; min-height: 610px; padding-top: 65px; padding-bottom: 65px; }
.eyebrow { font-size: 12px; font-weight: 850; letter-spacing: 2px; color: var(--green); margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 4.5vw, 66px); line-height: 1.3; letter-spacing: -2.8px; margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--green); }
.lead { font-size: 16px; line-height: 2; color: #4d6169; max-width: 520px; }
.cta { display: flex; align-items: center; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.note { font-size: 12px; color: #74858a; margin-top: 18px; }

/* ---------- AI OFFICE の枠 ---------- */
.office-frame { background: var(--night); border: 9px solid var(--night); border-radius: 18px; box-shadow: 0 28px 65px #233f3e29; overflow: hidden; }
.office-head { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; color: #c9e5de; font-size: 11px; letter-spacing: 1px; }
.office-head .demo-flag { color: #ffd98a; white-space: nowrap; }
.office-head .demo-flag.is-live { color: #95edbf; }
.office-stage { position: relative; aspect-ratio: 320 / 224; background: #d9e5d8; border-radius: 6px; overflow: hidden; }
.office-stage .office-canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: manipulation; display: block; }
.office-stage .office-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #4d6169; font-size: 13px; }
.office-stage canvas ~ .office-fallback { display: none; }
.office-foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px; color: #c6ded7; font-size: 11px; }
.office-foot a { color: #fff; font-weight: 700; }
.office-foot a:hover { color: #95edbf; }
.office-labels { position: absolute; inset: 0; pointer-events: none; }
.office-tag {
  position: absolute; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer;
  background: var(--night); color: #fff; border: 0; padding: 3px 6px; border-radius: 5px;
  white-space: nowrap; font-size: 10px; font-weight: 700; line-height: 1.2; box-shadow: 0 0 0 0 var(--c);
  transition: box-shadow .2s, background .2s;
}
.office-tag::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 4px; vertical-align: 1px; }
.office-tag:hover, .office-tag.is-selected { background: var(--green); box-shadow: 0 0 0 2px #fff; }
.office-tag:focus-visible { outline: 2px solid #ffd98a; outline-offset: 2px; }

/* ---------- セクション共通 ---------- */
.section { padding: 100px 0; }
.section.alt { background: #f7f9f7; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.section h2 { font-size: clamp(29px, 3vw, 43px); letter-spacing: -1.3px; line-height: 1.4; margin: 8px 0; }
.section-sub { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---------- AI社員 ---------- */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.team-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px 16px; min-height: 220px; background: #fff; transition: .2s; cursor: pointer; text-align: left; color: var(--ink); }
.team-card:hover, .team-card.active { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 12px 30px #0b5d5120; }
.team-card:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.team-icon { width: 52px; height: 52px; border-radius: 14px; background: #e7f1eb; display: grid; place-items: center; font-size: 27px; margin-bottom: 18px; }
.team-card strong { display: block; font-size: 16px; margin-bottom: 12px; }
.team-card p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0; }
.detail { margin-top: 20px; border: 1px solid #c8e4da; background: #eaf5ef; border-radius: 14px; padding: 22px 25px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.detail p { margin: 7px 0 0; color: #4b6861; font-size: 13px; line-height: 1.7; }
.detail-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

/* ---------- 導入の流れ ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 35px; }
.step { padding: 30px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.step .num { color: var(--green); font-size: 13px; font-weight: 900; letter-spacing: 1px; }
.step h3 { font-size: 20px; margin: 19px 0 10px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.9; }

/* ---------- 診断（既存APIに接続） ---------- */
.diagnose { background: var(--deep); color: #fff; padding: 70px 0; }
.diagnose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.diagnose h2 { font-size: 37px; line-height: 1.45; margin: 10px 0 20px; }
.diagnose p { line-height: 1.9; color: #bdd5ce; }
.diagnose .eyebrow { color: #a3e7d0; }
.formbox { background: #fff; color: var(--ink); padding: 27px; border-radius: 18px; }
.formbox .field-label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 12px; }
.formbox .field-label small { font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; }
.chip { position: relative; border: 1px solid #cbdcd7; background: #fff; padding: 10px 12px; border-radius: 25px; font-size: 12px; cursor: pointer; user-select: none; transition: background .15s, border-color .15s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: #9cc5ba; }
.chip.selected, .chip:has(input:checked) { background: #dceee7; border-color: var(--green); color: #066e61; }
.chip:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.formbox textarea { width: 100%; min-height: 115px; border: 1px solid #cbdcd7; border-radius: 10px; padding: 14px; font: inherit; font-size: 13px; resize: vertical; color: var(--ink); }
.formbox textarea:focus, .form-input:focus, .form-textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px #087e7122; }
.formbox .pill { width: 100%; margin-top: 15px; }
.formbox .form-privacy { font-size: 11px; color: var(--muted); margin: 10px 0 0; line-height: 1.7; }
.formbox .form-meta { font-size: 11px; color: #7a8a8a; text-align: center; margin: 10px 0 0; }
.form-error { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 11px 14px; font-size: 13px; line-height: 1.6; margin-top: 14px; }
.btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.spinner { width: 14px; height: 14px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 追加質問・結果・相談（診断後に表示） ---------- */
.flow-section { padding: 80px 0; background: #fff; }
.flow-section.alt { background: var(--cream); }
.narrow { max-width: 760px; margin: 0 auto; }
.flow-section h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -1px; line-height: 1.4; margin: 8px 0 10px; }
.flow-desc { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 0 0 28px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 9px; line-height: 1.6; }
.form-input, .form-textarea { width: 100%; border: 1px solid #cbdcd7; border-radius: 10px; padding: 13px 14px; font-size: 14px; color: var(--ink); background: #fff; }
.form-textarea { resize: vertical; min-height: 70px; }
.form-hint { font-size: 12px; color: var(--muted); margin: 7px 0 0; }
.required, .optional { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 2px 6px; margin-left: 6px; vertical-align: 1px; }
.required { background: var(--green); color: #fff; }
.optional { background: #e8eeec; color: var(--muted); }
.checkbox-label { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--green); }
.checkbox-label a { color: var(--green); text-decoration: underline; }
.form-card .pill { width: 100%; padding: 15px 22px; }

.result-cards { display: grid; gap: 12px; }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; animation: rise .45s ease both; }
.result-card:nth-child(2) { animation-delay: .05s; } .result-card:nth-child(3) { animation-delay: .1s; } .result-card:nth-child(4) { animation-delay: .15s; }
.result-card:nth-child(5) { animation-delay: .2s; } .result-card:nth-child(n+6) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result-card-label { font-size: 12px; font-weight: 850; letter-spacing: 1px; color: var(--green); margin-bottom: 8px; }
.result-card-value { font-size: 14px; line-height: 1.9; white-space: pre-wrap; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.badge-high { background: #dceee7; color: #066e61; }
.badge-medium { background: var(--orange-bg); color: var(--orange); }
.badge-low { background: var(--red-bg); color: var(--red); }
.difficulty-bar { display: flex; align-items: center; gap: 6px; }
.difficulty-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.difficulty-dot.filled { background: var(--green); }
.difficulty-label { margin-left: 8px; font-size: 14px; }
.action-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.action-list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.8; }
.action-num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.ai-employee-tag { display: inline-block; background: #e7f1eb; color: #066e61; border: 1px solid #c8e4da; padding: 7px 13px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.result-disclaimer { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 22px 0 0; }
.consultation-cta { margin-top: 28px; background: var(--deep); color: #fff; border-radius: 18px; padding: 32px; text-align: center; }
.cta-title { font-size: 22px; line-height: 1.6; margin: 0 0 10px; }
.cta-desc { color: #bdd5ce; font-size: 14px; line-height: 1.8; margin: 0 0 20px; }
.consultation-cta .pill { background: #fff; color: var(--ink); }
.consultation-cta .pill:hover { background: #dceee7; }
.thanks-content { text-align: center; }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font-size: 30px; display: grid; place-items: center; margin: 0 auto 18px; }
.thanks-note { font-size: 13px; color: var(--muted); line-height: 1.9; }

/* ---------- フッター ---------- */
.footer { padding: 30px 0; display: flex; justify-content: space-between; gap: 20px; color: #71817e; font-size: 12px; line-height: 1.8; }
.footer strong { color: var(--ink); }
.footer a { color: #71817e; text-decoration: underline; }
.footer a:hover { color: var(--green); }
.footer-right { text-align: right; }

/* ---------- レスポンシブ（デザインのブレークポイントに合わせる） ---------- */
@media (max-width: 850px) {
  .site-nav a:not(.pill) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 54px; padding-bottom: 65px; min-height: 0; }
  .hero h1 { font-size: 47px; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .team-card { min-height: 190px; }
  .steps { grid-template-columns: 1fr; }
  .diagnose-grid { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 70px 0; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 20px; }
  .site-header { height: 65px; }
  .brand { font-size: 16px; }
  .site-nav .pill { padding: 10px 13px; font-size: 11px; }
  .hero-grid { padding-top: 48px; }
  .hero h1 { font-size: 40px; letter-spacing: -1.8px; }
  .lead { font-size: 14px; }
  .office-frame { border-width: 5px; }
  .office-head, .office-foot { font-size: 9px; }
  .office-tag { font-size: 8px; padding: 2px 4px; }
  .office-tag::before { width: 5px; height: 5px; margin-right: 3px; }
  .section-head { display: block; }
  .team { gap: 9px; }
  .team-card { padding: 16px 12px; min-height: 174px; }
  .team-card strong { font-size: 13px; }
  .team-card p { font-size: 11px; }
  .team-icon { width: 42px; height: 42px; font-size: 23px; margin-bottom: 12px; }
  .detail { display: block; }
  .detail-actions { margin-top: 15px; flex-wrap: wrap; }
  .diagnose { padding: 65px 0; }
  .diagnose h2 { font-size: 30px; }
  .formbox { padding: 19px; }
  .form-card { padding: 20px; }
  .flow-section { padding: 60px 0; }
  .footer { display: block; line-height: 2; }
  .footer-right { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

#office-job { margin-top: 1rem; }
.office-output { white-space: pre-wrap; overflow-wrap: anywhere; }
.office-output:not([hidden]) { display: block; padding: 1rem; background: #eef6f1; border-radius: .75rem; }
.office-next a { text-decoration: underline; }

#office-job { background: #203942; color: #fff; border: 3px solid #38575c; }
.office-game-title { font-size: 1.25rem; margin: 0 0 .8rem; }
.office-roster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; }
.office-roster button { color: #fff; background: #304d54; border: 2px solid transparent; border-radius: .7rem; padding: .35rem .05rem; font: inherit; font-size: .75rem; cursor: pointer; }
.office-roster button[aria-pressed="true"] { background: #f2d193; color: #203942; border-color: #fff2ce; }
.office-roster button span { display: block; font-size: clamp(1.3rem, 4vw, 2.25rem); line-height: 1.45; }
.office-brief { position: relative; background: #f8f1df; color: #203942; padding: .8rem; border-radius: .7rem; font-weight: 700; }
#office-job .office-send { background: #a0e6c6; color: #123734; }
#office-job .note { color: #baddd3; }
#office-job .office-output { color: #203942; }
#office-job[data-state="working"] [aria-pressed="true"] span { animation: office-hop .55s ease-in-out infinite alternate; }
#office-job[data-state="done"] .office-output { animation: office-arrive .35s ease-out both; }
@keyframes office-hop { to { transform: translateY(-.3rem) rotate(-7deg); } }
@keyframes office-arrive { from { transform: translateY(.7rem); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #office-job * { animation: none !important; } }

/* ============================================
   2026-11 導線改善（AI社員の詳細・料金の考え方・活用イメージ・相談フォーム・FAQ・会社情報）
   ============================================ */
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; }
.text-link { color: var(--green-dark); text-decoration: underline; font-weight: 700; display: inline-block; margin-top: 6px; }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: 13px; }
.fine-print { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 16px 0 0; }
.small { font-size: 13px; line-height: 1.9; color: var(--muted); }

/* デモの表示 */
.office-game-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: .8rem; }
.office-game-head .office-game-title { margin: 0; }
.demo-badge { background: #ffd98a; color: #3d2a00; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 20px; letter-spacing: 1px; }
.office-next:not([hidden]) { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; }
.office-next a { color: #fff; }

/* AI社員の詳細 */
.detail { align-items: flex-start; }
.detail-body { flex: 1; min-width: 0; }
.detail-actions { flex-direction: column; align-items: stretch; min-width: 230px; gap: 6px; }
.detail-actions .ghost { padding: 8px 0; justify-content: center; }
.staff-facts { margin: 14px 0 0; display: grid; gap: 8px; }
.staff-facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; font-size: 13px; line-height: 1.7; }
.staff-facts dt { font-weight: 800; color: var(--green-dark); }
.staff-facts dd { margin: 0; color: #35524c; }
.staff-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.staff-lists h3 { font-size: 13px; margin: 0 0 6px; }
.staff-lists ul { margin: 0; padding-left: 1.2em; font-size: 13px; line-height: 1.8; color: #35524c; }
#detail-cannot li::marker { content: '△ '; color: var(--orange); }

/* 料金の考え方 */
.price-note { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; }
.price-note h3 { margin: 0 0 10px; font-size: 18px; }
.price-note ul { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 2; color: #3d5560; }

/* 診断 */
.diagnose-points { margin: 18px 0 0; padding-left: 1.2em; color: #d9ebe5; font-size: 14px; line-height: 2; }
.staff-chip:not([hidden]) { display: block; background: #e7f1eb; color: #066e61; border-radius: 10px; padding: 8px 12px; font-size: 12px; font-weight: 700; margin: 0 0 14px; }
.formbox .form-privacy a { color: var(--green-dark); text-decoration: underline; }
.result-number { color: var(--muted); font-size: 13px; margin: -4px 0 16px; }
.consultation-cta .link-button { color: #cfe5de; margin-top: 14px; }

/* 業種別の活用イメージ */
.cases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.case { border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; background: #fff; }
.case h3 { font-size: 16px; margin: 0 0 10px; }
.case-pain { font-size: 13px; font-weight: 700; color: var(--ink); background: #f3f6f4; border-radius: 10px; padding: 8px 10px; line-height: 1.7; }
.case p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 8px 0 0; }
.cases-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }

/* 相談 */
.consult-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.consult-info h3 { font-size: 15px; margin: 24px 0 8px; }
.check-list, .step-list { margin: 0; padding-left: 1.3em; font-size: 14px; line-height: 1.9; color: #3d5560; }
.check-list li::marker { content: '✓ '; color: var(--green); font-weight: 800; }
.handoff:not([hidden]) { display: grid; gap: 4px; background: #e7f1eb; border: 1px solid #c8e4da; border-radius: 12px; padding: 12px 14px; margin-bottom: 20px; font-size: 13px; line-height: 1.7; color: #24493f; }
.handoff .link-button { justify-self: start; color: var(--muted); font-size: 12px; }
.slots { border: 0; padding: 0; }
.slots-hint { margin: -2px 0 10px; }
.slot { display: grid; grid-template-columns: 4.5em 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.slot-no { font-size: 12px; font-weight: 800; color: var(--muted); }
select.form-input { appearance: auto; padding: 12px 10px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.radio-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.radio-label input { width: 18px; height: 18px; accent-color: var(--green); }
fieldset.form-group { border: 0; padding: 0; margin-left: 0; margin-right: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-input[aria-invalid="true"], .form-textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px #b3261e22; }
.form-meta a { color: var(--green-dark); text-decoration: underline; }
.form-card .form-meta { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* 受付 */
#thanks:focus { outline: none; }
.receipt { text-align: left; max-width: 520px; margin: 0 auto 18px; background: var(--cream); border-radius: 14px; padding: 16px 20px; display: grid; gap: 10px; }
.receipt div { display: grid; grid-template-columns: 8em 1fr; gap: 10px; font-size: 14px; line-height: 1.7; }
.receipt dt { font-weight: 800; color: var(--muted); }
.receipt dd { margin: 0; }
.receipt ul { margin: 0; padding: 0; list-style: none; }
.thanks-content .form-error { text-align: left; }
.thanks-content a { color: var(--green-dark); text-decoration: underline; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 15px; padding: 18px 0; line-height: 1.6; list-style-position: outside; }
.faq details p { margin: 0 0 18px; font-size: 14px; line-height: 1.9; color: #3d5560; }
.faq a { color: var(--green-dark); text-decoration: underline; }

/* 会社情報 */
.company-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.company-table th, .company-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); line-height: 1.7; vertical-align: top; }
.company-table th { width: 8em; color: var(--muted); font-weight: 700; }
.company-table a { color: var(--green-dark); text-decoration: underline; }

@media (max-width: 1000px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .detail { display: block; }
  .detail-actions { margin-top: 16px; min-width: 0; }
  .consult-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 540px) {
  .staff-lists { grid-template-columns: 1fr; }
  .staff-facts div { grid-template-columns: 1fr; gap: 2px; }
  .cases { grid-template-columns: 1fr; }
  .slot { grid-template-columns: 1fr 1fr; }
  .slot-no { grid-column: 1 / -1; }
  .receipt div { grid-template-columns: 1fr; gap: 2px; }
  .price-note { padding: 20px; }
  .company-table th { width: 6em; }
}

a[href^="tel:"] { white-space: nowrap; }

/* 2026-11-27 診断入力の直前に「入力した情報の取り扱い」を置く */
.formbox .input-handling { margin: 0 0 18px; }

/* 2026-11-27 診断結果の簡易 Markdown（見出し・箇条書き・表・太字）。本番での修正を移植 */
.result-card-value.md { white-space: normal; }
.result-card-value h3 { font-size: 1.05em; margin: 12px 0 6px; }
.result-card-value h4 { font-size: 1em; margin: 10px 0 4px; }
.result-card-value ul, .result-card-value ol { padding-left: 1.3em; margin: 8px 0; line-height: 1.8; }
.result-card-value li { margin-bottom: 4px; }
.result-card-value .md-table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 8px 0; font-size: .95em; }
.result-card-value .md-table th, .result-card-value .md-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.result-card-value .md-table th { background: #f3f6f4; }
