/* ============================================================
   ビデオ紹介 / 黄緑・清涼テーマ
   ============================================================ */
:root {
  color-scheme: light;
  --primary: #7cb342;
  --primary-strong: #558b2f;
  --primary-deep: #33691e;
  --primary-soft: #dcedc8;
  --mint: #b2dfdb;
  --bg: #f6faf0;
  --card: #ffffff;
  --text: #2b331f;
  --muted: #6f7d5f;
  --border: #e3ecd4;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(51, 105, 30, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---- ヘッダー / ナビ ---- */
.site-header {
  background: linear-gradient(135deg, #9ccc65, var(--primary-strong));
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}
.site-title { margin: 0; font-size: 1.3rem; font-weight: 700; }
.site-title a { color: #fff; letter-spacing: 0.02em; }
.site-title a:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 6px; }

/* {{ nav }} が <nav class="site-nav"> を生成するため二重ネストになる。
   内側ナビをフラット化し、リンクが親ナビの表示状態（開閉）に従うようにする。 */
.site-nav .site-nav { display: contents; }
.nav-link {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.18); text-decoration: none; }

/* ハンバーガー */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}
.nav-toggle-label span { position: relative; width: 24px; height: 2px; background: #fff; display: inline-block; }
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.25s;
}
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }
.nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
.nav-toggle:checked ~ .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked ~ .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }

/* ---- ヒーロー ---- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.7), transparent 36%),
    linear-gradient(160deg, #e8f5d8 0%, #dcedc8 55%, #c8e6a3 100%);
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-text { flex: 1 1 52%; }
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(51, 105, 30, 0.1);
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}
.hero-text h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  line-height: 1.35;
  color: var(--primary-deep);
}
.hero-text .lead { margin: 0 0 28px; color: #455a2f; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { flex: 0 1 44%; max-width: 460px; }
.hero-visual img { width: 100%; }

/* ---- ボタン ---- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(124, 179, 66, 0.4);
}
.btn-primary:hover { background: var(--primary-strong); }
.btn-outline {
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-strong);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: #fff; }

/* ---- セクション共通 ---- */
.news, .cta { padding: 56px 0; }
.features { padding: 64px 0 40px; }
section, main { outline: none; }

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-size: 1.5rem;
  color: var(--primary-deep);
}
.section-title::before {
  content: "";
  width: 8px;
  height: 1.5em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--mint), var(--primary));
}
.lead { color: var(--muted); margin: 0; }

.page-head { padding: 48px 0 8px; }
.page-head h1 { margin: 0 0 6px; font-size: 2rem; color: var(--primary-deep); }

/* ---- フィーチャーカード ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, #9ccc65, var(--primary-strong));
  margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--primary-deep); }
.feature-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---- 生成マークアップ: 新着一覧 ---- */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.news-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.news-title { font-weight: 600; font-size: 0.98rem; color: var(--text); }
.news-title:hover { color: var(--primary-strong); }

/* ---- 一覧内のカテゴリ・タグバッジ ---- */
.news-item .category,
.news-item .tag,
.post-card .category,
.post-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.news-item .category,
.post-card .category { background: var(--primary); color: #fff; }
.news-item .tag,
.post-card .tag { background: var(--primary-soft); color: var(--primary-deep); }

/* JSで一覧へ挿入されるカテゴリ（日付とタイトルの間・固定長）とタグ */
.post-list-cats {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 96px;
}
.post-list-cats .category {
  margin-left: 0;
  max-width: 132px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-list-cats .tag,
.post-list-badges .category,
.post-list-badges .tag { margin-left: 0; }
.post-list-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.news-item .post-list-cats { align-self: center; }
.news-item .post-list-badges { margin-left: auto; }
.post-card .post-list-cats { margin: 6px 0 4px; }
.post-card .post-list-badges { margin: 0 0 4px; }

.more-link { margin: 16px 0 0; text-align: right; }
.more-link a { font-weight: 600; }

/* ---- 生成マークアップ: 記事一覧 ---- */
.post-list { display: grid; gap: 16px; padding-bottom: 48px; }
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(51, 105, 30, 0.14); }
.post-title { margin: 0 0 6px; font-size: 1.15rem; }
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--primary-strong); }
.post-date {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.post-excerpt { margin: 0; font-size: 0.94rem; color: #4a5a3e; }

/* ---- 記事一覧の検索・ページング ---- */
.blog-toolbar { margin: 0 0 24px; }
.search-box { position: relative; max-width: 420px; }
.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.18);
}
.pager {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0 48px;
}
.pager-info { flex: 1 1 100%; color: var(--muted); font-size: 0.85rem; }
.pager button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--primary-strong);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pager button:hover:not(:disabled) { background: var(--primary-soft); }
.pager button.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager button:disabled { opacity: 0.45; cursor: default; }
.pager .pager-ellipsis { color: var(--muted); padding: 0 2px; }

