/* ガイド専用スタイル */

/* アイコンの調整 */
.step-icon .icon,
.guide-card-icon .icon,
.article-icon .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.popular-icon {
  flex-shrink: 0;
}

/* ガイドヘッダー */
.guide-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
  text-align: center;
}

.guide-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.guide-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* 検索バー */
.guide-search {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* クイックスタート */
.quick-start {
  padding: 40px 0;
  background: var(--bg-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.step-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.step-number {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.step-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.step-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}

.step-link:hover {
  color: var(--primary-dark);
}

/* 機能ガイドカード */
.feature-guides {
  padding: 40px 0;
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.guide-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.guide-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.guide-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
}

.guide-card-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.guide-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.guide-card-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.guide-card-topics {
  list-style: none;
  margin-bottom: 12px;
}

.guide-card-topics li {
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
  font-size: 13px;
  color: var(--text-secondary);
}

.guide-card-topics li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.guide-card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}

.guide-card-link:hover {
  color: var(--primary-dark);
}

/* クイックリンク */
.quick-links {
  padding: 40px 0;
  background: var(--bg-white);
}

.popular-guides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.popular-guide-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s;
}

.popular-guide-item:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  transform: translateX(4px);
}

.popular-icon {
  font-size: 24px;
}

/* サポートセクション */
.support-section {
  padding: 40px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.support-card {
  text-align: center;
  color: white;
}

.support-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.support-card p {
  font-size: 16px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.support-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.support-section .btn-primary {
  background: white;
  color: var(--primary);
}

.support-section .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.support-section .btn-secondary:hover {
  background: white;
  color: var(--primary);
}

/* ナビゲーション - アクティブ状態 */
.nav a.active {
  color: var(--primary);
  font-weight: 600;
}

/* パンくずリスト */
.breadcrumb {
  padding: 16px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  margin-top: 70px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--text-muted);
}

.breadcrumb span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* ガイド記事 */
.guide-article {
  padding: 40px 0;
  background: var(--bg-white);
}

.guide-article .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

.guide-content {
  min-width: 0; /* グリッドアイテムのオーバーフローを防ぐ */
  display: block; /* 明示的にブロック要素として表示 */
}

/* 記事ヘッダー */
.article-header {
  margin-bottom: 32px;
}

.article-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.article-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.article-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 記事セクション */
.article-section {
  margin-bottom: 40px;
}

.section-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--primary);
}

/* インフォボックス */
.info-box, .tips-box, .warning-box {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  line-height: 1.6;
}

.info-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-left: 4px solid #3b82f6;
}

.tips-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-left: 4px solid #10b981;
}

.warning-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
  border-left: 4px solid #f59e0b;
}

.info-box p, .tips-box p, .warning-box p {
  font-size: 14px;
  color: var(--text-secondary);
}

.info-box strong, .tips-box strong, .warning-box strong {
  color: var(--text-primary);
}

.tips-box ul, .warning-box ul {
  margin-top: 12px;
  margin-left: 20px;
}

/* ステップバイステップ */
.step-by-step {
  margin: 24px 0;
  max-width: 800px; /* 左から中央にかけて配置 */
  margin-left: 0; /* 左端から開始 */
  margin-right: auto; /* 右側は自動マージンで中央寄せ */
  width: 100%; /* 親要素の幅に合わせる */
}

.guide-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.guide-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.guide-step-number {
  flex-shrink: 0;
  width: 64px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.guide-step-content {
  flex: 1;
}

.guide-step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.guide-step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.step-by-step.compact .guide-step {
  margin-bottom: 20px;
  padding-bottom: 20px;
}

/* スクリーンショットプレースホルダー */
.screenshot-placeholder {
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 12px;
}

/* 機能ハイライト */
.feature-highlight {
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}

.feature-highlight h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.feature-highlight ol {
  margin-left: 20px;
}

.feature-highlight li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  margin-top: 24px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.faq-answer {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer ul {
  margin-left: 24px;
  margin-top: 8px;
}

.faq-answer li {
  margin-bottom: 8px;
}

/* 次のガイド */
/* 次のステップとサポートの横並び */
.next-steps-and-support {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-top: 32px;
}

.next-steps-section {
  flex: 1;
  margin-bottom: 0;
}

.next-steps-section .next-guides {
  grid-template-columns: 1fr;
  gap: 12px;
}

.next-guides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.next-guide-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s;
}

.next-guide-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.next-guide-icon {
  flex-shrink: 0;
  font-size: 36px;
}

.next-guide-content {
  flex: 1;
}

.next-guide-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.next-guide-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.next-guide-arrow {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--primary);
}

/* サイドバー */
.guide-sidebar {
  position: relative;
}

.sidebar-sticky {
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.sidebar-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 24px;
}

.sidebar-toc li {
  margin-bottom: 8px;
}

.sidebar-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.sidebar-toc a:hover {
  color: var(--primary);
  background: var(--bg-light);
}

/* サイドバー内のボックス */
.guide-sidebar .info-box,
.guide-sidebar .tips-box,
.guide-sidebar .warning-box {
  font-size: 13px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.guide-sidebar .info-box p,
.guide-sidebar .tips-box p,
.guide-sidebar .warning-box p {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
}

.sidebar-cta {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.sidebar-cta h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.sidebar-cta p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* 記事サポート */
.article-support {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-top: 0;
  flex-shrink: 0;
  width: 320px;
}

.next-steps-and-support .article-support {
  margin-top: 0;
}

.article-support h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.article-support p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .guide-title {
    font-size: 32px;
  }
  
  .guide-subtitle {
    font-size: 16px;
  }
  
  .guide-search {
    flex-direction: column;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .guide-cards {
    grid-template-columns: 1fr;
  }
  
  .popular-guides {
    grid-template-columns: 1fr;
  }
  
  .guide-article .container {
    grid-template-columns: 1fr;
  }
  
  .guide-sidebar {
    order: -1;
  }
  
  .sidebar-sticky {
    position: static;
  }
  
  .next-steps-and-support {
    flex-direction: column;
    gap: 24px;
  }
  
  .next-steps-section .next-guides {
    grid-template-columns: 1fr;
  }
  
  .article-support {
    width: 100%;
  }
  
  .next-guides {
    grid-template-columns: 1fr;
  }
  
  .guide-step {
    flex-direction: column;
  }
  
  .support-buttons {
    flex-direction: column;
  }
}

