:root {
  /* Core Colors */
  --color-white: #ffffff;
  --color-black: #0f172a;
  --color-text: #334155;
  --color-muted: #64748b;
  --color-border: #e2e8f0;

  /* Brand Colors */
  --color-primary: #0ea5e9;
  /* Existing Blue */
  --color-primary-dark: #0284c7;
  --color-secondary: #f472b6;
  /* New Warm Pink/Coral */
  --color-secondary-dark: #db2777;

  /* Surfaces */
  --color-surface: #f8fafc;
  --color-surface-alt: #f1f5f9;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  --gradient-warm: linear-gradient(135deg, #f472b6 0%, #fb923c 100%);
  --gradient-surface: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);

  /* Typography */
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* Layout */
  --container-width: 1100px;
  --header-height: 80px;

  /* Effects */
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-soft: 0 20px 40px -10px rgba(15, 23, 42, 0.08);

  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.8;
  background: var(--color-surface);
  background-image:
    radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(244, 114, 182, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1.5rem;
  font-family: var(--font-sans);
  /* Switched to sans for modern feel, or keep serif for elegance */
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-serif);
  /* Keep serif for main headings for "About" feel */
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
  display: inline-block;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

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

/* Utilities */
.container {
  width: min(var(--container-width), 100% - 3rem);
  margin: 0 auto;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--color-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  box-shadow: none;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.site-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-muted);
  position: relative;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--color-primary);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* Hero Section */
.hero {
  padding: clamp(6rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.hero__eyebrow {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero__title {
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero__title-line {
  display: block;
}

.hero__title strong {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  display: inline-block;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg);
  transition: transform 0.5s ease;
}

.hero:hover img {
  transform: rotate(0deg) scale(1.02);
}

/* Sections */
.section {
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.section--muted {
  background: var(--color-surface-alt);
  position: relative;
}

.section--muted::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.section__lead {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.section__title {
  text-align: center;
  margin-bottom: 4rem;
}

/* Cards */
.card-grid,
.news-grid,
.member-grid {
  display: grid;
  gap: 2rem;
}

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

.news-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.member-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.news-card,
.member-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover,
.news-card:hover,
.member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--color-primary);
}

/* Feature Card */
.card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card__icon {
  min-width: 96px;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  align-self: flex-start;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.6)),
    var(--gradient-primary);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.card__title {
  font-size: 1.4rem;
  margin: 0;
}

/* News Card */
.news-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-card__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-card__badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.news-card__title {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.4;
}

.news-card__meta {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Member Card */
.member-card {
  padding: 2rem;
  text-align: center;
  align-items: center;
}

.member-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.member-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.member-card__role {
  font-size: 0.9rem;
  color: var(--color-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Forms */
.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--color-black);
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
  transition: all var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background: var(--color-surface-alt);
  font-weight: 700;
  text-align: left;
}

.table td,
.table th {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.table tr:last-child td {
  border-bottom: none;
}

/* Footer */
.site-footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0;
  margin-top: auto;
}

.site-footer__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--color-white);
  font-weight: 700;
}

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

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero img {
    order: -1;
    max-width: 80%;
    margin: 0 auto;
    transform: rotate(0);
  }

  .nav-list {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .site-header__inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
}

@media (max-width: 640px) {

  /* Show hamburger menu button */
  .menu-toggle {
    display: flex;
  }

  /* Hide navigation by default on mobile */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.2rem;
    height: 100%;
    padding: 2rem;
  }

  /* Show menu when open */
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-list a {
    color: var(--color-bg);
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
  }

  .nav-list a:hover,
  .nav-list a[aria-current="page"] {
    color: var(--color-primary);
  }

  .site-header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .card-grid,
  .news-grid,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: clamp(3rem, 8vw, 5rem) 0;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero__title-line {
    display: inline;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
  }

  .container {
    width: calc(100% - 2rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .card,
  .news-card__body,
  .member-card {
    padding: 1.5rem;
  }
}