html, body {
  height: 100%;
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background: #f8f8f8;
  color: #333;
  scroll-behavior: smooth;       /* スムーススクロール */
  scroll-snap-type: y mandatory; /* セクションごとに必ず止まる */
  /*overflow-y: scroll;*/
}

section {
  height: 100vh;                 /* 各セクションの高さを画面いっぱいに */
  scroll-snap-align: start;      /* 各セクションの先頭でスナップ */
  justify-content: center;
  align-items: center;
}

h2 {
  font-family: 'Noto Serif JP', serif; /* 明朝体で文章らしく */
  font-weight: 700; /* 太字にしない */
  font-size: 1.2rem; /* 本文と近いサイズ感 */
  line-height: 2.5; /* 行間を広めに */
  margin: 0 auto; /* 段落のように間をあける */
  letter-spacing: 0.3em; /* 少し字間を調整 */
  writing-mode: vertical-rl;
  text-align: left;
  color: #FFF9E6;
  padding-top: 30px;
}

.modern-button {
    display: inline-block;
    padding: 10px 24px;           
    margin-top: 5px;
    background-color: #16a085;
    color: #ffffff; 
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.modern-button:hover {
    background-color: #13816c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.modern-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ヒーロー動画 */
/*.hero {
  position: relative;
  height: 100vh;  JSで上書きして全画面対応 
  overflow: hidden;
}*/

.hero_main {
  position: relative;
}

/* タブ対応（幅90%） */
@media screen and (min-width: 768px) and (max-width: 1366px) {
  .hero {
    position: relative; 
       overflow: hidden; 
    display: flex; /* Flexbox有効化 */ 
    flex-direction: column; /* 縦方向に要素を並べる */ 
    justify-content: center; /* 縦方向の中央寄せ */ 
    align-items: center; /* 横方向の中央寄せ */ 
    text-align: center; /* テキスト中央寄せ */
   }
}

.bg-video {
  display: block;         /* インライン要素の隙間を消す */
  width: 70%;
  margin: 20px auto;         /* 左右中央寄せ */
  max-width: 100%;        /* 画面幅に合わせて縮小 */
  height: auto;           /* 縦横比を保つ */
  border-radius: 12px;    /* 角丸をつけるなら */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* 浮き感を少し演出するなら */
}

@media screen and (min-width: 768px) and (max-width: 1366px) {
  .bg-video {
    width: 70%;
  }
}
  
/* スマホ対応（幅90%） */
@media screen and (max-width: 768px) {
  .bg-video {
    width: 90%;       /* 幅90% */
    height: 66vh;     /* 高さ90% */
    max-width: none;  /* 最大幅制限解除 */
    margin: 20 auto;
    object-fit: cover;
  }
}


.video-caption {
  text-align: center;
}

@media screen and (max-width: 768px) {
  .mobile-break::before {
    content: "\A";       /* 改行コード */
    white-space: pre;    /* 改行を反映 */
  }
}

/* スマホ対応（幅90%） */
@media screen and (max-width: 768px) {
  .video-caption {
    margin: 10px;
    font-size: 14px;
  }
}


.scroll-indicator {
  margin-top: 20px;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.sound-btn {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.sound-btn:hover {
  background: rgba(0,0,0,0.8);
}

/* タイムライン */
.timeline-section { text-align: center; }
.timeline-vertical { position: relative; margin: 50px auto 0px auto; padding-left: 30px; max-width: 600px; }
.timeline-vertical::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 4px; background: #FFD700; }
.timeline-item { position: relative; margin-bottom: 50px; transform: translateY(50px); transition: all 0.6s ease-out; }
.timeline-item.show { opacity: 1; transform: translateY(0); }
.timeline-year { position: absolute; left: -15px; background: linear-gradient(45deg, #FFD700, #FFFFFF); color: black; font-weight: bold; padding: 8px 12px; border-radius: 20px; }
.timeline-content { background: white; padding: 15px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.timeline-content img { width: 100%; border-radius: 10px; }

/* フッター */


/*section {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
}*/

.enkaku {
  background-color: black;
}

.footer-section {
  height: 70%;
      background-color: aliceblue; /* 背景白 */
  color: #000000; /* 文字黒 */
  display: flex;
  justify-content: center;
  align-items: center;
   text-align: center;
}



/* header セクションを1画面固定＋波を下にくっつける */
.header {
  position: relative;
  text-align: center;
  background: linear-gradient(60deg, rgba(84,58,183,1) 0%, rgba(0,172,193,1) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
   overflow: hidden;         /* 波がはみ出さない */
  height: 650px;
}

@media screen and (max-width: 768px) {
  .header {
    height: auto;
  }
}


/* 内部のコンテンツは高さを自動調整 */
.inner-header {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 波コンテナを下に固定 */
.waves-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  z-index: 1; /* 背景として */
}

.waves {
  width: 100%;
  height: 15vh;
  min-height: 100px;
  max-height: 150px;
}

/* 次のセクションが波の下に自然につながるように */
.enkaku {
  position: relative;
  background-color: black;
  z-index: 2;
}

/* 波を動かすアニメーション */
.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0%   { transform: translate3d(-90px,0,0); }
  100% { transform: translate3d(85px,0,0); }
}

.cards-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;  /* ここでカード間の隙間を設定 */
  padding: 20px;
  font-family: 'Noto Serif JP', serif;
  z-index: 10;
}

@media screen and (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 20px; /* スマホは少し狭め */
  }
}

.hover-card {
  width: 320px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  margin: 0 0 15px;
  font-size: 1.2rem;
  color: #333;
}

.card-content p {
  margin: 0 0 20px;
  color: #666;
  line-height: 1.6;
  font-weight: bold;
}

.card-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.hero .notice {
  text-align: center;      /* 中央寄せ */
  margin-top: 16px;        /* 動画との間隔 */
  font-size: 14px;
  color: #333;             /* 好みで変更可能 */
}


@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400&display=swap');

.scroll_down{
  position: absolute;
    bottom: -15px;
    transform: scale(0.8);
    border: 5%;
    right: 16%;
  animation: arrowmove 1s ease-in-out infinite;
}

@media screen and (min-width: 768px) and (max-width: 1366px) {
  .scroll_down {
    position: absolute;
    bottom: 7px;
    transform: scale(0.8);
    border: 5%;
      animation: arrowmove 1s ease-in-out infinite;
   }
}

.scroll_down a{
  position: absolute;
  left: -24px;
  bottom: 30px;
  color: #000;
  font-size: 14px;
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  width: 24px;
  height: 24px;
  text-decoration: none;
}

/* スマホ表示用 */
@media screen and (max-width: 768px) {
  .scroll_down {
    bottom: -3%;
        right: 5%;
        transform: scale(0.5);
  }

  .scroll_down a {
    left: -15px;      /* 左位置微調整 */
    bottom: 15px;     /* 下位置微調整 */
    font-size: 8px;   /* 文字をさらに小さく */
    width: 14px;      /* 幅を小さく */
    height: 14px;     /* 高さを小さく */
  }
}

.text {
  display: block;
  margin-top: 70px;
  margin-left: -14px;
  font-size: 12px;
  color: #000;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 2px;
}

.arrow {
  position: absolute;
  width: 28px;
  height: 5px;
  opacity: 0;
  transform: scale3d(0.5, 0.5, 0.5);
  animation: move 3s ease-out infinite;
}

.arrow:first-child {
  animation: move 3s ease-out 1s infinite;
}

.arrow:nth-child(2) {
  animation: move 3s ease-out 2s infinite;
}

.arrow:before,
.arrow:after {
  content: ' ';
  position: absolute;
  top: 0;
  height: 100%;
  width: 51%;
  background: #000;
}

.arrow:before {
  left: 0;
  transform: skew(0deg, 30deg);
}

.arrow:after {
  right: 0;
  width: 50%;
  transform: skew(0deg, -30deg);
}

@keyframes move {
  25% { opacity: 1; }
  33% { opacity: 1; transform: translateY(30px); }
  67% { opacity: 1; transform: translateY(40px); }
  100% { opacity: 0; transform: translateY(55px) scale3d(0.5, 0.5, 0.5); }
}


.marker {
 font-weight: bold;
  background: linear-gradient(transparent 60%, #FBB92F 60%);
}

.marker {
  font-weight: bold;
  background: linear-gradient(transparent 60%, #FBB92F 60%);
  background-size: 200% 200%;
  animation: makerUp 3s ease-in-out infinite; /* アニメーション設定 */
}

@keyframes makerUp {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-size: 100% 100%;
  }
}