/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基本のタイポグラフィと背景 */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #2C3E50; /* 文字色（深みのあるネイビ） */
  background-color: #fff;
  padding: 20px;
}

/* レイアウトの中央寄せ */
header, main, footer {
  max-width: 960px;
  margin: 0 auto;
}

/* ヘッダー */
header {
  padding: 20px 0;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

header h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

/* ナビゲーション */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #007BFF;
}

nav a:hover {
  text-decoration: underline;
}

/* セクションのスタイル */
main section {
  margin: 40px 0;
}

main section h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

/* フッター */
footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #ccc;
  font-size: 0.9em;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  header, main, footer {
    padding: 10px;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* リスト揃え */
ul {
  list-style-type: disc;
  margin: 0;
  padding-left: 1.5em;
}

li {
  text-indent: 0em;
  margin-bottom: 0.5em;
}

p {
  text-align: justify;
  margin-bottom: 20px;
}

/* リンクの色 */
a {
  color: #34495E; /* ネイビー系 */
  text-decoration: underline;
}

a:hover {
  color: #1A252F; /* ホバー時に少し暗め */
}

code {
  font-family: "Fira Code", Consolas, monospace;
  font-size: 0.95em;
  background-color: #1e1e1e; /* Dark background for contrast */
  color: #c5c8c6; /* Light text for readability */
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #333; /* Subtle border for definition */
  display: inline-block;
  white-space: pre-wrap; /* Prevents overflow */
  line-height: 1.4;
}

/* Block code styling */
pre {
  background-color: #1e1e1e;
  color: #c5c8c6;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #333;
  overflow-x: auto; /* Enables horizontal scrolling */
  font-family: "Fira Code", Consolas, monospace;
  line-height: 1.6;
}

/* Highlighting for inline code inside paragraphs */
p code {
  background-color: #282c34;
  color: #e06c75;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  pre {
    font-size: 0.9em;
    padding: 8px;
  }
}
