body {
  margin: 0;
  background-color: #000;
  font-family: sans-serif;
}

/* 横幅600pxにしたいなら container ではなく wrapper に指定 */
.wrapper {
  max-width: 600px;
  margin: 0 auto;
  min-height: 90vh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #000;
}

/* トップメニュー */
.top-menu {
  background-color: #000;
  padding: 0px;
}

/* ナビゲーション全体 */
.icon-area {
  display: flex;
  justify-content: flex-end;
  gap: 10px; /* ← ボタン間隔統一 */
  padding: 0px;
  background-color: #000;
}

/* 共有ボタン */
.share-btn {
  background-color: #007bff;
  width: 36px;
  height: 32px;           /* ← 他と高さを揃える */
  min-width: 36px;
  padding: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}



.share-btn img {
  width: 20px;
  height: 20px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;           /* ← 高さを明示的に指定 */
  padding: 0 12px;        /* ← 上下paddingはゼロ */
  font-size: 14px;
  line-height: 1;         /* ← 行間も詰める */
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  margin: 0px;
  border: none;
  user-select: none;
  transition: background-color 0.2s, opacity 0.2s;
}

/* Homeボタン：背景クリーム → 黒文字 */
.home-btn,
.home-btn:visited {
  background-color: #fef1c7;
  color: #000 !important;
}

/* ご意見・ご希望ボタン：背景グリーン → 白文字 */
.feedback-btn,
.feedback-btn:visited {
  background-color: #2ecc71;
  color: #fff !important;
}

.nav-btn:hover {
  opacity: 0.85;
}

.nav-btn img {
  width: 20px;
  height: 20px;
}





/* バナー */
.banner-area {
  background-color: #000;
  padding: 15px 0 0px 0;
  text-align: center;
}

.banner-image {
  width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: none;
  border-radius: 8px;
}


.qphoto {
    border-radius: 8px;
}

.quiz-img {
    border-radius: 8px;
}


.header-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #ffc107; /* お好みで黄色系 */
  margin: 0; /* ← ← ← これが重要！！ */
  padding: 0px 0; /* 上下の余白を最小に */
}

/* メイン（クイズ部分） */
.main-content {
  margin: -10; /* ← ← ← これが重要！！ */
  padding: 2px 10px;
  background-color: #000;
  color: #fff;
  text-align: center;
}

#user-answer,
#score-text,
#message,
#instruction,
.result-box,
.feedback-text {
  color: white;
}
#correct-text,

#result-level,
#comment,
#final-score{
  color: white;
}

.white-text {
  color: white;
}

#level-display {
  margin-top: 0px;
  padding: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.gold-title {
  color: #ffd700;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 0px;
}

.gold-question {
  color: #ffd700;
  font-size: 24px;
  font-weight: bold;
  margin-top: -10px;
  margin-bottom: 0px;
}


.label {
  color: #ffffff;  /* ← 黒から白に変更 */
  font-size: 16px;
  margin-bottom: 6px;
} 

.label-big {
  color: #ffffff;  /* ← 黒から白に変更 */
  font-size: 24px;
  margin-bottom: 6px;
}


.black-subtitle {
  color: #ffffff;  /* ← 黒から白に変更 */
  font-size: 16px;
  margin-bottom: 6px;
}

button, select {
  padding: 0.6em 1.2em;
  margin: 0.5em;
  font-size: 1.1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

num-select {
  padding: 4px 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
}

.button-set {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.btn {
  font-size: 16px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  width: 80%;
  max-width: 300px;
  font-weight: bold;
  cursor: pointer;
}

.btn-small {
  font-size: 14px;
  padding: 8px 16px;
  width: 160px;
}

.btn-cream {
  background-color: #fef2c0;
  color: #000;
}


.btn-blue {
  background-color: #00bfff;
  color: #fff;
}

.btn-green {
  background-color: #28a745;
  color: #fff;
}

.btn-red {
  background-color: #d9534f;
  color: #fff;
}

.result-header {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: baseline; /* または center */
  margin-bottom: 10px;
}

.result-header h3 {
  margin: 0;
  font-size: 1.5rem;
}



/* フッター */
.footer {
  background-color: #000;
  color: #999;                /* ← グレー文字に */
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
}
/* 最初は非表示 */
.hidden {
  display: none;
}

#playingGif {
  margin-top: 10px;
  text-align: center;
}


/* ポップアップ全体 */
#share-popup-small {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  color: #222;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  padding: 20px;
  z-index: 10000;
  text-align: center;
  animation: popup-fade 0.25s ease-out;
}

@keyframes popup-fade {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

#share-popup-small .popup-content-small {
  position: relative;
}

#share-popup-small .close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  transition: opacity 0.2s;
}

#share-popup-small .close-btn:hover {
  opacity: 0.5;
}

#share-popup-small img[alt="eeetto.com"] {
  margin-bottom: 10px;
  border-radius: 4px;

  /* 追加 👇 */
  max-width: 100%;
  height: auto;
}


#share-popup-small h3 {
  font-size: 18px;
  margin: 12px 0 20px 0;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.share-link-small {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #007bff;
  color: white;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.2s;
  margin-bottom: 10px;

  /* 追加修正点 👇 */
  width: 100%;
  max-width: 260px;   /* ← ポップアップのpaddingを考慮（300px - 2×20px） */
  margin-left: auto;
  margin-right: auto;
}


.share-link-small:hover {
  background-color: #0056b3;
}

.share-link-small img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

#questionText {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

/* a だけでなく buttonにも同じ見た目を適用したい場合の保険 */
button.share-link-small {
  border: none;
  cursor: pointer;
  background: #007bff; /* 念のため明示 */
}

/* hidden クラスで確実に消せるように（既に .hidden はあるけど保険） */
.share-link-small.hidden { display: none; }


