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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Poppins", sans-serif;
  background-color: #030513;
  color: #ffffff;
  overflow-x: hidden;
}

/* 共通コンテナ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 800px;
}

/* ==========================================
   背景キャンバス設定（2重構造）
   ========================================== */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;          /* 一番奥 */
  pointer-events: none;
  opacity: 0.2;         /* 主張しすぎないよう透明度を抑える */
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;          /* マトリックスの手前・コンテンツの後ろ */
  pointer-events: none;
}

/* ==========================================
   HEADER / NAV
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(3, 5, 19, 0.7);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 210, 255, 0.15);
}

.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: flex-end;
}

.header__nav {
  display: flex;
  gap: 30px;
}

.header__link {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.header__link:hover,
.header__link.is-active {
  color: #00d2ff;
}

/* ==========================================
   FV (メインビジュアル)
   ========================================== */
.fv {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  background: rgba(3, 5, 19, 0.3);
}

.fv__inner {
  max-width: 800px;
}

.fv__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.fv__text {
  font-size: clamp(14px, 2vw, 18px);
  color: #d0d5ff;
  margin-bottom: 35px;
  line-height: 1.8;
}

.fv__button {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #00d2ff, #3a47d5);
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.fv__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.7);
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.section__title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.section__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #00d2ff;
  margin: 12px auto 0;
  border-radius: 2px;
}

.section__text {
  color: #c0c6e0;
  line-height: 1.8;
  margin-bottom: 40px;
  font-size: 15px;
}

/* ==========================================
   SKILLS
   ========================================== */
.skills__list {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  list-style: none;
}

.skills__item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 500;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   WORKS (Swiper Slider)
   ========================================== */
.works-slider {
  padding-bottom: 50px !important;
}

.work-card {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 255, 0.6);
}

.work-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Swiper Pagination Style */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4) !important;
}

.swiper-pagination-bullet-active {
  background: #00d2ff !important;
  width: 20px !important;
  border-radius: 5px !important;
}

/* ==========================================
   CONTACT
   ========================================== */
.contact__buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  padding: 14px 0;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact__button:hover {
  transform: translateY(-2px);
}

.contact__button--mail {
  background: #ffffff;
  color: #030513;
}

.contact__button--line {
  background: #06C755;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(6, 199, 85, 0.3);
}

/* ==========================================
   MODAL
   ========================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 2000;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 19, 0.85);
  backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: #0a0e29;
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 35px 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

.modal__title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #00d2ff;
}

.modal__description {
  font-size: 14px;
  color: #c0c6e0;
  line-height: 1.8;
  margin-bottom: 25px;
}

.modal__button {
  display: inline-block;
  padding: 10px 28px;
  background: #00d2ff;
  color: #030513;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 700;
}

/* ==========================================
   ANIMATIONS & FOOTER
   ========================================== */
.js-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-fade.is-show {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #707590;
  font-size: 13px;
}

body.is-fixed {
  overflow: hidden;
}

/* ==========================================
   MOBILE (レスポンシブ)
   ========================================== */
@media (max-width: 768px) {
  .header__inner {
    justify-content: center;
  }
  
  .header__nav {
    gap: 20px;
  }

  .header__link {
    font-size: 14px;
  }

  .section {
    padding: 80px 0;
  }

  .work-card img {
    height: 180px;
  }
}