/* HUMAC AI活用セミナー資料ライブラリ — humac.info のトークンに準拠 */
:root {
  --ink: #0e1726;
  --ink-soft: #2b3850;
  --muted: #5b6678;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-tint: #f5f7fb;
  --sky: #4ba3dc;
  --accent: #1e63d0;
  --accent-soft: #eaf1fc;
  --warn: #c2410c;
  --warn-soft: #fff1e8;
  --ok: #15803d;
  --ok-soft: #e9f7ee;
  --yellow: #a16207;
  --yellow-soft: #fdf6e3;
  --radius: 12px;
  --font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
}
a { color: var(--accent); }
img { max-width: 100%; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* header */
.lib-header { border-bottom: 1px solid var(--line); background: #fff; }
.lib-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; flex-wrap: wrap; }
.lib-brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: .95rem; }
.lib-brand span { color: var(--accent); }
.lib-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-size: .88rem; font-weight: 500; background: #fff; }
.btn--solid { background: var(--accent); color: #fff; }

/* page head */
.doc-head { padding: 36px 0 20px; }
.doc-id { display: inline-block; font-size: .8rem; font-weight: 700; color: #fff; background: var(--accent); border-radius: 6px; padding: 2px 10px; letter-spacing: .05em; }
.doc-head h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.4; margin: 12px 0 8px; }
.doc-lead { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.doc-meta { color: var(--muted); font-size: .85rem; margin-top: 10px; }

main { padding-bottom: 48px; }
h2 { font-size: 1.3rem; margin: 40px 0 12px; padding-left: 12px; border-left: 5px solid var(--accent); line-height: 1.5; }
h3 { font-size: 1.08rem; margin: 24px 0 8px; color: var(--ink-soft); }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 14px; padding-left: 1.4em; }
li { margin-bottom: 4px; }
strong { color: var(--ink); }

/* tables */
.table-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--bg-tint); font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td.c, th.c { text-align: center; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); }
.part { color: var(--yellow); font-weight: 700; }

