/*
Theme Name: Green Village
Theme URI: https://greenvillage.jp/
Author: Green Village株式会社
Author URI: https://greenvillage.jp/
Description: Green Village株式会社のコーポレートサイト＋ブログ用カスタムテーマ。白×グリーンを基調にしたミニマル＆スマートデザイン。AI・DX・サイバーセキュリティ事業の発信に最適化。Contact Form 7 連携対応。
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: greenvillage
Tags: corporate, blog, custom, japanese, light
*/

:root {
  /* Light variant palette */
  --bg: #ffffff;
  --bg-alt: #fafaf6;
  --bg-pale: #f4f6e2;
  --bg-dark: #1a1a1a;
  --bg-warm: #fdfcf6;
  --fg: #1a1a1a;
  --fg-strong: #0a0a0a;
  --fg-muted: #555555;
  --fg-faint: #888888;
  --line: #e8e8e6;
  --line-strong: #d0d0cc;
  --green: #b5c24e;
  --green-dark: #8a9636;
  --green-deeper: #6f7a26;
  --green-pale: #eef1cf;
  --max: 1120px;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.75;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity .2s var(--easing), color .2s var(--easing); }
a:hover { color: var(--green-dark); opacity: 1; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--green); color: var(--bg-dark); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }

/* ----- Header (white) ----- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-link img { height: 44px; width: auto; object-fit: contain; border-radius: 4px; }
.logo-text {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--fg-strong);
  text-transform: uppercase;
}
@media (max-width: 480px) { .logo-text { display: none; } }

.main-nav ul {
  display: flex;
  gap: 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.main-nav a { color: var(--fg); transition: color .2s var(--easing); }
.main-nav a:hover { color: var(--green-dark); opacity: 1; }
.main-nav .current-menu-item > a,
.main-nav .current-menu-parent > a { color: var(--green-dark); }

.menu-toggle {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--fg);
  transition: transform .3s var(--easing);
}
@media (max-width: 768px) {
  .main-nav ul { display: none; }
  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bg);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }
  .menu-toggle { display: flex; }
}

/* ----- Hero (white + pale green gradient) ----- */
.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-pale) 100%);
  color: var(--fg-strong);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(181, 194, 78, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(181, 194, 78, 0.10) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--green-dark);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  color: var(--fg-strong);
}
.hero h1 .green { color: var(--green-dark); }
.hero h1 .accent {
  display: block;
  font-size: 0.4em;
  font-weight: 400;
  color: var(--fg-muted);
  margin-top: 24px;
  letter-spacing: 0.05em;
}
.hero p.lead {
  font-size: clamp(15px, 1.4vw, 17px);
  max-width: 640px;
  color: var(--fg-muted);
  margin-bottom: 48px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all .25s var(--easing);
  border: 1px solid var(--bg-dark);
  cursor: pointer;
}
.btn-primary { background: var(--bg-dark); color: var(--bg); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; opacity: 1; }
.btn-secondary { color: var(--fg-strong); border-color: var(--line-strong); background: var(--bg); }
.btn-secondary:hover { background: var(--fg-strong); color: var(--bg); border-color: var(--fg-strong); opacity: 1; }
.btn .arrow { transition: transform .25s var(--easing); }
.btn:hover .arrow { transform: translateX(4px); }

/* ----- Section common ----- */
.section-label {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--green-dark);
  display: inline-block;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--fg-strong);
}
.section-lead {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 720px;
  margin-bottom: 64px;
}

/* ----- Philosophy (pale green) ----- */
.philosophy {
  background: var(--bg-pale);
  color: var(--fg-strong);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.philosophy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(181, 194, 78, 0.15) 0%, transparent 60%);
}
.philosophy .container { position: relative; }
.philosophy h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  color: var(--fg-strong);
}
.philosophy h2 .green { color: var(--green-dark); }
.philosophy p { max-width: 680px; margin: 0 auto; color: var(--fg-muted); }

