:root {
  --primary: #288C66;
  --primary-light: #3da87d;
  --primary-dark: #1e7050;
}

/* Base Styles */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.image-overlay {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
}

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

/* Typography */
#about-title, #menu-title, #gallery-title, #news-title, #note-title, #access-title {
  font-size: 1.875rem;
}

#about-text {
  font-size: 1.125rem;
}

/* Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Header */
#site-header {
  background: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}

#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#header-inner {
  height: 6rem;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#site-header.scrolled #header-inner {
  height: 4.5rem;
}

#header-logo {
  color: #ffffff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.header-logo-text {
  font-size: 1.5rem;
  color: #ffffff !important;
  transition: font-size 0.4s ease;
}

#header-logo > span.header-logo-text.font-serif.font-bold.tracking-wider {
  color: #ffffff !important;
}

#site-header.scrolled .header-logo-text {
  font-size: 1.25rem;
}

.header-logo-video {
  height: 2.75rem;
  width: 2.75rem;
  margin-right: 0.875rem;
}

#site-header.scrolled .header-logo-video {
  height: 2.25rem;
  width: 2.25rem;
}

#site-header:not(.scrolled) #header-logo,
#site-header:not(.scrolled) .header-logo-text,
#site-header:not(.scrolled) .nav-link {
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nav-link {
  font-size: 0.9375rem;
  color: #ffffff;
  position: relative;
  transition: opacity 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #ffffff;
  transition: width 0.3s ease-in-out;
}

.nav-link:hover {
  color: #ffffff;
  opacity: 0.8;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-contact {
  font-size: 0.875rem;
}

#mobile-menu-btn {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease-in-out;
}

#site-header.scrolled #mobile-menu-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile Menu */
#mobile-menu {
  background-color: #162e22 !important;
  opacity: 1 !important;
  border-left: 1px solid rgba(61, 168, 125, 0.2);
}

#mobile-menu * {
  opacity: 1;
}

#mobile-menu nav a,
#mobile-menu .mt-auto a {
  background-color: transparent;
}

#mobile-menu nav a:hover {
  background-color: rgba(61, 168, 125, 0.15);
}

.mobile-menu-logo {
  font-size: 1.125rem;
  color: #ffffff;
}

