/* =========================================================
   Chroma Nexus Editorial — Bag Vegetable Garden
   Minimalist Japanese Web Magazine Style
   ========================================================= */

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

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

:root {
  --bg-primary:     #FAFAF7;
  --bg-secondary:   #F2F0EA;
  --bg-card:        #FFFFFF;
  --text-primary:   #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted:     #767676;
  --accent-green:   #4A7C59;
  --accent-green-lt:#E6F0EA;
  --accent-blue:    #4A6B8A;
  --accent-blue-lt: #E6EEF5;
  --accent-brown:   #8B6914;
  --accent-brown-lt:#F5EED6;
  --border:         #D8D4C8;
  --border-light:   #EEECE6;
  --shadow:         rgba(0,0,0,0.07);
  --font-serif:     'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-sans:      'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --radius:         4px;
  --radius-md:      8px;
  --max-width:      1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

/* ── LINKS ────────────────────────────────────────────── */
a { color: var(--accent-green); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-blue); }

/* ── TYPOGRAPHY ──────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.35;
  color: var(--text-primary);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1.2rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.45rem; }
strong { color: var(--text-primary); font-weight: 600; }

/* ── LAYOUT ──────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ──────────────────────────────────────────── */
.site-header {
  background: #FFFFFF;
  border-bottom: 2px solid var(--accent-green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  flex-shrink: 0;
}
.site-logo span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── NAV ─────────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--accent-green);
  background: var(--accent-green-lt);
  text-decoration: none;
}
.site-nav a.active { font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  background: var(--bg-secondary);
  padding: 72px 24px 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 16px;
  display: block;
}
.hero h1 { margin-bottom: 18px; }
.hero-lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 32px;
}
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent-green);
  color: #fff;
  border-color: var(--accent-green);
}
.btn-primary:hover {
  background: #3a6147;
  border-color: #3a6147;
  text-decoration: none;
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--accent-green);
  border-color: var(--accent-green);
}
.btn-outline:hover {
  background: var(--accent-green);
  color: #fff;
  text-decoration: none;
}

/* ── IMAGES ─────────────────────────────────────────── */
.article-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.img-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
.img-block { margin: 2rem 0; }
.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 2.5rem 0;
}
.img-pair figure { margin: 0; }
.img-pair .article-img { height: 260px; }

/* ── CONTENT LAYOUT ─────────────────────────────────── */
.page-main { padding: 56px 0 80px; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.article-body h2 {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}
.article-body h2:first-child {
  margin-top: 0; padding-top: 0; border-top: none;
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-card h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-nav-list { list-style: none; padding: 0; margin: 0; }
.sidebar-nav-list li { margin: 0; }
.sidebar-nav-list a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s;
}
.sidebar-nav-list a:hover { color: var(--accent-green); text-decoration: none; }
.sidebar-nav-list li:last-child a { border-bottom: none; }

/* ── AD SLOTS ────────────────────────────────────────── */
.ad-slot {
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin: 36px 0;
}
.ad-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2px 8px;
  margin-bottom: 10px;
  background: #fff;
}
.ad-placeholder {
  background: var(--border-light);
  border-radius: var(--radius);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.ad-slot-sidebar .ad-placeholder { height: 250px; }

/* ── CARDS / GRID ────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 24px var(--shadow); transform: translateY(-2px); }
.card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-body { padding: 20px; }
.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 8px;
  display: block;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}
.card-excerpt { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.65; }
.card-link { color: var(--text-primary); }
.card-link:hover { text-decoration: none; }

/* ── STEP LIST ───────────────────────────────────────── */
.step-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.step-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.step-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
  font-family: var(--font-serif);
}
.step-content h4 {
  color: var(--accent-green);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
}

/* ── TIP / NOTE BOXES ────────────────────────────────── */
.tip-box {
  background: var(--accent-green-lt);
  border-left: 4px solid var(--accent-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 2rem 0;
}
.tip-box strong { color: var(--accent-green); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.tip-box p { margin: 6px 0 0; }

.note-box {
  background: var(--accent-blue-lt);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 2rem 0;
}
.note-box strong { color: var(--accent-blue); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.note-box p { margin: 6px 0 0; }

.highlight-box {
  background: var(--accent-brown-lt);
  border-left: 4px solid var(--accent-brown);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 2rem 0;
}
.highlight-box strong { color: var(--accent-brown); }

/* ── TABLE ───────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.95rem; }
.data-table th {
  background: var(--bg-secondary);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-secondary); }

/* ── PAGE TITLE BAND ─────────────────────────────────── */
.page-title-band {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
}
.page-title-band .breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.page-title-band .breadcrumb a { color: var(--text-muted); }
.page-title-band .breadcrumb a:hover { color: var(--accent-green); }

/* ── CONTACT FORM ────────────────────────────────────── */
.contact-form { max-width: 680px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: #fff;
  color: var(--text-primary);
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: #1A1A1A;
  color: #C8C4BA;
  padding: 56px 24px 32px;
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .site-logo { color: #FFFFFF; }
.footer-brand .site-logo span { color: #888; }
.footer-brand p { font-size: 0.88rem; color: #888; margin-top: 14px; line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #C8C4BA; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #666;
}
.footer-policy-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-policy-links a { color: #666; }
.footer-policy-links a:hover { color: #C8C4BA; text-decoration: none; }

/* ── MISC ─────────────────────────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 12px;
  display: block;
}
.divider { border: none; border-top: 1px solid var(--border-light); margin: 40px 0; }
.info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}
.info-row:first-child { border-top: 1px solid var(--border-light); }
.info-label { font-weight: 600; color: var(--text-secondary); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .img-pair { grid-template-columns: 1fr; }
  .img-pair .article-img { height: 240px; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .site-nav {
    display: none; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 2px solid var(--accent-green);
    padding: 12px 16px; box-shadow: 0 8px 24px var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--border-light); }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cards-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
}
