/* ======================== */
/* 妖精ヘッダーとテキスト */
/* ======================== */
#fairy-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
  max-width: 900px;
  flex-wrap: wrap; /* スマホ対応 */
}

.fairy-shirufi {
  width: 650px;
  height: auto;
}

@media screen and (max-width: 600px) {
  .fairy-shirufi {
    width: 95%;
  }
}

.fairy-text h1 {
  font-size: 30px;
  color: #e76f51;
  margin-bottom: 15px;
  padding: 0 15px;
}

.fairy-text p {
  font-size: 15px;
  color: #333;
  margin-bottom: 20px;
  padding: 0 15px;
  line-height: 1.8;
}

@media screen and (max-width: 600px) {
  .fairy-text h1 {
    font-size: 22px;
  }
  .fairy-text p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* ======================== */
/* シャッフルカードエリア */
/* ======================== */
#fairy-card-area {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
}

.shuffle-area {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 80vh;
  max-height: 500px;
  margin: 20px auto;
  background-image: url('images/table.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.card {
  position: absolute;
  width: 90px;
  height: 140px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  top: 50%;
  left: 50%;
  margin: -70px 0 0 -45px;
  opacity: 0.95;
}

/* シャッフルボタン */
#startShuffle {
  display: block;
  margin: 20px auto 0;
  padding: 15px 30px;
  background-color: #ff8c42;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

#startShuffle:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* 選択カード用アニメ */
.card.selected {
  animation: floatUp 1.8s forwards;
  z-index: 10;
}
/* 選ばれたカード用の光エフェクト */
.selected {
 
  z-index: 15;
  box-shadow: 0 0 30px 10px rgba(255, 255, 150, 0.8),
              0 0 60px 20px rgba(255, 255, 200, 0.6);
  transition: box-shadow 0.5s ease-in-out;
}

@keyframes floatUp {
  0%   { transform: translate(0,0) scale(1) rotate(0deg); }
  100% { transform: translate(0,-80px) scale(1.3) rotate(10deg); }
}
/* 結果カード */
.result-card {
  position: absolute;       /* ← relative から absolute に変更 */
  top: 50%;                 /* 親要素の中央に */
  left: 50%;
  transform: translate(-50%, -50%); /* 中央に配置 */
  width: 200px;
  height: 370px;
  background-image: url('images/sitesample-cardura.webp');
  border-radius: 10px;
  z-index: 10;        /* 背景より上に */
 

  opacity: 0; /* 初期非表示 */
 
  background-size: cover;       /* 画像をカードいっぱいに */
  background-position: center;  /* 画像を中央に配置 */
  transition: opacity 1.5s ease;
  margin: 0 auto; 
}

.result-card.show {
  opacity: 1;
  transform: translate(-50%, -50%); /* 表示時にふわっと大きく */
}

/* ======================== */
/* 星の粉 */
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(255,255,220,1), transparent);
  border-radius: 50%;
  opacity: 0.7;
  animation-name: sparkle;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes sparkle {
  0% { transform: translate(0,0) scale(0.5); opacity:0.3; }
  50% { transform: translate(10px,-15px) scale(1.5); opacity:1; }
  100% { transform: translate(0,0) scale(0.5); opacity:0.3; }
}

/* ======================== */
/* カード一覧リンク（下部） */
.card-gallery-down {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
/* カード一覧アイコン */
.card-gallery-down .cardichiran {
  width: 80px;   /* お好みのサイズに */
  height: auto;  /* 縦横比を維持 */
}

/* 「私のフェアリカード占いって何」アイコン */
.card-gallery-down .what {
  width: 180px;  /* こちらは大きめに */
  height: auto;  /* 縦横比を維持 */
}


.card-gallery-down .notice {
  font-size: 14px;
  color: #333;
}

.card-gallery-down .notice a {
  color: #0077cc;
  text-decoration: none;
}

.card-gallery-down .notice a:hover {
  text-decoration: underline;
}

/* ======================== */
/* お知らせ＆情報ボックス */
aside .contena {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  color: #471d12;
  padding: 10px;
}

.info-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.info-box {
  flex: 1;
  max-width: 400px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-box img {
  border-radius: 50%;
}

.info-box span {
  display: block;
  width: 100%;
  text-align: left;
  word-break: break-word;
}
