
/* --- GreenSoul Theme --- */
/* --- Font: Playfair Display --- */
/* --- Tone: Friendly & Casual --- */

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

:root {
  --primary-color: #2c5e1a;
  --secondary-color: #6a8a5b;
  --background-color: #f4f1eb;
  --surface-color: #ffffff;
  --text-color: #3d3d3d;
  --light-text-color: #6c757d;
  --border-color: #dcd8d0;
  --font-family-headings: 'Playfair Display', serif;
  --font-family-body: 'Noto Sans JP', sans-serif;
  --container-width: 1100px;
  --border-radius: 12px;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.7rem; }

p {
  margin-bottom: 1.25rem;
}

ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-family-headings);
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text-color);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}


/* --- Main Content Layout --- */
.page-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url('https://source.unsplash.com/1200x400/?groceries,market') no-repeat center center/cover;
  padding: 4rem 1.5rem;
  text-align: center;
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-color);
}

/* --- Article Grid --- */
.articles-section {
    padding: 2rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.card-content h3 a:hover {
    color: var(--secondary-color);
}

.card-content p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  color: var(--light-text-color);
}

.read-more-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  text-align: center;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

.read-more-btn:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: scale(1.05);
}

/* --- Article Page --- */
.article-full {
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.article-header {
  margin-bottom: 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
}

.article-header h1 {
  font-size: 3.2rem;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--light-text-color);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.article-content {
    max-width: 100%;
}

.article-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--light-text-color);
    background-color: var(--background-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.cta-section {
    background-color: #e9f0e6;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2.5rem 0;
}
.cta-section h3 {
    margin-bottom: 1rem;
}

/* --- Sidebar --- */
.sidebar .widget {
  background-color: var(--surface-color);
  padding: 1.75rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.widget-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--secondary-color);
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget ul li {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
}
.widget ul li::before {
    content: '🌿';
    position: absolute;
    left: -10px;
    top: -2px;
    color: var(--primary-color);
}

.widget ul li a {
  text-decoration: none;
  font-weight: 700;
}

.promo-widget p {
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
  background-color: #3d3d3d;
  color: #f4f1eb;
  padding: 3rem 0;
  margin-top: 3rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #f4f1eb;
}
.footer-links a:hover {
  text-decoration: underline;
  color: #fff;
}

/* --- Contact Page --- */
.contact-details p {
    font-size: 1.1rem;
}
.contact-details strong {
    color: var(--primary-color);
}
.contact-note {
    background: #e9f0e6;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    margin-top: 2rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  .main-nav ul {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.5rem; }
  .article-header h1 { font-size: 2.5rem; }
  .article-full { padding: 1.5rem; }
}

@media (min-width: 992px) {
  .page-wrapper {
    grid-template-columns: 2.5fr 1fr;
  }
  .article-full-layout {
      grid-template-columns: 3fr 1fr;
  }
}