/* ---- 記事詳細 ---- */
.post-article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 40px 48px;
  margin-top: 40px;
  box-shadow: var(--shadow);
}
.post-article h1 { margin: 0 0 8px; font-size: 1.8rem; line-height: 1.5; color: var(--primary-deep); }
.post-article .post-date { font-size: 0.9rem; }
.post-meta { margin: 8px 0 20px; }
.post-meta .category,
.post-meta .tag {
  display: inline-block;
  font-size: 0.78rem;
  padding: 2px 12px;
  border-radius: 999px;
  margin-right: 6px;
}
.post-meta .category { background: var(--primary); color: #fff; }
.post-meta .tag { background: var(--primary-soft); color: var(--primary-deep); }
.post-body { line-height: 2; }
.post-body h2 { color: var(--primary-deep); margin-top: 1.8em; }
.post-body img { border-radius: 12px; margin: 16px 0; }
.back-link { margin: 24px 0 48px; }

/* ---- アバウト ---- */
.about-body {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 0 24px;
}
.about-visual { flex: 0 1 40%; }
.about-text { flex: 1 1 60%; }
.about-text h2 {
  color: var(--primary-deep);
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.about-text p { color: #45523a; margin: 0 0 22px; }

.about-list { padding-bottom: 48px; }
.about-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.about-items li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 600;
}
.about-items li i { color: var(--primary); }

/* ---- お問い合わせ ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  padding: 32px 0 56px;
}
.contact-info,
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-info h2,
.contact-form h2 { margin-top: 0; color: var(--primary-deep); font-size: 1.15rem; }
.contact-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-info ul li { display: flex; align-items: flex-start; gap: 12px; color: #45523a; }
.contact-info ul li i { color: var(--primary); margin-top: 5px; }

.contact-form label { display: grid; gap: 6px; margin-bottom: 16px; }
.contact-form label span { font-weight: 600; font-size: 0.9rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: #fbfdf7;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.18);
}
.form-note { margin: 12px 0 0; font-size: 0.82rem; color: var(--muted); }

/* ---- CTA ---- */
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #aed581, var(--primary));
  border-radius: calc(var(--radius) + 6px);
  padding: 36px 40px;
  color: #fff;
}
.cta-panel h2 { margin: 0 0 6px; font-size: 1.35rem; }
.cta-panel p { margin: 0; opacity: 0.92; }
.cta-panel .btn-primary {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
.cta-panel .btn-primary:hover { background: var(--primary-soft); }

/* ---- フッター ---- */
.site-footer {
  background: #eef3e4;
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
}
.footer-note { margin: 0 0 8px; font-size: 0.85rem; color: var(--muted); }
.footer-copy { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---- スクロール表示 ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- レスポンシブ ---- */
@media (max-width: 860px) {
  .hero-inner { flex-direction: column; padding-top: 44px; padding-bottom: 44px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 360px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .about-body { flex-direction: column; text-align: center; }
  .about-visual { max-width: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-panel { flex-direction: column; text-align: center; }
  .post-article { padding: 28px 22px 36px; }
}

@media (max-width: 680px) {
  .nav-toggle-label { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    background: var(--primary);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    gap: 4px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.16);
    border-radius: 0 0 16px 16px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-link { padding: 13px 16px; border-radius: 10px; }
  .nav-link:hover { background: rgba(255, 255, 255, 0.16); }

  .feature-grid { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 2px; padding: 14px 18px; }
  .news-date { font-size: 0.8rem; }
  .cta-panel { padding: 28px 22px; }
}