/* 保育士ゆきのひとりごと — Ghost Theme v1.0 */
/* コンセプト: 素人ブロガーの日記。構造は変でいい。ひたすら文章。 */

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

/* ===== 変数 ===== */
:root {
  --text:    #2B2622;
  --bg:      #FDFBF9;
  --muted:   #9A9088;
  --border:  #EAE6E1;
  --link:    #7A6A60;
}

/* ===== ベース ===== */
html { font-size: 17px; }

body {
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', Georgia, serif;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text);
  background: var(--bg);
}

/* ===== レイアウト ===== */
.site-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ヘッダー ===== */
.site-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

.site-title:hover { color: var(--muted); }

.site-description {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== 記事一覧 ===== */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:first-child { border-top: 1px solid var(--border); }

.post-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.post-list a:hover { color: var(--muted); }

.post-list time {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== ページネーション ===== */
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  font-size: 0.85rem;
  color: var(--muted);
}

.pagination a { color: var(--link); text-decoration: none; }
.pagination a:hover { text-decoration: underline; }

/* ===== 記事ヘッダー ===== */
.post-header {
  margin-bottom: 40px;
}

.post-title {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== 記事本文 ===== */
/*
  H2/H3 を p と同じ見た目にする。
  ゆきはブログ素人なので見出しを使っても使わなくても
  読者には「普通の文章」として流れる。
*/
.post-content h2,
.post-content h3,
.post-content h4 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.95;
  color: var(--text);
  margin: 2em 0 0;
  padding: 0;
  border: none;
}

.post-content h2::before,
.post-content h3::before,
.post-content h4::before {
  display: none;
}

.post-content p {
  margin: 0 0 1.6em;
}

.post-content p:last-child { margin-bottom: 0; }

.post-content a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover { color: var(--text); }

.post-content strong { font-weight: 600; }

.post-content em { font-style: italic; }

.post-content ul,
.post-content ol {
  padding-left: 1.5em;
  margin: 0 0 1.6em;
}

.post-content li { margin-bottom: 0.4em; }

.post-content blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1.2em;
  color: var(--muted);
  margin: 0 0 1.6em;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* Koenigエディタ必須クラス（gscan要件・本テーマでは画像非表示のため実質未使用） */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.kg-width-full {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* 画像は一切表示しない */
.post-content figure,
.post-content img,
.post-content .kg-image-card,
.post-content .kg-gallery-card,
.post-content .kg-video-card,
.post-content .kg-audio-card,
.post-content .kg-product-card,
.post-content .kg-file-card,
.post-content .kg-bookmark-card,
.kg-post-header-image {
  display: none !important;
}

/* ===== 記事フッター ===== */
.post-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

.post-footer a { color: var(--link); text-decoration: none; }
.post-footer a:hover { text-decoration: underline; }

/* ===== フッター ===== */
.site-footer {
  margin-top: 80px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}

/* ===== エラーページ ===== */
.error-page {
  text-align: center;
  padding: 80px 0;
}

.error-code {
  font-size: 3rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 16px;
}

.error-message {
  color: var(--muted);
  margin-bottom: 32px;
}

.error-link { color: var(--link); }

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
  html { font-size: 16px; }

  .site-wrapper { padding: 0 18px; }

  .site-header { padding: 32px 0 28px; margin-bottom: 32px; }

  .post-list li { flex-direction: column; gap: 2px; }

  .post-list time { align-self: flex-start; }

  .post-header { margin-bottom: 28px; }
}
