/* ============================================================
   昆虫ブリーディング産業レポート 共通スタイル
   テーマ: 深い森の黒緑 × 玉虫色グリーンのグラデーション
   ============================================================ */

:root {
  --bg-deep: #0d1b0f;
  --bg-panel: #122416;
  --bg-card: #162c1c;
  --bg-card-hover: #1b3623;
  --line: #26492f;
  --line-soft: #1d3a25;
  --green-dark: #1f3d2b;
  --green-mid: #4caf6e;
  --green-light: #a5d6a7;
  --iridescent: linear-gradient(120deg, #1f3d2b 0%, #2e7d4f 30%, #4caf6e 55%, #7ccf8f 78%, #a5d6a7 100%);
  --text-main: #dceade;
  --text-body: #d5e6d8;
  --text-muted: #93b39a;
  --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(76, 175, 110, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(31, 61, 43, 0.5), transparent 65%);
  color: var(--text-body);
  line-height: 1.9;
  font-size: 16px;
}

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

a {
  color: var(--green-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c8f0ca;
}

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

/* ---------------- ヘッダー ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 27, 15, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--iridescent);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.brand {
  text-align: center;
}

.brand-name {
  display: inline-block;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(100deg, #a5d6a7 0%, #4caf6e 45%, #d4f2cf 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 2px;
}

.menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 22px;
  width: 42px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 9px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-light);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.global-nav {
  width: 100%;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  gap: 2px 4px;
}

.nav-list li a {
  display: inline-block;
  white-space: nowrap;
  padding: 4px 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-body);
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-list li a:hover,
.nav-list li a.is-current {
  color: #eafbea;
  border-color: var(--line);
  background: linear-gradient(120deg, rgba(31, 61, 43, 0.9), rgba(76, 175, 110, 0.25));
}

/* ---------------- ヒーロー（トップ） ---------------- */

.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 20px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #d9f7d9;
  background: rgba(13, 27, 15, 0.72);
  border: 1px solid rgba(165, 214, 167, 0.5);
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 18px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #f2fff0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 6px 22px rgba(0, 0, 0, 0.75);
  max-width: 760px;
}

.hero-lead {
  margin-top: 18px;
  max-width: 680px;
  font-size: 1.02rem;
  font-weight: 500;
  color: #eefaec;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 3px 14px rgba(0, 0, 0, 0.8);
}

/* ---------------- 汎用レイアウト ---------------- */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 8px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #eafbea;
  padding-left: 16px;
  border-left: 5px solid var(--green-mid);
  margin-bottom: 10px;
}

.section-title::after {
  content: "";
  display: block;
  width: 88px;
  height: 3px;
  margin-top: 8px;
  background: var(--iridescent);
  border-radius: 2px;
}

.section-lead {
  color: var(--text-muted);
  margin-bottom: 26px;
  max-width: 860px;
}

/* ---------------- ニュースリスト（トップ） ---------------- */

.news-list {
  list-style: none;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-panel);
  overflow: hidden;
}

.news-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
}

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

.news-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-mid);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.news-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0d1b0f;
  background: linear-gradient(120deg, #4caf6e, #a5d6a7);
  border-radius: 4px;
  padding: 1px 8px;
  white-space: nowrap;
}

.news-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.94rem;
}

/* ---------------- カードグリッド ---------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.page-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-mid);
}

.page-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.page-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.page-card-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green-mid);
}

.page-card h3 {
  font-size: 1.08rem;
  font-weight: 900;
  color: #eafbea;
  line-height: 1.5;
}

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

.card-link {
  align-self: flex-start;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green-light);
}

.card-link::after {
  content: " →";
}

/* ---------------- 統計ハイライト ---------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.stat-card {
  background: linear-gradient(150deg, var(--bg-card) 0%, rgba(31, 61, 43, 0.75) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--iridescent);
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, #a5d6a7, #4caf6e 60%, #d4f2cf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.3;
}

.stat-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #d5e6d8;
  margin-top: 4px;
}

.stat-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------------- 内容ページ ---------------- */

.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 90px 20px 34px;
}

.page-hero h1 {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.45;
  color: #f2fff0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 6px 20px rgba(0, 0, 0, 0.8);
  max-width: 820px;
}

.page-hero-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #dcf7da;
  background: rgba(13, 27, 15, 0.75);
  border: 1px solid rgba(165, 214, 167, 0.45);
  border-radius: 999px;
  padding: 3px 14px;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.layout-2col {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

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

.lead-box {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-left: 5px solid var(--green-mid);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 34px;
  font-size: 0.96rem;
}

.main-col h2 {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #eafbea;
  margin: 46px 0 16px;
  padding: 10px 16px;
  background: linear-gradient(110deg, rgba(31, 61, 43, 0.85), rgba(76, 175, 110, 0.16) 70%, transparent);
  border-left: 5px solid var(--green-mid);
  border-radius: 6px;
}

.main-col h2:first-of-type {
  margin-top: 0;
}

.main-col h3 {
  font-size: 1.08rem;
  font-weight: 900;
  color: #d9f2da;
  margin: 30px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--green-light);
}

