/* ===========================
   サーバー設定ガイド — guide.css
   =========================== */

:root {
  --navy:       #1A2F5A;
  --navy-mid:   #243F73;
  --gold:       #B89A60;
  --gold-light: #D4B880;
  --text:       #222222;
  --text-light: #666666;
  --white:      #FFFFFF;
  --bg-light:   #F4F6FA;
  --bg-warm:    #FDFBF7;
  --border:     #DEE3EE;
  --green:      #2E7D52;
  --green-bg:   #EAF5EE;
  --amber:      #B45309;
  --amber-bg:   #FEF3C7;
  --red:        #C0392B;
  --red-bg:     #FEF2F2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg-warm);
  line-height: 1.85;
}
a { color: var(--navy); text-decoration: underline; }
code {
  font-family: 'Courier New', Courier, monospace;
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--navy-mid);
}
pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* --- ヘッダー --- */
.guide-header {
  background: var(--navy);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo-mark {
  width: 32px; height: 32px;
  background: var(--gold);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.05em; }

.print-btn {
  padding: 7px 18px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.print-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

/* --- メインレイアウト --- */
.guide-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* --- ヒーローセクション --- */
.hero-section {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.server-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.hero-section h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.9;
  margin-bottom: 32px;
}

/* 目次 */
.toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 24px 28px;
  display: inline-block;
  min-width: 320px;
}
.toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.toc-list { padding-left: 20px; }
.toc-list li { font-size: 0.86rem; margin-bottom: 8px; }
.toc-list a { color: var(--navy); }
.toc-list a:hover { color: var(--gold); }

/* --- ガイドセクション --- */
.guide-section {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section-num {
  font-family: 'Lato', sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: -8px;
}
.guide-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.guide-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 16px;
}
.guide-section h3:first-of-type { margin-top: 24px; }
.guide-section p { font-size: 0.9rem; color: var(--text); margin-bottom: 12px; line-height: 1.9; }

/* カードグリッド */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.concept-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  background: var(--white);
}
.concept-icon { color: var(--navy); margin-bottom: 14px; opacity: 0.7; }
.concept-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.concept-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.8; }
.concept-example { font-size: 0.78rem; color: var(--gold); font-weight: 500; margin-top: 8px; }

/* ステップリスト */
.step-list { display: flex; flex-direction: column; gap: 0; margin: 20px 0; }
.step-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 32px; height: 32px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-body { flex: 1; }
.step-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-body p { font-size: 0.86rem; color: var(--text); line-height: 1.85; margin-bottom: 8px; }
.step-body p:last-child { margin-bottom: 0; }

/* コードブロック */
.code-block {
  background: #1E2A3B;
  padding: 20px 24px;
  margin: 16px 0;
  border-radius: 2px;
}
.code-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.code-block code,
.code-block pre {
  display: block;
  color: #A8D8A8;
  background: none;
  padding: 3px 0;
  font-size: 0.86rem;
  border-radius: 0;
}

/* 情報ボックス */
.info-box {
  background: #EBF2FA;
  border-left: 4px solid var(--navy);
  padding: 16px 20px;
  margin: 20px 0;
}
.info-box-title { font-weight: 700; font-size: 0.88rem; color: var(--navy); margin-bottom: 6px; }
.info-box p { font-size: 0.85rem; color: var(--text); margin: 0; }

/* Tipボックス */
.tip-box {
  background: var(--green-bg);
  border-left: 4px solid var(--green);
  padding: 14px 18px;
  margin-top: 12px;
}
.tip-title { font-weight: 700; font-size: 0.82rem; color: var(--green); margin-bottom: 6px; }
.tip-box ul { padding-left: 18px; }
.tip-box li { font-size: 0.82rem; color: var(--text); margin-bottom: 4px; line-height: 1.7; }

/* 注意ボックス */
.warning-box {
  background: var(--amber-bg);
  border-left: 4px solid var(--amber);
  padding: 16px 20px;
  margin: 20px 0;
}
.warning-title { font-weight: 700; font-size: 0.88rem; color: var(--amber); margin-bottom: 6px; }
.warning-box p { font-size: 0.85rem; color: var(--text); margin: 0; }

/* チェックリスト */
.checklist { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.check-item:hover { background: var(--bg-light); }
.check-item input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--navy);
}

/* トラブルシューティング */
.trouble-list { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.trouble-item {
  padding: 20px 24px;
  border: 1px solid var(--border);
  background: var(--white);
}
.trouble-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 3px solid var(--red);
}
.trouble-item p { font-size: 0.85rem; color: var(--text); margin-bottom: 6px; line-height: 1.8; }
.trouble-item p:last-child { margin-bottom: 0; }

/* サポートボックス */
.support-box {
  background: var(--navy);
  color: var(--white);
  padding: 28px 32px;
  margin-top: 32px;
  text-align: center;
}
.support-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.support-box p { font-size: 0.86rem; color: rgba(255,255,255,0.8); line-height: 1.9; margin: 0; }
.support-box p + p { margin-top: 6px; }

/* フッター */
.guide-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}
.guide-footer p { font-size: 0.76rem; color: var(--text-light); margin-bottom: 4px; }

/* --- レスポンシブ --- */
@media (max-width: 640px) {
  .guide-header { padding: 0 20px; }
  .guide-main { padding: 0 16px 60px; }
  .card-grid { grid-template-columns: 1fr; }
  .step-item { gap: 14px; }
  .toc { min-width: auto; width: 100%; }
}

/* --- 印刷スタイル --- */
@media print {
  .guide-header { position: static; }
  .print-btn { display: none; }
  .guide-section { break-inside: avoid; }
  .code-block { background: #333; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: var(--navy); text-decoration: none; }
  .check-item { break-inside: avoid; }
}