.mobile-menu-close-btn {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mobile-menu-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.mobile-link {
  font-size: 1.05rem;
}

.mobile-nav-item {
  border-left: 3px solid transparent;
  color: #e5e7eb;
  transition: all 0.3s ease;
}

.mobile-nav-item:hover {
  color: #ffffff;
  background-color: rgba(61, 168, 125, 0.15);
  border-left-color: var(--primary-light);
}

.btn-contact-mobile {
  font-size: 1rem;
}

.btn-contact-mobile:hover {
  background-color: #f0fdf4;
}

/* Footer */
.footer-forest {
  background: linear-gradient(180deg, #162e22 0%, #0d1a14 100%);
  padding-top: 5rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.footer-forest::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0.3;
}

.footer-top-lines {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; flex-direction: column; gap: 4px;
}

.footer-line {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(61, 168, 125, 0.3), transparent);
}

.footer-line-2 {
  opacity: 0.15;
}

.footer-logo-link {
  margin-bottom: 2rem;
  display: inline-flex;
}

.footer-logo-video {
  height: 3rem; width: 3rem;
  object-fit: contain;
  margin-right: 1rem;
}

.footer-logo-link:hover .footer-logo-video {
  transform: rotate(12deg) scale(1.1);
}

.footer-brand-name {
  font-size: 1.75rem;
  letter-spacing: 0.15em;
  color: #ffffff;
}

.footer-description {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer-social-wrap {
  display: flex;
  gap: 1.25rem;
}

.footer-nav-heading {
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-heading-dot {
  width: 8px; height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  margin-right: 1rem;
  box-shadow: 0 0 15px var(--primary-light);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-nav-link {
  font-size: 0.9375rem;
  color: #9ca3af;
  position: relative;
  transition: all 0.4s ease;
  display: inline-block;
}

.footer-nav-link:hover {
  color: #ffffff;
  transform: translateX(8px);
}

.footer-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-info-label {
  color: #5c7e6c;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-info-value {
  font-size: 1rem;
}

.footer-bottom {
  margin-top: 6rem;
}

.footer-bottom-line {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(61, 168, 125, 0.1), transparent);
  margin: 4rem 0 2.5rem 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* システム: 機能ページCSS（不足分を自動追加） */
.news-section { margin: 0; padding: 0; }
.news-section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: inherit; }
.news-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.news-item { 
  background: rgba(128, 128, 128, 0.1);
  border: 1px solid rgba(128, 128, 128, 0.2); 
  border-radius: 12px; 
  overflow: hidden; 
  transition: all 0.2s ease;
}
.news-item--hidden { display: none; }
.news-item:hover { 
  background: rgba(128, 128, 128, 0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.news-item--external { border-left: 3px solid #333; }
.news-item--pinned { border-left: 4px solid #f59e0b; }
.news-item-link { display: flex; align-items: stretch; color: inherit; text-decoration: none; cursor: pointer; }
.news-item-link:hover .news-item-title { color: var(--primary, #288C66); }
.news-item-image { width: 140px; min-width: 140px; height: 100px; object-fit: cover; flex-shrink: 0; }
@media (max-width: 640px) { 
  .news-item-link { flex-direction: column; }
  .news-item-image { width: 100%; height: 180px; min-width: unset; }
}
@media (max-width: 640px) { 
  .news-item-link { flex-direction: column; }
  .news-item-image { width: 100%; height: 180px; min-width: unset; }
}
.news-item-content { padding: 1rem; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.news-item-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; font-size: 0.75rem; }
.news-item-date { opacity: 0.7; color: inherit; }
.news-item-category { background: var(--primary, #288C66); color: white; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; }
.news-item-source { display: inline-flex; align-items: center; gap: 0.25rem; background: #fff; color: #333; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; border: 1px solid rgba(0,0,0,0.15); }
.news-item-pinned { background: #f59e0b; color: white; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; }
.news-item-title { margin: 0; font-size: 1.125rem; font-weight: 600; color: inherit; line-height: 1.4; display: flex; align-items: center; gap: 0.5rem; }
.news-item-external { opacity: 0.4; flex-shrink: 0; }
.news-item-excerpt { margin: 0.5rem 0 0; font-size: 0.875rem; opacity: 0.8; color: inherit; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.news-empty { text-align: center; padding: 3rem; opacity: 0.6; color: inherit; background: rgba(128, 128, 128, 0.1); border-radius: 12px; }
.news-show-more {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.75rem 1rem; margin-top: 0.5rem;
  background: rgba(128, 128, 128, 0.08); border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 12px; color: inherit; opacity: 0.7;
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s ease;
}
.news-show-more:hover { background: rgba(128, 128, 128, 0.15); opacity: 1; }
.news-carousel-wrapper { position: relative; overflow: hidden; padding: 0 0 2rem; }
.news-carousel-track {
  display: flex; gap: 1.25rem;
  overflow-x: auto; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none;
  padding: 0.5rem 0.25rem 1rem;
}
.news-carousel-track::-webkit-scrollbar { display: none; }
.news-carousel-card {
  flex: 0 0 calc(33.333% - 0.85rem);
  min-width: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid rgba(128, 128, 128, 0.15);
  transition: all 0.3s ease;
}
@media (max-width: 900px) { .news-carousel-card { flex: 0 0 calc(50% - 0.625rem); } }
@media (max-width: 600px) { .news-carousel-card { flex: 0 0 85%; } }
.news-carousel-card:hover { 
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.news-carousel-card-link { text-decoration: none; color: inherit; display: block; cursor: pointer; }
.news-carousel-card-link:hover .news-carousel-card-title { color: var(--primary, #288C66); }
.news-carousel-card-image-wrap { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.news-carousel-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.news-carousel-card:hover .news-carousel-card-image { transform: scale(1.05); }
.news-carousel-pinned {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: #f59e0b; color: white; padding: 0.2rem 0.5rem;
  border-radius: 6px; font-size: 0.7rem; font-weight: 600;
}
.news-carousel-card-body { padding: 1rem 1.25rem; }
.news-carousel-card-title {
  margin: 0; font-size: 1rem; font-weight: 600; color: inherit; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-carousel-card-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.8rem; }
.news-carousel-card-date { opacity: 0.6; color: inherit; }
.news-carousel-card-category { opacity: 0.7; color: inherit; }
.news-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-70%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #333; font-size: 1.2rem;
}
.news-carousel-nav:hover { background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.news-carousel-nav--prev { left: 0.5rem; }
.news-carousel-nav--next { right: 0.5rem; }
.news-carousel-nav[disabled] { opacity: 0.3; cursor: default; }
.news-carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }
.news-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(128,128,128,0.3); border: none; cursor: pointer;
  transition: all 0.2s; padding: 0;
}
.news-carousel-dot--active { background: var(--primary, #288C66); width: 24px; border-radius: 4px; }
.news-detail-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
@media (max-width: 640px) {
  .news-detail-wrapper { padding: 1.5rem 1rem 3rem; }
}
.news-detail-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem; font-size: 0.8125rem;
  color: inherit; opacity: 0.6; flex-wrap: wrap;
}
.news-detail-breadcrumb a { color: var(--primary, #288C66); text-decoration: none; opacity: 1; }
.news-detail-breadcrumb a:hover { text-decoration: underline; }
.news-detail-breadcrumb-separator { opacity: 0.4; }
.news-detail-breadcrumb-current { opacity: 1; }
.news-detail-image {
  width: 100%; height: auto; max-height: 420px;
  object-fit: cover; border-radius: 12px;
  margin-bottom: 2rem;
}
.news-detail-meta {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.news-detail-category {
  background: var(--primary, #288C66); color: white;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 500;
}
.news-detail-date { opacity: 0.6; color: inherit; font-size: 0.875rem; }
.news-detail-title {
  font-size: 1.75rem; font-weight: 700;
  color: inherit; margin: 0 0 2rem; line-height: 1.4;
}
@media (max-width: 640px) {
  .news-detail-title { font-size: 1.375rem; }
}
.news-detail-content {
  line-height: 1.9; color: inherit; font-size: 1rem;
}
.news-detail-content img {
  max-width: 100%; height: auto;
  border-radius: 8px; margin: 1.5rem 0;
}
.news-detail-content p { margin: 1.25rem 0; }
.news-detail-content h2 {
  margin: 2.5rem 0 1rem; color: inherit;
  font-size: 1.375rem; font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(128, 128, 128, 0.15);
}
.news-detail-content h3 {
  margin: 2rem 0 0.75rem; color: inherit;
  font-size: 1.125rem; font-weight: 600;
}
.news-detail-content ul, .news-detail-content ol {
  margin: 1rem 0; padding-left: 1.5rem;
}
.news-detail-content li { margin: 0.5rem 0; }
.news-detail-content blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary, #288C66);
  background: rgba(128, 128, 128, 0.06); border-radius: 0 8px 8px 0;
}
.news-detail-content a { color: var(--primary, #288C66); text-decoration: underline; transition: opacity 0.2s ease, color 0.2s ease; }
.news-detail-content a:hover { opacity: 0.7; text-decoration: none; }
.news-detail-content pre {
  background: rgba(128, 128, 128, 0.1);
  padding: 1rem; border-radius: 8px;
  overflow-x: auto; font-size: 0.875rem;
  margin: 1.5rem 0;
}
.news-detail-content code {
  background: rgba(128, 128, 128, 0.1);
  padding: 0.15rem 0.4rem; border-radius: 4px;
  font-size: 0.875em;
}
.news-detail-content pre code {
  background: none; padding: 0; border-radius: 0;
}
.news-detail-content table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
}
.news-detail-content th, .news-detail-content td {
  padding: 0.75rem 1rem; text-align: left;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}
.news-detail-content th {
  font-weight: 600; background: rgba(128, 128, 128, 0.06);
}
.news-detail-footer {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  text-align: center;
}
.news-detail-back-btn {
  display: inline-block;
  background: var(--primary, #288C66); color: white;
  padding: 0.75rem 2rem; border-radius: 8px;
  text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  transition: opacity 0.2s;
}
.news-detail-back-btn:hover { opacity: 0.85; }