/* RSYS 操作マニュアル プレミアムスタイルシート */

/* 基本タイポグラフィ */
body {
  line-height: 1.9;
  color: #334155;
  background-color: #f8fafc;
}

/* スティッキーサイドバー */
.manual-sidebar {
  position: sticky;
  top: 110px;
  transition: all 0.3s ease;
}

/* ナビゲーションメニュー */
.nav-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.2rem;
  border-radius: 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  margin-bottom: 0.25rem;
}

.nav-link:hover {
  background-color: #f1f5f9;
  color: #2563eb;
  transform: translateX(4px);
}

.nav-link.active {
  background-color: #ffffff;
  color: #2563eb;
  border-color: #e2e8f0;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* メインコンテンツエリア */
.manual-content {
  background-color: transparent;
}

.manual-content section {
  scroll-margin-top: 120px;
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  margin-bottom: 3rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

/* 見出しデザイン */
.manual-content h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.025em;
}

.manual-content h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #e2e8f0, transparent);
  margin-left: 1rem;
}

.manual-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 5px solid #f97316; /* オレンジのアクセント */
  display: flex;
  align-items: center;
}

/* 解説テーブル */
.manual-table {
  width: 100%;
  margin: 2rem 0;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.manual-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.manual-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.925rem;
  vertical-align: top;
}

.manual-table tr:last-child td {
  border-bottom: none;
}

.manual-table tr:hover td {
  background-color: #f8fafc;
}

/* 番号ラベル（テーブルの左端） */
.manual-table td:first-child {
  font-weight: 900;
  color: #2563eb;
  background-color: #f8fafc;
  width: 60px;
  text-align: center;
  font-size: 1rem;
}

/* 手順リスト（箇条書き） */
.manual-list {
  counter-reset: manual-counter;
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}

.manual-list li {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.manual-list li::before {
  counter-increment: manual-counter;
  content: counter(manual-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  background-color: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

/* 画像コンテナ */
.manual-img-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
}

.manual-img-box img {
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

.img-caption {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 1rem;
  display: block;
  font-weight: 500;
}

/* トラブルシューティング（警告） */
.trouble-box {
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
  border-left-width: 6px;
  border-left-color: #f43f5e;
  padding: 2rem;
  margin: 2.5rem 0;
  border-radius: 1rem;
}

.trouble-box h4 {
  color: #9f1239;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 成功・ヒント */
.success-box {
  background-color: #f0fdf4;
  border: 1px solid #dcfce7;
  border-left-width: 6px;
  border-left-color: #22c55e;
  padding: 2rem;
  margin: 2.5rem 0;
  border-radius: 1rem;
}

/* コード・タグ表示 */
code {
  background-color: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  color: #2563eb;
  border: 1px solid #e2e8f0;
}

/* モバイル対応 */
@media (max-width: 1024px) {
  .manual-sidebar {
      position: static;
      margin-bottom: 2rem;
  }
  .manual-content section {
      padding: 1.5rem;
  }
}