/* ============================================
   唐津ゲームクリエイターズコミュニティ
   Gaming Pop Style - CSS
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Base Colors - Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f2ff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f6ff;

  /* Pop Accent Colors */
  --neon-cyan: #00b8d4;
  --neon-magenta: #e91e7a;
  --neon-yellow: #f9a825;
  --neon-green: #00c853;
  --neon-purple: #7c4dff;

  /* Brand Colors */
  --unity-dark: #1a1a2e;
  --scratch-orange: #ff9f1c;

  /* Text Colors */
  --text-primary: #1a1a2e;
  --text-secondary: #555577;
  --text-muted: #8888aa;

  /* Glow Effects (softer for light theme) */
  --glow-cyan: 0 0 12px rgba(0, 184, 212, 0.25);
  --glow-magenta: 0 0 12px rgba(233, 30, 122, 0.25);
  --glow-yellow: 0 0 12px rgba(249, 168, 37, 0.25);

  /* Spacing */
  --section-padding: 80px 0;
  --container-max: 1100px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

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

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: var(--neon-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--neon-magenta);
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124, 77, 255, 0.12);
  transition: background var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
}

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

.nav-list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-list a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  transition: width var(--transition-normal);
}

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

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: var(--transition-normal);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124, 77, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(233, 30, 122, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 184, 212, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 60%;
  height: 100%;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--neon-purple);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-purple);
  margin-bottom: 24px;
  background: rgba(124, 77, 255, 0.06);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title .highlight-cyan {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.hero-title .highlight-magenta {
  color: var(--neon-magenta);
  text-shadow: var(--glow-magenta);
}

.hero-title .highlight-yellow {
  color: var(--neon-yellow);
  text-shadow: var(--glow-yellow);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(124, 77, 255, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid #ddd8f0;
}

.btn-secondary:hover {
  color: var(--neon-purple);
  border-color: var(--neon-purple);
  background: rgba(124, 77, 255, 0.04);
}

.btn-magenta {
  background: linear-gradient(135deg, var(--neon-magenta), var(--neon-purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(233, 30, 122, 0.3);
}

.btn-magenta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(233, 30, 122, 0.45);
}

/* --- Sections --- */
.section {
  padding: var(--section-padding);
  position: relative;
}

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

.section-logo {
  text-align: center;
  margin-bottom: 20px;
}

.section-logo img {
  height: 48px;
  width: auto;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-title .accent {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card-grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid #e8e4f4;
  border-radius: 16px;
  padding: 32px 28px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(124, 77, 255, 0.06);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(124, 77, 255, 0.25);
  box-shadow: 0 8px 30px rgba(124, 77, 255, 0.12);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.card-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Info Box --- */
.info-box {
  background: var(--bg-card);
  border: 1px solid #e8e4f4;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(124, 77, 255, 0.06);
}

.info-box-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--neon-purple);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-label {
  flex-shrink: 0;
  width: 120px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-value {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.info-value iframe {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 8px;
}

/* --- Page Header (sub pages) --- */
.page-header {
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(124, 77, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(233, 30, 122, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header .page-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.page-header .page-description {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Content Sections (about, join, etc.) --- */
.content-block {
  margin-bottom: 56px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--neon-cyan);
  line-height: 1.4;
}

.content-block h2.border-magenta {
  border-left-color: var(--neon-magenta);
}

.content-block h2.border-yellow {
  border-left-color: var(--neon-yellow);
}

.content-block h2.border-green {
  border-left-color: var(--neon-green);
}

.content-block p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.content-block ul {
  list-style: none;
  padding: 0;
}

.content-block ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid #eee8f8;
}

.content-block ul li:last-child {
  border-bottom: none;
}

.content-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--neon-purple);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(124, 77, 255, 0.3);
}

.content-block .note {
  background: #f8f5ff;
  border: 1px solid #e0d8f4;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Rule List --- */
.rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #faf8ff;
  border-radius: 12px;
  border: 1px solid #e8e4f4;
  transition: all var(--transition-normal);
}

.rule-item:hover {
  border-color: rgba(124, 77, 255, 0.25);
  background: #f4f0ff;
  box-shadow: 0 4px 16px rgba(124, 77, 255, 0.08);
}

.rule-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.rule-text {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* --- Profile Section --- */
.profile-card {
  background: var(--bg-card);
  border: 1px solid #e8e4f4;
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(124, 77, 255, 0.08);
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-yellow));
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.profile-title {
  color: var(--neon-purple);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  text-align: left;
}

/* --- Motto Section --- */
.motto-section {
  text-align: center;
  padding: 60px 24px;
  position: relative;
}

.motto-text {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta), var(--neon-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.5;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(124, 77, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-text {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid #e8e4f4;
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

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

/* --- Scroll Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

/* --- Background Decorations --- */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(124, 77, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 77, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right var(--transition-normal);
    border-left: 1px solid #e8e4f4;
  }

  .nav-list.open {
    right: 0;
  }

  .nav-list a {
    font-size: 1.1rem;
  }

  .hero {
    height: auto;
  }

  .hero-inner {
    flex-direction: column;
  }

  .hero-image {
    width: 100%;
    height: 50vh;
  }

  .hero-content {
    width: 100%;
    padding: 40px 24px 60px;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

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

  .info-item {
    flex-direction: column;
    gap: 4px;
  }

  .info-label {
    width: auto;
  }

  .info-box {
    padding: 24px;
  }

  .profile-card {
    padding: 32px 24px;
  }

  .section {
    padding: 48px 0;
  }

  .page-header {
    padding: 100px 20px 40px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .header-inner {
    height: 56px;
  }

  .logo img {
    height: 28px;
  }
}
