/* リセットと基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', 'Noto Sans JP', sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
}

/* ヒーローセクション */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* パーティクル（星）のアニメーション */
.particle {
  position: absolute;
  background: #00ffff;
  border-radius: 50%;
  opacity: 0.5;
  animation: floatActive 15s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* ロケットのスタイル */
.rocket {
  position: absolute;
  font-size: 30px;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(255, 200, 100, 0.8));
  transform: rotate(0deg);
}

/* 複数の飛行パターン */
.rocket-path-1 {
  animation: rocketFly1 8s linear forwards;
}

.rocket-path-2 {
  animation: rocketFly2 10s linear forwards;
}

.rocket-path-3 {
  animation: rocketFly3 7s linear forwards;
}

/* 各飛行パターンに応じて炎の位置を調整 */
.rocket-path-1::after {
  content: '🔥';
  position: absolute;
  left: -18px;
  bottom: -20px;
  font-size: 20px;
  animation: flame 0.3s infinite alternate;
  transform: rotate(225deg);
}

.rocket-path-2::after {
  content: '🔥';
  position: absolute;
  left: -18px;
  bottom: -22px;
  font-size: 20px;
  animation: flame 0.3s infinite alternate;
  transform: rotate(220deg);
}

.rocket-path-3::after {
  content: '🔥';
  position: absolute;
  left: -17px;
  bottom: -18px;
  font-size: 20px;
  animation: flame 0.3s infinite alternate;
  transform: rotate(230deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.typing-text {
  display: inline-block;
  border-right: 3px solid #00ffff;
  animation: blink 1s infinite;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #00ffff;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 2s;
}

/* ナビゲーション */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0;
  transform: translateY(-100%);
  animation: slideDown 0.5s ease forwards;
  animation-delay: 2.5s;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff9fcd, #ffb3d9, #ff9fcd);
  transition: width 0.3s ease;
}

nav a:hover {
  color: #ffb3d9;
}

nav a:hover::after {
  width: 100%;
}

/* セクション共通 */
section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

h2.visible {
  animation: fadeInUp 0.8s ease forwards;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
}

/* Worksセクション */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
  position: relative;
}

.work-card.visible {
  animation: fadeInUp 0.8s ease forwards;
}

.work-card:nth-child(1) {
  animation-delay: 0.1s;
}
.work-card:nth-child(2) {
  animation-delay: 0.2s;
}
.work-card:nth-child(3) {
  animation-delay: 0.3s;
}
.work-card:nth-child(4) {
  animation-delay: 0.4s;
}
.work-card:nth-child(5) {
  animation-delay: 0.5s;
}

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.work-card:hover::before {
  left: 100%;
}

.work-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-info {
  padding: 20px;
  flex-grow: 1;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
}

.work-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
}

.work-tech {
  font-size: 0.9rem;
  color: #00ffff;
}

.work-link {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #fff;
}

.work-card:hover .work-link {
  background: rgba(0, 255, 255, 0.5);
  transform: rotate(45deg);
}

/* Skills & EC Sites セクション */
.skills-container,
.ecsites-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.skill-item,
.ecsite-item {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.skill-item.visible,
.ecsite-item.visible {
  animation: scaleIn 0.5s ease forwards;
}

.skill-item:hover,
.ecsite-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 159, 205, 0.3);
  border: 2px solid transparent;
  background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%), linear-gradient(45deg, #ff9fcd, #ffb3d9);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* SVG波のスタイル */
.wave-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Aboutセクション */
.about-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 50px;
  border-radius: 20px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.about-content.visible {
  animation: fadeInUp 0.8s ease forwards;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.about-text p {
  margin-bottom: 15px;
}

.about-text strong {
  color: #00ffff;
}

.contact-info {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #00ffff;
}

/* フッター */
footer {
  text-align: center;
  padding: 30px;
  background: #0a0a0a;
  border-top: 1px solid #333;
}

/* アニメーション定義 */
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

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

@keyframes slideDown {
  to {
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatActive {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.2;
  }
  25% {
    transform: translateY(-50px) translateX(30px) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(30px) translateX(-40px) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-30px) translateX(50px) rotate(270deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0) translateX(0) rotate(360deg);
    opacity: 0.2;
  }
}

@keyframes rocketFly1 {
  0% {
    left: -50px;
    bottom: -50px;
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  90% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  100% {
    left: calc(100% + 50px);
    bottom: calc(100% + 50px);
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }
}

@keyframes rocketFly2 {
  0% {
    left: -50px;
    bottom: 20%;
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  90% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  100% {
    left: calc(100% + 50px);
    bottom: calc(80% + 50px);
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }
}

@keyframes rocketFly3 {
  0% {
    left: 10%;
    bottom: -50px;
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  90% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  100% {
    left: calc(90% + 50px);
    bottom: calc(100% + 50px);
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }
}

@keyframes flame {
  0% {
    transform: rotate(225deg) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: rotate(225deg) scale(1.3);
    filter: brightness(1.5);
    opacity: 1;
  }
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: #00ffff;
  border-radius: 5px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  nav ul {
    gap: 20px;
    font-size: 0.9rem;
  }

  .skills-container,
  .ecsites-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .skill-item,
  .ecsite-item {
    padding: 15px;
    font-size: 0.9rem;
  }

  .about-content {
    padding: 30px 20px;
  }

  .contact-info {
    flex-direction: column;
    gap: 15px;
  }
}
#music-video {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.mv-container {
  max-width: 900px;
  margin: 0 auto;
}

.video-player {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.video-preview {
  position: relative;
  padding-top: 56.25%; /* 16:9 アスペクト比 */
}

.mv-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 10, 10, 0.8);
  border: none;
  padding: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mv-play-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translate(-50%, -50%) scale(1.1);
}

.mv-play-btn span {
  color: #00ffff;
  font-size: 12px;
  margin-top: 10px;
}

.mv-info {
  text-align: center;
  padding: 30px 20px;
}

.mv-info h3 {
  color: #00ffff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.mv-info p {
  color: #888;
}

#music-video {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.mv-container {
  max-width: 900px;
  margin: 0 auto;
}

.video-player {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.video-preview {
  position: relative;
  padding-top: 56.25%; /* 16:9 アスペクト比 */
}

.mv-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 10, 10, 0.8);
  border: none;
  padding: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mv-play-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translate(-50%, -50%) scale(1.1);
}

.mv-play-btn span {
  color: #00ffff;
  font-size: 12px;
  margin-top: 10px;
}

.mv-info {
  text-align: center;
  padding: 30px 20px;
}

.mv-info h3 {
  color: #00ffff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.mv-info p {
  color: #888;
}

/* 使用ツールのスタイル */
.mv-tools {
  margin-top: 50px;
  padding: 40px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 15px;
  border: 2px solid transparent;
  background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%), linear-gradient(45deg, #ff9fcd, #ffb3d9);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.mv-tools h4 {
  text-align: center;
  color: #ffb3d9;
  font-size: 1.2rem;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.tool-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(0, 255, 255, 0.1);
}

.tool-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 159, 205, 0.3);
  border-color: #ff9fcd;
}

.tool-category {
  font-size: 0.75rem;
  color: #ff9fcd;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.tool-name {
  font-size: 1rem;
  color: #00ffff;
  font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }

  .tool-item {
    padding: 15px;
  }

  .mv-tools {
    padding: 30px 20px;
  }
}
