/* =========================================================
   営農型太陽光発電レポート (Agrivoltaics Report)
   テーマ: 田園グリーン × サンイエロー / 太陽と畑のストライプ
   ========================================================= */

:root {
  --green-900: #1e4517;
  --green-700: #2e7031;
  --green-500: #4c9a3f;
  --green-300: #8cc63f;
  --green-100: #e9f5dd;
  --green-50: #f5faec;
  --sun-600: #e09b00;
  --sun-500: #f5b301;
  --sun-300: #ffd95e;
  --sun-100: #fff4d1;
  --cream: #fdfcf4;
  --ink: #28361e;
  --muted: #5c7050;
  --line: #dde8cd;
  --white: #ffffff;
  --shadow: 0 6px 20px rgba(46, 112, 49, 0.12);
  --radius: 14px;
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.9;
  font-size: 16px;
  overflow-wrap: break-word;
}

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

a {
  color: var(--green-700);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--sun-600);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  line-height: 1.5;
  color: var(--green-900);
}

ul, ol {
  padding-left: 1.4em;
}

/* ---------- 太陽と畑のストライプ ---------- */
.stripe-bar {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--green-500) 0 34px,
    var(--green-300) 34px 68px,
    var(--sun-500) 68px 80px
  );
}

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-sun {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 42%, var(--sun-300), var(--sun-500) 70%);
  box-shadow: 0 0 0 4px rgba(245, 179, 1, 0.2), 0 0 16px rgba(245, 179, 1, 0.55);
  position: relative;
}

.logo-sun::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 5px;
  height: 9px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--green-700) 0 5px, var(--green-300) 5px 10px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--green-900);
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--sun-600);
  text-transform: uppercase;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.2rem 0.35rem;
  align-items: center;
  flex-wrap: wrap;           /* 2行レイアウト対応 */
  max-width: 900px;          /* ナビゲーション全体の最大幅制限 */
  justify-content: center;   /* メニュー項目を中央配置 */
  padding-left: 0;
}

.nav-item a {
  font-weight: 500;
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.9rem;
  white-space: nowrap;
  display: inline-block;
}

.nav-item a:hover {
  background: var(--green-100);
  color: var(--green-700);
}

.nav-item a.current {
  background: var(--green-700);
  color: var(--white);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 42px;
  padding: 8px 10px;
  background: var(--sun-100);
  border: 2px solid var(--sun-500);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--green-700);
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- ヒーロー（TOP） ---------- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 69, 23, 0.18) 0%, rgba(30, 69, 23, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.2rem;
  max-width: 900px;
}

.hero-content h1 {
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  color: #fffbe8;
  text-shadow: 0 3px 10px rgba(20, 40, 10, 0.9), 0 0 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
}

.hero-content p {
  color: #ffffff;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(20, 40, 10, 0.95), 0 0 18px rgba(0, 0, 0, 0.7);
}

.hero-badge {
  display: inline-block;
  background: var(--sun-500);
  color: var(--green-900);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ---------- 下層ページヒーロー ---------- */
.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .hero-overlay {
  background: linear-gradient(180deg, rgba(30, 69, 23, 0.05) 30%, rgba(30, 69, 23, 0.6) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  padding: 2.2rem 1.2rem 1.6rem;
}

.page-hero-content h1 {
  color: #fffbe8;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  text-shadow: 0 3px 10px rgba(20, 40, 10, 0.9), 0 0 26px rgba(0, 0, 0, 0.6);
}

.page-hero-content .page-lead {
  color: #ffffff;
  font-weight: 700;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  text-shadow: 0 2px 8px rgba(20, 40, 10, 0.95);
}

.breadcrumb {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--green-700);
}

/* ---------- レイアウト ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1.2rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.2rem;
  align-items: start;
}

.article-main {
  min-width: 0;
}

/* ---------- 本文セクション ---------- */
.content-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.9rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow);
}

.content-section h2 {
  font-size: 1.35rem;
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
  border-bottom: 4px solid;
  border-image: repeating-linear-gradient(90deg, var(--green-500) 0 26px, var(--sun-500) 26px 36px) 1;
}

.content-section h3 {
  font-size: 1.08rem;
  margin: 1.3rem 0 0.6rem;
  padding-left: 0.7rem;
  border-left: 5px solid var(--sun-500);
}

.content-section p {
  margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
  margin: 0 0 1rem 0.3rem;
}

.content-section li {
  margin-bottom: 0.35rem;
}

