/* ==========================================================================
   Article & Manual Page Styles (article.css)
   ========================================================================== */

/* 記事・ドキュメントラッパー */
.article-wrap {
  max-width: 880px;
  margin: 40px auto 80px;
  background: var(--surface);
  padding: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.badge-feature {
  display: inline-block;
  background-color: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.article-title {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--accent);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.article-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--accent-light);
  margin-bottom: 35px;
}

.article-section {
  margin-bottom: 45px;
}

.article-section h2 {
  font-size: 1.35rem;
  color: var(--accent);
  border-left: 4px solid var(--primary);
  padding-left: 14px;
  margin-bottom: 20px;
}

.article-section p {
  margin-bottom: 16px;
  color: var(--text-main);
  line-height: 1.8;
}

/* チェックリスト */
.check-list {
  list-style: none;
  background: var(--bg-main);
  padding: 24px 28px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.check-list li:last-child {
  margin-bottom: 0;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* 特長グリッド */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* 比較テーブル */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
}

.comp-table th, 
.comp-table td {
  border: 1px solid var(--border-color);
  padding: 16px;
  font-size: 0.925rem;
  vertical-align: middle;
}

.comp-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--accent);
  text-align: left;
}

.comp-table td.after {
  background: #f0fdf4;
  font-weight: 600;
  color: #166534;
}

/* サポート案内ブロック */
.support-box {
  background: var(--primary-soft);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  padding: 28px;
  margin-top: 25px;
}

.support-box h3 {
  font-size: 1.15rem;
  color: #0369a1;
  margin-bottom: 12px;
}

.support-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* CTAエリア */
.cta-area {
  text-align: center;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.cta-area h2 {
  font-size: 1.45rem;
  color: var(--accent);
  margin-bottom: 12px;
  border: none;
  padding-left: 0;
}

.cta-area p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 重要通知ボックス（ハードウェア設定マニュアル等） */
.important-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  border-radius: var(--radius-sm);
  padding: 28px;
  margin-bottom: 35px;
}

.important-title {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 16px;
}

.important-notice p {
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 0;
}

.important-notice p + p {
  margin-top: 12px;
}

/* 操作マニュアル専用スタイル */
.screen-container {
  background-color: var(--surface);
  padding: 32px;
  margin-bottom: 35px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.screen-container h2 {
  color: var(--primary);
  margin-top: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.screen-image-wrapper {
  text-align: center;
  margin: 24px 0;
}

.screen-image {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
}

.element-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.element-item {
  display: flex;
  align-items: flex-start;
  background-color: #fcfcfc;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.925rem;
}

.element-number {
  background-color: #ef4444;
  color: #ffffff;
  font-weight: 700;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.element-title {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .article-wrap {
    padding: 24px 18px;
    margin: 20px auto;
  }
  .article-title {
    font-size: 1.45rem;
  }
  .feature-grid,
  .element-list {
    grid-template-columns: 1fr;
  }
  .important-notice {
    padding: 18px;
  }
  .comp-table th, 
  .comp-table td {
    padding: 10px;
    font-size: 0.85rem;
  }
  .btn-group {
    flex-direction: column;
  }
  .btn-group .btn {
    width: 100%;
  }
}

/* 印刷用スタイル（改ページ制御） */
@media print {
  .site-header, 
  .site-footer, 
  .breadcrumb, 
  .cta-area {
    display: none !important;
  }
  body {
    background: #ffffff;
    font-size: 12pt;
    color: #000000;
  }
  .article-wrap {
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    max-width: 100%;
  }
  .screen-container {
    page-break-before: always;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    padding: 16px 0;
    margin: 0;
  }
}