/* ----- Message ----- */
.message { background: var(--bg-warm); }
.message-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .message-grid { grid-template-columns: 1fr; gap: 48px; } }
.message-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
}
.message-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(8%) contrast(1.02);
  transition: transform .8s var(--easing);
}
.message-photo:hover img { transform: scale(1.03); }
.message-photo::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 80px; height: 4px;
  background: var(--green);
}
.message-body h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  color: var(--fg-strong);
}
.message-body p { color: var(--fg-muted); margin-bottom: 20px; font-size: 15px; line-height: 1.9; }
.message-sign {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.message-sign .role { font-size: 12px; letter-spacing: 0.2em; color: var(--fg-faint); text-transform: uppercase; }
.message-sign .name { font-size: 20px; font-weight: 700; letter-spacing: 0.05em; color: var(--fg-strong); }

/* ----- Services ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  padding: 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--easing);
  position: relative;
  background: var(--bg);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .4s var(--easing);
}
.service-card:hover { background: var(--bg-alt); }
.service-card:hover::before { width: 100%; }
.service-num { font-size: 11px; letter-spacing: 0.3em; color: var(--green-dark); margin-bottom: 24px; font-weight: 600; }
.service-icon { width: 36px; height: 36px; margin-bottom: 24px; color: var(--fg-strong); transition: color .3s var(--easing); }
.service-card:hover .service-icon { color: var(--green-dark); }
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.01em; color: var(--fg-strong); }
.service-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.8; }
@media (max-width: 768px) { .service-card { padding: 32px 24px; } }

/* ----- Support ----- */
.support { background: var(--bg-alt); color: var(--fg-strong); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { .support-grid { grid-template-columns: 1fr; } }
.support-card {
  background: var(--bg);
  padding: 48px;
  border: 1px solid var(--line);
  transition: border-color .3s var(--easing), box-shadow .3s var(--easing);
}
.support-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(181, 194, 78, 0.15);
}
.support-card .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  border: 1px solid var(--green-dark);
  color: var(--green-dark);
  padding: 4px 12px;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-weight: 600;
}
.support-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; color: var(--fg-strong); }
.support-card p { color: var(--fg-muted); font-size: 14px; }
@media (max-width: 768px) { .support-card { padding: 32px 24px; } }

/* ----- Company ----- */
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td {
  padding: 24px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  vertical-align: top;
}
.company-table th { width: 220px; font-weight: 500; color: var(--fg-faint); letter-spacing: 0.05em; }
.company-table tr:first-child th, .company-table tr:first-child td { border-top: 1px solid var(--line); }
@media (max-width: 768px) {
  .company-table th, .company-table td { display: block; width: 100%; border-bottom: none; padding: 8px 0; }
  .company-table th { padding-top: 20px; font-size: 12px; }
  .company-table tr { display: block; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .company-table tr:first-child th, .company-table tr:first-child td { border-top: none; }
}

/* ----- Contact (white) ----- */
.contact { background: var(--bg); color: var(--fg-strong); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.contact-info dl { display: grid; gap: 28px; }
.contact-info dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 8px;
  font-weight: 600;
}
.contact-info dd { font-size: 15px; color: var(--fg); line-height: 1.7; }

/* ===== Contact Form 7 styling ===== */
.wpcf7 form { display: grid; gap: 22px; }
.wpcf7 form p { display: grid; gap: 8px; margin: 0; }
.wpcf7 form label,
.wpcf7-form label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 500;
  display: block;
}
.wpcf7 form label .req,
.wpcf7-form .req { color: var(--green-dark); margin-left: 4px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--fg);
  width: 100%;
  border-radius: 0;
  transition: border-color .25s var(--easing);
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7 select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%23888' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 32px;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-bottom-color: var(--green-dark);
}
.wpcf7 textarea { resize: vertical; min-height: 140px; }

.wpcf7 input[type="submit"],
.wpcf7-submit {
  margin-top: 16px;
  padding: 18px 32px;
  background: var(--bg-dark);
  color: var(--bg);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--bg-dark);
  border-radius: 0;
  cursor: pointer;
  transition: all .25s var(--easing);
  font-family: inherit;
  width: 100%;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7-submit:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.wpcf7 input[type="submit"]:disabled,
.wpcf7-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.wpcf7 .wpcf7-spinner {
  background-color: var(--green-dark);
  margin-left: 12px;
}

.wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 16px !important;
  border: none !important;
  border-left: 2px solid var(--green-dark) !important;
  background: var(--green-pale);
  font-size: 14px;
  color: var(--fg);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-left-color: #d05050 !important;
  background: rgba(208, 80, 80, 0.06);
  color: #c03030;
}
.wpcf7-not-valid-tip {
  color: #c03030 !important;
  font-size: 12px !important;
  margin-top: 4px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-left-color: var(--green-dark) !important;
  background: var(--green-pale);
}

/* CF7 列レイアウト（2カラム化が必要なら） */
.cf7-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) { .cf7-row-2col { grid-template-columns: 1fr; } }

