/* ===== Base & Reset ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

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

:root {
  --orange: #ff6a00;
  --orange-light: #ff9a40;
  --orange-dark: #cc5500;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-card-hover: #fff8f2;
  --text: #1a1a1a;
  --text-dim: #666;
  --border: #e8e8e8;
  --shadow: rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--orange-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ===== Header / Nav ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--orange);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

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

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--orange);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 2rem;
}

.hero-content {
  max-width: 1000px;
  width: 100%;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

/* Character Image */
.character-img {
  position: relative;
  flex-shrink: 0;
}

.character-img img {
  width: 320px;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.image-shield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

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

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  color: var(--orange);
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}

.btn-outline:hover {
  background: rgba(255, 106, 0, 0.08);
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865F2;
  color: #fff;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

/* ===== Sections ===== */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--orange);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* ===== Cards Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 106, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 106, 0, 0.1);
  color: var(--orange);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.card .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
}

/* ===== SNS Tabs ===== */
.sns-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.sns-tab {
  padding: 0.8rem 2rem;
  background: none;
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.sns-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.sns-tab:hover {
  color: var(--text);
}

.sns-tab.active {
  color: var(--orange);
}

.sns-tab.active::after {
  transform: scaleX(1);
}

.sns-panels {
  max-width: 600px;
  margin: 0 auto;
}

.sns-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 2px 10px var(--shadow);
  animation: fadeIn 0.3s ease;
}

.sns-panel.active {
  display: block;
}

.sns-panel h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.sns-panel p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

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

/* ===== Link Page ===== */
.link-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}

.page-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--orange);
  text-align: center;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 3rem;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  box-shadow: 0 2px 10px var(--shadow);
}

.link-card:hover {
  transform: translateX(8px);
  border-color: rgba(255, 106, 0, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-info {
  flex: 1;
}

.link-info h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.link-info p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.link-arrow {
  color: var(--orange);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.link-card:hover .link-arrow {
  transform: translateX(4px);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.gallery-placeholder {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.1rem;
  grid-column: 1 / -1;
  padding: 3rem;
}

/* ===== Live Page ===== */
.live-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}

.live-section {
  margin-bottom: 3rem;
}

.live-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #ff0000;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.live-content {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.live-empty {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Featured (配信中・予約配信) */
.live-featured .video-card {
  flex: 0 0 480px;
}

.live-featured .video-thumb {
  border-radius: 14px;
}

.live-featured .video-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

/* Video Cards */
.video-row {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.video-card {
  flex: 0 0 220px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
}

.video-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 10px var(--shadow);
}

.video-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.video-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff0000;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 1px;
}

.video-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-date {
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 700;
  margin-top: 0.3rem;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer a {
  color: var(--orange);
  text-decoration: none;
}

footer a:hover {
  opacity: 0.8;
}

/* ===== Image Protection ===== */
.protected-image img {
  -webkit-touch-callout: none;
}

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

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .hero-visual {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

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

  .hero-links {
    justify-content: center;
  }

  .character-img img {
    width: 240px;
  }

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

  .video-card {
    flex: 0 0 180px;
  }

  .live-featured .video-card {
    flex: 0 0 320px;
  }
}
