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

/* ========== リセット・基本 ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 20px; scroll-behavior: smooth; }
/* スティッキーヘッダー分のアンカーオフセット */
[id] { scroll-margin-top: 72px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #FFFBF5;
  color: #2C3E28;
  line-height: 1.8;
}
a { color: #3D5A40; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ========== カラー変数 ========== */
:root {
  --green-dark:  #2C3E28;
  --green-main:  #3D5A40;
  --green-light: #A8C5A0;
  --green-pale:  #E8F3E8;
  --amber:       #C8A84B;
  --amber-pale:  #FFF3DC;
  --bg:          #FFFBF5;
  --bg-card:     #FFFFFF;
  --border:      #E8D9B8;
  --text:        #2C3E28;
  --text-muted:  #6A7A5E;
}

/* ========== レイアウト ========== */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* ========== ヘッダー ========== */
.site-header {
  background: var(--green-main);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-logo {
  font-family: 'Noto Serif JP', serif;
  color: #F5E6C8;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.site-logo small {
  display: block;
  font-size: 0.65rem;
  color: var(--green-light);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
}
.site-nav a {
  color: var(--green-light);
  font-size: 0.8rem;
  transition: color 0.2s;
}
.site-nav a:hover { color: #FFFFFF; text-decoration: none; }
.pr-badge {
  display: inline-block;
  background: #FFFFFF;
  color: #CC2200;
  border: 1.5px solid #CC2200;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.4;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ========== ヒーローセクション ========== */
.hero {
  background: linear-gradient(135deg, #FFFBF5 0%, #FFF3DC 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.hero__chara {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--green-main);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}
.hero__chara--placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--green-main);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.hero__badge {
  display: inline-block;
  background: var(--green-main);
  color: #F5E6C8;
  font-size: 0.7rem;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.hero__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.hero__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ========== セクション共通 ========== */
.section { padding: 40px 0; }
.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-main);
  border-left: 3px solid var(--amber);
  padding-left: 10px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

/* ========== 記事カード一覧 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(61,90,64,0.12);
  transform: translateY(-2px);
  text-decoration: none;
}
.card__phase {
  font-size: 0.68rem;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.5;
  margin-bottom: 8px;
}
.card__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.card__meta {
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}
.card--featured {
  border-color: var(--amber);
  background: #FFFBF0;
}
.card--featured .card__phase { color: #8A5A00; }

/* ========== CTA ボタン ========== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--amber); color: #FFFFFF; }
.btn--green  { background: var(--green-main); color: #FFFFFF; }
.btn--outline {
  background: transparent;
  color: var(--green-main);
  border: 2px solid var(--green-main);
}

/* ========== アフィリエイト誘導ブロック ========== */
.affiliate-box {
  background: var(--amber-pale);
  border: 1px solid var(--amber);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 32px 0;
}
.affiliate-box__label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.affiliate-box__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.affiliate-box__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ========== タグ ========== */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--green-pale);
  color: var(--green-dark);
}

/* ========== 記事本文 ========== */
.article-header {
  background: linear-gradient(135deg, #FFFBF5 0%, #FFF3DC 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 30px;
}
.article-phase {
  font-size: 0.72rem;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.article-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  color: var(--green-dark);
  line-height: 1.5;
  margin-bottom: 10px;
}
.article-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.article-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
}
.article-body { padding: 36px 0; }
.article-body p {
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 1.4em;
  color: var(--text);
}

/* ========== ナビゲーション（前後） ========== */
.article-nav {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.article-nav a {
  font-size: 0.82rem;
  color: var(--green-main);
  font-weight: 500;
}

/* ========== フッター ========== */
.site-footer {
  background: var(--green-dark);
  color: var(--green-light);
  padding: 30px 0;
  margin-top: 60px;
  font-size: 0.8rem;
  text-align: center;
  line-height: 2;
}
.site-footer a { color: var(--green-light); }
.site-footer a:hover { color: #FFFFFF; }

/* ========== レスポンシブ ========== */
@media (max-width: 600px) {
  .hero__inner { flex-direction: column; text-align: center; }
  .site-nav { display: none; }
  .article-title { font-size: 1.25rem; }
  .card-grid { grid-template-columns: 1fr; }
}
