/* ==========================================================
   都市養蜂ビジネス現況レポート 共通スタイル
   テーマ: 蜂蜜色の温かいマガジン風（クリーム地×アンバー）
   ========================================================== */

:root {
  --ink: #2d1b0e;
  --ink-soft: #4a3520;
  --amber-deep: #8a5a1b;
  --amber: #e8a33d;
  --honey: #f6d78a;
  --cream: #faf6ec;
  --paper: #fffdf6;
  --line: #e6d9bd;
  --shadow: 0 8px 24px rgba(45, 27, 14, 0.1);
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.9;
  font-size: 16px;
}

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

a {
  color: var(--amber-deep);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--amber);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- ヘッダー ---------- */
.site-header {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  border-bottom: 3px solid var(--amber);
  position: relative;
  z-index: 50;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 0;
}

.brand {
  display: flex;
  justify-content: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.brand-link:hover {
  color: var(--amber-deep);
}

.brand-hex {
  width: 34px;
  height: 38px;
  background: linear-gradient(160deg, var(--amber) 0%, var(--amber-deep) 100%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex-shrink: 0;
}

.brand-text {
  display: block;
}

.brand-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--amber-deep);
  letter-spacing: 0.14em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--amber-deep);
  border-radius: 8px;
  width: 46px;
  height: 42px;
  cursor: pointer;
  padding: 9px 10px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--amber-deep);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.global-nav {
  margin-top: 12px;
}

.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: block;
  white-space: nowrap;
  padding: 8px 13px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 3px solid transparent;
}

.nav-list li a:hover,
.nav-list li a.is-current {
  color: var(--amber-deep);
  border-bottom-color: var(--amber);
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(45, 27, 14, 0.55) 0%, rgba(45, 27, 14, 0.15) 70%);
}

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

.hero-eyebrow {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  padding: 5px 16px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff8e8;
  font-size: 2.6rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 6px rgba(45, 27, 14, 0.85), 0 0 24px rgba(45, 27, 14, 0.6);
  margin-bottom: 14px;
}

.hero-lead {
  color: #fdf3d8;
  font-size: 1.08rem;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(45, 27, 14, 0.9);
}

/* ページ共通ヒーロー（内容ページ） */
.page-hero {
  min-height: 300px;
}

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

.hero-market-overview {
  background-image: url("images/market-overview.jpg");
}

.hero-business-models {
  background-image: url("images/business-models.jpg");
}

.hero-case-studies {
  background-image: url("images/case-studies.jpg");
}

.hero-technology-trends {
  background-image: url("images/technology-trends.jpg");
}

.hero-regulations-hygiene {
  background-image: url("images/regulations-hygiene.jpg");
}

.hero-environment-sdgs {
  background-image: url("images/environment-sdgs.jpg");
}

.hero-future-outlook {
  background-image: url("images/future-outlook.jpg");
}

/* ---------- 共通レイアウト ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section-title {
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--ink);
}

.section-title-sub {
  text-align: center;
  color: var(--amber-deep);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  margin-bottom: 34px;
  text-transform: uppercase;
}

/* 六角形の区切り飾り */
.hex-divider {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 30px;
}

.hex-divider span {
  width: 14px;
  height: 16px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--honey);
}

.hex-divider span:nth-child(2) {
  background: var(--amber);
}

.hex-divider span:nth-child(3) {
  background: var(--amber-deep);
}

/* ---------- トップ: 概要 ---------- */
.intro-box {
  max-width: 860px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: 10px;
  padding: 34px 38px;
  box-shadow: var(--shadow);
}

.intro-box p + p {
  margin-top: 1em;
}

