:root {
  --font-heading: "Inter", "Noto Sans JP", "Roboto", system-ui, sans-serif;
  --primary-color: #2e004f;
  --glass-bg: rgba(255, 255, 255, .65);
  --glass-border: rgba(255, 255, 255, .35);
  --accent-gradient: linear-gradient(90deg, #8e24aa, #ff6f00);
  --accent-color: #ff6f00;
  /* Kept for backward compatibility if needed */
  --text-color: #111;
  --bg-color: #fafafa;
}

body {
  margin: 0;
  font-family: var(--font-heading);
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  padding-bottom: 64px;
  flex: 1;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 1.8rem;
  margin: 0 0 18px;
  font-weight: 800;
}

/* Header Styles */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.sub {
  font-size: .8rem;
  color: #666;
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

/* Navigation Links */

.nav a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

/* Underline Animation */
.nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav a:hover,
.nav a.active {
  color: var(--primary-color);
  text-decoration: none;
}

.lang-toggle {
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 640px) {
  .logo-img {
    height: 40px;
  }
}

/* Language Switcher Utilities */
html.lang-ja .en-text,
html.lang-en .ja-text {
  display: none;
}

/* Hero Section (Top Page) */
.hero {
  background: linear-gradient(135deg, #1e0032b3, #320a0099);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 140px 20px;
  text-align: center;
  border-radius: 0 0 40px 40px;
  margin-bottom: 60px;
  box-shadow: 0 15px 40px #0003;
  position: relative;
  overflow: hidden;
}

.hero:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, .4) 100%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3.5rem;
  margin: 10px 0;
  font-family: var(--font-heading);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: .95;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .2)
}

/* News Section */
.news-section {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px #0000000d;
  border: 1px solid rgba(0, 0, 0, .03);
  margin-bottom: 80px;
}

.news-item {
  border-bottom: 1px solid #f0f0f0;
  padding: 18px 0;
  display: flex;
  align-items: baseline;
  gap: 20px;
  transition: background .2s;
}

.news-item:hover {
  padding-left: 10px;
  background: linear-gradient(to right, rgba(142, 36, 170, .05), transparent);
  border-radius: 8px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-weight: 700;
  color: #ff6f00;
  min-width: 110px;
  font-family: var(--font-heading);
}

.news-content a {
  color: inherit;
  text-decoration: none;
}

.news-content a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid #eee;
}

.footer-content {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 0.9rem;
}

/* Animation Utilities (Preserved) */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Language Toggle Logic */
.en-text {
  display: none;
}

html.en-mode .ja-text {
  display: none;
}

html.en-mode .en-text {
  display: inline;
}

/* Button Style */
.lang-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  width: 40px;
  text-align: center;
  font-family: inherit;
  font-weight: bold;
  color: var(--primary-color);
}

.lang-btn:hover {
  background: #f0f0f0;
}