/* =============================================
   style-index.css
   index.html 用カスタムスタイル
   ============================================= */
/* YouTubeのレスポンシブ対応 */
#second iframe {
  width: 100%;
  max-width: 825px; /* 元の最大幅を維持 */
  aspect-ratio: 16 / 9;
  height: auto;
}

/* heightasviewport: JSが動かない場合の高さ保証 */
.heightasviewport {
  height: 100vh;
}

/* heightaswidth: 幅と同じ高さにして正円を維持 */
.heightaswidth {
  aspect-ratio: 1 / 1;
}

/* スライダー section のレイアウト基準 */
.main-content > section:first-child {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* circle-banner: hover テキストを正円の中央に配置 */
.circle-banner {
  position: relative;
}

.circle-banner .cover {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-banner .cover h3 {
  width: auto;
  text-align: center;
}

/* 各スライダー: 重ねて絶対配置 */
.main-content > section:first-child .slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  z-index: 1;
}

/* #topcover（テキスト層）を最前面に */
#topcover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  opacity: 1 !important;
  -ms-transform: translate(0, 0) !important;
  -webkit-transform: translate(0, 0) !important;
  transform: translate(0, 0) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

#topcover .verticalcenter {
  padding-top: 0 !important;
}
