@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/


/************************************
** クイズUI（quiz_ui）表示用スタイル
************************************/

/* クイズ表示エリア */
#quiz-ui {
  margin: 40px auto;
  max-width: 1200px;
  padding: 10px;
  display: none;
}

/* クイズ画像の配置とデザイン */
#quiz-area {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: flex-start;
}
#quiz-area img {
  max-width: 48%;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
#quiz-area img:hover {
  transform: scale(1.03);
}

/* スタートボタン（中央下固定＋拡大反応付き） */
#fixed-quiz-button {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

#start-quiz {
  padding: 20px 40px;
  font-size: 20px;
  font-weight: bold;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}

#start-quiz:hover {
  background-color: #005c90;
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}




/************************************
** ランダム画像ショートコード用
************************************/
.random-post-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.random-post-image {
  flex: 1 1 auto;
  max-width: 80%;
  text-align: center;
}
.random-post-image img {
  width: 100%;
  max-width: 1024px;
  height: auto;
  object-fit: cover;
}


/************************************
** レスポンシブデザイン
************************************/

/* 1023px以下：画像を縦並びに */
@media screen and (max-width: 1023px){
  #quiz-area img {
    max-width: 100%;
  }
  #start-quiz {
    font-size: 15px;
    padding: 10px 18px;
  }
}

/* 834px以下 */
@media screen and (max-width: 834px){
  #start-quiz {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* 480px以下 */
@media screen and (max-width: 480px){
  #start-quiz {
    font-size: 13px;
    padding: 6px 12px;
    bottom: 15px;
    right: 15px;
  }
}


/************************************
** その他（不要な追従フッター削除済）
************************************/

/* 総問題数表示ボックスレイアウト */
.quiz-count-box {
  background: #f0f8ff;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  color: #333;
  border: 2px solid #0073aa;
  margin: 20px auto;
  max-width: 400px;
}

