@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;700&display=swap');

/* ========== 変数 ========== */
:root {
  --bg:          #faf8f5;
  --bg-card:     #ffffff;
  --beige:       #e8dfd0;
  --green:       #8aab8a;
  --green-light: #eef4ee;
  --green-border:#c5dcc5;
  --text:        #3a342e;
  --text-muted:  #8a7d72;
  --max-width:   780px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;
  font-size: 16px;
  line-height: 1.9;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ========== ヘッダー ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--beige);
  padding: 1.8rem 1rem 1.4rem;
  text-align: center;
}

.site-header .tagline {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.site-title a {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
}

.site-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover {
  color: var(--green);
  border-color: var(--green);
}

/* ========== メイン ========== */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.2rem;
}

/* ========== 記事カード（一覧） ========== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--beige);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  transition: box-shadow 0.25s;
  color: var(--text);
}

.post-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.post-card-thumb {
  flex: 0 0 150px;
  overflow: hidden;
  background: var(--beige);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}

.post-card-no-thumb {
  flex: 0 0 150px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.post-card-body {
  padding: 1.2rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.post-card-meta {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

.category-tag {
  background: var(--green-light);
  color: var(--green);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  border: 1px solid var(--green-border);
  letter-spacing: 0.04em;
}

.post-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.post-card-title {
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.55;
}

/* ========== セクション見出し ========== */
.section-title {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--beige);
}

/* ========== カテゴリページ ========== */
.list-header {
  margin-bottom: 2rem;
}

.list-header h1 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ========== 記事詳細 ========== */
.article-header {
  margin-bottom: 1.8rem;
}

.article-category {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  border: 1px solid var(--green-border);
  margin-bottom: 0.8rem;
}

.article-title {
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.article-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-eyecatch {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.8rem 0;
  display: block;
}

/* ========== 本文スタイル ========== */
.article-body {
  font-size: 0.96rem;
  line-height: 2.05;
}

.article-body h2 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 2.8rem 0 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--green-light);
  border-left: 3px solid var(--green);
  border-radius: 0 4px 4px 0;
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 2rem 0 0.7rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dashed var(--beige);
}

.article-body p {
  margin-bottom: 1.3rem;
}

.article-body ul,
.article-body ol {
  margin: 0.8rem 0 1.3rem 1.4rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body strong {
  font-weight: 700;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--beige);
  margin: 2.5rem 0;
}

.article-body blockquote {
  border-left: 3px solid var(--beige);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
}

/* ========== 筆者紹介ボックス ========== */
.author-box {
  background: var(--bg-card);
  border: 1px solid var(--beige);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.author-icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-light);
  border: 2px solid var(--green-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.author-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h3 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== 戻るリンク ========== */
.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--beige);
  padding-bottom: 2px;
}

.back-link:hover { color: var(--green); border-color: var(--green); }

/* ========== フッター ========== */
.site-footer {
  border-top: 1px solid var(--beige);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4rem;
  letter-spacing: 0.06em;
}

.site-footer a {
  color: var(--text-muted);
  margin: 0 0.8rem;
}

.site-footer a:hover { color: var(--green); }

.footer-nav {
  margin-bottom: 1rem;
}

/* ========== プロフィールページ ========== */
.profile-page .profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: block;
  border: 3px solid var(--green-border);
  object-fit: cover;
}

/* ========== スマホ対応 ========== */
@media (max-width: 600px) {
  .post-card {
    flex-direction: column;
  }

  .post-card-thumb,
  .post-card-no-thumb {
    flex: none;
    height: 180px;
    width: 100%;
  }

  .article-title {
    font-size: 1.25rem;
  }

  .article-body h2 {
    font-size: 1rem;
  }
}
