:root {
  /* Colors */
  --color-ninja-black: #1a1a1a;
  --color-hacker-green: #2ecc71;
  --color-primary: #ff6b6b; /* Bright pink/red */
  --color-secondary: #4ecdc4; /* Bright teal */
  --color-accent-1: #feca57; /* Bright yellow */
  --color-accent-2: #54a0ff; /* Bright blue */
  --color-bg-light: #f8f9fa;
  --color-text: #2d3436;
  --color-gray: #636e72;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Typography */
  --font-en: 'Outfit', sans-serif;
  --font-ja: 'M PLUS Rounded 1c', 'Helvetica Neue', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-ja);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text, .font-en {
  font-family: var(--font-en);
}

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

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-green { background-color: var(--color-hacker-green); }
.bg-orange { background-color: var(--color-primary); }
.bg-blue { background-color: var(--color-accent-2); }

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-ja);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #ff8787);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-bg-light);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.6rem 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  z-index: 1000;
  transition: padding 0.3s ease;
}

.navbar.scrolled {
  padding: 0.8rem 5%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.logo-icon {
  color: var(--color-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn-primary) {
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary):hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 90vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: white; /* テキストを白にする（背景が画像になるため） */
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s linear;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  transform: scale(1.1); /* ズーム効果（Ken Burns効果風） */
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
}

.hero:hover .slide-nav {
  opacity: 1;
}

.slide-nav:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 2rem; }
.next-btn { right: 2rem; }

.prev-btn::before {
  content: '';
  width: 12px;
  height: 12px;
  border-left: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(45deg);
  margin-left: 4px;
}

.next-btn::before {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 3px solid white;
  border-top: 3px solid white;
  transform: rotate(45deg);
  margin-right: 4px;
}

@media (max-width: 768px) {
  .slide-nav { display: none; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* 背景画像を暗くしてテキストを読みやすくする */
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to bottom, #fff, #f0f4f8);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  z-index: 0;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background-color: #ff9a9e;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background-color: #a1c4fd;
  bottom: 0;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background-color: #fbc2eb;
  top: 40%;
  left: 40%;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  width: 100%;
  padding: 0 5%;
  text-align: center;
}

.hero-content .hero-title,
.hero-content .hero-subtitle {
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.text-center {
  text-align: center;
}

.center-actions {
  justify-content: center;
}

.brand-logo {
  height: 60px;
  width: auto;
  display: block;
}

.footer-brand-logo {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: #ffe3e3;
  color: #ff6b6b;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-gray);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* News Section styles */
.news-list {
  max-width: 900px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
  gap: 1.5rem;
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.news-date {
  font-family: var(--font-en);
  color: var(--color-gray);
  font-weight: 500;
  min-width: 100px;
}

.news-category {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  color: white;
  min-width: 80px;
  text-align: center;
}

.tag-event { background-color: var(--color-primary); }
.tag-info { background-color: var(--color-secondary); }

.news-title {
  font-weight: 500;
  color: var(--color-text);
  flex: 1;
}

.mt-3 { margin-top: 2rem; }

/* Media Query refinements */

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
}

.bg-light {
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.section-desc {
  color: var(--color-primary);
  font-weight: 700;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 2rem;
}

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

/* Feature Cards */
.feature-card {
  padding: 2.5rem;
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  transform: rotate(-5deg);
}

.feature-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Gallery Cards */
.gallery-card { overflow: hidden; padding: 0; }
.gallery-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #e9ecef; /* Fallback */
  transition: transform 0.5s ease;
}

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

.placeholder-scratch { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.placeholder-minecraft { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); }
.placeholder-web { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.placeholder-robot { background: linear-gradient(135deg, #fccb90, #d57eeb); }

.gallery-info {
  padding: 1.5rem;
}

.gallery-info h3 { margin-bottom: 0.5rem; }
.gallery-info p { font-size: 0.9rem; color: var(--color-gray); }

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-gray);
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* Footer */
.footer {
  background-color: var(--color-ninja-black);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.footer-logo { font-size: 2rem; font-weight: 800; font-family: var(--font-en); margin-bottom: 1rem; }
.footer-logo .logo-icon { color: var(--color-secondary); }

.footer-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-sns-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qr-footer {
  width: 30px;
  height: 30px;
  border-radius: 4px;
}

.footer-links a {
  color: #a0a0a0;
  transition: color 0.3s;
}
.footer-links a:hover { color: white; }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #a0a0a0;
  font-size: 0.9rem;
}

/* Animations & Interactivity class */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.delay-1 { transition-delay: 0.2s; }

/* Responsive Flow */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-actions { justify-content: center; }
  .hero-image { margin-top: 3rem; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  
  .nav-links.active { right: 0; }
  .mobile-menu-btn { display: flex; }
  
  .mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .news-date {
    min-width: auto;
  }
}
