/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基本設定 */
:root {
  --primary-color: #4a90e2;
  --secondary-color: #8b5cf6;
  --accent-color: #ff6b35;
  --success-color: #10b981;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-gray: #f3f4f6;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --gradient-primary: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 50%,
    #f093fb 100%
  );
  --gradient-secondary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-accent: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --font-heading: "Orbitron", "Noto Sans JP", sans-serif;
  --font-body: "Exo 2", "Noto Sans JP", sans-serif;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  position: relative;
  overflow-x: hidden;
}

/* 立方体背景パターン */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, rgba(74, 144, 226, 0.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(74, 144, 226, 0.02) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(74, 144, 226, 0.02) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(74, 144, 226, 0.02) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
  z-index: -1;
  animation: backgroundFloat 20s ease-in-out infinite;
}

/* 浮遊する立方体背景 */
.floating-cube-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.cube-bg-item {
  position: absolute;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(74, 144, 226, 0.2);
  transform: rotate(45deg);
  animation: cubeFloat 15s ease-in-out infinite;
}

.cube-bg-item:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 20s;
}

.cube-bg-item:nth-child(2) {
  top: 30%;
  right: 15%;
  animation-delay: 3s;
  animation-duration: 18s;
}

.cube-bg-item:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 6s;
  animation-duration: 22s;
}

.cube-bg-item:nth-child(4) {
  bottom: 40%;
  right: 10%;
  animation-delay: 9s;
  animation-duration: 16s;
}

.cube-bg-item:nth-child(5) {
  top: 60%;
  left: 5%;
  animation-delay: 12s;
  animation-duration: 19s;
}

/* セクション区切り - 静的な立方体断面デザイン */
.section-divider {
  position: relative;
  height: 80px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow: hidden;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(74, 144, 226, 0.03) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(139, 92, 246, 0.03) 50%, transparent 70%);
  background-size: 100px 100px;
  opacity: 0.4;
}

.section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.7;
}

/* アニメーション定義 */
@keyframes backgroundFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes cubeFloat {
  0%, 100% {
    transform: rotate(45deg) translateY(0px) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: rotate(45deg) translateY(-20px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: rotate(45deg) translateY(-10px) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: rotate(45deg) translateY(-30px) scale(1.2);
    opacity: 0.7;
  }
}

/* スクロールアニメーション用スタイル */
.pricing-card,
.feature-card,
.section-divider {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.pricing-card.animate,
.feature-card.animate,
.section-divider.animate {
  opacity: 1;
  transform: translateY(0);
}

/* 背景パターンのスクロール効果 */
body::before {
  transform: translateY(var(--scroll-offset, 0px));
}

/* 立方体背景の視差効果 */
.floating-cube-bg {
  transition: transform 0.1s ease-out;
}

/* レスポンシブ対応の改善 */
@media (max-width: 768px) {
  .cube-bg-item {
    width: 30px;
    height: 30px;
  }
  
  .section-divider {
    height: 60px;
  }
  
  .section-divider::after {
    width: 50px;
    height: 50px;
  }
  
  .pricing-card {
    transform: rotateX(3deg) rotateY(-3deg);
  }
  
  .pricing-card:hover {
    transform: rotateX(0deg) rotateY(0deg) translateY(-5px) scale(1.01);
  }
}

@media (max-width: 480px) {
  .cube-bg-item {
    width: 25px;
    height: 25px;
  }
  
  .section-divider {
    height: 50px;
  }
  
  .section-divider::after {
    width: 40px;
    height: 40px;
  }
  
  .pricing-card {
    transform: rotateX(2deg) rotateY(-2deg);
  }
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: 0.3s;
}

/* ヒーローセクション */
.hero {
  padding: 120px 0 80px;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  z-index: 0;
}

/* ファーストビューでbodyの背景あしらいを完全に無効化 */
.hero::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%) !important;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-background img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-background img.active {
  opacity: 1;
}

.hero-background img.fade-out {
  opacity: 0;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-photo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 70%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.3s ease;
}

.hero-photo:hover .photo-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.photo-content {
  text-align: center;
}

.photo-content i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.photo-content p {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.9;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #357abd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* セクション共通 */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.first-time .section-title {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 特徴セクション */
.features {
  padding: 80px 0;
  background: transparent;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(74, 144, 226, 0.05) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-visual {
  width: 140px;
  height: 140px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.feature-visual::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color),
    var(--success-color)
  );
  border-radius: 28px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.concept-scene {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(2px);
}

.visual-number {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-color);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
}

/* 01 - FACILITY CONCEPT - 人々のつながり */
.scene-people {
  position: relative;
  width: 80px;
  height: 60px;
}

.person {
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  animation: float 3s infinite ease-in-out;
}

.person-1 {
  top: 10px;
  left: 10px;
  animation-delay: 0s;
}

.person-2 {
  top: 25px;
  left: 35px;
  animation-delay: 1s;
}

.person-3 {
  top: 40px;
  left: 60px;
  animation-delay: 2s;
}

.scene-connection {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, white, transparent);
  transform: translateY(-50%);
  animation: pulse 2s infinite;
}