/* ----- Footer (dark = anchor for the design) ----- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.5);
  padding: 56px 0 32px;
  font-size: 13px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer .logo-link img { height: 40px; }
.site-footer .copy { color: rgba(255,255,255,0.4); font-size: 12px; }

/* ===== Blog area ===== */
.blog-page {
  padding-top: 160px;
  padding-bottom: 120px;
  min-height: 60vh;
}
.blog-header { text-align: center; margin-bottom: 80px; }
.blog-header h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--fg-strong);
}
.blog-header p { color: var(--fg-muted); font-size: 15px; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color .3s var(--easing), transform .3s var(--easing), box-shadow .3s var(--easing);
  text-decoration: none;
  color: var(--fg);
  overflow: hidden;
}
.post-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(181, 194, 78, 0.12);
  opacity: 1;
}
.post-card .thumb {
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--easing);
}
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 24px; }
.post-card .meta {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--green-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}
.post-card h2 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  color: var(--fg-strong);
}
.post-card .excerpt { font-size: 13px; color: var(--fg-muted); line-height: 1.7; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 80px;
  flex-wrap: wrap;
}
.pagination .page-numbers,
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-size: 14px;
  text-decoration: none;
  color: var(--fg);
  transition: all .2s var(--easing);
}
.pagination .page-numbers.current {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}
.pagination a:hover { border-color: var(--green); color: var(--green-dark); opacity: 1; }

/* Single post */
.single-post {
  padding-top: 160px;
  padding-bottom: 120px;
}
.post-hero {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}
.post-hero .breadcrumb {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  margin-bottom: 24px;
}
.post-hero .breadcrumb a { color: var(--green-dark); }
.post-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--fg-strong);
}
.post-hero .meta {
  font-size: 13px;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
}
.post-hero .meta .cat {
  display: inline-block;
  border: 1px solid var(--green-dark);
  color: var(--green-dark);
  padding: 2px 10px;
  margin-right: 12px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.15em;
}

.post-thumb-large {
  max-width: 1000px;
  margin: 0 auto 60px;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}
.post-thumb-large img { width: 100%; height: 100%; object-fit: cover; }

.post-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 2;
  color: var(--fg);
}
.post-content > * + * { margin-top: 1.4em; }
.post-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin-top: 2.4em;
  margin-bottom: 1em;
  letter-spacing: -0.01em;
  border-left: 4px solid var(--green);
  padding-left: 16px;
  line-height: 1.5;
  color: var(--fg-strong);
}
.post-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.8em;
  color: var(--fg-strong);
}
.post-content h4 { font-size: 17px; font-weight: 700; margin-top: 1.6em; }
.post-content p { line-height: 2.0; }
.post-content a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 4px; }
.post-content a:hover { color: var(--green-deeper); }
.post-content ul, .post-content ol { padding-left: 1.5em; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.6em; line-height: 1.9; }
.post-content blockquote {
  border-left: 3px solid var(--green);
  padding: 16px 24px;
  background: var(--bg-alt);
  font-style: italic;
  color: var(--fg-muted);
}
.post-content code {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}
.post-content pre {
  background: var(--bg-dark);
  color: #e5e5e5;
  padding: 20px 24px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
}
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content img { margin: 2em auto; border-radius: 4px; }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
}
.post-content th, .post-content td {
  border: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
}
.post-content th { background: var(--bg-alt); font-weight: 700; }

.post-tags {
  max-width: 720px;
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.post-tags .label { font-size: 12px; color: var(--fg-faint); letter-spacing: 0.1em; text-transform: uppercase; margin-right: 8px; }
.post-tags a {
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg-muted);
  transition: all .2s var(--easing);
}
.post-tags a:hover { border-color: var(--green); color: var(--green-dark); opacity: 1; }

.post-nav {
  max-width: 720px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  transition: all .2s var(--easing);
}
.post-nav a:hover { border-color: var(--green); opacity: 1; }
.post-nav .label { font-size: 11px; color: var(--fg-faint); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px; }
.post-nav .title { font-weight: 700; font-size: 14px; line-height: 1.5; }
.post-nav .next { text-align: right; }

/* 404 */
.error-404 {
  padding-top: 200px;
  padding-bottom: 120px;
  text-align: center;
}
.error-404 .num {
  font-size: 120px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}
.error-404 h1 { font-size: 28px; margin: 24px 0 16px; color: var(--fg-strong); }
.error-404 p { color: var(--fg-muted); margin-bottom: 32px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--easing), transform .8s var(--easing); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Hero animations */
.hero-eyebrow,
.hero h1,
.hero p.lead,
.hero-cta {
  opacity: 0;
  animation: fadeUp 1s var(--easing) forwards;
}
.hero-eyebrow { animation-delay: 0.2s; }
.hero h1 { animation-delay: 0.4s; }
.hero p.lead { animation-delay: 0.6s; }
.hero-cta { animation-delay: 0.8s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Screen reader only */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}