/* ---------- トップ: ニュースリスト ---------- */
.news-list {
  max-width: 860px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

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

.news-list a {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 15px 10px;
  color: var(--ink);
}

.news-list a:hover {
  background: rgba(246, 215, 138, 0.25);
  color: var(--amber-deep);
}

.news-date {
  font-family: var(--font-serif);
  color: var(--amber-deep);
  font-size: 0.9rem;
  white-space: nowrap;
}

.news-tag {
  background: var(--honey);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- トップ: ページカード ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

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

.page-card:hover {
  transform: translateY(-4px);
}

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

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

.page-card-no {
  font-family: var(--font-serif);
  color: var(--amber);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}

.page-card h3 {
  font-size: 1.15rem;
  margin: 6px 0 10px;
}

.page-card h3 a {
  color: var(--ink);
}

.page-card h3 a:hover {
  color: var(--amber-deep);
}

.page-card p {
  font-size: 0.9rem;
  color: #5b4630;
  flex: 1;
}

.page-card-more {
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.88rem;
}

/* ---------- 2カラムレイアウト ---------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 70px;
}

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

.breadcrumb {
  font-size: 0.82rem;
  color: #7a6347;
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--amber-deep);
}

.main-content article > p,
.article-section > p {
  margin-bottom: 1.2em;
}

.article-section {
  margin-bottom: 48px;
}

.article-section h2 {
  position: relative;
  font-size: 1.5rem;
  padding-left: 30px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--honey);
  padding-bottom: 10px;
}

.article-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 20px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, var(--amber), var(--amber-deep));
}

.article-section h3 {
  font-size: 1.12rem;
  color: var(--amber-deep);
  margin: 26px 0 12px;
}

.lead-paragraph {
  font-size: 1.05rem;
  background: linear-gradient(180deg, rgba(246, 215, 138, 0.3), transparent);
  border-left: 4px solid var(--amber);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 30px;
}

/* ---------- 統計カード ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--amber-deep);
  line-height: 1.3;
}

.stat-label {
  font-size: 0.8rem;
  color: #5b4630;
  margin-top: 6px;
}

.stat-note {
  font-size: 0.72rem;
  color: #8d795f;
  margin-top: 4px;
}

/* ---------- テーブル ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  border-radius: 10px;
  overflow: hidden;
}

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

.data-table thead th {
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  color: #fff8e8;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(246, 215, 138, 0.16);
}

/* ---------- 横棒グラフ（CSS図表） ---------- */
.bar-chart {
  margin: 24px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.bar-chart-title {
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 58px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.82rem;
}

.bar-track {
  background: rgba(230, 217, 189, 0.5);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--honey), var(--amber), var(--amber-deep));
}

.bar-value {
  text-align: right;
  font-weight: 700;
  color: var(--amber-deep);
}

.chart-note {
  font-size: 0.74rem;
  color: #8d795f;
  margin-top: 10px;
}

/* ---------- 注記・ポイントボックス ---------- */
.point-box {
  background: var(--paper);
  border: 1px solid var(--amber);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}

.point-box-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--amber-deep);
  margin-bottom: 10px;
}

.point-box ul {
  margin: 0;
}

.point-box li + li {
  margin-top: 6px;
}

/* ---------- ページ送り ---------- */
.page-pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-pager a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}

/* ---------- サイドバー ---------- */
.sidebar {
  min-width: 0;
}

.side-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.side-block h2 {
  font-size: 1rem;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.side-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
}

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

.side-block li:last-child {
  border-bottom: none;
}

.side-block li a {
  display: block;
  padding: 8px 2px;
}

.side-toc ul {
  font-size: 0.86rem;
}

.side-ad {
  text-align: center;
  overflow: hidden;
}

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

.ad-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: #8d795f;
  margin-bottom: 8px;
  text-align: center;
}

.amazon-banner {
  border: 1px solid var(--amber);
  border-radius: 8px;
  background: rgba(246, 215, 138, 0.25);
}

.amazon-banner a {
  display: block;
  padding: 14px 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* 本文中バナー */
.inline-ad {
  margin: 28px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

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

/* ---------- ブログカード（一覧） ---------- */
.blog-card-list {
  display: grid;
  gap: 26px;
}

.blog-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 280px 1fr;
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px 24px;
}

.blog-card-date {
  font-family: var(--font-serif);
  color: var(--amber-deep);
  font-size: 0.85rem;
}

.blog-card h2 {
  font-size: 1.2rem;
  margin: 8px 0 10px;
}

.blog-card h2 a {
  color: var(--ink);
}

.blog-card h2 a:hover {
  color: var(--amber-deep);
}

.blog-card p {
  font-size: 0.9rem;
  color: #5b4630;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--ink);
  color: #f0e4cd;
  margin-top: 40px;
  border-top: 6px solid var(--amber);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 30px;
}

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

.footer-about,
.footer-nav,
.footer-related {
  min-width: 0;
}

.footer-grid h3 {
  color: var(--honey);
  font-size: 1.02rem;
  margin-bottom: 14px;
}

.footer-grid p {
  font-size: 0.85rem;
  color: #d8c8a8;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  font-size: 0.86rem;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: #f0e4cd;
}

.footer-grid a:hover {
  color: var(--honey);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  border-top: 1px solid rgba(240, 228, 205, 0.25);
  padding-top: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: #f0e4cd;
  font-size: 0.85rem;
}

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

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #b7a480;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .brand {
    justify-content: flex-start;
  }

  .brand-title {
    font-size: 1.08rem;
  }

  .nav-toggle {
    display: flex;
  }

  .global-nav {
    display: none;
    width: 100%;
    margin-top: 0;
  }

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

  .nav-list {
    flex-direction: column;
    max-width: none;
    gap: 0;
    padding: 8px 0 12px;
  }

  .nav-list li a {
    white-space: normal;
    border-bottom: 1px solid var(--line);
    padding: 12px 8px;
  }

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

  .page-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card img {
    aspect-ratio: 16 / 9;
  }

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

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