
@charset "utf-8";

/*------    TOPの動画     ------*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&display=swap');

body {
  height: auto !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Noto Sans JP', sans-serif;
  background: linear-gradient(135deg, #4b4b4b, #7d7d7d, #b1b1b1);
}

/* TOPの画像再生が終わるまでスクロール不可 */
body.no-scroll {
  overflow: hidden;
}

/* TOPの画像再生が終わったら背景色を白に戻す */
html.white-bg, body.white-bg {
  background: #ffffff !important;
}

.logo-text {
  color: transparent;
  font-size: 2.8rem;
  letter-spacing: 0.15em;
  line-height: 1.1;
  padding: 0.2em 0;
  background: linear-gradient(135deg, #bbb, #eee, #aaa);
  background-clip: text;
  -webkit-background-clip: text;
  opacity: 0;
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  transition: opacity 2s ease, transform 3s ease;
  z-index: 2;
}

.logo-text.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.logo-text.fly-away {
  transform: translate(-50%, -50%) scale(25);
  opacity: 0;
  pointer-events: none;
  transition: transform 1.8s ease-in, opacity 1.5s ease-in;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /*background-image: url('https://i.imgur.com/v2FXQgw.jpeg');*/
  background-image: url('../img/top_picture_pc.png');
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  /*transform: none;*/
  transition: opacity 2s ease, transform 8s ease;
  z-index: 0;
}

.bg-image.show {
  opacity: 1;
  transform: scale(1);
}

.catchphrase {
  position: absolute;
  line-height: 2.6;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  color: #fff;
  font-size: 2rem;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.5),  /* 自然な下方向の影 */
    0 0 8px rgba(0, 0, 0, 0.5);   /* ほんのり周囲をぼかす影 */;
  opacity: 0;
  transition: opacity 2s ease;
  z-index: 3;
  font-family: 'Noto Serif', serif;
}

.catchphrase.show {
  opacity: 1;
}

.pc-space {
  display: inline;
}



.news-banner {
  /* 通常のスタイル */
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
  color: #000;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
}

.news-banner::after {
  /* アニメーションの光の筋 */
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: shine 3s infinite;
  transform: rotate(25deg);
}

@keyframes shine {
  0% {
    transform: translate(-100%, -100%) rotate(25deg);
  }
  100% {
    transform: translate(100%, 100%) rotate(25deg);
  }
}

.news-title {
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1px;
  color: #000;
  margin-bottom: 4px;
}

/* 最初は非表示 */
.news-banner {
  opacity: 0;
  transition: opacity 1s ease;
}

/* 表示トリガー（JSで付与） */
.news-banner.active {
  opacity: 1;
}



@media screen and (max-width: 768px) {

  .bg-image {
    background-image: url('../img/top_picture_sp.png');
    transform: scale(1);  /* スマホは拡大しない */
  }

  .pc-space {
    display: none;
  }

  .logo-text {
    text-align: center;
  }

  .catchphrase {
    font-size: 1.2rem;
    line-height: 1.8;
    width: 90%;
    top: 20%;
    transform: translate(-50%, -30%);
    text-align: center;
  }

  .logo-text.fly-away {
    transform: translate(-50%, -50%) scale(1);
  }

  /* スマホ時に演出を軽減 */
  .logo-text.fly-away {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }

  /* NEWS */
  .news-banner {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    min-width: 250px;
    max-width: 90%;
    padding: 12px 20px;
  }

}


/* ラッパー要素 */
.logo-text-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden; /* はみ出し部分を非表示 */
}

/* ロゴテキスト本体 */
.logo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  transition: transform 1.8s ease-in, opacity 1.5s ease-in;
}

/* 拡大演出 */
.logo-text.fly-away {
  transform: translate(-50%, -50%) scale(25);
  opacity: 0;
}


