/* デフォルト（モバイル）用 */
html,
body {
  font-size: 16px;
  /* モバイルは小さめ */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* PC用（画面幅768px以上など） */
@media screen and (min-width: 768px) {
  html,
  body {
    font-size: 30px;
    /* PCは大きく */
  }
}

.weather > div:first-child {
  margin-bottom: 0;
  /* 「お天気情報☀」の下のマージンをなくす */
  padding-bottom: 0;
  /* 必要ならパディングも */
  line-height: 1.2;
  /* 行間を詰める */
}

#weather {
  margin-top: 0;
  /* 「#weather」上部のマージンをなくす */
  padding-top: 0;
  /* 必要ならパディングも */
}

.border {
  background-color: blue;
  width: 100%;
  height: 10px;
}

.home {
  color: aliceblue;
}

.contact {
  background-color: blue;
  color: aliceblue;
  font-weight: bold;
  padding: 10px;
  /* とりあえず高さを確保 */
}

header {
  background-color: blue;
  font-weight: bold;
  font-size: 16px;
}

section {
  background-color: blue;
  font-weight: bold;
}

footer {
  background-color: blue;
}

ul,
ol {
  list-style: square; /* 四角いマーカー */
  padding-left: 1.2em; /* 少し余白を戻すと見やすい */
  margin: 0;
}

li {
  margin-bottom: 2px; /* 少し間をあける */
}

.investing_ranking,
.economic_indicator,
.kabutan,
.karauri {
  margin-left: 2%;
}

h1,
h2,
h3 {
  padding-bottom: 0em;
  padding-left: 0.5em;
  line-height: 1.2;
  border-bottom: solid 2px lightblue !important;
  border-left: solid 30px lightblue !important;
}
h1,
h2,
h3 {
  font-weight: normal;
}
h1 {
  display: block;
  font-size: 2em;
  margin-block-start: 0.67em;
  margin-block-end: 0.67em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;
}
h2 {
  padding-bottom: 0em;
  padding-left: 0.5em;
  border-left: solid 20px darkcyan !important;
  border-bottom: solid 2px darkcyan !important;
}
h2 {
  display: block;
  font-size: 1.5em;
  margin-block-start: 0.83em;
  margin-block-end: 0.83em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI",
    "Ubuntu", "Droid Sans", sans-serif, "Meiryo";
  padding: 0 12px;
}

pre {
  counter-reset: line;
  position: relative;
  background-color: #f0f9f4;
  border-left: 2px #004c25 solid;
  padding: 0px 10px 10px 40px; /* 左に行番号スペースを確保 */
  font-family: monospace;
  font-size: 15px;
}

pre.code-block {
  position: relative; /* 疑似要素の基準にする */
  background-color: #f0f9f4;
  padding: 16px;
  border-radius: 6px;
  font-family: "Fira Code", monospace;
  font-size: 16px;
  padding: 0px 10px 10px 40px;
}

/* 左上にファイル名を表示 */
pre.code-block::before {
  content: attr(data-filename); /* HTMLのdata-filename属性を表示 */
  position: absolute;
  top: -1.2em; /* pre の上に出す */
  left: 0;
  font-size: 0.8em;
  color: #ffffff;
  background-color: #48a5f1; /* お好みの色 */
  padding: 2px 8px;
  border-radius: 4px 4px 0 0; /* 上だけ丸く */
}

pre.terminal {
  background-color: #1e1e1e; /* 黒に近い背景 */
  color: #00ff00; /* 緑文字 */
  padding: 16px;
  border-radius: 6px;
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.4;
  overflow-x: auto; /* 横長でもスクロール可能 */
  white-space: pre-wrap; /* 長い行を折り返す */
  word-wrap: break-word;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5); /* 内側の影で凹んだ感じ */
}

/* コマンドのプロンプト風表示 */
pre.terminal span.prompt {
  color: #ffffff; /* プロンプトは白 */
  font-weight: bold;
}

/* エラー表示を赤くしたい場合 */
pre.terminal span.error {
  color: #ff5555;
  font-weight: bold;
}

/* 言語リスト */
.lang-list {
  list-style: square; /* 四角いマーカー */
  padding-left: 20px; /* 左の余白 */
  margin: 0;
}

/* 言語名（マーカー付き行） */
.lang-name {
  font-weight: bold;
  color: #333;
}

/* 記事リスト */
.article-list {
  list-style: none; /* 記事リンクのマーカーは消す */
  padding-left: 1em; /* 言語名より少し右にずらす */
  margin-top: 4px;
  margin-bottom: 12px;
}

/* 記事リンクの見た目 */
.article-list a {
  text-decoration: none;
  color: #007bff;
}

.article-list a:hover {
  text-decoration: underline;
}
