/* ベースCSS・リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}



/* フェードインフェードアウトのトランジッション */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.fade-in.visible {
  animation: fadeInSmooth 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInSmooth {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 各要素に異なる遅延を加える */
.fade-in:nth-child(1) {
  animation-delay: 0s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.4s;
}
.fade-in:nth-child(4) {
  animation-delay: 0.6s;
}

.fade-in:nth-child(5) {
  animation-delay: 0.8s;
}
.fade-in:nth-child(6) {
  animation-delay: 1.0s;
}

.fade-in:nth-child(7) {
  animation-delay: 1.2s;
}

.fade-in:nth-child(8) {
  animation-delay: 1.4s;
}

.fade-in:nth-child(9) {
  animation-delay: 1.6s;
}

.fade-in:nth-child(10) {
  animation-delay: 1.8s;
}

.fade-in:nth-child(11) {
  animation-delay: 2.0s;
}

.fade-in:nth-child(12) {
  animation-delay: 2.2s;
}

.fade-in:nth-child(13) {
  animation-delay: 2.4s;
}

.fade-in:nth-child(14) {
  animation-delay: 2.6s;
}

.fade-in:nth-child(15) {
  animation-delay: 2.8s;
}





button {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  vertical-align: middle;
  color: inherit;
  font: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  outline: none;
  border-radius: 0;
}
.demo-title {
  width: 100%;
  padding: 1em;
  text-align: right;
  position: absolute;
  z-index: 2;
  font-size: 16px;
  color: #fefefe;
}
/*********** ここまでベースCSS・リセットCSS ***********/


/* mainVisual設定 */
.mainVisual {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

/* 背景画像の切り替えエリア */
.background-area {
  position: absolute;
  top: 0;
  left: -80%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 2s ease-in-out; /* 2秒でフェードイン・フェードアウト */
  z-index: 1; /* 背景は後ろに配置 */
}

/* mainCopyのスタイル (固定表示) */
.mainVisual .mainCopy {
  position: absolute;
  top: 13px; /* 上部に表示 */
  left: 50%;
  transform: translateX(-50%); /* 横中央に配置 */
  width: calc(100% - 20px);
  height: calc(100% - 23px);
  background: #00dc972e;
  backdrop-filter: blur(3px) grayscale(100%) contrast(200%);
  -webkit-backdrop-filter: blur(3px) grayscale(100%) contrast(130%);
  border-radius: 20px;
  z-index: 10; /* mainCopyを一番前に表示 */
  color: #fff;
  animation: gradientEffect 0.5s infinite alternate;
  position: relative;
  overflow: hidden;
  /* ↓ ここから格子柄の追加 ↓ */
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.1) 2px, transparent 2px),
        linear-gradient(to bottom, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 20px 20px; /* 格子のサイズ */
}

/* mainCopy内のvr_cathのスタイル */
.mainVisual .mainCopy .vr_cath {
    position: absolute;
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 100;
    padding: 0 6%;
}

/* ::beforeの背景処理 (背景画像を追加する場所) */
.mainVisual .mainCopy::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  -webkit-background-clip: padding-box, border-box;
  background-origin: border-box;
  background: linear-gradient(to right, #00539640, #00a0dc40);
  background-image: linear-gradient(to right, #005396, #00a0dc), linear-gradient(to right, #00539640, #00a0dc40);
  z-index: 1; /* 背景要素として後ろに配置 */
  pointer-events: none;
  opacity: 0.4; /* 半透明にする */
}





