/* 「小さな会社のAI導入」ページ（/services/small-business-ai.html）だけが読み込む。
   blog.css・apps.css・services.css の共通クラスの上に、この画面固有の差分を定義する。
   業種とデモの切り替えは ai-adoption.js が <html class="lp-js"> を付けたときだけ働き、
   JSが動かない環境では全業種・全デモがそのまま縦に並ぶ。 */

.lp-main { --ai: var(--accent); --human: var(--ink); }
.lp-main h3, .lp-main h4 { font-family: 'Zen Kaku Gothic New', sans-serif; }

/* ---------- 冒頭 ---------- */
.lp-hero { max-width: 880px; }
.lp-hero h1 span { display: block; margin-top: 14px; font-size: 0.56em; letter-spacing: -0.02em; line-height: 1.5; }
.lp-price-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; list-style: none; }
.lp-price-strip li { display: grid; gap: 2px; min-width: 168px; padding: 14px 20px 13px; border: 1px solid var(--ink); background: var(--white); box-shadow: var(--shadow); }
.lp-price-strip span { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; }
.lp-price-strip b { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 1.42rem; font-weight: 900; letter-spacing: -0.03em; }
.lp-price-strip li:last-child { border-color: var(--line); box-shadow: none; }

/* ---------- 切り替えのボタン（業種・デモ共通） ---------- */
.lp-chips { display: none; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.lp-js .lp-chips { display: flex; }
.lp-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink); font: inherit; font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.86rem; font-weight: 700; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.lp-chip:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); }
.lp-chip[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.lp-chip:focus-visible, .lp-act:focus-visible, .lp-problem-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lp-js [data-collapsed] { display: none; }
.lp-footnote { margin-top: 18px; max-width: 760px; color: var(--muted); font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.8rem; line-height: 1.8; }

/* ---------- 業種別の困りごと ---------- */
.lp-industry { margin-top: 30px; }
.lp-industry > h3 { font-size: 1.1rem; font-weight: 900; }
.lp-js .lp-industry > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lp-js .lp-industry { margin-top: 20px; }
.lp-problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
.lp-problem { display: flex; flex-direction: column; padding: 24px 22px 20px; border: 1px solid var(--line); border-top: 4px solid var(--magenta); border-radius: 2px; background: var(--white); }
.lp-problem-text { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 1rem; font-weight: 800; line-height: 1.7; }
.lp-problem dl { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.lp-problem dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; }
.lp-problem dl div:first-child dt { color: var(--accent); }
.lp-problem dd { margin-top: 3px; color: var(--muted); font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.86rem; line-height: 1.75; }
.lp-problem-link { align-self: flex-start; margin-top: auto; padding-top: 18px; color: var(--accent); font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.82rem; font-weight: 700; text-underline-offset: 3px; }

/* ---------- デモ：流れの比較 ---------- */
.lp-demo { margin-top: 30px; }
.lp-demo > h3 { font-size: 1.25rem; font-weight: 900; }
.lp-demo-summary { margin-top: 6px; color: var(--muted); font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.94rem; line-height: 1.8; }
.lp-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.lp-flow-col { padding: 22px 24px; border: 1px solid var(--line); border-radius: 2px; background: var(--wash); }
.lp-flow-after { border-color: var(--ink); background: var(--white); box-shadow: var(--shadow); }
.lp-flow-col h4 { font-size: 0.82rem; font-weight: 900; letter-spacing: 0.06em; }
.lp-flow-after h4 { color: var(--accent); }
.lp-flow ol { display: grid; gap: 9px; margin-top: 14px; list-style: none; counter-reset: step; }
.lp-flow li { position: relative; padding-left: 30px; color: var(--ink); font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.9rem; line-height: 1.7; counter-increment: step; }
.lp-flow li::before { content: counter(step); position: absolute; left: 0; top: 0.18em; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--muted); font-family: 'Outfit', sans-serif; font-size: 0.68rem; font-weight: 700; line-height: 18px; text-align: center; }
.lp-flow-before li { color: var(--muted); }
.lp-who { display: inline-block; min-width: 30px; margin-right: 8px; padding: 1px 6px; border-radius: 2px; font-family: 'Outfit', 'Zen Kaku Gothic New', sans-serif; font-size: 0.68rem; font-weight: 800; line-height: 1.5; text-align: center; vertical-align: 0.1em; }
.lp-who-ai { background: var(--accent); color: var(--white); }
.lp-who-human { border: 1px solid var(--ink); background: var(--white); color: var(--ink); }