.lead-note {
  background: var(--green-50);
  border-left: 5px solid var(--green-500);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.point-box {
  background: var(--sun-100);
  border: 1px dashed var(--sun-600);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.point-box strong {
  color: var(--green-900);
}

/* ---------- 表 ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
  background: var(--white);
}

table.data-table th,
table.data-table td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

table.data-table thead th {
  background: var(--green-700);
  color: var(--white);
  font-weight: 700;
}

table.data-table tbody tr:nth-child(even) {
  background: var(--green-50);
}

table.data-table tbody th {
  background: var(--green-100);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- CSSチャート ---------- */
.chart-box {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  margin: 1.2rem 0;
}

.chart-title {
  font-weight: 700;
  font-family: 'Zen Maru Gothic', sans-serif;
  color: var(--green-900);
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.bar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

.bar-track {
  background: #eef3e2;
  border-radius: 999px;
  height: 22px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.55rem;
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  min-width: 3.2em;
  white-space: nowrap;
}

.bar-fill.sun {
  background: linear-gradient(90deg, var(--sun-600), var(--sun-300));
  color: var(--green-900);
}

.bar-fill.alert {
  background: linear-gradient(90deg, #c25e2a, #e6924f);
}

.chart-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* 幅ユーティリティ（バーの長さ） */
.w-5 { width: 5%; }
.w-8 { width: 8%; }
.w-10 { width: 10%; }
.w-12 { width: 12%; }
.w-15 { width: 15%; }
.w-18 { width: 18%; }
.w-20 { width: 20%; }
.w-22 { width: 22%; }
.w-25 { width: 25%; }
.w-28 { width: 28%; }
.w-30 { width: 30%; }
.w-33 { width: 33%; }
.w-35 { width: 35%; }
.w-38 { width: 38%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-48 { width: 48%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-58 { width: 58%; }
.w-60 { width: 60%; }
.w-62 { width: 62%; }
.w-65 { width: 65%; }
.w-68 { width: 68%; }
.w-70 { width: 70%; }
.w-72 { width: 72%; }
.w-75 { width: 75%; }
.w-78 { width: 78%; }
.w-80 { width: 80%; }
.w-82 { width: 82%; }
.w-85 { width: 85%; }
.w-88 { width: 88%; }
.w-90 { width: 90%; }
.w-92 { width: 92%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }

/* ---------- タイムライン ---------- */
.timeline {
  list-style: none;
  padding-left: 0;
  margin: 1.2rem 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: repeating-linear-gradient(180deg, var(--green-500) 0 22px, var(--sun-500) 22px 30px);
}

.timeline li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 1.1rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sun-500);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-500);
}

.timeline .tl-year {
  display: inline-block;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  color: var(--white);
  background: var(--green-700);
  font-size: 0.82rem;
  border-radius: 6px;
  padding: 0.05rem 0.6rem;
  margin-right: 0.5rem;
}

/* ---------- 構造図（仕組みページ） ---------- */
.structure-diagram {
  background: linear-gradient(180deg, #d9efff 0%, #eef9ff 55%, var(--green-100) 55%, var(--green-50) 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.2rem 0.6rem;
  margin: 1.2rem 0;
  text-align: center;
}

.sd-panels {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
}

.sd-panel {
  width: 74px;
  height: 16px;
  background: linear-gradient(135deg, #1c3f66, #3a6ea5);
  border: 2px solid #12293f;
  border-radius: 3px;
  transform: skewX(-14deg);
}

.sd-posts {
  display: flex;
  justify-content: center;
  gap: 86px;
}

.sd-post {
  width: 7px;
  height: 64px;
  background: #8a8f96;
  border-radius: 2px;
}

.sd-crops {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: -6px;
  padding-bottom: 0.4rem;
}

.sd-crop {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 40% 35%, var(--green-300), var(--green-700));
}

.sd-caption {
  font-size: 0.8rem;
  color: var(--muted);
  padding-bottom: 0.5rem;
}

/* ---------- サイドバー ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  min-width: 0;
}

.side-widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.widget-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--green-900);
  background: linear-gradient(90deg, var(--green-100), var(--sun-100));
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  margin-bottom: 0.8rem;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.88rem;
}

.toc-list li {
  border-bottom: 1px dashed var(--line);
}

.toc-list li:last-child {
  border-bottom: none;
}

.toc-list a {
  display: block;
  padding: 0.5rem 0.2rem;
  color: var(--ink);
}

.toc-list a::before {
  content: "▸ ";
  color: var(--sun-600);
}

.toc-list a:hover {
  color: var(--green-700);
  background: var(--green-50);
}

.related-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.88rem;
}

.related-list li {
  margin-bottom: 0.45rem;
}

.related-list a::before {
  content: "→ ";
  color: var(--green-500);
}

.ad-widget {
  text-align: center;
  font-size: 0.8rem;
}

.ad-widget img {
  max-width: 100%;
  height: auto;
}

.ad-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
}

.amazon-banner {
  border: 1px solid var(--sun-500);
  border-radius: 8px;
  background: var(--sun-100);
  padding: 0.7rem 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

.amazon-banner a {
  color: var(--green-900);
  display: block;
}

.amazon-banner a:hover {
  color: var(--sun-600);
}

.inline-ad {
  text-align: center;
  margin: 1.4rem 0 0.4rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  overflow-x: auto;
}

.inline-ad img {
  max-width: 100%;
  height: auto;
}

/* ---------- TOP: 概要 ---------- */
.section-block {
  padding: 3rem 0 1rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 1.8rem;
}

.section-heading .en {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--sun-600);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.section-heading h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--green-500) 0 20px, var(--sun-500) 20px 28px);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.overview-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--green-500);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.overview-card:nth-child(2) {
  border-top-color: var(--sun-500);
}

.overview-card:nth-child(3) {
  border-top-color: var(--green-300);
}

.overview-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.overview-card p {
  font-size: 0.92rem;
}

/* ---------- TOP: 統計ストリップ ---------- */
.stats-strip {
  background: linear-gradient(120deg, var(--green-700), var(--green-500));
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  margin: 2.2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  text-align: center;
  color: var(--white);
}

.stat-item .stat-num {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--sun-300);
  line-height: 1.2;
}

