:root {
  --bg-img: url("../img/lightsan.png");
  --accent: #00bfff;
  --text: #fff;
  --typing-font: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
}

body {
  font-family: var(--typing-font);
  margin: 0;
  background: #000;
  overflow-x: hidden;
}

.global-bg {
  position: fixed;
  inset: 0;
  background: var(--bg-img) center/cover no-repeat;
  z-index: -2;
}

.container h2 {
  font-family: "Mochiy Pop One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
  margin: 20px 0 10px;
  text-align: center;
}

p {
  font-family: "Mochiy Pop One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 20px;
  text-align: center;
}

/* ハンバーガーボタン */
.openbtn {
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1001;
  top: 20px;
  left: 20px;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
}
.openbtn span:nth-of-type(1) { top:15px; width:45%; }
.openbtn span:nth-of-type(2) { top:23px; width:35%; }
.openbtn span:nth-of-type(3) { top:31px; width:20%; }
.openbtn.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-135deg);
  width: 30%;
}
.openbtn.active span:nth-of-type(2) { opacity: 0; }
.openbtn.active span:nth-of-type(3){
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(135deg);
  width: 30%;
}
.openbtn.show { opacity:1; transform: translateX(0); }

/* ナビゲーション (PC & SP 共通) */
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
}
.nav a:hover { color: var(--accent); }

/* PC用ナビゲーション (画面幅 769px以上) */
@media (min-width: 769px) {
  .nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
    transition: transform 0.7s ease, opacity 0.7s ease;
  }
  .nav a { padding: 5px 10px; }
  .nav.absorb {
    transform: translate(-100px, -50%) scale(0.3);
    opacity: 0;
  }
}

/* SP用ナビゲーション (画面幅 768px以下) */
@media (max-width: 768px) {
  .openbtn {
    left: auto;
    right: 20px;
    opacity: 1; /* 常に表示 */
    transform: translateX(0); /* 初期位置をリセット */
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 70%;
    max-width: 250px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 70px;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    z-index: 1000;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 10px 25px; }
}

/* セクション */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
  opacity: 0; /* 初期状態は透明 */
  transform: translateY(30px); /* 少し下に配置 */
  transition: opacity 1s ease, transform 1s ease;
}
.section.in-view {
  opacity: 1;
  transform: translateY(0);
}
.section.hero {
  background: rgba(0,0,0,0.35);
  opacity: 1; /* heroセクションは最初から表示 */
  transform: translateY(0);
}

/* くもりガラス背景 */
.section[data-label]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  z-index: -1;
}
#profile::before { background: rgba(155,246,255,0.25); }

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.sns {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}
.sns a svg {
  width: 40px; /* アイコンサイズを調整 */
  height: 40px;
  fill: white; /* アイコンの色 */
  transition: fill 0.3s ease, transform 0.3s ease;
}
.sns a:hover svg {
  fill: var(--accent);
  transform: scale(1.1);
}

.section h1 {
  position: relative;
  z-index: 2;
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
}
.section h1::after {
  content: attr(data-title);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  font-weight: 900;
  font-size: clamp(48px, 10vw, 180px);
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.8);
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
}

/* タイピング用 */
.typing-container {
  font-family: "DotGothic16", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 30px;
  color: #fff;
  text-align: center;
}
.cursor {
  display: inline-block;
  margin-left:2px;
  animation: blink 0.7s infinite;
}
@keyframes blink { 0%,50%,100% {opacity:1;} 25%,75% {opacity:0;} }

/* ローディング画面 */
#loading {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  color: white;
  font-size: 2rem;
  font-family: "DotGothic16", sans-serif;
  transition: opacity 0.8s ease; /* フェードアウト用 */
}

/* フッター */
.site-footer {
  position: relative;
  background: rgba(0, 191, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 2px solid rgba(0, 191, 255, 0.6);
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  z-index: 10;
  box-sizing: border-box;
  width: 100%;
}
.site-footer .footer-content {
  max-width: 1000px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.site-footer p {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  text-align: center;
  width: 100%;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s, text-shadow 0.3s;
}
.site-footer a:hover {
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent);
}

/* カスタムカーソル */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(173, 216, 230, 0.35);
  backdrop-filter: blur(6px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2000;
  transition: width 0.2s ease, height 0.2s ease, background 0.3s ease;
  display: none;
}
@media (pointer: fine) {
  .custom-cursor {
    display: block;
  }
}

/* --- ポップアップ --- */
.popup-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}

.popup-wrapper.is-show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

.popup-content {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 30px 40px;
  width: 90%;
  max-width: 600px;
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.popup-wrapper.is-show .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.popup-close:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--accent);
}

.popup-content h2 {
  text-align: center;
}

.popup-content p {
  text-align: center;
  margin-bottom: 30px;
  
}

/* ポップアップ表示時に背景を固定する */
body.is-popup-show {
  overflow: hidden;
}


.stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* 各項目の間隔 */
  margin-top: 40px;
  flex-wrap: wrap; /* 画面が狭い時に折り返す */
}

.stat-item {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 30px;
  border-radius: 10px;
  min-width: 220px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-family: "DotGothic16", sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem); /* 画面幅に応じてサイズ調整 */
  margin: 0 0 10px 0;
  font-weight: 700;
}

.stat-label {
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 1rem;
  color: #fff;
  margin: 0;
  padding: 0;
}

/* 画面幅が768px以下の場合のスタイル */
@media (max-width: 768px) {
  .stats-container {
    flex-direction: column; /* 縦並びにする */
    gap: 20px;
  }
  .stat-item {
    width: 80%;
  }
}