/* ---------- デモ：画面の見本 ---------- */
.lp-screen { margin-top: 20px; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); box-shadow: var(--shadow); }
.lp-screen-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 20px; background: var(--ink); color: var(--white); font-family: 'Zen Kaku Gothic New', sans-serif; }
.lp-screen-bar span { font-size: 0.76rem; opacity: 0.8; }
.lp-screen-bar strong { font-size: 0.95rem; font-weight: 800; }
.lp-screen-bar em { margin-left: auto; padding: 2px 9px; border: 1px solid currentColor; border-radius: 2px; font-size: 0.68rem; font-style: normal; font-weight: 700; letter-spacing: 0.06em; }
.lp-screen-event { padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--accent-soft); font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.95rem; font-weight: 800; line-height: 1.7; }
.lp-screen-rules { padding: 12px 20px; border-bottom: 1px solid var(--line); font-family: 'Zen Kaku Gothic New', sans-serif; }
.lp-screen-rules summary { color: var(--muted); font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.lp-screen-rules ul { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; list-style: none; }
.lp-screen-rules li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); font-size: 0.78rem; line-height: 1.6; }
.lp-sheet { width: calc(100% - 40px); margin: 16px 20px 0; border-collapse: collapse; font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.86rem; }
.lp-sheet caption { padding-bottom: 8px; color: var(--muted); font-size: 0.78rem; font-weight: 700; text-align: left; }
.lp-sheet th, .lp-sheet td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; line-height: 1.6; }
.lp-sheet th { width: 8.5em; background: var(--wash); font-weight: 700; }
.lp-sheet td:last-child { width: 8em; color: var(--muted); font-size: 0.76rem; }
.lp-sheet-flag td { background: #fff3e8; font-weight: 700; }
.lp-sheet-flag td:last-child span { display: inline-block; padding: 1px 8px; border-radius: 2px; background: var(--orange); color: var(--ink); font-size: 0.72rem; font-weight: 800; }
.lp-items { display: grid; gap: 14px; padding: 18px 20px 6px; }
.lp-item { padding: 18px 20px; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 2px; background: var(--white); font-family: 'Zen Kaku Gothic New', sans-serif; }
.lp-item-none { border-left-color: var(--orange); }
.lp-item-urgent { border-left-color: var(--magenta); }
.lp-item-hold { border-left-color: var(--muted); }
.lp-item header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.lp-item-when { color: var(--muted); font-family: 'Outfit', 'Zen Kaku Gothic New', sans-serif; font-size: 0.78rem; font-weight: 700; }
.lp-item h4 { font-size: 1rem; font-weight: 800; line-height: 1.6; }
.lp-item-proposal { margin-top: 10px; font-size: 0.98rem; font-weight: 800; line-height: 1.7; }
.lp-item-proposal span { display: inline-block; margin-right: 10px; padding: 1px 8px; border-radius: 2px; background: var(--accent); color: var(--white); font-size: 0.7rem; font-weight: 800; vertical-align: 0.12em; }
.lp-item-none .lp-item-proposal span { background: var(--orange); color: var(--ink); }
.lp-item-urgent .lp-item-proposal span { background: var(--magenta); color: var(--ink); }
.lp-item-hold .lp-item-proposal span { background: var(--muted); }
.lp-item-reasons { display: grid; gap: 3px; margin-top: 8px; list-style: none; }
.lp-item-reasons li { position: relative; padding-left: 16px; color: var(--muted); font-size: 0.84rem; line-height: 1.7; }
.lp-item-reasons li::before { content: ''; position: absolute; left: 3px; top: 0.72em; width: 5px; height: 5px; background: var(--line); }
.lp-item-draft { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line); background: var(--paper); color: var(--ink); font-size: 0.86rem; line-height: 1.8; }
.lp-item-edit { display: grid; gap: 10px; margin-top: 14px; }
.lp-item-edit[hidden] { display: none; }
.lp-item-edit label { display: grid; gap: 6px; }
.lp-item-edit label span { color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.lp-item-edit select, .lp-item-edit textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); color: var(--ink); font: inherit; font-size: 0.9rem; line-height: 1.7; }
.lp-item-edit .lp-act { justify-self: start; }
.lp-item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lp-item-actions[hidden] { display: none; }
.lp-act { min-height: 40px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); color: var(--ink); font: inherit; font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.86rem; font-weight: 700; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.lp-act:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); }
.lp-act-primary { background: var(--ink); color: var(--white); }
.lp-act-primary:hover { box-shadow: 2px 2px 0 var(--accent); }
.lp-item-result { margin-top: 12px; padding: 10px 14px; background: var(--wash); font-size: 0.88rem; font-weight: 700; line-height: 1.7; }
.lp-item-result::before { display: inline-block; margin-right: 10px; padding: 1px 8px; border-radius: 2px; background: var(--ink); color: var(--white); font-size: 0.7rem; font-weight: 800; }
.lp-item[data-state="approved"] .lp-item-result::before { content: '承認'; background: var(--accent); }
.lp-item[data-state="edited"] .lp-item-result::before { content: '修正して承認'; background: var(--accent); }
.lp-item[data-state="rejected"] .lp-item-result::before { content: '却下'; }
.lp-item:not([data-state="pending"]) { border-left-color: var(--line); }
.lp-item:not([data-state="pending"]) .lp-item-proposal, .lp-item:not([data-state="pending"]) .lp-item-reasons li, .lp-item:not([data-state="pending"]) .lp-item-draft { color: var(--muted); }
.lp-screen-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--wash); }
.lp-screen-outcome { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.95rem; font-weight: 800; }
/* JSが動かない環境では、押しても何も起きないボタンを出さない */
html:not(.lp-js) .lp-item-actions, html:not(.lp-js) .lp-screen-foot .lp-act { display: none; }

