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

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
  background: black;
  color: white;
}

.hidden {
  display: none;
}

#intro {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-loader {
  position: relative;
  width: 160px;
  height: 160px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spinFade 3s ease-out forwards;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes spinFade {
  0% { transform: rotate(0deg); opacity: 1; }
  90% { transform: rotate(360deg); opacity: 1; }
  100% { transform: rotate(360deg); opacity: 0; }
}

.center-text {
  position: absolute;
  font-size: 20px;
  font-weight: bold;
  color: white;
  text-align: center;
}

#sound-selection {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sound-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;

}

.buttons-row {
  display: flex;
  gap: 40px;
}

.sound-choice h1 {
  font-size: 64px;
}

.sound-choice button {
  background: transparent;
  border: 2px solid white;
  color: white;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sound-choice button:hover {
  background: white;
  color: black;
}

#loading {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  color: #fff;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.8s;
}
#loading.hidden {
  display: none;
}
#loading-bar-bg {
  width: 300px;
  height: 16px;
  background: #333;
  border-radius: 8px;
  margin-top: 24px;
  overflow: hidden;
}
#loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4fc3f7, #1976d2);
  transition: width 0.2s;
}
#loading-text {
  font-size: 1.5rem;
}
#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 2000;
  display: flex;
  gap: 24px;
  padding: 0 32px;
  align-items: center;
  min-height: 56px;
  background: url("assets/picture/nav.jpg") center center/cover no-repeat;
}
#top-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
#top-nav a:hover {
  background: #fff;
  color: #222;
}
.nav-bg, #top-nav {
  background: url("assets/picture/nav.jpg") center center/cover no-repeat;
}
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

video.background-video {
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  display: block !important;
  filter: brightness(0.7);
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 60%);
  transition: background-position 0.1s ease;
  z-index: 100;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
}

.hero-content p {
  font-size: 24px;
}

.cursor-zone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;/*円の直径*/
  height: 600px;
  border: 16px dashed rgba(173, 255, 47, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* 範囲内で回転・拡大 */
.cursor-zone.active {
  animation: rotateScale 2s linear infinite;
  border-color: rgba(173, 255, 47, 0.8);
}

@keyframes rotateScale {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(360deg);
  }
}

.work-btn.main-title-btn {
  display: inline-block;
  font-size: 3rem;
  font-weight: bold;
  padding: 24px 64px;
  margin: 0 auto 24px auto;
  background: transparent;
  color: #fff;
  border: 3px solid transparent; /* デフォルトは枠なし */
  border-radius: 40px;
  text-align: center;
  text-decoration: none;
  transition: 
    background 0.3s,
    color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 0 0 0 rgba(79,195,247,0);
  cursor: pointer;
}
.work-btn.main-title-btn:hover,
.cursor-zone:hover ~ .main-title-btn {
  background: #4fc3f7;
  color: #222;
  transform: scale(1.08);
  box-shadow: 0 8px 32px 0 rgba(79,195,247,0.3);
}
.work-btn.main-title-btn.active {
  border: 3px solid #fff; /* WORK表示時だけ枠を表示 */
  background: #4fc3f7;
  color: #222;
  transform: scale(1.08);
  box-shadow: 0 8px 32px 0 rgba(79,195,247,0.3);
}

embed, iframe {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

.hobby-main {
  /* nav分だけ下に下げる */
  margin-top: 80px;
}


.game-image-area.small-image {
  width: 1200px;
  height: 600px;
  min-width: 340px;
  min-height: 180px;
  background: #b3b3b3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto; /* 中央配置 */
  box-shadow: 0 1px 8px #0002;
}

.game-image-area.small-image img {
  width: 96%;
  height: 96%;
  object-fit: contain;
  border-radius: 10px;
  background: #b3b3b3;
}

.game-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 18px 0;
  gap: 18px;
}

.game-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #bbb;
  border: 2px solid #888;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-dot.selected {
  background: #f7b500;
  border: 2px solid #f7b500;
  box-shadow: 0 0 0 2px #fff, 0 0 6px #f7b500;
}

.game-description {
  width: 100%;
  max-width: 900px;
  margin: 24px auto 0 auto;
  background: linear-gradient(135deg, #232323 70%, #222 100%);
  border-radius: 16px;
  padding: 32px 48px 28px 48px;
  font-size: 1.35rem;
  font-family: 'Segoe UI', 'Meiryo', 'Hiragino Kaku Gothic ProN', 'Arial Rounded MT Bold', sans-serif;
  color: #f7f7f7;
  box-shadow: 0 2px 16px #0004;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 8px 32px; /* 項目の間隔を小さく */
  align-items: start;
  letter-spacing: 0.04em;
}

.game-description div {
  margin-bottom: 0.4em; /* 項目の下の余白も小さく */
  width: 100%;
  text-align: left;
  font-weight: 500;
}

/* 左側：ゲーム名、ジャンル、プレイ時間 */
.game-description div:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.game-description div:nth-child(2) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.game-description div:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}
/* 右側：ひとこと */
.game-description div:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  align-self: start;
  justify-self: center;
  margin-left: 10%; /* ひとことの左端を画面中央付近に調整 */
  max-width: 80%;
}

.game-description strong {
  color: #f7b500;
  font-weight: bold;
  font-size: 1.08em;
  letter-spacing: 0.06em;
}

.game-description span {
  color: #fff;
  font-weight: 400;
  font-size: 1em;
}