/* ヘルプのページ（help-build.js が作る。手で直さない） */
/* ページの終わりの「入れる」ボタン */
.help-cta { margin-top: -40px; padding: 0 0 88px; }
.help-cta-box { max-width: 680px; margin: 0 auto; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; text-align: center; }
.help-cta-box b { display: block; font-size: 1.15rem; }
.help-cta-box p { margin: 8px 0 20px; color: var(--text-secondary); font-size: 0.98rem; line-height: 1.8; }
.help-search { max-width: 620px; margin: 28px auto 0; position: relative; }
.help-search i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--text-tertiary); }
.help-search input { width: 100%; padding: 16px 20px 16px 52px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--bg-white); font: inherit; font-size: 1.02rem; color: var(--text); outline: none; }
.help-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.help-results { max-width: 620px; margin: 12px auto 0; text-align: left; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.help-results a { display: block; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.help-results a:last-child { border-bottom: 0; }
.help-results a:hover, .help-results a:focus { background: var(--accent-soft); outline: none; }
.help-results b { font-weight: 600; }
.help-results small { display: block; color: var(--text-tertiary); font-size: 0.86rem; margin-top: 2px; }
.help-results .none { padding: 14px 18px; color: var(--text-secondary); }
.help-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.help-cat { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); transition: transform var(--transition), box-shadow var(--transition); }
.help-cat:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); }
.help-cat > i { font-size: 1.7rem; color: var(--accent); }
.help-cat b { font-size: 1.12rem; }
.help-cat span { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.help-cat em { font-style: normal; color: var(--text-tertiary); font-size: 0.85rem; margin-top: auto; padding-top: 6px; }
.help-pro { display: inline-block; vertical-align: middle; padding: 1px 8px; border-radius: var(--radius-pill); background: #ff6b6b; color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; -webkit-text-fill-color: #fff; }
.help-pro.big { font-size: 0.85rem; padding: 3px 12px; }
.help-hero { padding-bottom: 24px; }
.help-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.help-hero h1 > i { color: var(--accent); font-size: 0.9em; }
.help-crumb { margin: 0 0 14px; font-size: 0.92rem; color: var(--text-tertiary); }
.help-crumb a { color: var(--accent); }
.help-crumb i { font-size: 0.8rem; }
.help-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.help-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 120px); overflow: auto; font-size: 0.92rem; }
.help-toc b { color: var(--text-tertiary); font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; }
.help-toc a { padding: 5px 10px; border-radius: 8px; color: var(--text-secondary); }
.help-toc a:hover { background: var(--accent-soft); color: var(--accent); }
.help-items { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.help-item { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; scroll-margin-top: 96px; }
.help-item:target { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.help-item h2 { font-size: 1.3rem; letter-spacing: 0; line-height: 1.4; margin: 0; }
.help-what { margin-top: 8px; font-size: 1.05rem; color: var(--text); }
.help-where { margin-top: 8px; display: flex; gap: 6px; align-items: baseline; color: var(--text-tertiary); font-size: 0.92rem; }
.help-where i { color: var(--accent); transform: translateY(2px); }
.help-text { margin-top: 12px; color: var(--text-secondary); line-height: 1.85; }
.help-video { margin: 18px 0 0; }
.help-video img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border-strong); background: #f2f2f2; }
.help-video img.panel { max-width: 440px; }
.help-video figcaption { margin-top: 8px; display: flex; gap: 6px; align-items: baseline; color: var(--text-tertiary); font-size: 0.9rem; line-height: 1.6; }
.help-related { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.93rem; }
.help-related b { display: block; color: var(--text-tertiary); font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; }
.help-related ul { list-style: none; margin: 0; padding: 0; }
.help-related li { padding: 3px 0; }
.help-related a { color: var(--accent); }
.help-related a:hover { text-decoration: underline; }
.uc-entry { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 20px 24px; background: var(--bg-white); border: 1px solid var(--accent); border-radius: var(--radius); box-shadow: 0 0 0 4px var(--accent-soft); }
.uc-entry > i:first-child { font-size: 1.8rem; color: var(--accent); }
.uc-entry > i:last-child { margin-left: auto; color: var(--accent); }
.uc-entry span { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.uc-entry b { display: block; color: var(--text); font-size: 1.12rem; }
.uc-cycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.uc-step { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.uc-step em { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-weight: 700; font-size: 0.85rem; margin-right: 8px; }
.uc-step b { font-size: 1.08rem; }
.uc-step p { margin-top: 10px; color: var(--text-secondary); font-size: 0.93rem; line-height: 1.7; }
.uc-links a, .uc-flow a { color: var(--accent); font-size: 0.88rem; }
.uc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 18px; }
.uc-jump a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--bg-white); border: 1px solid var(--border); font-size: 0.93rem; }
.uc-jump a:hover { border-color: var(--accent); color: var(--accent); }
.uc-cases h2 > i { color: var(--accent); }
.uc-trouble { margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--bg); color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.uc-trouble b { display: block; font-size: 0.8rem; color: var(--text-tertiary); font-weight: 600; }
.uc-flow { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: uc; }
.uc-flow li { counter-increment: uc; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0 10px 34px; border-top: 1px solid var(--border); position: relative; line-height: 1.6; }
.uc-flow li::before { content: counter(uc); position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.uc-flow li { display: block; }
.uc-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.uc-text span { flex: 1 1 320px; }
.uc-flow img { display: block; width: 100%; height: auto; margin-top: 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: #f2f2f2; }
.uc-flow img.panel { max-width: 380px; }
.uc-walk { margin: 16px 0 0; }
.uc-walk img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border-strong); background: #f2f2f2; }
.uc-walk figcaption { margin-top: 8px; color: var(--text-tertiary); font-size: 0.9rem; }
.uc-before { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.uc-before figure { margin: 0; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.uc-before img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border-strong); }
.uc-before figcaption { margin-top: 10px; color: var(--text-secondary); font-size: 0.93rem; line-height: 1.7; }
.uc-before figcaption b { display: block; color: var(--text); font-size: 1.02rem; }
@media (max-width: 700px) { .uc-before { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .uc-cycle { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .uc-cycle { grid-template-columns: 1fr; } }
.help-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 18px; font-size: 0.95rem; }
.help-nav a { color: var(--accent); font-weight: 600; }
.help-nav a:last-child { text-align: right; }
.help-nav a:nth-child(2) { color: var(--text-secondary); font-weight: 500; }
@media (max-width: 860px) {
  .help-layout { grid-template-columns: 1fr; gap: 18px; }
  .help-toc { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .help-toc b { width: 100%; }
  .help-toc a { background: var(--bg-white); border: 1px solid var(--border); padding: 4px 10px; }
  .help-item { padding: 20px 18px; }
}
@media (max-width: 560px) { .help-hero { padding-top: 136px; } }
