/* 「ホーム」画面 */
.hiragino {
  font-family: "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", "Yu Mincho", "游明朝", "MS PMincho", serif;
}


/* 背景画像とグラデーションを重ねる */
.gradientRtoL {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%),
    url('https://ndc-um.jp/wp-content/uploads/2025/12/bg0-01.png'); /* ここに画像URLを指定 */
  background-size: cover; /* 必要に応じて調整 */
  background-repeat: no-repeat;
  background-position: center;
}

.gradientLtoR {
  background-image:
    linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%),
    url('https://ndc-um.jp/wp-content/uploads/2025/12/bg0-01.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


/* （コメントアウト）グラデーションだけ */
/*
.gradientRtoL {
  /* 左側濃く、右側でゆっくり透明になる */
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%);
}

.gradientLtoR {
  /* 右端濃く、左端透明 */
  background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%);
}
*/



/* 以下はコメントアウト済み */
/*
.gradientRtoL {
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%),
              url('https://ndc-um.jp/wp-content/uploads/2025/12/bg0-01.png'); 
  background-size: cover;
  background-position: center center;
}

.gradientLtoR {
  background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%),
              url('https://ndc-um.jp/wp-content/uploads/2025/12/bg0-01.png'); 
  background-size: cover;
  background-position: center center;
}
*/

/* 通常コンテンツを最初は透明にする */
/* normalcontents（初期は透明、フェードイン用） */
#normalcontents {
  display: block;
  opacity: 0;
  transition: opacity 1.5s ease-in-out; /* ゆるやかフェードイン */
}

#normalcontents.visible {
  opacity: 1;
}

/* スプラッシュ画面 */
#splash {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999; /* ヘッダーより下に */
  transition: opacity 1.5s ease-in-out;
}

#splash.fade-out {
  opacity: 0;
  pointer-events: none;    /* フェードアウト中はクリック不可 */
}


/* ヒーローヘッダー */
#js-hero-header {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

/* 背景動画スライド */
.p-hero-header__content {
  position: absolute;
  inset: 0;
  opacity: 0; /* 初期は透明 */
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.p-hero-header__content.is-active {
  opacity: 1; /* is-activeで表示 */
  z-index: 2;
}

.p-hero-header__content-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 中央テキスト */
.p-hero-header__text {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  color: #fff;
  font-size: 2em;
  line-height: 1.4;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);

  opacity: 0; /* 初期は透明 */
  transition: opacity 1.5s ease-in-out;
  z-index: 3;
}

.p-hero-header__text.is-active {
  opacity: 1; /* is-activeで表示 */
}

/* スマホ微調整 */
@media (max-width: 768px) {
  .p-hero-header__text {
    font-size: 1.6em;
    max-width: 95%;
  }
}

/* （使用していない）スマホ（幅767px以下）ではスペーサー非表示 */
/*
@media (max-width: 767px) {
  .pc-only {
    display: none !important; //スマホでは強制非表示
  }
}
*/