.stat-item .stat-label {
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

/* ---------- TOP: ニュース ---------- */
.news-list {
  list-style: none;
  padding-left: 0;
  max-width: 900px;
  margin: 0 auto;
}

.news-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.9rem;
  padding: 1rem 1.3rem;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: start;
  box-shadow: var(--shadow);
}

.news-date {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  color: var(--white);
  background: var(--green-700);
  border-radius: 8px;
  text-align: center;
  font-size: 0.8rem;
  padding: 0.35rem 0.2rem;
}

.news-body strong {
  display: block;
  color: var(--green-900);
  margin-bottom: 0.2rem;
}

.news-body p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- TOP: ページカード ---------- */
.page-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin: 1.6rem 0 3rem;
}

.page-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(46, 112, 49, 0.2);
}

.page-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.page-card .card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-card .card-no {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sun-600);
  letter-spacing: 0.16em;
}

.page-card h3 {
  font-size: 1.02rem;
  margin: 0.25rem 0 0.5rem;
}

.page-card p {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
}

.page-card .card-link {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-700);
}

.page-card .card-link::after {
  content: " →";
  color: var(--sun-600);
}

/* ---------- ページ送り ---------- */
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-nav a {
  background: var(--white);
  border: 2px solid var(--green-500);
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-700);
}

.page-nav a:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--green-900);
  color: #dcead0;
  margin-top: 3rem;
  padding: 2.6rem 0 1.6rem;
}

.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: var(--sun-300);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.85rem;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: #dcead0;
}

.footer-col a:hover {
  color: var(--sun-300);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem auto 1rem;
  padding: 1.2rem 1.2rem 0;
  border-top: 1px solid rgba(220, 234, 208, 0.25);
  max-width: 1160px;
  font-size: 0.85rem;
}

.footer-links a {
  color: #dcead0;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.7;
  color: var(--sun-300);
}

