/*background: linear-gradient(88deg, #52c1c1 0%, #91bb74 55%, #005E82 100%);
background: linear-gradient(0deg, #757575 0%, #9E9E9E 45%, #E8E8E8 70%, #9E9E9E 85%, #757575 90% 100%);*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Sans', 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
  background-image: url(../images/topimage.png);
  background-size: cover;
  overflow: hidden;
  height: 100vh;
  position: relative;
}

.container {
  display: flex;
  
  height: 100vh;
}

/* PC用サイドバー */
.sidebar {
  display: none;
  width: 80px;
  background: linear-gradient(0deg, #757575 0%, #9E9E9E 45%, #E8E8E8 70%, #9E9E9E 85%, #757575 90% 100%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.sidebar-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sidebar-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* メインコンテンツ */
.main-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.quiz-container {
  width: 100%;
  max-width: 375px;
  height: 100vh;
  margin: 0 auto;
 
  position: relative;
  background: white;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(135deg, #52c1c1 0%, #91bb74 55%, #005E82 100%);
transform: translateY(100%);
}

.slide.active {
  transform: translateY(0);
}

.slide.prev {
  transform: translateY(-100%);
}

.slide.next {
  transform: translateY(100%);
}

/* ヘッダー */
.header {
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.question-number {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* クイズコンテンツ */
.quiz-content {
  flex: 1;
  padding: 21px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* コンテンツを中央揃えから上寄せに変更 */
}

.question {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.5;
}


.icon-content{
  display: flex;
  justify-content: center;
  margin-top: 10%; /* ヘッダーとアイコンの間のスペースを調整 */
  margin-bottom: 5px;
}

.beer-icon {
  width: auto;
  height: 50px;
  min-width: 50px;
  margin: 0px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.option {
  background: white;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.option:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.option.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.confirm-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;

  margin: 8px auto 0;

 
  display: block;
  transition: all 0.3s ease;
  opacity: 0.5;
  pointer-events: none;
}

.confirm-btn.active {
  opacity: 1;
  pointer-events: auto;
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* 級選択ボタン */
.level-selector {
    position: absolute;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.level-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.level-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.level-btn.active {
    background: white;
    border-color: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.level-btn span {
    display: block;
}

/* 各級の背景色 */
.level-beginner {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.level-intermediate {
    background: linear-gradient(135deg, #667eea 0%, #1e3c72 100%);
}

.level-advanced {
    background: linear-gradient(135deg, #8B4513 0%, #4A2C2A 100%);
}

/* 各級の背景色 - 既存のコードの後に追加 */
.slide.level-beginner {
    background: linear-gradient(135deg, #52c1c1 0%, #91bb74 55%, #005E82 100%);
}

.slide.level-intermediate {
    background: linear-gradient(135deg, #2a93d5 0%, #3ddad7 55%, #135589 100%);
}

.slide.level-advanced {
    background: linear-gradient(135deg, #8B4513 0%, #4A2C2A 100%);
}

/* 結果画面 */
.result-content {
  text-align: center;
  padding: 40px 20px;
}

.result-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.result-text {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.correct {
  color: #4CAF50;
}

.incorrect {
  color: #f44336;
}

.explanation {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* フッター */
.footer {
  background: linear-gradient(0deg, #757575 0%, #9E9E9E 45%, #E8E8E8 70%, #9E9E9E 85%, #757575 90% 100%);
  padding: 8px 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.footer-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
}

.footer-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* PC用ナビゲーションボタン */
.nav-buttons {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.nav-btn {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* 完了ポップアップ */
.completion-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.popup-content {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  max-width: 350px;
  width: 90%;
  animation: popupSlide 0.5s ease;
}

@keyframes popupSlide {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.final-score {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.completion-date {
  color: #666;
  margin-bottom: 20px;
}

.share-btn {
  background: #1DA1F2;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  font-size: 16px;
  cursor: pointer;
  margin: 10px;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: #0d8bd9;
  transform: translateY(-2px);
}

.close-btn {
  background: #666;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  font-size: 16px;
  cursor: pointer;
  margin: 10px;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #555;
}

/* レスポンシブ */
@media (min-width: 768px) {
  .sidebar {
    display: flex;
  }

  .footer {
    display: none;
  }

  .nav-buttons {
    display: flex;
  }

  .quiz-container {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  }
}

/* タッチ対応 */
.quiz-container {
  touch-action: pan-y;
}