/* =====================================
   食品業界AI需要予測サイト - スタイルシート
   独自デザイン: モダングラデーション × クリーンレイアウト
   ===================================== */

:root {
  /* カラーパレット: 独自のティールブルー × オレンジアクセント */
  --primary-color: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #06b6d4;
  --secondary-color: #fb923c;
  --secondary-dark: #f97316;
  --accent-color: #facc15;
  --success-color: #22c55e;
  --text-dark: #0f172a;
  --text-medium: #334155;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-gradient-start: #0891b2;
  --bg-gradient-end: #155e75;
  --border-color: #cbd5e1;
  --border-light: #e2e8f0;

  /* シャドウ */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* トランジション */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* フォント */
  --font-primary: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  --font-heading: 'Noto Sans JP', system-ui, sans-serif;

  /* レイアウト */
  --container-width: 1280px;
  --content-width-main: 70%;
  --content-width-sidebar: 30%;
  --gap-small: 1rem;
  --gap-medium: 2rem;
  --gap-large: 3rem;
}

/* ===== リセット ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.75;
  background-color: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style-position: inside;
}

/* ===== ヘッダー ===== */
.site-header {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--secondary-color);
}

.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 85px;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  color: var(--bg-white);
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.site-title a {
  color: var(--bg-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-title a:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* ===== ナビゲーション（2行レイアウト対応） ===== */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 900px;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-item a {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: var(--transition);
  font-size: 0.9rem;
  white-space: nowrap;
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0.6rem;
  z-index: 1001;
  border-radius: 8px;
  transition: var(--transition);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--bg-white);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ===== ヒーローセクション ===== */
.hero-section {
  position: relative;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: brightness(0.9);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--bg-white);
  max-width: 950px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  font-family: var(--font-heading);
  margin-bottom: 1.8rem;
  line-height: 1.15;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  font-weight: 400;
  opacity: 0.98;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 1.1rem 2.8rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  color: var(--bg-white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, #ea580c 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--bg-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

/* ===== コンテナ ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 4rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ===== ニュースリスト ===== */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-bottom: 4rem;
}

.news-item {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: 14px;
  padding: 1.8rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.news-item::before {
  content: '📰';
  font-size: 1.8rem;
  margin-right: 1rem;
  float: left;
}

.news-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: scaleY(0);
  transition: var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.news-item:hover::after {
  transform: scaleY(1);
}

.news-item p {
  line-height: 1.8;
  color: var(--text-medium);
}

/* ===== カードグリッド ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid var(--border-light);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: scaleX(0);
  transition: var(--transition);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-light);
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.card:hover .card-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.card-content {
  padding: 2.2rem;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 1.2rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.card-description {
  color: var(--text-light);
  margin-bottom: 1.8rem;
  line-height: 1.8;
  font-size: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
}

.card-link:hover {
  color: var(--primary-dark);
  transform: translateX(4px);
}

.card-link::after {
  content: ' →';
  margin-left: 0.5rem;
  transition: var(--transition);
}

.card-link:hover::after {
  margin-left: 0.8rem;
}

/* ===== 2カラムレイアウト（メイン70% / サイドバー30%） ===== */
.layout-two-column,
.two-column-layout {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 3rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  align-items: start;
}

/* メインコンテンツ */
.main-content {
  background: var(--bg-white);
  min-width: 0;
}

.article-hero {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-xl);
  border: 3px solid var(--border-light);
}

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-light);
}

.page-title {
  font-size: 3.2rem;
  font-weight: 900;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.article-meta {
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--text-medium);
}

.article-body h2 {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin: 3.5rem 0 1.8rem;
  color: var(--text-dark);
  border-left: 6px solid var(--primary-color);
  padding-left: 1.8rem;
  position: relative;
}

.article-body h2::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.article-body h3 {
  font-size: 1.9rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin: 3rem 0 1.5rem;
  color: var(--text-dark);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

.article-body h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1.2rem;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 2rem;
}

.article-body strong {
  font-weight: 700;
  color: var(--text-dark);
  background: linear-gradient(transparent 60%, rgba(251, 146, 60, 0.3) 60%);
}

.article-body ul,
.article-body ol {
  margin: 2rem 0 2rem 2rem;
  list-style-position: outside;
}

.article-body li {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

.article-body ul li::marker {
  color: var(--primary-color);
  font-weight: bold;
}

.article-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--bg-light);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-medium);
}

/* ===== サイドバー（30%） ===== */
.sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  min-width: 0;
}

.sidebar-widget,
.sidebar-card {
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.sidebar-widget:hover,
.sidebar-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.widget-title,
.sidebar-title {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 1.8rem;
  color: var(--text-dark);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 1rem;
  position: relative;
}

.widget-title::after,
.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary-color);
}

