/* フォントを可愛く変更 */
body {
    margin: 0;
    font-family: 'Dancing gaufont_donutshop_mactt', cursive; /* 可愛いフォントに変更 */
    background: linear-gradient(120deg, #83a79d, #fbffe2); 
    color: #c14e4e;
  }
  
  /* ヘッダーを画像対応に変更 */
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 2em;
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .header-bg-img {
    background: url('images/ヘッダー.JPG') no-repeat center center;
    background-size: cover;
  }

  /* ヘッダー内のテキストやナビが画像の上でも見やすいように半透明背景 */
  .site-header > *:not(.ヘッダー-bg-img) {
    position: relative;
    z-index: 2;
  }

  .site-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 192, 203, 0.35);
    z-index: 1;
    border-radius: 20px;
  }

  @media (max-width: 600px) {
    .logo {
      font-size: 1.5em;
    }
    .site-header {
      padding: 0.7em 0.5em;
    }
  }
  
  /* ロゴを可愛く変更 */
  .logo {
    font-family: 'gaufont_donutshop_mactt', cursive; /* ロゴに可愛いフォントを適用 */
    color: #b93d3d; /* ロゴを白に */
    font-size: 2.5em; /* ロゴを少し大きく */
    letter-spacing: 3px;
  }
  
  /* ナビゲーションリンクをもこもこに */
  .main-nav ul {
    list-style: none;
    display: flex;
    gap: 2em;
    margin: 0;
    padding: 0;
  }
  
  .main-nav ul li a {
    color: #fffbdf; /* リンクを白に */
    text-decoration: none;
    border-radius: 15px; /* カードの角を丸く */
    padding: 0.5em 1em; /* リンクに余白を追加 */
    background-color: #b63333; 
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .main-nav ul li a:hover {
    background-color: #71a770; /* ホバー時の色 */
    transform: scale(1.1); /* ホバー時に少し拡大 */
  }
  
  .content {
    padding: 4em 2em;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
    max-width: 800px;
    margin: auto;
  }
  
  .section-card {
  background: url('images/カード.jpg') no-repeat center center / cover;
  border: 2px solid #a04545;
  border-radius: 30px;
  padding: 2em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: rgb(55, 52, 52); /* 画像上の文字が見えるように */
}

  .section-card h2 {
    color: #963434;
    font-size: 1.5em;
    margin-bottom: 0.5em;
  }
  
  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%;
    padding: 0.5em;
    border: none;
    border-radius: 5px;
    margin-top: 0.5em;
    font-family: 'Orbitron', sans-serif;
    background-color: #1b2b3a;
    color: white;
  }
  
  input[type="submit"] {
    margin-top: 1em;
    padding: 0.6em 1.2em;
    background-color: #ff69b4; /* ボタンを濃いピンクに */
    border: none;
    border-radius: 5px;
    color: #ffffff; /* ボタンの文字を白に */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  input[type="submit"]:hover {
    background-color: #ffc0cb; /* ホバー時に薄いピンクに */
  }
  
  /* フッターももこもこに */
  .site-footer {
    text-align: center;
    padding: 2em 1em;
    color: #ffffff; /* フッターの文字を白に */
  }
  .footer-bg-img {
    background: url('images/ヘッダー.JPG') no-repeat center center;
    background-size: cover;
  }
/* プリローダー　ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #edbfe0, #b4dae7); /* ピンク系のグラデーション */
  z-index: 9999;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease;
}

/* プリローダー内の動画 */
#preloader video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}




/* デバイス幅が768px以下の場合 */
@media (max-width: 768px) {
  #loading-video {
    width: 100%; 
  }
}

/* デバイス幅が480px以下の場合 */
@media (max-width: 480px) {
  #loading-video {
    width: 90%; /* 幅を90%に変更 */
  }
}
/* フルスクリーン動画背景 */
.video-bg {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

/* テキストオーバーレイ */
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  font-family: 'Orbitron', sans-serif;
}

.site-title {
  font-size: 4rem;
  letter-spacing: 0.2em;
}

.enter-text {
  font-size: 1.5rem;
  margin-top: 20px;
  animation: blink 1.5s infinite;
}

/* 点滅アニメーション */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 画面チラつき防止用：bodyの初期背景 */
html, body {
  background-color: #ffc0cb; /* ピンク背景 */
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

/* 背景を一瞬で出すように（白背景を回避） */
html, body {
  background-color: #ffc0cb; /* サイト全体の基本背景色に合わせる */
}



html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #000; /* 黒背景で余白も目立たなくする */
}

.video-fullscreen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#main-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover; /* 全体にフィットさせる（はみ出しOK） */
}


/* カードページ ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/

.card-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

/* カード全体のサイズ・比率を統一 */
.flip-card {
  background-color: transparent;
  width: 220px;
  height: 300px;
  perspective: 1000px;
  flex-shrink: 0;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}


.flip-card-front {
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flip-card-front img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background-color: #fff;
  display: block;
}

.flip-card-back {
  background-color: #fff; /* 必要ならピンクなどに変更可 */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transform: rotateY(180deg);
  border-radius: 16px;
  overflow: hidden;
}

.flip-card-back img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background-color: #fff;
}


.flip-card-back h3 {
  margin: 0.5em 0;
}

/* ノートーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/
.notebook {
  display: flex;
  margin: 3rem auto;
  width: 90%;
  max-width: 1000px;
  background: #fffdf5;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 12px;
  border: 1px solid #e4d2c4;
}

.page {
  width: 50%;
  padding: 2rem;
  box-sizing: border-box;
  border-right: 1px dashed #ccc;
  position: relative;
}

.right-page {
  border-right: none;
}

.note-card {
  margin-bottom: 2rem;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}

.note-card:hover {
  transform: scale(1.02);
}

.note-card img {
  width: 100%;
  border-radius: 8px;
  border: 3px solid #f0cbd6;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.note-text {
  margin-top: 0.5rem;
  background: #fff3f6;
  padding: 0.8rem 1rem;
  border-left: 5px solid #f7a9b8;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #333;
}
