/* 操作マニュアルページ専用スタイル */

.manual-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -10px rgba(15, 23, 42, 0.08);
  padding: 1.25rem 1.5rem;
}

.manual-h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
}

.manual-h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f766e;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.6rem;
  border-left: 3px solid #10b981;
}

.manual-h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.manual-body p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #475569;
}

.manual-link {
  color: #0d9488;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.manual-link:hover { color: #0f766e; }

.manual-body code {
  background: #f1f5f9;
  color: #be185d;
  padding: 0.08rem 0.35rem;
  border-radius: 0.3rem;
  font-size: 0.8em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

.manual-code {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0.6rem 0;
}
.manual-code code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  white-space: pre;
  word-break: normal;
}

/* リスト */
.manual-ul, .manual-ol { margin: 0.5rem 0 0.5rem 0; padding-left: 1.25rem; }
.manual-ul { list-style: disc; }
.manual-ol { list-style: decimal; }
.manual-ul li, .manual-ol li {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 0.3rem;
}

/* テーブル */
.manual-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0;
  font-size: 0.82rem;
}
.manual-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  text-align: left;
  padding: 0.5rem 0.7rem;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}
.manual-table td {
  padding: 0.5rem 0.7rem;
  border: 1px solid #e2e8f0;
  color: #475569;
  vertical-align: top;
  line-height: 1.6;
}
.manual-table tr:nth-child(even) td { background: #fafbfc; }

/* ステップ（クイックスタート） */
.manual-steps { list-style: none; padding: 0; margin: 0.5rem 0; counter-reset: none; }
.manual-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}
.manual-steps li:last-child { border-bottom: none; }
.manual-step-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 9999px;
  background: #10b981;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* カード（概要） */
.manual-grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .manual-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.manual-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  padding: 0.9rem;
}
.manual-card h4 { font-weight: 700; color: #1e293b; margin: 0.4rem 0 0.2rem; font-size: 0.9rem; }
.manual-card p { font-size: 0.8rem; color: #64748b; margin: 0; line-height: 1.5; }

/* 注記ボックス */
.manual-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0.6rem 0;
}
.manual-note i { margin-top: 0.15rem; font-size: 0.95rem; flex-shrink: 0; }
.manual-note code { background: rgba(255,255,255,0.6); }
.manual-note--info { background: #ecfeff; border: 1px solid #a5f3fc; color: #0e7490; }
.manual-note--info i { color: #06b6d4; }
.manual-note--warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.manual-note--warn i { color: #f59e0b; }
.manual-note--danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.manual-note--danger i { color: #ef4444; }

.manual-small { font-size: 0.78rem; color: #64748b; line-height: 1.6; }
.manual-emoji { font-style: normal; }

/* FAQ */
.manual-faq details {
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.manual-faq summary {
  cursor: pointer;
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: #1e293b;
  background: #f8fafc;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.manual-faq summary::-webkit-details-marker { display: none; }
.manual-faq summary::before {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  color: #10b981;
  transition: transform 0.2s;
}
.manual-faq details[open] summary::before { transform: rotate(90deg); }
.manual-faq details[open] summary { border-bottom: 1px solid #e2e8f0; }
.manual-faq p {
  padding: 0.7rem 0.9rem;
  font-size: 0.83rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* 目次 アクティブ表示 */
.manual-toc-link.is-active {
  background: #ecfdf5;
  color: #047857 !important;
  font-weight: 700;
}