/* ---------- 考え方 ---------- */
.lp-main .feature-card { min-height: 0; }
.lp-main .feature-card h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.55; }

/* ---------- 費用 ---------- */
.lp-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.lp-price article { padding: 28px 28px 24px; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); box-shadow: var(--shadow); }
.lp-price-label { color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; }
.lp-price-amount { margin-top: 4px; font-family: 'Zen Kaku Gothic New', sans-serif; font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.3; }
.lp-price-note { margin-top: 8px; color: var(--muted); font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.9rem; line-height: 1.8; }
.lp-price ul { display: grid; gap: 7px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); list-style: none; }
.lp-price li, .lp-price-terms li { position: relative; padding-left: 22px; font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.88rem; line-height: 1.75; }
.lp-price li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.lp-price-terms { display: grid; gap: 6px; margin-top: 22px; max-width: 760px; list-style: none; color: var(--muted); }
.lp-price-terms li::before { content: '・'; position: absolute; left: 4px; }

.lp-calc { margin-top: 36px; padding: 30px 30px 26px; border: 1px solid var(--line); border-radius: 2px; background: var(--wash); }
.lp-calc h3 { font-size: 1.2rem; font-weight: 900; line-height: 1.5; }
.lp-calc > p { margin-top: 8px; max-width: 760px; color: var(--muted); font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.9rem; line-height: 1.85; }
.lp-calc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin-top: 20px; }
.lp-calc-form label { display: grid; gap: 6px; font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.84rem; font-weight: 700; line-height: 1.6; }
.lp-calc-field { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.lp-calc-form input { width: 9.5em; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); color: var(--ink); font: inherit; font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700; text-align: right; }
.lp-calc-result { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; background: var(--line); }
.lp-calc-result div { padding: 16px 18px; background: var(--white); }
.lp-calc-result dt { color: var(--muted); font-size: 0.72rem; font-weight: 700; line-height: 1.5; }
.lp-calc-result dd { margin-top: 6px; font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 1.2rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.4; }
.lp-calc-result dd small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.7rem; font-weight: 400; letter-spacing: 0; line-height: 1.5; }
.lp-calc-total { background: var(--accent-soft) !important; }
.lp-calc-total dd { color: var(--accent); font-size: 1.45rem; }
.lp-calc .lp-calc-verdict { margin-top: 18px; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--white); color: var(--ink); font-size: 0.94rem; font-weight: 700; }
.lp-calc .lp-calc-verdict[data-tone="low"] { border-left-color: var(--orange); }

/* ---------- 流れ・会社について ---------- */
.lp-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lp-steps article { padding: 22px 18px; }
.lp-proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.lp-proofs article { display: flex; flex-direction: column; padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); }
.lp-proofs h3 { font-size: 1.04rem; font-weight: 800; line-height: 1.55; }
.lp-proofs p { margin-top: 10px; color: var(--muted); font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 0.88rem; line-height: 1.85; }
.lp-proofs .lp-proof-links { display: grid; gap: 4px; margin-top: auto; padding-top: 16px; }
.lp-proof-links a { color: var(--accent); font-size: 0.84rem; font-weight: 700; text-underline-offset: 3px; }

@media (max-width: 1040px) {
  .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-calc-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lp-problems, .lp-proofs { grid-template-columns: 1fr; }
  .lp-main .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .lp-flow, .lp-price, .lp-calc-form, .lp-steps { grid-template-columns: 1fr; }
  .lp-price-strip li { flex: 1 1 140px; min-width: 0; }
  .lp-main .app-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-screen-bar em { margin-left: 0; }
  .lp-items { padding: 14px 12px 4px; }
  .lp-item { padding: 16px 14px; }
  .lp-screen-event, .lp-screen-rules, .lp-screen-foot { padding-left: 14px; padding-right: 14px; }
  .lp-sheet { width: calc(100% - 28px); margin-left: 14px; margin-right: 14px; }
  .lp-sheet td:last-child { width: auto; }
  .lp-calc { padding: 24px 18px 22px; }
  .lp-item-actions .lp-act { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-chip, .lp-act { transition: none; }
}