/* 目次（TOC） */
.toc-list {
  list-style: none;
}

.toc-item {
  margin-bottom: 1rem;
}

.toc-link {
  color: var(--text-medium);
  font-size: 0.95rem;
  display: block;
  padding: 0.7rem 1rem;
  transition: var(--transition);
  border-radius: 8px;
  border-left: 3px solid transparent;
}

.toc-link:hover {
  color: var(--primary-color);
  background: rgba(8, 145, 178, 0.08);
  border-left-color: var(--primary-color);
  transform: translateX(4px);
}

/* 関連リンク */
.related-links {
  list-style: none;
}

.related-link-item {
  margin-bottom: 1.2rem;
}

.related-link-item a {
  color: var(--primary-color);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 8px;
}

.related-link-item a:before {
  content: '→';
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.related-link-item a:hover {
  color: var(--primary-dark);
  background: rgba(8, 145, 178, 0.08);
  transform: translateX(4px);
}

/* 広告スペース */
.ad-space {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text-light);
  font-size: 0.9rem;
  border: 2px dashed var(--border-color);
  text-align: center;
  padding: 2rem;
}

/* ===== フッター ===== */
.site-footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 4.5rem 2rem 2rem;
  margin-top: 6rem;
  border-top: 4px solid var(--secondary-color);
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3.5rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--bg-white);
  font-size: 1.3rem;
  margin-bottom: 1.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--bg-white);
  transform: translateX(6px);
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ===== パンくずリスト ===== */
.breadcrumb {
  background: var(--bg-light);
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.breadcrumb-item::after {
  content: '›';
  color: var(--text-light);
}

.breadcrumb-item:last-child::after {
  display: none;
}

.breadcrumb-item a {
  color: var(--primary-color);
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== レスポンシブデザイン ===== */

/* タブレット（768px - 1023px） */
@media (max-width: 1023px) {
  .layout-two-column,
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sidebar {
    position: static;
    max-width: 100%;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .page-title {
    font-size: 2.6rem;
  }
}

/* モバイル（768px以下） */
@media (max-width: 768px) {
  :root {
    --gap-small: 0.75rem;
    --gap-medium: 1.5rem;
    --gap-large: 2rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 85px;
    left: -100%;
    width: 300px;
    height: calc(100vh - 85px);
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    box-shadow: var(--shadow-2xl);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    align-items: flex-start;
    max-width: none;
    border-right: 3px solid var(--secondary-color);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item a {
    display: block;
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
    border-radius: 12px;
  }

  .hero-section {
    height: 520px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1.2rem;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    padding: 1rem 2rem;
  }

  .container {
    padding: 3.5rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .article-body {
    font-size: 1.05rem;
  }

  .article-body h2 {
    font-size: 1.9rem;
    padding-left: 1.2rem;
  }

  .article-body h3 {
    font-size: 1.6rem;
  }

  .article-body h4 {
    font-size: 1.3rem;
  }

  .card-grid,
  .news-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .layout-two-column,
  .two-column-layout {
    padding: 2rem 1.5rem;
  }

  .sidebar-widget,
  .sidebar-card {
    padding: 1.5rem;
  }
}

/* 小型モバイル（480px以下） */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .header-content {
    min-height: 75px;
  }

  .site-title {
    font-size: 1.3rem;
  }

  .nav-menu {
    width: 260px;
    padding: 2rem 1rem;
  }

  .hero-section {
    height: 450px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .container {
    padding: 2.5rem 1rem;
  }

  .layout-two-column,
  .two-column-layout {
    padding: 1.5rem 1rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .card-content {
    padding: 1.5rem;
  }

  .sidebar-widget,
  .sidebar-card {
    padding: 1.2rem;
  }

  .article-hero {
    border-radius: 12px;
    margin-bottom: 2rem;
  }

  .btn {
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
  }
}

/* プリント対応 */
@media print {
  .site-header,
  .hero-section,
  .hamburger,
  .nav-menu,
  .sidebar,
  .site-footer,
  .btn,
  .ad-space {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  .main-content {
    max-width: 100%;
  }

  .article-body {
    font-size: 11pt;
  }
}

/* ユーティリティクラス */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}



/* === Header Styles === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: #0066cc;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0066cc;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: white;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  z-index: 999;
}

.mobile-nav-link {
  color: #333;
  text-decoration: none;
  padding: 0.5rem 0;
}

.footer {
  background-color: #f8f9fa;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid #e0e0e0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav.active {
    display: flex;
  }

  .mobile-nav-link {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }
}