.main-col p {
  margin-bottom: 16px;
}

.main-col ul,
.main-col ol {
  margin: 0 0 18px;
}

.main-col li {
  margin-bottom: 6px;
}

/* 表 */

.table-wrap {
  overflow-x: auto;
  margin: 20px 0 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 560px;
}

table.data-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 10px 14px 6px;
  background: var(--bg-panel);
}

table.data-table th,
table.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

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

table.data-table tbody tr:nth-child(even) {
  background: rgba(31, 61, 43, 0.3);
}

table.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* CSS横棒グラフ */

.bar-chart {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
}

.bar-row .bar-label {
  font-weight: 700;
  color: #d9f2da;
  text-align: right;
}

.bar-track {
  background: rgba(31, 61, 43, 0.45);
  border-radius: 999px;
  height: 16px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--iridescent);
}

.bar-value {
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
}

.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-58 { width: 58%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-66 { width: 66%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-82 { width: 82%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }

/* 注記・ポイントボックス */

.point-box {
  background: rgba(76, 175, 110, 0.1);
  border: 1px solid rgba(76, 175, 110, 0.45);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0 26px;
  font-size: 0.92rem;
}

.point-box .point-title {
  font-weight: 900;
  color: var(--green-light);
  margin-bottom: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.note-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ページ送り */

.page-pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-pager a {
  flex: 1;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #d9f2da;
}

.page-pager a:hover {
  border-color: var(--green-mid);
  background: var(--bg-card-hover);
}

.page-pager .pager-next {
  text-align: right;
}

.pager-dir {
  display: block;
  font-size: 0.72rem;
  color: var(--green-mid);
  letter-spacing: 0.14em;
  margin-bottom: 2px;
}

/* ---------------- サイドバー ---------------- */

.side-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 110px;
}

.side-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.side-card-title {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #eafbea;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid transparent;
  border-image: var(--iridescent) 1;
  border-bottom-width: 2px;
  border-bottom-style: solid;
}

.toc-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}

.toc-list a {
  display: block;
  font-size: 0.84rem;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-body);
  border-left: 3px solid var(--line);
}

.toc-list a:hover {
  border-left-color: var(--green-mid);
  background: rgba(76, 175, 110, 0.1);
  color: #eafbea;
}

.side-links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.side-links a {
  display: block;
  font-size: 0.84rem;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(31, 61, 43, 0.35);
  border: 1px solid var(--line-soft);
  color: var(--text-body);
}

.side-links a:hover {
  border-color: var(--green-mid);
  color: #eafbea;
}

.ad-box {
  background: var(--bg-panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  overflow: hidden;
}

.ad-box img {
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.ad-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.amazon-banner {
  margin: 0 auto;
}

.amazon-banner a {
  display: block;
  background: linear-gradient(120deg, #1f3d2b, #2e5c3c);
  border: 1px solid var(--green-mid);
  border-radius: 8px;
  padding: 16px 12px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #eafbea;
}

.amazon-banner a:hover {
  background: linear-gradient(120deg, #2e5c3c, #3d7a50);
}

.inline-ad {
  margin: 26px auto 30px;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

/* ---------------- フッター ---------------- */

.site-footer {
  margin-top: 60px;
  background: #0a1509;
  border-top: 1px solid var(--line-soft);
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--iridescent);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 900;
  color: #eafbea;
  margin-bottom: 10px;
}

.footer-about p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--green-light);
  margin-bottom: 12px;
}

.footer-nav ul,
.footer-related ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-nav a,
.footer-related a {
  font-size: 0.84rem;
  color: var(--text-body);
}

.footer-nav a:hover,
.footer-related a:hover {
  color: var(--green-light);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.footer-links a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-body);
}

.footer-links a:hover {
  color: var(--green-light);
}

.copyright {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 18px;
}

/* ---------------- レスポンシブ ---------------- */

@media (max-width: 960px) {
  .layout-2col {
    grid-template-columns: 1fr;
  }

  .side-col {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
  }

  .header-inner {
    align-items: flex-start;
    padding: 14px 20px 12px;
  }

  .brand {
    text-align: left;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .global-nav {
    display: none;
  }

  .global-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    gap: 4px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line-soft);
  }

  .nav-list li a {
    display: block;
    white-space: normal;
    padding: 10px 14px;
    border-radius: 8px;
  }

  .bar-row {
    grid-template-columns: 104px minmax(0, 1fr) 64px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 380px;
  }

  .section {
    padding: 44px 18px 4px;
  }
}

/* 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; }
}