.copyright {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(220, 234, 208, 0.7);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 90px;
  }

  .menu-toggle {
    display: flex;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--sun-500);
    box-shadow: 0 14px 26px rgba(30, 69, 23, 0.18);
  }

  .global-nav.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    padding: 0.6rem 1rem 1rem;
    gap: 0;
  }

  .nav-item a {
    display: block;
    padding: 0.75rem 0.6rem;
    border-bottom: 1px dashed var(--line);
    white-space: normal;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .news-date {
    width: 110px;
  }

  .bar-row {
    grid-template-columns: 105px 1fr;
  }

  .bar-label {
    font-size: 0.72rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .content-section {
    padding: 1.3rem 1.1rem;
  }

  .hero {
    min-height: 400px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ---------- パートナー募集（共通ボタン） ---------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--green-700);
  border: 2px solid var(--green-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--white);
  border: 2px solid var(--green-500);
  color: var(--green-700);
}

.btn-secondary:hover {
  background: var(--green-100);
  color: var(--green-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ---------- パートナー募集：インラインカード ---------- */
.partner-inline-section {
  padding: 0.5rem 0 2.4rem;
}

.partner-inline-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
  background: linear-gradient(120deg, var(--green-50), var(--sun-100));
  border: 1px solid var(--line);
  border-left: 6px solid var(--sun-500);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
}

.partner-badge {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: var(--sun-500);
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.partner-inline-title {
  font-size: 1.15rem;
  color: var(--green-900);
  margin-bottom: 0.5rem;
}

.partner-inline-description {
  color: var(--muted);
  font-size: 0.9rem;
}

.partner-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ---------- パートナー募集：専用ページ ---------- */
.partner-page-hero {
  background: linear-gradient(120deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-500) 100%);
  color: var(--white);
  padding: 3.2rem 0 2.8rem;
  position: relative;
  overflow: hidden;
}

.partner-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 217, 94, 0.28), transparent 40%), radial-gradient(circle at bottom left, rgba(140, 198, 63, 0.25), transparent 45%);
}

.partner-page-hero .container,
.partner-page-content .container {
  position: relative;
  z-index: 1;
}

.partner-page-eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: var(--sun-500);
  color: var(--green-900);
  font-size: 0.82rem;
  font-weight: 700;
}

.partner-page-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.35;
  color: #fffbe8;
  margin-bottom: 1rem;
}

.partner-page-lead {
  max-width: 860px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.94);
}

.partner-page-content {
  padding: 2.6rem 0 3.4rem;
}

.partner-page-grid {
  display: grid;
  gap: 1.6rem;
}

.partner-content-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.9rem;
  box-shadow: var(--shadow);
}

.partner-content-block h2 {
  font-size: 1.35rem;
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
  border-bottom: 4px solid;
  border-image: repeating-linear-gradient(90deg, var(--green-500) 0 26px, var(--sun-500) 26px 36px) 1;
}

.partner-content-block h3 {
  font-size: 1.08rem;
  margin: 1.3rem 0 0.6rem;
  padding-left: 0.7rem;
  border-left: 5px solid var(--sun-500);
}

.partner-content-block p + p,
.partner-content-block ul,
.partner-content-block ol {
  margin-top: 0.8rem;
}

.partner-content-block ul,
.partner-content-block ol {
  padding-left: 1.4em;
}

.partner-content-block li + li {
  margin-top: 0.4rem;
}

.partner-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.partner-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
}

.partner-highlight-card {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-top: 6px solid var(--sun-500);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}

.partner-highlight-card h3 {
  margin: 0 0 0.5rem;
  padding-left: 0;
  border-left: none;
  color: var(--green-900);
}

.partner-highlight-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.partner-cta-box {
  background: linear-gradient(120deg, var(--green-700), var(--green-500));
  border: none;
  color: var(--white);
}

.partner-cta-box h2 {
  color: #fffbe8;
  border-image: repeating-linear-gradient(90deg, var(--sun-300) 0 26px, rgba(255, 255, 255, 0.5) 26px 36px) 1;
}

.partner-cta-box p,
.partner-cta-box li,
.partner-cta-box .partner-note {
  color: rgba(255, 255, 255, 0.94);
}

.partner-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.partner-cta-box .btn-primary {
  background: var(--sun-500);
  border-color: var(--sun-500);
  color: var(--green-900);
}

.partner-cta-box .btn-primary:hover {
  background: var(--sun-300);
  border-color: var(--sun-300);
  color: var(--green-900);
}

.partner-cta-box .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.partner-cta-box .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.26);
  color: var(--white);
}

@media (max-width: 860px) {
  .partner-inline-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .partner-inline-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .partner-content-block,
  .partner-inline-card {
    padding: 1.3rem 1.1rem;
  }

  .partner-cta-actions .btn,
  .partner-inline-actions .btn {
    width: 100%;
  }
}

/* Mobile content-width baseline. Blog-specific rules live in blog/blog.css. */
@media (max-width: 768px) {
  .page-content, .two-col-layout { padding-inline: 16px; }
  .two-col-layout, .blog-main { min-width: 0; }
  .sidebar { position: static; order: 2; }
}
