:root {
  --primary: #288C66;
  --primary-dark: #1e6b4d;
  --header-bg: linear-gradient(135deg, #0f1a14 0%, #1a4d3a 100%);
  --header-text: #ffffff;
  --header-border: rgba(255, 255, 255, 0.1);
}

* {
  font-family: 'Noto Sans JP', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f1a14;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* Helper Classes */
.bg-primary {
  background: var(--primary);
}

.text-primary {
  color: var(--primary);
}

.border-primary {
  border-color: var(--primary);
}

.bg-primary-light {
  background: var(--primary-light);
}

.bg-primary-dark {
  background: var(--primary-dark);
}

.hover\:bg-primary-dark:hover {
  background: var(--primary-dark);
}

.hover\:text-primary:hover {
  color: var(--primary);
}

.ring-primary {
  --tw-ring-color: var(--primary);
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background-color: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Components */
.news-item {
  background-color: #1e293b;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.news-item:hover {
  transform: translateX(4px);
  background-color: #334155;
}

.news-item-category {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
}

.news-item--pinned {
  border-left: 4px solid var(--primary);
}

.news-item-title {
  color: #ffffff;
  font-weight: 600;
}

.news-item-date {
  color: #94a3b8;
}

.news-item-excerpt {
  color: #6b7280;
}

.dark .news-item {
  background-color: #1a2e24;
}

.news-carousel-card {
  background-color: #1e293b;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-carousel-card-category {
  background: var(--primary);
  color: #ffffff;
}

.news-carousel-card-title {
  color: #ffffff;
}

.news-carousel-card-date {
  color: #94a3b8;
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, #020617 0%, #1a3a2a 50%, #020617 100%);
}

.hero-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(40, 140, 102, 0.15) 0%, transparent 50%),
                   radial-gradient(circle at 80% 20%, rgba(60, 181, 128, 0.1) 0%, transparent 40%),
                   radial-gradient(circle at 60% 80%, rgba(40, 140, 102, 0.08) 0%, transparent 45%);
}

/* Company Info Table */
.company-info-table {
  border-top: 1px solid #374151;
}

.company-info-row {
  flex-direction: column;
}

.company-info-label {
  width: 100%;
}

.company-info-value {
  flex: 1;
  padding: 1rem;
  color: #f3f4f6;
}

.company-info-table {
  border-top-color: #374151;
}

/* Special Hover Effect */
.special-card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent !important;
}

.special-card-hover:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 0 25px rgba(40, 140, 102, 0.3) !important;
  transform: translateY(-8px) scale(1.02) !important;
}

.hover:bg-primary-dark:hover {
  background: var(--primary-dark);
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}

.dark ::-webkit-scrollbar-track {
  background: #0f1a14;
}

/* Custom Styles for Form Elements */
input[type="checkbox"] {
  accent-color: var(--primary);
}

/* Animation Classes */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Mobile Menu Background is strictly opaque */
#mobile-menu {
  background-color: #020617 !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
}

.dark #mobile-menu {
  background-color: #020617 !important;
}

.dark {
  --header-bg: #1a4d3a; /* ダークモードでも共通のダークグリーン */
  --header-text: #ffffff;
  --header-border: rgba(255, 255, 255, 0.1);
}

#site-header {
  background: var(--header-bg) !important;
  border-bottom-color: var(--header-border);
}

.nav-link {
  color: #ffffff !important;
}

.nav-link:hover {
  color: #a7f3d0 !important;
}

/* News Styles */
.news-item {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Mobile Menu */
#mobile-menu {
  background-color: #020617 !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
}

/* Header Styles */
#site-header {
  background: var(--header-bg) !important;
  border-bottom-color: var(--header-border);
}

/* Font Sizes */

#hero-subtitle {
  font-size: 1.25rem;
}

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

/* Custom Utilities */
.bg-primary {
  background: var(--primary);
}

/* Header */
#site-header {
  background: var(--header-bg) !important;
  border-bottom: 1px solid var(--header-border);
}

) Styles */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  background-color: #1e293b;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Special Hover Effect for Cards */
.special-card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent !important;
}

/* Mobile Menu is strictly opaque */
#mobile-menu {
  background-color: #020617 !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
}

::-webkit-scrollbar {
  width: 8px;
}

.bg-primary {
  background: var(--primary);
}

#loading-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background-color: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* News Styles */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-gradient {
  background: linear-gradient(135deg, #020617 0%, #1a3a2a 50%, #020617 100%);
}

.special-card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent !important;
}

input[type="checkbox"] {
  accent-color: var(--primary);
}

#mobile-menu {
  background-color: #020617 !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
}

#hero-subtitle {
  font-size: 1.25rem; /* text-xl */
}

/* Message Section */
.message-card {
  position: relative;
}

.message-card::before {
  content: '\201C';
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 6rem;
  line-height: 1;
  color: rgba(40, 140, 102, 0.08);
  font-family: Georgia, serif;
  pointer-events: none;
}

.message-highlight {
  background: linear-gradient(135deg, rgba(40, 140, 102, 0.12) 0%, rgba(40, 140, 102, 0.04) 100%);
  border-left: 3px solid var(--primary);
}

.message-body p {
  font-size: 1.0625rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Message Section */
.message-card::before {
  content: '\201C';
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 6rem;
  line-height: 1;
  color: rgba(40, 140, 102, 0.08);
  font-family: Georgia, serif;
  pointer-events: none;
}

/* Font Sizes */
.section-title {
  font-size: 1.875rem;
}

/* Header & Mobile Menu */
#site-header {
  background: var(--header-bg) !important;
  border-bottom: 1px solid var(--header-border);
}

/* News/Note Card Styles */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Font Sizes */
#hero-subtitle {
  font-size: 1.25rem;
}
/* システム: 機能ページCSS（不足分を自動追加） */
.news-section { margin: 0; padding: 0; }
.news-section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: inherit; }
.news-item--hidden { display: none; }
.news-item--external { border-left: 3px solid #333; }
.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-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-external { opacity: 0.4; flex-shrink: 0; }
.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: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-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.8rem; }
.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; }
/* システム: カルーセルレイアウト必須プロパティ補完 */
.news-carousel-card { flex: 0 0 calc(33.333% - 0.85rem); min-width: 260px; }