/* callouts */
.box { border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; background: var(--bg-tint); border: 1px solid var(--line); }
.box > :last-child { margin-bottom: 0; }
.box--key { background: var(--accent-soft); border-color: #c9dbf6; }
.box--warn { background: var(--warn-soft); border-color: #f6d3bd; }
.box--ok { background: var(--ok-soft); border-color: #c6e8d2; }
.box-title { font-weight: 700; margin-bottom: 6px; }

/* cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 14px 0 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.card h3 { margin-top: 0; color: var(--ink); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin: 0 4px 4px 0; }

/* flow */
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 14px 0 20px; counter-reset: step; }
.flow .step { flex: 1 1 150px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: #fff; position: relative; }
.flow .step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; align-items: center; justify-content: center; margin-bottom: 6px; }
.flow .step b { display: block; }
.flow .step small { color: var(--muted); display: block; line-height: 1.6; }

/* signal */
.sig { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
.sig--g { background: #22a354; } .sig--y { background: #e0a100; } .sig--r { background: #d64545; }

/* prompt blocks */
.prompt { background: #0e1726; color: #e6edf7; border-radius: var(--radius); padding: 14px 16px; font-size: .92rem; white-space: pre-wrap; margin: 10px 0 16px; line-height: 1.7; }
.prompt::before { content: "コピーして使う"; display: block; font-size: .72rem; color: #8fcdf0; margin-bottom: 6px; letter-spacing: .05em; }

/* library index */
.lib-section { margin-top: 28px; }
.doc-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.doc-list li { margin: 0; }
.doc-list a { display: block; height: 100%; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.doc-list a:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(14,23,38,.06); }
.doc-list .t { font-weight: 700; display: block; margin: 4px 0 2px; }
.doc-list .d { font-size: .86rem; color: var(--muted); display: block; line-height: 1.6; }

/* download box */
.dl-box { border: 1.5px solid #22a354; border-radius: var(--radius); padding: 14px 16px; margin: 14px 0 20px; background: var(--ok-soft); }
.dl-title { font-weight: 700; margin-bottom: 10px; }
.dl-main { display: flex; gap: 14px; align-items: center; }
.dl-qr { flex: none; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid #c6e8d2; border-radius: 10px; padding: 8px; }
.dl-qr img { width: 110px; }
.dl-qr span { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.4; }
.dl-links { flex: 1; display: grid; grid-template-columns: 1fr; gap: 8px; }
.dl-btn { display: block; background: #15803d; color: #fff; border-radius: 10px; padding: 10px 12px; text-decoration: none; line-height: 1.5; }
.dl-btn b { display: block; font-size: .92rem; }
.dl-btn span { display: block; font-size: .78rem; opacity: .9; }
.dl-btn--sub { background: #fff; color: var(--ink); border: 1px solid #c6e8d2; }
.dl-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 640px) { .dl-main { flex-direction: column; align-items: stretch; } .dl-qr { align-self: center; } }
@media print { .dl-btn { background: #fff !important; color: var(--ink) !important; border: 1px solid #c6e8d2; } }

/* course navigation */
.course-crumb { background: var(--accent-soft); border-bottom: 1px solid #c9dbf6; font-size: .85rem; }
.course-crumb .wrap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-block: 8px; }
.course-crumb a { color: var(--accent); text-decoration: none; }
.course-crumb span { color: var(--muted); }
.course-nav { margin-top: 36px; border-top: 2px solid var(--line); padding-top: 18px; }
.course-nav-title { font-weight: 700; margin-bottom: 10px; }
.course-nav-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.course-nav-list a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; text-decoration: none; font-size: .88rem; }
.course-nav-list small { color: var(--muted); margin-left: 4px; }
.course-nav-all { font-size: .88rem; }
.pn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pn { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; line-height: 1.5; }
.pn small { display: block; color: var(--accent); font-weight: 500; font-size: .8rem; }
.pn.next { text-align: right; background: var(--accent-soft); border-color: #c9dbf6; }
.course-groups { display: grid; gap: 14px; }
.course-group { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 10px; align-items: stretch; }
.course-group-title { font-weight: 700; color: var(--accent); display: flex; align-items: center; }
.course-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--ink); background: #fff; }
.course-card:hover { border-color: var(--accent); }
.course-card b { display: block; }
.course-card span, .course-card small { display: block; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.course-seq { padding-left: 1.4em; }
.course-seq li { margin-bottom: 8px; }
.course-seq a { text-decoration: none; }
@media (max-width: 640px) { .course-group { grid-template-columns: 1fr; } .pn-row { grid-template-columns: 1fr; } .pn.next { text-align: left; } }

/* app QR */
.app-qr { border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0 20px; background: #fff; }
.app-qr-title { font-weight: 700; margin-bottom: 10px; font-size: .95rem; }
.app-qr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.app-qr-item { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.app-qr-item img { width: 100%; max-width: 120px; }
.app-qr-item b { font-size: .9rem; margin-top: 4px; }
.app-qr-item span { font-size: .75rem; color: var(--muted); }
.app-qr-note { font-size: .8rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 520px) { .app-qr-grid { grid-template-columns: repeat(2, 1fr); } }

/* sources */
.sources { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 40px; padding-top: 14px; }
.sources ul { padding-left: 1.2em; }
.sources a { word-break: break-all; }

/* footer */
.lib-footer { background: var(--ink); color: #c4ccda; font-size: .85rem; padding: 24px 0; }
.lib-footer a { color: #c4ccda; }

/* worksheet */
.write { border-bottom: 1px dashed #b7c1d1; min-height: 32px; margin-bottom: 8px; }
.ws-table td { height: 44px; }

@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { font-size: 11pt; line-height: 1.65; }
  .lib-header, .lib-footer, .no-print, .course-crumb, .course-nav { display: none !important; }
  .doc-head { padding-top: 0; }
  h2 { break-after: avoid; margin-top: 22px; }
  .table-wrap { overflow: visible; border: none; }
  table { min-width: 0; font-size: 9.5pt; border: 1px solid var(--line); }
  tr, .card, .box, .step, .prompt, .app-qr, .dl-box { break-inside: avoid; }
  h3 { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
  .sources a::after { content: " (" attr(href) ")"; font-size: 8pt; }
  .prompt { background: #f3f5f9; color: var(--ink); border: 1px solid var(--line); }
  .prompt::before { color: var(--muted); }
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}

.intent-list { list-style: none; padding: 0; margin: 8px 0 0; }
.intent-list li { margin: 6px 0; }
.intent-list a { text-decoration: none; color: inherit; }
.intent-list a:hover { color: var(--accent); }
.tag-chip { display: inline-block; font-size: .85rem; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin: 0 6px 8px 0; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: st; }
.steps li { counter-increment: st; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.steps li::before { content: counter(st); display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; margin-bottom: 6px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { font-size: .9rem; color: var(--muted); line-height: 1.7; display: block; }

.now-panel { background: var(--accent-soft); border: 1px solid #c9dbf6; border-radius: var(--radius); padding: 18px 20px 8px; }
.now-panel h2 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.now-panel h2 small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.now-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0452b; display: inline-block; animation: nowpulse 1.8s ease-in-out infinite; }
@keyframes nowpulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .now-dot { animation: none; } }
.now-lead { margin: 0 0 4px; color: var(--muted); font-size: .9rem; }
.now-card h3 { margin: 6px 0 6px; font-size: 1rem; }
.now-card p { font-size: .9rem; line-height: 1.7; }
.now-docs { margin: 6px 0 0; }
.now-src { margin: 6px 0 0; font-size: .78rem; color: var(--muted); }
.new-pill { display: inline-block; margin-left: 8px; font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #e0452b; color: #fff; vertical-align: 2px; }
@media print { .now-panel, .new-pill { display: none; } }

.prompt.tree::before { content: "フォルダの形"; }
.prompt.tree { line-height: 1.8; }

.tool-badge { display: inline-block; margin-left: 8px; font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #1a2b4c; color: #fff; vertical-align: 2px; }
.doc-head .tool-badge { font-size: .75rem; padding: 2px 10px; margin-left: 10px; }
.tool-note { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; background: #eef2fa; border: 1px solid #c9dbf6; border-left: 4px solid #1a2b4c; border-radius: 0 var(--radius) var(--radius) 0; padding: 10px 14px; margin: 0 0 18px; font-size: .92rem; line-height: 1.7; }
.tool-note-label { font-weight: 700; color: #1a2b4c; white-space: nowrap; }

.tool-note { flex-direction: column; align-items: flex-start; gap: 4px; }
.tool-note-aud { display: block; margin-top: 4px; padding-top: 6px; border-top: 1px dashed #c9dbf6; }

.section-note { background: var(--accent-soft); border: 1px solid #c9dbf6; border-radius: var(--radius); padding: 8px 12px; font-size: .9rem; margin: 0 0 12px; }

/* new top */
.hero h1 { font-size: 1.7rem; line-height: 1.4; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
a.card.pick { text-decoration: none; color: inherit; }
a.card.pick:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(14,23,38,.06); }
.core-list { list-style: none; counter-reset: core; padding: 0; display: grid; gap: 8px; }
.core-list li { counter-increment: core; margin: 0; }
.core-list a { display: grid; grid-template-columns: 2rem 1fr; column-gap: 10px; align-items: baseline; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: #fff; }
.core-list a::before { content: counter(core); grid-row: 1 / 3; font-weight: 700; color: var(--accent); font-size: 1.2rem; }
.core-list a:hover { border-color: var(--accent); }
.core-list .doc-id { display: none; }
.core-list .t { font-weight: 700; }
.core-list .d { font-size: .86rem; color: var(--muted); }
details.fold > summary { cursor: pointer; font-weight: 700; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
details.fold[open] > summary { margin-bottom: 12px; }
.rest-h { margin: 14px 0 4px; } .rest-list { margin: 0; padding-left: 1.2rem; } .rest-list li { margin: 2px 0; font-size: .92rem; }
details.fold h3 { margin-top: 20px; }