/* 02 - 本気で練習できる環境 - 集中 */
.scene-focus {
  position: relative;
  width: 60px;
  height: 50px;
}

.focus-target {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.focus-concentration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: pulse 3s infinite;
}

.focus-zone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: pulse 4s infinite;
}

.scene-intensity {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  animation: pulse 2.5s infinite;
}

/* 03 - 自然につながれるコミュニティ - つながり */
.scene-community {
  position: relative;
  width: 60px;
  height: 60px;
}

.community-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-radius: 50%;
  animation: pulse 3s infinite;
}

.community-connection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.3) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.3) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 40%
    );
  animation: pulse 4s infinite;
}

.community-growth {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: pulse 5s infinite;
}

.scene-harmony {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 60%
  );
  animation: shine 3s infinite ease-in-out;
}

/* アニメーション */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes grow {
  0% {
    height: 0;
  }
  50% {
    height: 35px;
  }
  100% {
    height: 35px;
  }
}

@keyframes bloom {
  0% {
    transform: translateX(-50%) scale(0.5);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

@keyframes shine {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.feature-card:hover .feature-visual {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(74, 144, 226, 0.4);
}

.feature-card:hover .feature-visual::before {
  transform: translateX(100%);
}

.feature-card:hover .feature-visual::after {
  opacity: 1;
}

.feature-card:hover .visual-number {
  transform: scale(1.2);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* 施設案内 */
.facility {
  padding: 80px 0;
  background: transparent;
  position: relative;
}

.facility-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.facility-text h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: 1px;
}

.facility-text p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.facility-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.facility-feature {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.facility-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.facility-feature h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.facility-feature h4 i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.facility-feature p {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.facility-image {
  display: flex;
  justify-content: center;
}

.facility-gallery {
  width: 100%;
  max-width: 500px;
}

.gallery-item {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.main-photo {
  height: 250px;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gallery-grid .gallery-item {
  height: 120px;
}

.gallery-item .photo-overlay {
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.gallery-item:hover .photo-overlay {
  background: rgba(0, 0, 0, 0.3);
}

/* 初めての方へ */
.first-time {
  padding: 80px 0;
  background: transparent;
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.step {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
  position: relative;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.step p {
  color: var(--text-light);
  line-height: 1.6;
}

.safety-points {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.safety-points h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  text-align: center;
  letter-spacing: 0.5px;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.safety-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.safety-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.safety-item p {
  color: var(--text-dark);
  font-weight: 500;
}

/* 料金・プラン - 立方体デザイン */
.pricing {
  padding: 80px 0;
  background: transparent;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  perspective: 1000px;
}

.pricing-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(5deg) rotateY(-5deg);
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pricing-card:hover {
  transform: rotateX(0deg) rotateY(0deg) translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card:hover::after {
  opacity: 1;
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  transform: rotateX(5deg) rotateY(-5deg) scale(1.05);
  box-shadow: 0 15px 35px rgba(74, 144, 226, 0.2);
}

.pricing-card.featured:hover {
  transform: rotateX(0deg) rotateY(0deg) translateY(-15px) scale(1.08);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-color), #ff8a65);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  z-index: 10;
}

/* 立方体の面を表現する装飾 */
.pricing-card .cube-face-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.pricing-card .cube-face-decoration::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent rgba(74, 144, 226, 0.1) transparent transparent;
}

.pricing-card .cube-face-decoration::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 0 0 20px;
  border-color: transparent transparent transparent rgba(139, 92, 246, 0.1);
}

.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(74, 144, 226, 0.1);
}

.price span {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
}

.pricing-card p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.pricing-card li {
  padding: 0.8rem 0;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  font-weight: 500;
  position: relative;
}

.pricing-card li::before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

.pricing-card li:last-child {
  border-bottom: none;
}

/* アクセス */
.access {
  padding: 80px 0;
  background: transparent;
  position: relative;
}

.access-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.access-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  letter-spacing: 1px;
}

.access-info p {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.access-info i {
  color: var(--primary-color);
  margin-right: 0.8rem;
  width: 20px;
}

.access-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.access-map {
  display: flex;
  justify-content: center;
}

.access-photos {
  width: 100%;
  max-width: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.photo-item {
  height: 150px;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.photo-item .photo-overlay {
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.photo-item:hover .photo-overlay {
  background: rgba(0, 0, 0, 0.3);
}

/* フッター */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section p {
  color: #d1d5db;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
}

/* 固定ボタン */
.fixed-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.fixed-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.line-btn {
  background: #00b900;
  color: white;
}

.line-btn:hover {
  background: #009900;
  transform: translateY(-2px);
}

.contact-btn {
  background: var(--primary-color);
  color: white;
}

.contact-btn:hover {
  background: #357abd;
  transform: translateY(-2px);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .facility-content,
  .access-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .fixed-buttons {
    bottom: 10px;
    right: 10px;
  }

  .fixed-btn span {
    display: none;
  }

  .fixed-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid,
  .pricing-grid,
  .facility-features,
  .gallery-grid,
  .access-photos {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }
}

.h3-message {
  padding: 100px 0 80px;
  background: transparent;
  position: relative;
}

.h3-message-lead p {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  font-weight: 500;
  text-align: center;
}

/* 宙に浮いた立方体 */
.floating-cube-container {
  margin: 60px 0;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.floating-cube {
  width: 120px;
  height: 120px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-35deg) rotateY(-40deg);
  animation: gentleFloat 4s ease-in-out infinite;
  transition: transform 0.6s ease;
}

.floating-cube:hover {
  transform: rotateX(-40deg) rotateY(-45deg) scale(1.1);
}

.cube-face {
  position: absolute;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  color: var(--text-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.cube-face:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

/* 各面に異なる色を追加 */
.cube-front {
  transform: translateZ(60px);
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
}

.cube-right {
  transform: translateX(60px) rotateY(90deg);
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3c72 100%);
  color: white;
}

.cube-top {
  transform: translateY(-60px) rotateX(90deg);
  background: linear-gradient(135deg, #2d5016 0%, #1a4d2e 100%);
  color: white;
}

.cube-back { transform: translateZ(-60px) rotateY(180deg); }
.cube-left { transform: translateX(-60px) rotateY(-90deg); }
.cube-bottom { transform: translateY(60px) rotateX(-90deg); }

.cube-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cube-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 立方体の影 */
.cube-shadow {
  position: absolute;
  bottom: -40px;
  width: 120px;
  height: 15px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: shadowPulse 4s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% { transform: rotateX(-35deg) rotateY(-40deg) translateY(0px); }
  50% { transform: rotateX(-35deg) rotateY(-40deg) translateY(-10px); }
}

@keyframes shadowPulse {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.1); }
}

/* メッセージカード */
.h3-message-content {
  margin: 60px 0;
  display: flex;
  justify-content: center;
}

.message-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
  backdrop-filter: blur(10px);
}

.message-item {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e2e8f0;
}

.message-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.message-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(74, 144, 226, 0.1);
}

/* 各見出しの色を立方体の面に合わせる */
.message-item:nth-child(1) .message-title {
  color: #ff6b6b;
}

.message-item:nth-child(2) .message-title {
  color: #2c5aa0;
}

.message-item:nth-child(3) .message-title {
  color: #2d5016;
}

.message-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.7;
  font-weight: 500;
  margin: 0;
}

@media (max-width: 800px) {
  .floating-cube {
    width: 100px;
    height: 100px;
  }
  
  .cube-face {
    width: 100px;
    height: 100px;
  }
  
  .cube-front { transform: translateZ(50px); }
  .cube-back { transform: translateZ(-50px) rotateY(180deg); }
  .cube-right { transform: translateX(50px) rotateY(90deg); }
  .cube-left { transform: translateX(-50px) rotateY(-90deg); }
  .cube-top { transform: translateY(-50px) rotateX(90deg); }
  .cube-bottom { transform: translateY(50px) rotateX(-90deg); }
  
  .cube-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
  }
  
  .cube-label {
    font-size: 0.7rem;
  }
  
  .cube-shadow {
    width: 100px;
    height: 12px;
    bottom: -35px;
  }
  
  .message-card {
    padding: 30px 25px;
    margin: 0 20px;
  }
  
  .message-title {
    font-size: 1.5rem;
  }
  
  .message-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .floating-cube {
    width: 80px;
    height: 80px;
  }
  
  .cube-face {
    width: 80px;
    height: 80px;
  }
  
  .cube-front { transform: translateZ(40px); }
  .cube-back { transform: translateZ(-40px) rotateY(180deg); }
  .cube-right { transform: translateX(40px) rotateY(90deg); }
  .cube-left { transform: translateX(-40px) rotateY(-90deg); }
  .cube-top { transform: translateY(-40px) rotateX(90deg); }
  .cube-bottom { transform: translateY(40px) rotateX(-90deg); }
  
  .cube-icon {
    font-size: 1.3rem;
    margin-bottom: 5px;
  }
  
  .cube-label {
    font-size: 0.6rem;
  }
  
  .cube-shadow {
    width: 80px;
    height: 10px;
    bottom: -30px;
  }
  
  .message-card {
    padding: 25px 20px;
    margin: 0 15px;
  }
  
  .message-title {
    font-size: 1.3rem;
  }
  
  .message-text {
    font-size: 0.95rem;
  }
}


