/* 男のからだケア - 男性の悩み解決メディア */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2d5d4e;
  --primary-dark: #1a3d33;
  --accent: #c8a96a;
  --accent-light: #e2d3a8;
  --bg: #f9f7f2;
  --bg-white: #ffffff;
  --bg-cream: #f3eee2;
  --text: #2a2a28;
  --text-light: #6a6a64;
  --border: #d8d2c2;
  --font: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-mincho: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.85;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

/* ヘッダー */
#site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 88px;
  gap: 18px;
}
.site-title a {
  font-family: var(--font-mincho);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
}
.site-title a:hover { text-decoration: none; opacity: 0.85; }
.site-tagline {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 5px;
  letter-spacing: 0.04em;
}
.header-badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--bg-white);
  font-size: 0.72rem;
  padding: 6px 14px;
  border-radius: 14px;
  letter-spacing: 0.05em;
}

/* ナビ */
#site-nav {
  background: var(--primary);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}
.nav-inner a {
  color: var(--bg-cream);
  padding: 14px 24px;
  font-size: 0.88rem;
  display: block;
  letter-spacing: 0.04em;
}
.nav-inner a:hover {
  color: #fff;
  background: var(--primary-dark);
  text-decoration: none;
}

/* メイン */
#main-wrap {
  max-width: 1080px;
  margin: 32px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 32px;
}

/* 記事カード */
.post-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 26px 30px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(45,93,78,0.12);
}
.post-card .post-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-card .post-category {
  background: var(--bg-cream);
  color: var(--primary-dark);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
}
.post-card h2 {
  font-family: var(--font-mincho);
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.55;
}
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--primary-dark); }
.post-card .post-excerpt { font-size: 0.9rem; color: var(--text-light); }
.read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 600;
}
.read-more::after { content: " ▸"; color: var(--accent); }

/* 記事本文 */
.entry-header {
  margin-bottom: 30px;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--border);
}
.entry-header .post-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.entry-header h1 {
  font-family: var(--font-mincho);
  font-size: 1.75rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--primary-dark);
}
.entry-content {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 38px 42px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.entry-content h2 {
  font-family: var(--font-mincho);
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 36px 0 16px;
  padding: 10px 0 10px 18px;
  border-left: 4px solid var(--accent);
  background: var(--bg-cream);
  border-radius: 0 6px 6px 0;
}
.entry-content h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px dotted var(--accent-light);
  font-weight: 700;
}
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { margin: 10px 0 18px 26px; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }

/* サイドバー */
#sidebar { min-width: 0; }
.widget {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}
.widget-title {
  font-family: var(--font-mincho);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  letter-spacing: 0.05em;
}
.widget ul { list-style: none; }
.widget ul li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--primary-dark); }
.widget-meta { font-size: 0.72rem; color: var(--text-light); margin-top: 3px; }

/* 固定ページ */
.page-content {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 38px 42px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.page-content h1 {
  font-family: var(--font-mincho);
  font-size: 1.55rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
}
.page-content h2 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin: 26px 0 12px;
  font-weight: 700;
}
.page-content p { margin-bottom: 14px; }

/* 注意書き */
.notice-box {
  background: var(--bg-cream);
  border-left: 4px solid var(--accent);
  padding: 16px 22px;
  border-radius: 0 6px 6px 0;
  font-size: 0.875rem;
  margin: 24px 0;
  color: var(--text-light);
}

/* フッター */
#site-footer {
  background: var(--primary-dark);
  color: var(--accent-light);
  text-align: center;
  padding: 36px 20px;
  margin-top: 48px;
  font-size: 0.85rem;
}
#site-footer a { color: #fff; }
#site-footer nav { margin-bottom: 12px; }
#site-footer nav a { margin: 0 14px; }

@media (max-width: 768px) {
  #main-wrap { grid-template-columns: 1fr; }
  .header-inner { height: auto; padding: 14px 0; flex-wrap: wrap; }
  .header-badge { display: none; }
  .entry-content { padding: 24px 22px; }
  .page-content { padding: 24px 22px; }
}
