:root {
  --primary-color: #2b3a42;
  --secondary-color: #3f5e5a;
  --accent-color: #c9a365;
  --bg-color: #f7f9f9;
  --text-main: #333333;
  --text-light: #666666;
  --text-dark: #1a1a1a;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--accent-color);
  letter-spacing: 2px;
  font-family: var(--font-body);
}

.main-nav {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;           /* 2行レイアウト対応 */
  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-color: var(--bg-color);
  color: var(--accent-color);
}

/* Hamburger Menu */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: var(--transition);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  height: 80vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-title {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.8), 0 0 1px #000;
  -webkit-text-stroke: 1px rgba(0,0,0,0.5);
}

.hero-subtitle {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Site Intro & News */
.site-intro {
  text-align: center;
  padding: 5rem 0 3rem;
  max-width: 800px;
}

.site-intro h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.site-intro p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--accent-color);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.news-section {
  background: var(--white);
  padding: 3rem 0;
}

.news-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

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

.news-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.news-list .date {
  font-weight: 700;
  color: var(--accent-color);
  margin-right: 1.5rem;
  min-width: 100px;
}

.news-list a {
  color: var(--text-main);
  font-weight: 500;
}

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

/* Card Grid */
.content-section {
  padding: 5rem 0;
}

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

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

.card-body {
  padding: 2rem;
}

.card-body h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.card-body p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.read-more {
  font-weight: 700;
  color: var(--accent-color);
}

/* 2-Column Layout for Subpages */
.page-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 4rem 20px;
}

.main-column {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
}

.page-hero {
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.page-title {
  margin-top: 2rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

.article-content h2 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent-color);
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.ad-container {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--white);
  border: 1px solid #ddd;
  text-align: center;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.sidebar-widget h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.toc-list, .related-list {
  list-style: none;
}

.toc-list li, .related-list li {
  margin-bottom: 0.8rem;
}

.toc-list a, .related-list a {
  color: var(--text-main);
  display: block;
  font-size: 0.95rem;
}

.toc-list a:hover, .related-list a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.sidebar-ad {
  margin-bottom: 2rem;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 4rem 0 0;
}

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

.footer-col h3 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.brand-col p {
  color: #ccc;
}

.links-col ul, .network-col ul {
  list-style: none;
}

.links-col li, .network-col li {
  margin-bottom: 0.5rem;
}

.links-col a, .network-col a {
  color: #ccc;
}

.links-col a:hover, .network-col a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  background: rgba(0,0,0,0.2);
  color: #888;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .page-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: block;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }
  
  .nav-item a {
    display: block;
    padding: 1rem;
    border-radius: 0;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .news-list li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .news-list .date {
    margin-bottom: 0.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .page-title {
    font-size: 2rem;
  }
}
