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

/* ===== CSS変数（カラーパレット・スペーシング） ===== */
:root {
  --bg: #FDFAF8;
  --bg-soft: #F5EEF8;
  --bg-card: #ffffff;
  --lavender: #EDE7F6;
  --lavender-dark: #B8A9C9;
  --purple: #9C7BB5;
  --pink: #F2B5C0;
  --pink-soft: #fdeef4;
  --text: #3d333d;
  --text-soft: #7a6a7a;
  --text-mute: #a094a0;
  --border: #ede0e8;
  --accent-shadow: rgba(184, 169, 201, 0.18);

  --font-body: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  --content-max: 720px;
  --page-max: 1080px;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 16px var(--accent-shadow);
}

/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.5; color: var(--text); }

/* ===== ヘッダー ===== */
.site-header {
  background-color: var(--lavender);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
}
.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.site-logo:hover { color: var(--purple); }
.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--text);
  font-weight: 500;
}

/* ===== ヒーロー（トップのみ） ===== */
.hero {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--pink-soft) 100%);
  padding: 56px 20px;
  text-align: center;
}
.hero__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.hero__title {
  font-size: 1.8rem;
  margin: 0 0 12px;
  color: var(--purple);
}
.hero__lead {
  color: var(--text-soft);
  margin: 0;
  font-size: 1rem;
}

/* ===== メイン ===== */
main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===== 記事一覧（カードグリッド） ===== */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(184, 169, 201, 0.28);
}
.post-card a {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  overflow: hidden;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card__body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-card__date {
  font-size: 0.8rem;
  color: var(--text-mute);
}
.post-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
}
.post-card:hover .post-card__title {
  color: var(--purple);
}

/* セクション見出し（トップの「最新の記事」など） */
.section-title {
  font-size: 1.2rem;
  margin: 0 0 24px;
  padding-left: 12px;
  border-left: 4px solid var(--lavender-dark);
  color: var(--text);
}

/* ===== 記事本文 ===== */
.article {
  max-width: var(--content-max);
  margin: 0 auto;
}
.article__header {
  margin-bottom: 32px;
}
.article__date {
  color: var(--text-mute);
  font-size: 0.85rem;
  margin: 0 0 8px;
}
.article__title {
  font-size: 1.6rem;
  margin: 0 0 20px;
  line-height: 1.55;
  color: var(--text);
}
.article__eyecatch {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}
.article__eyecatch img {
  width: 100%;
}

.article__body {
  font-size: 1.02rem;
}
.article__body h2 {
  background: linear-gradient(to right, var(--pink-soft) 0%, var(--bg-soft) 55%, transparent 100%);
  border-radius: 12px 0 0 12px;
  padding: 12px 18px 12px 20px;
  color: #8a6b8a;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 40px 0 20px;
}
.article__body h2::before {
  content: "❀";
  color: #d8a5b8;
  margin-right: 0.4em;
  font-size: 0.9em;
}
.article__body h3 {
  border-bottom: 2px solid var(--pink);
  padding-bottom: 4px;
  font-size: 1.1rem;
  margin: 32px 0 16px;
}
.article__body p {
  margin: 0 0 1.2em;
}
.article__body a {
  border-bottom: 1px dashed var(--purple);
}
.article__body blockquote {
  border-left: 3px solid var(--lavender-dark);
  background: var(--bg-soft);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
}
.article__body ul, .article__body ol {
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}
.article__body li { margin-bottom: 0.3em; }
.article__body img {
  border-radius: var(--radius-sm);
  margin: 16px auto;
}
.article__body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* ===== 記事下ナビ（前へ・次へ） ===== */
.article-nav {
  max-width: var(--content-max);
  margin: 48px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.article-nav a {
  flex: 1 1 48%;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
  color: var(--text);
}
.article-nav a:hover { color: var(--purple); }
.article-nav__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-mute);
  margin-bottom: 4px;
}

/* ===== 固定ページ ===== */
.page {
  max-width: var(--content-max);
  margin: 0 auto;
}
.page h1 {
  font-size: 1.5rem;
  margin: 0 0 24px;
  padding-left: 12px;
  border-left: 4px solid var(--lavender-dark);
}
.page h2 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--purple);
}
.page p { margin: 0 0 1em; }
.page a { border-bottom: 1px dashed var(--purple); }
.page ul, .page ol { padding-left: 1.4em; margin: 0 0 1em; }

/* ===== フッター ===== */
.site-footer {
  margin-top: 80px;
  background: var(--lavender);
  padding: 32px 20px 24px;
  border-top: 1px solid var(--border);
}
.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  text-align: center;
}
.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 0.9rem;
}
.site-footer__nav a { color: var(--text); }
.site-footer__copyright {
  color: var(--text-mute);
  font-size: 0.8rem;
  margin: 0;
}

/* ===== モバイル調整 ===== */
@media (max-width: 600px) {
  .hero { padding: 40px 16px; }
  .hero__title { font-size: 1.4rem; }
  .article__title { font-size: 1.35rem; }
  .article__body h2 { font-size: 1.1rem; }
  .site-header__inner { padding: 12px 16px; }
  .site-nav { gap: 14px; font-size: 0.9rem; }
  main { padding: 28px 16px; }
}
