/* 歯と口の健康室 - 歯科・口腔ケア情報メディア */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0f8074;
  --primary-dark: #0a564d;
  --accent: #44b3a2;
  --accent-light: #a9ddd4;
  --bg: #f2f9f7;
  --bg-white: #ffffff;
  --bg-dark: #12413a;
  --text: #1f2d2a;
  --text-light: #5e726d;
  --border: #cfe4de;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

/* ヘッダー */
#site-header {
  background: var(--primary-dark);
  padding: 0 20px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 80px;
  gap: 18px;
}
.site-title a {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.site-title a:hover { text-decoration: none; opacity: 0.85; }
.site-tagline {
  font-size: 0.72rem;
  color: var(--accent-light);
  margin-top: 4px;
  letter-spacing: 0.08em;
}
.header-badge {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-size: 0.72rem;
  padding: 5px 14px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ナビ */
#site-nav {
  background: var(--bg-dark);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}
.nav-inner a {
  color: var(--accent-light);
  padding: 13px 22px;
  font-size: 0.85rem;
  display: block;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.nav-inner a:hover {
  color: #fff;
  background: var(--primary);
  text-decoration: none;
}

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

/* 記事カード */
.post-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 26px 30px;
  margin-bottom: 18px;
  border-top: 3px solid var(--primary);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.post-card:hover { border-top-color: var(--accent); }
.post-card .post-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.03em;
}
.post-card .post-category {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 10px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.post-card h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.5;
}
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--primary); }
.post-card .post-excerpt { font-size: 0.88rem; color: var(--text-light); }
.read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.read-more::after { content: " →"; }

/* 記事本文 */
.entry-header {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--primary);
}
.entry-header .post-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.entry-header h1 {
  font-size: 1.7rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--primary-dark);
}
.entry-content {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 36px 42px;
  border-radius: 8px;
}
.entry-content h2 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin: 32px 0 14px;
  padding: 0 0 8px 0;
  border-bottom: 2px solid var(--primary);
  font-weight: 700;
}
.entry-content h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin: 22px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  font-weight: 700;
}
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { margin: 10px 0 18px 26px; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* サイドバー */
#sidebar { min-width: 0; }
.widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 22px 24px;
  margin-bottom: 22px;
  border-radius: 8px;
}
.widget-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.widget ul { list-style: none; }
.widget ul li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--primary); }
.widget-meta { font-size: 0.72rem; color: var(--text-light); margin-top: 3px; }

/* 固定ページ */
.page-content {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 36px 42px;
  border-radius: 8px;
}
.page-content h1 {
  font-size: 1.55rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
  font-weight: 700;
}
.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: #e7f4f1;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  font-size: 0.85rem;
  margin: 22px 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.82rem;
  letter-spacing: 0.05em;
}
#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: 22px 20px; }
  .page-content { padding: 22px 20px; }
}
