/* ====================================
   CSS Variables
   ==================================== */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-primary: #1a1a1a;
  --color-primary-hover: #333333;
  --color-border: #e5e7eb;
  
  /* Neon Colors */
  --neon-blue: #00d4ff;
  --neon-pink: #ff2d95;
  --neon-purple: #b24dff;
  --neon-gradient: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
  --neon-gradient-reverse: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
  --neon-glow-blue: 0 0 20px rgba(0, 212, 255, 0.5);
  --neon-glow-pink: 0 0 20px rgba(255, 45, 149, 0.5);
  
  --font-sans: 'Outfit', 'Noto Sans JP', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 5rem;
  
  --max-width: 1200px;
  --header-height: 220px;
}

/* ====================================
   Reset & Base
   ==================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ====================================
   Utilities
   ==================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--neon-gradient);
  color: #fff;
  box-shadow: var(--neon-glow-pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 45, 149, 0.6), 0 0 60px rgba(0, 212, 255, 0.3);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-lg);
}

/* ====================================
   Header
   ==================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.logo img {
  height: 200px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

/* ====================================
   Hero
   ==================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  gap: var(--spacing-xl);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 45, 149, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  flex: 1;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-label {
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--spacing-md);
}

.nowrap {
  white-space: nowrap;
}

.hero-name {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

.hero-image {
  flex: 0 0 40%;
  max-width: 480px;
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: var(--neon-gradient);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.8;
}

.hero-image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: 80%;
  height: 80%;
  border: 3px solid var(--neon-blue);
  border-radius: 12px;
  z-index: -1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  background-color: var(--color-bg-alt);
  position: relative;
  z-index: 1;
}

/* ====================================
   Services
   ==================================== */
.services {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-md);
}

.service-card {
  background: var(--color-bg);
  padding: var(--spacing-lg);
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: block;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: var(--neon-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

a.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15), 0 12px 40px rgba(255, 45, 149, 0.1);
}

a.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 45, 149, 0.1));
  border-radius: 12px;
  margin-bottom: var(--spacing-md);
  color: var(--neon-pink);
  transition: all 0.3s ease;
}

a.service-card:hover .service-icon {
  background: var(--neon-gradient);
  color: #fff;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-link-muted {
  background: none;
  -webkit-text-fill-color: var(--color-text-muted);
  color: var(--color-text-muted);
}

/* ====================================
   Highlights
   ==================================== */
.highlights {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  text-align: center;
}

.highlight-item {
  padding: var(--spacing-lg);
  background: var(--color-bg);
  border-radius: 16px;
  border: 2px solid transparent;
  background-image: linear-gradient(var(--color-bg), var(--color-bg)), var(--neon-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
}

.highlight-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--spacing-xs);
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-number small {
  font-size: 1.25rem;
  font-weight: 600;
}

.highlight-label {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ====================================
   Media
   ==================================== */
.media {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-bg-alt);
}

.media-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.media-list {
  margin-bottom: var(--spacing-xl);
}

.media-list li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
}

.media-list li:last-child {
  border-bottom: none;
}

.media-list a {
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.media-list a:hover {
  opacity: 0.7;
}

.content-section a {
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.content-section a:hover {
  opacity: 0.7;
}

.media-book {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-bg);
  border-radius: 8px;
  max-width: 500px;
  transition: all 0.2s ease;
}

a.media-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-md);
}

.books-grid .media-book {
  max-width: none;
}

.media-book img {
  width: 100px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: var(--color-bg-alt);
}

.media-book-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.media-book-info p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.book-role {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(255, 45, 149, 0.15));
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--neon-pink);
  font-weight: 500;
}

/* ====================================
   CTA
   ==================================== */
.cta {
  padding: var(--spacing-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.1) 0%, rgba(255, 45, 149, 0.05) 50%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.cta-text {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
  position: relative;
}

/* ====================================
   Footer
   ==================================== */
.footer {
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-text);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ====================================
   Lecture Page
   ==================================== */
.page-header {
  padding: calc(var(--header-height) + var(--spacing-2xl)) 0 var(--spacing-xl);
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 45, 149, 0.03) 50%, var(--color-bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 45, 149, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  position: relative;
}

.page-subtitle {
  color: var(--color-text-muted);
  position: relative;
}

.content-section {
  padding: var(--spacing-2xl) 0;
}

.content-section:nth-child(even) {
  background-color: var(--color-bg-alt);
}

.content-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.content-section p {
  margin-bottom: var(--spacing-sm);
}

.content-section ul {
  margin-bottom: var(--spacing-md);
}

.content-section li {
  padding: var(--spacing-xs) 0;
  padding-left: 1.5rem;
  position: relative;
}

.content-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

.price-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  margin: var(--spacing-md) 0;
}

.price-table th,
.price-table td {
  padding: var(--spacing-sm);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.price-table th {
  font-weight: 600;
  background-color: var(--color-bg-alt);
}

.price-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.achievement-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-sm);
}

.achievement-item {
  padding: var(--spacing-sm);
  background: var(--color-bg);
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.achievement-item::before {
  display: none;
}

.achievement-category {
  font-size: 1rem;
  font-weight: 600;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid transparent;
  border-image: var(--neon-gradient) 1;
}

.achievement-category:first-of-type {
  margin-top: var(--spacing-md);
}

.flow-note {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--spacing-xs);
}

/* ====================================
   Profile Page
   ==================================== */
.profile-content {
  display: flex;
  gap: var(--spacing-xl);
  align-items: flex-start;
}

.profile-image {
  flex: 0 0 280px;
}

.profile-image img {
  width: 100%;
  border-radius: 8px;
  background-color: var(--color-bg-alt);
}

.profile-text {
  flex: 1;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.profile-name-en {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.profile-bio {
  margin-bottom: var(--spacing-md);
  line-height: 1.9;
}

.profile-bio:last-of-type {
  margin-bottom: 0;
}

/* ====================================
   Contact Page
   ==================================== */
.contact-intro {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form iframe {
  width: 100%;
  min-height: 800px;
  border: none;
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--spacing-xl));
  }

  .hero::before,
  .hero::after {
    width: 200px;
    height: 200px;
  }

  .hero-image {
    flex: none;
    max-width: 300px;
  }

  .hero-image::before {
    top: -10px;
    right: -10px;
  }

  .hero-image::after {
    bottom: -10px;
    left: -10px;
    width: 70%;
    height: 70%;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .highlight-item {
    padding: var(--spacing-md);
  }

  .profile-content {
    flex-direction: column;
    align-items: center;
  }

  .profile-image {
    flex: none;
    max-width: 240px;
  }

  .profile-text {
    text-align: left;
  }

  .profile-name,
  .profile-name-en {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 0 var(--spacing-md);
  }

  .menu-toggle {
    margin-right: 0;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .nav-list a {
    display: block;
    padding: var(--spacing-xs) 0;
  }

  .menu-toggle {
    display: flex;
  }

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

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

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

  .footer-nav {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .hero-title {
    font-size: 1.35rem;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .logo img {
    height: 120px;
  }
}
