/* === 基本色と背景 === */
:root {
  --body-bg: #fdfaf5;
  --card-bg: #fff8e1;
  --text-color: #2c2c2c;
  --link-color: #ff8f00;
  --accent-color: #ffb300;
  --border-color: #ffe0b2;
  --code-bg: #fff3e0;
}

body {
  background-color: var(--body-bg);
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* === リンク === */
a {
  color: var(--link-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* === 見出し装飾（記事本文含む） === */
h1, h2, h3 {
  border-left: 4px solid var(--accent-color);
  padding-left: 0.75em;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--link-color);
}

h1 {
  font-size: 1.8rem;
}
h2 {
  font-size: 1.3rem;
}
h3 {
  font-size: 1.1rem;
}

/* 記事タイトル（トップと区別） */
.post-header .post-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--link-color);
  border-left: 4px solid var(--accent-color);
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}

/* === コードブロック === */
pre, code {
  background-color: var(--code-bg);
  border: 1px solid #ffe0b2;
  border-radius: 6px;
  padding: 0.4em 0.8em;
  font-family: "Fira Code", monospace;
  font-size: 0.95em;
}
.highlight {
  margin-bottom: 1.5rem;
}

/* === テーブル === */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fffef9;
  margin-bottom: 1.5rem;
}
th, td {
  border: 1px solid #f3e5ab;
  padding: 0.6em;
}
th {
  background-color: #fff8dc;
}

/* === カスタムボックス === */
.notice {
  background-color: #fff3cd;
  border-left: 5px solid #ffa726;
  padding: 1em;
  margin: 1.5em 0;
  border-radius: 5px;
  font-weight: 500;
}
.notice strong {
  color: #e65100;
}
.highlight-text {
  font-size: 1.05rem;
  font-weight: 600;
  background-color: #fff3cd;
  border-left: 4px solid #f39c12;
  padding: 0.6em 1em;
  margin: 1.2em 0 1.5em 0;
  border-radius: 5px;
  font-family: "Courier New", monospace;
  color: #d35400;
  line-height: 1.5;
  text-align: left;
}

/* === 記事カードレイアウト === */
.post-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.post-card img.thumbnail {
  margin-top: 1.25rem;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.post-card .post-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.post-card .summary,
.post-card small {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* === ホームページの情報ブロック間余白調整 === */
.home-info {
  margin-bottom: 1.5rem;
}

/* === 記事本文のコンテンツ調整 === */
.post-content p,
.post-content ul,
.post-content img,
.post-content iframe {
  margin-bottom: 1.25rem;
}
.post-content iframe {
  display: block;
  margin: 1rem auto 2rem auto;
  max-width: 100%;
}

/* === ページ下部や小要素の調整 === */
footer, small, .footer-note {
  font-size: 0.85rem;
  color: #999;
}
.info-box {
  background-color: #f8f8f8;
  padding: 1em 1.5em;
  border-radius: 8px;
  margin: 1em 0 2em;
  font-size: 0.95rem;
  line-height: 1.7;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}


/* --- ヘッダーメニューを横並びにする --- */
.nav #menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav #menu li {
  margin-left: 1.5rem; /* メニュー項目の間隔 */
}

/* --- フッターの三角形を非表示にする --- */
.footer::before {
  display: none;
}

/* --- ウェルカムメッセージのスタイル調整 --- */
.prose h2 {
    font-size: 2.25rem;  /* h2（はじめまして！）の文字サイズを大きくする */
    margin-bottom: 1.5rem; /* 見出しと本文の間の余白を調整 */
    text-align: center;    /* 見出しを中央揃えにする */
    border-left: none;     /* 左のボーダーを削除してスッキリさせる */
    padding-left: 0;
}

.prose p {
    font-size: 1.125rem; /* 本文の文字サイズを少し大きくして読みやすくする */
    line-height: 1.8;    /* 行間を広げて読みやすくする */
}