/* =========================================================
   チャットでHP管理：全ページ共通（メニューのアイコン・訴求の帯）＋ chat-hp.html 専用
   ========================================================= */

/* ---- グローバルメニューの小さなアイコン ---- */
.nav-link--chat { display: inline-flex; align-items: center; gap: 6px; }
.nav-ico { width: 18px; height: 18px; flex: 0 0 18px; display: block; fill: none; stroke: var(--red, #d93b48); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-ico .nav-ico-dot { fill: var(--red, #d93b48); stroke: none; }

/* ---- メニューの上の帯（1行・低い高さ。スクロールすると、ページと一緒に上へ流れて隠れる） ---- */
.chat-band { background: #1f2937; color: #fff; position: relative; z-index: 51; }
.chat-band-in { display: flex; align-items: center; justify-content: center; gap: 6px 20px; padding-top: 6px; padding-bottom: 6px; }
.chat-band-tag { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-serif); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; color: #fff; white-space: nowrap; }
.chat-band-tag .nav-ico { width: 16px; height: 16px; stroke: #fff; }
.chat-band-tag .nav-ico .nav-ico-dot { fill: #fff; }
.chat-band-text { margin: 0; font-size: 12px; line-height: 1.5; color: #d1d5db; white-space: nowrap; }
.chat-band-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 50px; background: var(--red, #d93b48); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: opacity .2s; }
.chat-band-go:hover { opacity: .88; }
@media (max-width: 1180px) { .chat-band-text { display: none; } }
@media (max-width: 700px) {
  .chat-band-in { justify-content: space-between; gap: 8px; }
  .chat-band-in { flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
  .chat-band-tag { font-size: 12px; }
  .chat-band-go { padding: 3px 12px; font-size: 11.5px; }
}

/* =========================================================
   chat-hp.html
   ========================================================= */
.ch-hero { background: #fff; overflow: hidden; }
.ch-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(56px, 7vw, 96px); }
.ch-hero .display { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.45; font-weight: 700; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; line-break: strict; margin-top: 20px; }
.ch-hero .display .b { color: var(--red); }
.ch-hero .lead { max-width: 52ch; margin-top: 24px; color: var(--ink-strong); }
.ch-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* チャット画面のイメージ */
.ch-demo { position: relative; background: #fff; border-radius: var(--r-card); box-shadow: var(--air-shadow); overflow: hidden; }
.ch-demo::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--air-bar); }
.ch-demo-bar { display: flex; align-items: center; gap: 8px; padding: 18px 20px 12px; font-size: 12px; color: var(--ink-muted); }
.ch-demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e5e7eb; display: block; }
.ch-demo-bar span { margin-left: 8px; font-family: var(--f-mono); letter-spacing: .06em; }
.ch-demo-body { padding: 6px 20px 20px; display: grid; gap: 12px; }
.ch-msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.75; }
.ch-msg--me { justify-self: end; background: #fdecef; color: var(--ink); border-bottom-right-radius: 4px; }
.ch-msg--ai { justify-self: start; background: #f3f4f6; color: var(--ink); border-bottom-left-radius: 4px; }
.ch-msg small { display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: .08em; color: var(--ink-muted); }
.ch-preview { margin-top: 2px; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: #fff; }
.ch-preview-top { height: 22px; background: #f3f4f6; display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.ch-preview-top i { width: 6px; height: 6px; border-radius: 50%; background: #d1d5db; display: block; }
.ch-preview-main { padding: 14px 16px 16px; }
.ch-preview-main .k { font-family: var(--f-serif); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: var(--red); }
.ch-preview-main .t { margin-top: 4px; font-family: var(--f-serif); font-weight: 700; font-size: 17px; line-height: 1.5; color: var(--ink); }
.ch-preview-main .btn-fake { display: inline-block; margin-top: 10px; padding: 5px 14px; border-radius: 50px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; }
.ch-demo-note { padding: 0 20px 16px; font-size: 11.5px; color: var(--ink-muted); text-align: right; }

/* 仕組みの図（4ステップ） */
.ch-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 1040px; margin: 56px auto 0; position: relative; }
.ch-step { position: relative; text-align: center; padding: 0 14px; }
.ch-step-ico { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: #fff; box-shadow: var(--air-shadow-sm); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.ch-step-ico svg { width: 40px; height: 40px; fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ch-step-no { display: block; margin-top: 18px; font-family: var(--f-serif); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--red); }
.ch-step h3 { margin: 6px 0 8px; font-family: var(--f-serif); font-weight: 700; font-size: 19px; color: var(--ink); }
.ch-step p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-strong); }
.ch-step:not(:last-child)::after { content: ""; position: absolute; top: 41px; left: calc(50% + 52px); right: calc(-50% + 52px); height: 2px; background: repeating-linear-gradient(90deg, var(--lav) 0 6px, transparent 6px 12px); }
.ch-step:not(:last-child)::before { content: ""; position: absolute; top: 36px; right: calc(-50% + 46px); width: 10px; height: 10px; border-top: 2px solid var(--lav); border-right: 2px solid var(--lav); transform: rotate(45deg); }
@media (max-width: 900px) {
  .ch-steps { grid-template-columns: 1fr; gap: 28px; max-width: 480px; }
  .ch-step { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0 20px; text-align: left; padding: 0; align-items: center; }
  .ch-step-ico { grid-row: 1 / span 3; margin: 0; }
  .ch-step-no { margin-top: 0; }
  .ch-step:not(:last-child)::after, .ch-step:not(:last-child)::before { display: none; }
}

/* 構成図 */
.ch-arch { max-width: 1000px; margin: 56px auto 0; background: #fff; border-radius: var(--r-card); box-shadow: var(--air-shadow-sm); padding: clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.ch-arch::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--air-bar); }
.ch-arch svg { width: 100%; height: auto; display: block; }
.ch-arch-note { margin: 18px 0 0; font-size: 13.5px; line-height: 1.8; color: var(--ink-strong); }

/* 比較表 */
.ch-compare { max-width: 980px; margin: 56px auto 0; overflow-x: auto; }
.ch-table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--r-card); box-shadow: var(--air-shadow-sm); overflow: hidden; font-size: 14px; }
.ch-table th, .ch-table td { padding: 16px 18px; text-align: left; vertical-align: top; line-height: 1.7; border-bottom: 1px solid var(--rule); color: var(--ink-strong); }
.ch-table thead th { background: #f8f9fa; font-family: var(--f-serif); font-size: 14px; color: var(--ink); }
.ch-table thead th.is-ours { background: var(--red); color: #fff; }
.ch-table tbody th { width: 22%; font-weight: 700; color: var(--ink); background: #fff; }
.ch-table td.is-ours { background: #fff7f8; color: var(--ink); font-weight: 500; }
.ch-table tr:last-child th, .ch-table tr:last-child td { border-bottom: 0; }
.ch-compare-note { max-width: 980px; margin: 14px auto 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-muted); }

/* できること */
.ch-can { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1040px; margin: 56px auto 0; }
.ch-can-item { position: relative; background: #fff; border-radius: var(--r-card); box-shadow: var(--air-shadow-sm); padding: 28px 24px 24px; overflow: hidden; }
.ch-can-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--air-bar); }
.ch-can-item h3 { margin: 0 0 8px; font-family: var(--f-serif); font-weight: 700; font-size: 17px; color: var(--ink); }
.ch-can-item .say { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #fdecef; font-size: 13px; line-height: 1.7; color: var(--ink); }
.ch-can-item p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-strong); }
@media (max-width: 900px) { .ch-can { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ch-can { grid-template-columns: 1fr; } }

/* ページ内の見出し位置 */
#how, #compare, #can, #safe, #flow, #faq { scroll-margin-top: 90px; }

@media (max-width: 900px) {
  .ch-hero-in { grid-template-columns: 1fr; }
}

/* ---- メニューの折り返し防止 ---- */
.theme-air .nav-link { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1180px) { .theme-air .nav-links { gap: 16px; } .theme-air .nav-link { font-size: 13px; } }

/* TOP：メニューは、これまでどおり、ヒーロー写真の上に重ねる（固定表示）。帯の高さ分だけ下げる位置は、site.js が調整する */

/* スマホ幅：他のメニュー項目と同じく隠す（帯から案内する） */

/* よくあるご質問：枠の内側の余白と、開閉の見た目 */
.theme-air .faq-item { padding: 0; }
.theme-air .faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px; font-family: var(--f-serif); font-weight: 700; font-size: 16px; line-height: 1.6; color: var(--ink); }
.theme-air .faq-item summary::-webkit-details-marker { display: none; }
.theme-air .faq-item summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #fdecef; color: var(--red); display: flex; align-items: center; justify-content: center; font-family: var(--f-sans); font-size: 18px; font-weight: 400; line-height: 1; }
.theme-air .faq-item[open] summary::after { content: "−"; }
.theme-air .faq-item .faq-a { padding: 0 28px 22px; font-size: 14.5px; line-height: 1.9; color: var(--ink-strong); }
@media (max-width: 600px) {
  .theme-air .faq-item summary { padding: 16px 20px; font-size: 15px; }
  .theme-air .faq-item .faq-a { padding: 0 20px 18px; }
}

/* ---- ハンバーガーメニュー（スマホ・タブレット幅）。パソコン幅では、これまでどおり横並び ---- */
.nav-burger { display: none; }
.theme-air .nav-link--cta { display: none; }
@media (max-width: 900px) {
  .theme-air .nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 44px; height: 44px; padding: 0 11px; border: 0; background: transparent; cursor: pointer; }
  .theme-air .nav-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
  .theme-air .nav.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .theme-air .nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
  .theme-air .nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .theme-air .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 4px 20px 12px; background: #fff; border-bottom: 1px solid var(--rule); box-shadow: 0 16px 24px -12px rgba(17,24,39,.18); }
  .theme-air .nav.is-open .nav-links { display: flex; }
  .theme-air .nav.is-open .nav-link { display: flex; align-items: center; padding: 14px 2px; font-size: 15px; border-bottom: 1px solid var(--rule); }
  .theme-air .nav.is-open .nav-link:last-child { border-bottom: 0; }
  .theme-air .nav.is-open .nav-link::after { display: none; }
  .theme-air .nav.is-open .nav-link--cta { color: var(--red); font-weight: 700; }
}

/* 仕組み：5ステップ（監査役のチェックを含む） */
.ch-steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1120px; }
.ch-steps--5 .ch-step { padding: 0 8px; }
.ch-steps--5 .ch-step h3 { font-size: 17px; }
.ch-step--audit .ch-step-ico { box-shadow: 0 0 0 2px var(--red), var(--air-shadow-sm); }
@media (max-width: 900px) { .ch-steps--5 { grid-template-columns: 1fr; } .ch-steps--5 .ch-step { padding: 0; } }

/* 導入までの流れ（全体の図と、各ステップの内容） */
.ch-ov { list-style: none; margin: 56px auto 0; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; position: relative; }
.ch-ov li { position: relative; text-align: center; padding: 0 4px; }
.ch-ov li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 2px; background: repeating-linear-gradient(90deg, var(--lav) 0 5px, transparent 5px 10px); }
.ch-ov-no { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; background: #fff; box-shadow: var(--air-shadow-sm); font-family: var(--f-serif); font-weight: 700; font-size: 14px; color: var(--red); position: relative; z-index: 1; }
.ch-ov-t { display: block; margin-top: 10px; font-size: 12.5px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.ch-fls { list-style: none; margin: 56px auto 0; padding: 0; max-width: 920px; position: relative; }
.ch-fls::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: var(--lav); opacity: .7; }
.ch-fl { position: relative; padding: 0 0 20px 48px; }
.ch-fl-dot { position: absolute; left: 4px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px #fff; }
.ch-fl-card { position: relative; background: #fff; border-radius: var(--r-card); box-shadow: var(--air-shadow-sm); padding: 24px 28px 22px; overflow: hidden; }
.ch-fl-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--air-bar); }
.ch-fl-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.ch-fl-no { font-family: var(--f-serif); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--red); }
.ch-fl-card h3 { margin: 0; font-family: var(--f-serif); font-weight: 700; font-size: 20px; color: var(--ink); }
.ch-fl-card h4 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--red); }
.ch-fl-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ch-fl-card li { position: relative; padding-left: 1.2em; font-size: 14px; line-height: 1.75; color: var(--ink-strong); }
.ch-fl-card li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); opacity: .55; }
.ch-fl-groups { display: grid; grid-template-columns: 3fr 2fr; gap: 20px 28px; }
.ch-fl-groups ul { grid-template-columns: 1fr; }
@media (max-width: 1000px) { .ch-ov { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 22px; } .ch-ov li:nth-child(4)::after { display: none; } }
@media (max-width: 700px) {
  .ch-ov { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-ov li::after { display: none !important; }
  .ch-fl { padding-left: 38px; }
  .ch-fl-card { padding: 20px 18px 18px; }
  .ch-fl-card ul, .ch-fl-groups { grid-template-columns: 1fr; }
}

/* 右下の「無料相談」ボタン：文字を折り返さない。紺の台と赤いボタンの間の余白（12px）を、右の「先頭へ戻る」ボタンと同じにする。スマホ幅では、ひと言の説明を省いて、ボタンだけにする */
.float-cta .fc-label, .float-cta .fc-btn { white-space: nowrap; }
.theme-air .float-cta { padding: 12px 12px 12px 20px; }
.float-cta .fc-btn { box-sizing: border-box; height: 42px; padding: 0 20px; }
@media (max-width: 700px) {
  .theme-air .float-cta { right: 96px; bottom: 24px; padding: 12px; gap: 0; }
  .float-cta .fc-label { display: none; }
  .float-cta .fc-btn { font-size: 14px; }
}
