/* くらしと食卓ノート - shared stylesheet */
:root {
  --green-dark: #2f6b4f;
  --green-mid: #4c8a68;
  --green-pale: #eaf3ea;
  --green-pale2: #f5f9f4;
  --text-main: #333333;
  --text-sub: #5c6b62;
  --border: #e0e8e0;
  --card-bg: #ffffff;
  --max-width: 960px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.8;
}

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

img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
header.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.brand h1 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--green-dark);
  font-weight: 700;
}
.brand p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--text-sub);
}
nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.site-nav a {
  color: var(--text-main);
  font-size: 0.92rem;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--green-pale2) 0%, var(--green-pale) 100%);
  padding: 56px 0 40px;
  text-align: center;
}
.hero h2 {
  color: var(--green-dark);
  font-size: 1.7rem;
  margin: 0 0 18px;
}
.hero p.lead {
  color: var(--text-sub);
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 0.98rem;
}
.hero .hero-art {
  max-width: 420px;
  margin: 0 auto;
}

/* Disclosure strip */
.disclosure {
  background: #fbf7ea;
  border-top: 1px solid #efe4c0;
  border-bottom: 1px solid #efe4c0;
  font-size: 0.78rem;
  color: #7a6a33;
  text-align: center;
  padding: 8px 16px;
}

/* Article grid on top page */
main.top-main {
  padding: 48px 0 24px;
}
main.top-main h2.section-title {
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 24px;
  border-left: 5px solid var(--green-mid);
  padding-left: 12px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 1.35rem; }
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.card h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  line-height: 1.5;
}
.card p {
  font-size: 0.86rem;
  color: var(--text-sub);
  flex-grow: 1;
  margin: 0 0 14px;
}
.card .more {
  font-size: 0.86rem;
  font-weight: bold;
}

/* About section */
.about-section {
  background: var(--green-pale2);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 40px;
}
.about-section h2 {
  color: var(--green-dark);
  font-size: 1.05rem;
  margin-top: 0;
}
.about-section p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 0;
}

/* Article page */
main.article-main {
  padding: 40px 0 24px;
}
.article-header {
  margin-bottom: 24px;
}
.article-header .tag { margin-bottom: 14px; }
.article-header h1 {
  font-size: 1.45rem;
  color: var(--text-main);
  margin: 0 0 8px;
  line-height: 1.5;
}
article.post {
  font-size: 0.96rem;
}
article.post h2 {
  font-size: 1.15rem;
  color: var(--green-dark);
  margin: 32px 0 12px;
  border-left: 5px solid var(--green-mid);
  padding-left: 10px;
}
article.post h3 {
  font-size: 1.02rem;
  margin: 24px 0 8px;
  color: var(--text-main);
}
article.post ul {
  padding-left: 1.4em;
}
article.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.86rem;
}
article.post table th, article.post table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
article.post table th {
  background: var(--green-pale2);
  color: var(--green-dark);
}
.note-box {
  background: var(--green-pale2);
  border-left: 4px solid var(--green-mid);
  padding: 14px 18px;
  font-size: 0.86rem;
  color: var(--text-sub);
  margin: 24px 0;
  border-radius: 4px;
}
.disclaimer {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.related-links {
  margin-top: 24px;
  font-size: 0.9rem;
}
.related-links a { font-weight: bold; }

/* Footer */
footer.site-footer {
  background: var(--green-pale2);
  padding: 28px 0;
  margin-top: 24px;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer.site-footer nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
footer.site-footer nav a {
  color: var(--text-sub);
  font-size: 0.82rem;
}
footer.site-footer .copyright {
  font-size: 0.78rem;
  color: var(--text-sub);
}
