/* ▼ 全体のフォント設定（最初に置くと管理しやすい） */
body {
  font-family: "Zen Maru Gothic", sans-serif !important;
}


body {
  background: #FFFDF7; /* クリーム色 */
  font-family: "Zen Maru Gothic", sans-serif;
  margin: 0;
  padding: 0;
}

#question-container {
  background: #FFFFFF;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}
.choice-btn {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  background: #F7F3EB; /* ほんのり色のついたボタン */
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.choice-btn:hover {
  background: #EFE7DA;
}


#result-container {
  text-align: center;
  padding: 20px;
  position: relative; /* ← これが絶対に必要！ */
  overflow: visible;  /* ← 念のため追加 */
  z-index: 1;         /* ← 結果カードより上にする */
}



.result-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.result-image {
  width: 200px;
  height: auto;
  margin: 20px auto;
  display: block;
}

.result-description {
  font-size: 18px;
  line-height: 1.6;
  margin: 20px auto;
  max-width: 600px;
  white-space: pre-line;
}

.result-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin: 15px auto;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.result-button {
  background: #4A90E2;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 20px;
}

/* ▼▼▼ トップ画面 ▼▼▼ */

#top-container {
  background-color: #FFF8E7;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: "Zen Maru Gothic", sans-serif;
}

#secret-room-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
  color: #5A4A42;
}

.title {
  font-size: 32px;
  color: #5A4A42;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 16px;
  color: #7A6F68;
  margin-bottom: 40px;
}

#start-btn {
  padding: 14px 40px;
  border-radius: 30px;
  border: 2px solid #5A4A42;
  background-color: transparent;
  color: #5A4A42;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

#start-btn:hover {
  background-color: #F3EDE4;
}
#secret-room-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10; /* ← これ重要！ */
}

#secret-room-icon img {
  width: 28px;   /* ← 小さくする */
  height: auto;
  display: block; /* ← 余白を消す */
}

#start-btn {
  padding: 14px 40px;
  border-radius: 30px;
  background-color: #1A2A5A; /* ← 落ち着いた青 */
  color: #FFFFFF;
  font-size: 18px;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}

#start-btn:hover {
  background-color: #24386F; /* 少し明るい青 */
}

#secret-container {
  background-color: #FFF8E7;
  height: 100vh;
  padding: 40px 20px;
  text-align: center;
  font-family: "Zen Maru Gothic", sans-serif;
  position: relative;
}

#secret-back img {
  width: 28px;
  position: absolute;
  top: 20px;
  left: 20px;
  cursor: pointer;
}

.secret-title {
  font-size: 28px;
  color: #1A2A5A;
  margin-top: 40px;
}

.secret-subtitle {
  font-size: 14px;
  color: #5A4A42;
  margin-bottom: 30px;
}

.secret-text p {
  font-size: 16px;
  color: #5A4A42;
  margin-bottom: 10px;
}

.mail-form {
  margin-top: 30px;
}

.mail-form h2,
.mail-form h3 {
  font-size: 16px !important;
  color: #5A4A42 !important;
  font-weight: normal !important;
  margin-bottom: 10px !important;
}

.mail-form form {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 380px;
  margin: 0 auto;
}

.mail-form button {
  background-color: #1A2A5A !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
}

/* ▼ 秘密の部屋：フォームカードの背景色をターコイズにする ▼ */
.mail-form form {
  background: #DFF7F4; /* ← 薄いターコイズブルー */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 380px;
  margin: 0 auto;
}


/* ▼ 秘密の部屋：MyASPフォームの文字を柔らかいブラウン＋ボールドに統一 */
.mail-form h2,
.mail-form h3 {
  font-family: "Zen Maru Gothic", sans-serif !important;
  color: #5A4A42 !important; /* 柔らかいブラウン */
  font-weight: 600 !important; /* ボールドで強調 */
  font-size: 18px !important;
  margin-bottom: 12px !important;
}

/* ▼ 「名前」「メールアドレス」などのラベル */
.mail-form label {
  font-family: "Zen Maru Gothic", sans-serif !important;
  color: #5A4A42 !important;
  font-weight: 600 !important; /* ボールドで強調 */
  font-size: 14px !important;
}

/* ▼ 秘密の部屋：説明文カード */
.secret-message-card {
  background: #FFFFFF;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 380px;
  margin: 20px auto 30px;
  color: #5A4A42; /* 柔らかいブラウン */
  font-family: "Zen Maru Gothic", sans-serif;
  line-height: 1.8;
  font-size: 15px;
  text-align: left;
}

/* ▼ 秘密の部屋だけ背景をグラデーションにする */
.secret-room {
  background: linear-gradient(180deg, #1A2A5A 0%, #7A4BA0 100%);
  min-height: 100vh;
  padding: 20px 0;
}


.secret-room {
  background: linear-gradient(180deg, #1A2A5A 0%, #7A4BA0 100%) !important;
}

/* ▼ 秘密の部屋：ページ全体の背景を統一 */
body.secret-room,
#secret-container {
  background: linear-gradient(180deg, #1A2A5A 0%, #7A4BA0 100%) !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}


/* ▼ 秘密の部屋：タイトルと説明文だけ白文字にする */
.secret-room #secret-container > h1,
.secret-room #secret-container > p {
  color: #FFFFFF !important;
}


#result-key-icon {
  width: 32px;
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

#result-key-icon:hover {
  opacity: 1;
}



#result-key-icon {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  width: 40px !important;
  height: auto !important;
  display: block !important;
  opacity: 1 !important;
  z-index: 999999 !important;
}


/* ▼ スマホ用レイアウト調整 */
@media screen and (max-width: 480px) {

  /* タイトル（コビト診断） */
  h1, .title {
    font-size: 28px;
    line-height: 1.4;
    text-align: center;
  }

  /* サブタイトル（あなたの中の〜） */
  h2, .subtitle {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 24px;
  }

  /* 鍵アイコン */
  .key-icon {
    width: 90px;   /* ← スマホで見やすいサイズ */
    display: block;
    margin: 0 auto 20px;
  }

  /* 診断をはじめるボタン */
  .start-btn, .choice-btn {
    font-size: 18px;
    padding: 16px 20px;
    border-radius: 12px;
  }

  /* 質問カード */
  #question-container {
    padding: 20px;
    border-radius: 14px;
  }

  /* 選択肢ボタン */
  .choice-btn {
    font-size: 17px;
    padding: 14px;
  }
}
.secret-back-key {
  width: 28px; /* 元のサイズに戻す */
  height: auto;
}
.secret-room {
  background: linear-gradient(#0bb, #fff) !important;
}
.secret-room {
  background: linear-gradient(180deg, #1A2A5A 0%, #7A4BA0 100%) !important;
  min-height: 100vh;
  padding: 20px 0;
}
.guide-board {
  margin-top: 40px;
  padding: 0 10px;
}

.guide-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.guide-card {
  background-color: #f9f4e8;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden; /* ← これがリンクのはみ出しを防ぐ */
}

.guide-card a {
  text-decoration: none;
  color: inherit;
  display: block; /* ← カード全体をリンクにする */
}

.guide-card-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
}

.guide-card-text {
  font-size: 14px;
  opacity: 0.8;
}
