/* CSS Custom Properties */
:root {
  --primary-color: #2F5233;
  --secondary-color: #8B5A3C;
  --accent-color: #D4A574;
  --text-dark: #2C2C2C;
  --text-light: #666;
  --bg-light: #F8FAF5;
  --bg-white: #FFFFFF;
  --border-color: #E0E8E0;
  --shadow: 0 4px 20px rgba(47, 82, 51, 0.1);
  --transition: all 0.3s ease;
  --font-primary: 'Hiragino Kaku Gothic ProN', 'Helvetica Neue', sans-serif;
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-light);
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

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

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

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

/* Reading Progress */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  z-index: 1000;
  transition: width 0.3s ease;
}

/* Header */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 1rem 0;
}

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

.logo-section {
  flex: 1;
}

.site-title a {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.site-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Navigation */
.nav-desktop {
  flex: 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 a {
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-item a:hover {
  background: var(--primary-color);
  color: white;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-white);
  z-index: 998;
  padding-top: 80px;
}

.mobile-menu {
  list-style: none;
  text-align: center;
  padding: 2rem;
}

.mobile-menu li {
  margin: 1rem 0;
}

.mobile-menu a {
  font-size: 1.2rem;
  padding: 1rem;
  display: block;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-menu a:hover {
  background: var(--primary-color);
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: white;
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  color: white;
  text-stroke: 2px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  color: white;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 4rem 0 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Site Overview */
.site-overview {
  background: var(--bg-white);
  padding: 3rem 0;
}

.site-overview h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.site-overview p {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
}

/* Latest News */
.latest-news {
  background: var(--bg-light);
  padding: 3rem 0;
}

.latest-news h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
}

.news-list li {
  background: var(--bg-white);
  margin: 0.8rem 0;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary-color);
  transition: var(--transition);
}

.news-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(47, 82, 51, 0.15);
}

/* Main Content */
.main-content {
  background: var(--bg-white);
  padding: 3rem 0;
}

.content-section h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.content-section h4 {
  color: var(--secondary-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.content-section p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-align: justify;
}

.content-section strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* 2-Column Layout for Sub Pages */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.main-column {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.sidebar {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  height: fit-content;
}

/* Table of Contents */
.toc h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.toc ul {
  list-style: none;
}

.toc li {
  margin: 0.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
}

.toc a {
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: var(--transition);
}

.toc a:hover {
  color: var(--primary-color);
}

/* Related Links */
.related-links {
  margin: 2rem 0;
}

.related-links h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.related-links ul {
  list-style: none;
}

.related-links li {
  margin: 0.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
}

.related-links a {
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: var(--transition);
}

.related-links a:hover {
  color: var(--primary-color);
}

/* Sidebar Ads */
.sidebar-ad {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  text-align: center;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin: 0.5rem 0;
}

.footer-section a {
  color: #ccc;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.9rem;
}

/* Related Sites */
.related-sites ul {
  list-style: none;
}

.related-sites li {
  margin: 0.5rem 0;
}

.related-sites a {
  color: #ccc;
  font-size: 0.85rem;
  line-height: 1.4;
  display: block;
  transition: var(--transition);
}

.related-sites a:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-mobile.active {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sidebar {
    order: -1;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    max-width: 100%;
  }
  
  .nav-item a {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
}
/* ===== Partner Page Styles ===== */
.partner-page-hero{padding-top:5rem;padding-bottom:4rem;background:linear-gradient(135deg,rgba(30,64,175,0.94) 0%,rgba(14,165,233,0.9) 100%);color:#fff;position:relative;overflow:hidden}
.partner-page-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(255,255,255,0.18),transparent 35%),radial-gradient(circle at bottom left,rgba(255,255,255,0.12),transparent 40%)}
.partner-page-hero .container,.partner-page-content .container{position:relative;z-index:1}
.partner-page-eyebrow{display:inline-block;margin-bottom:1rem;padding:.35rem .8rem;border-radius:999px;background:rgba(255,255,255,0.16);font-size:.875rem;font-weight:700;color:#fff}
.partner-page-title{font-size:clamp(1.75rem,5vw,3rem);line-height:1.15;margin-bottom:1.25rem;color:#fff}
.partner-page-lead{max-width:820px;font-size:1.125rem;color:rgba(255,255,255,0.92);line-height:1.7}
.partner-page-content{padding:4rem 0 5rem}
.partner-page-grid{display:grid;gap:2rem}
.partner-content-block{background:#fff;border:1px solid rgba(148,163,184,0.25);border-radius:1rem;padding:2rem;box-shadow:0 4px 6px -1px rgba(0,0,0,0.07)}
.partner-content-block h2{font-size:1.4rem;margin-bottom:1rem;color:#111827}
.partner-content-block h3{font-size:1.15rem;margin:1.5rem 0 .75rem;color:#1f2937}
.partner-content-block p{line-height:1.7;color:#374151}
.partner-content-block ul,.partner-content-block ol{padding-left:1.4rem;margin-top:.75rem;color:#374151}
.partner-content-block li{margin-bottom:.4rem;line-height:1.6}
.partner-highlight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-top:1.5rem}
.partner-highlight-card{background:#f9fafb;border:1px solid #e5e7eb;border-radius:.75rem;padding:1.25rem}
.partner-highlight-card h3{margin-top:0;font-size:1.1rem;color:#1e3a8a}
.partner-cta-box{background:linear-gradient(135deg,#1e40af 0%,#0ea5e9 100%) !important;color:#fff !important}
.partner-cta-box h2{color:#fff !important}
.partner-cta-box p,.partner-cta-box li,.partner-note{color:rgba(255,255,255,0.9)}
.partner-cta-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.5rem}
.partner-cta-actions .btn{display:inline-flex;align-items:center;padding:.7rem 1.4rem;border-radius:.5rem;font-weight:600;text-decoration:none;transition:all .2s;font-size:.95rem}
.partner-cta-actions .btn-primary{background:#fff;color:#1e40af;border:2px solid transparent}
.partner-cta-actions .btn-primary:hover{background:#eff6ff}
.partner-cta-actions .btn-secondary{background:rgba(255,255,255,0.15);color:#fff;border:1.5px solid rgba(255,255,255,0.35)}
.partner-cta-actions .btn-secondary:hover{background:rgba(255,255,255,0.25)}
.partner-note{margin-top:1rem;font-size:.875rem}
nav.breadcrumb{padding:.6rem 0;background:#f8fafc;border-bottom:1px solid #e2e8f0}
nav.breadcrumb .container{max-width:1200px;margin:0 auto;padding:0 1rem}
.breadcrumb-list{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.25rem;align-items:center}
.breadcrumb-item{display:flex;align-items:center;font-size:.85rem;color:#64748b}
.breadcrumb-item:not(:last-child)::after{content:'›';margin:0 .5rem;color:#94a3b8}
.breadcrumb-item a{color:#3b82f6;text-decoration:none}
.breadcrumb-item a:hover{text-decoration:underline}
.breadcrumb-item.active{color:#1e293b;font-weight:500}
.glossary-link{color:#3b82f6;text-decoration:underline}
@media(max-width:640px){.partner-content-block{padding:1.25rem}.partner-page-hero{padding-top:3.5rem;padding-bottom:2.5rem}}
