* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  z-index: 1000;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-size: 32px;
  font-weight: bold;
  color: #ff6b6b;
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

/* ヒーローセクション */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-content h1 {
  font-size: 64px;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.hero-content p {
  font-size: 24px;
  margin-bottom: 30px;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-btn {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* セクション共通 */
section {
  padding: 100px 0;
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* セクション内のグリッドも中央配置 */
.features-grid,.gallery-grid,.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 80px;
  width: 100%;
  max-width: 1200px;
  justify-items: center;
}

/* テキストコンテンツも中央配置 */
.text-content {
  font-size: 24px;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.section-title {
  font-size: 48px;
  text-align: center;
  margin-bottom: 60px;
  color: #ffffff;
  font-weight: 700;
  position: relative;
}

.section-title1 {
  font-size: 48px;
  text-align: center;
  margin-bottom: 60px;
  color: #ffffff;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  border-radius: 2px;
}

.section-title1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  border-radius: 2px;
}

/* 機能セクション */
.features {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.feature-card:hover::before {
  opacity: 1;
  transform: rotate(45deg) translate(50%, 50%);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 60px;
  margin-bottom: 25px;
  display: block;
}

.feature-card h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 600;
}

.feature-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

/* ギャラリーセクション */
.gallery {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 80px;
}

.gallery-item {
  height: 250px;
  border-radius: 15px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.gallery-item:hover::before {
  left: 100%;
}

.gallery-item:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* テキストアニメーション */
.text-animation {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #2c3e50;
}

.text-animation .section-title {
  color: #2c3e50;
}

.text-animation .section-title1 {
  color: #2c3e50;
}

.text-content {
  font-size: 24px;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.word {
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 8px;
}

/* 統計セクション */
.stats {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 56px;
  font-weight: 700;
  color: #ff6b6b;
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.stat-label {
  font-size: 18px;
  color: #ffffff;
  font-weight: 500;
}

/* フッター */
footer {
  background: #0a0a0a;
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* コードボタン */
.code-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: #ffffff;
  border: none;
  padding: 18px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 40px;
  min-width: 1440px; 
  max-height: 95%; 
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}


.close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  cursor: pointer;
  color: #ffffff;
  background: #ff6b6b;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.3s ease;
}

.close:hover {
  background: #ff5252;
  transform: scale(1.1);
}

.modal-content h2 {
  color: #ffffff;
  margin-bottom: 30px;
  font-size: 32px;
  text-align: center;
}

.code-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #333;
  gap: 10px;
}

.tab {
  background: none;
  border: none;
  color: #ffffff;
  padding: 15px 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px 10px 0 0;
  transition: all 0.3s ease;
}

.tab.active {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border-bottom: 3px solid #ff6b6b;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  color: #ff6b6b;
  margin-bottom: 20px;
  font-size: 24px;
}

pre {
  background: #0a0a0a;
  padding: 25px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 2rem; 
  line-height: 1.6;
  white-space: pre-wrap;
  color: #ffffff;
  border: 1px solid #333;
  margin: 20px 0;
}

code {
  color: green;
  font-family: 'Courier New', monospace;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .section-title {
    font-size: 36px;
  }

  .logo {
    font-size: 28px;
  }

  .features-grid,
  .gallery-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}