/* Glass Container Styles */
.glass-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  box-sizing: border-box;
  border: none !important;
  outline: none !important;
  /* WebGLブラーの代替としてCSSブラーを追加（軽量化） */
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.glass-container-circle {
  aspect-ratio: 1 / 1; /* Force perfect square ratio */
  flex-shrink: 0;
  flex-grow: 0;
}

.glass-container-pill {
  flex-shrink: 0;
  flex-grow: 0;
}

/* Glass Button Styles */
.glass-button {
  position: relative;
  cursor: pointer;
  pointer-events: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* Ensure padding doesn't affect size calculations */
  border: none !important;
  outline: none !important;
}

.glass-button-circle {
  aspect-ratio: 1 / 1; /* Force perfect square ratio */
  height: auto !important; /* Let aspect-ratio determine height */
  border-radius: 50%; /* Perfect circle regardless of size */
  flex-shrink: 0;
  flex-grow: 0;
  z-index: 20;
  /* Ensure width is interpreted correctly */
  box-sizing: border-box;
  max-width: 100vw; /* Prevent overflow */
}

/* Canvas inside button should follow parent size */
.glass-button-circle canvas {
  display: block;
  border-radius: 50%;
}

/* glass-button-text removed - not used */

/* Glass Button の位置設定（基準: 10264px） */
.glass-button-1 {
  position: absolute;
  top: 5%; /* 487/11717*100 - from index.php */
  left: -1.7%; /* -25/1440*100 - from index.php */
  z-index: 20;
  transition: all 0.2s ease-out;
}

.glass-button-2 {
  position: absolute;
  top: 13.6%; /* 1601/11717*100 - from index.php */
  left: 73.6%; /* 1060/1440*100 - from index.php */
  z-index: 20;
  transition: all 0.2s ease-out;
}

.glass-button-3 {
  position: absolute;
  top: 21%; /* 2470/11717*100 - from index.php */
  left: 1%; /* -13/1440*100 - from index.php */
  z-index: 20;
  transition: all 0.2s ease-out;
}

.glass-button-4 {
  position: absolute;
  top: 27%; /* 3150/11717*100 - from index.php */
  left: 62%; /* 893/1440*100 - from index.php */
  z-index: 20;
  transition: all 0.2s ease-out;
}

.glass-button-5 {
  position: absolute;
  top: 35%; /* 4058/11717*100 - from index.php */
  left: 5.5%; /* -80/1440*100 - from index.php */
  z-index: 20;
  transition: all 0.2s ease-out;
}

.glass-button-6 {
  position: absolute;
  top: 47%; /* 5546/11717*100 - from index.php */
  left: 62%; /* 894/1440*100 - from index.php */
  z-index: 20;
  transition: all 0.2s ease-out;
}

.glass-button-7 {
  position: absolute;
  top: 60%; /* 4580/10264*100 - from index.php */
  left: 54%; /* 422/1440*100 - from index.php */
  z-index: 20;
  transition: all 0.2s ease-out;
}

.glass-button-8 {
  position: absolute;
  top: 65%; /* 5104/10264*100 - from index.php */
  left: 9%; /* 1096/1440*100 - from index.php */
  z-index: 20;
  transition: all 0.2s ease-out;
}

.glass-button-9 {
  position: absolute;
  top: 75%; /* 4580/10264*100 - from index.php */
  left: 1%; /* 422/1440*100 - from index.php */
  z-index: 20;
  transition: all 0.2s ease-out;
}

/* モバイル対応: 下部ボタンを非表示 */
@media (max-width: 768px) {
  .glass-button-4,
  .glass-button-5,
  .glass-button-6,
  .glass-button-7,
  .glass-button-8,
  .glass-button-9 {
    display: none !important;
  }
  
  /* 上部3ボタンのモバイル最適化 - sp_cut.pngに合わせて再計算 */
  .glass-button-1 {
    /* sp_cut.png (2908px) に対する相対位置 */
    /* 元の487pxは11717pxに対しての位置なので、2908pxに対して再計算 */
    /* 487 * (2908/11717) ≈ 121px → 121/2908*100 ≈ 4.16% */
    top: 4.16%;
  }
  
  .glass-button-2 {
    /* 1601 * (2908/11717) ≈ 397px → 397/2908*100 ≈ 13.65% */
    top: 13.65%;
  }
  
  .glass-button-3 {
    /* 2470 * (2908/11717) ≈ 613px → 613/2908*100 ≈ 21.08% */
    top: 21.08%;
  }
}

