/* ----------------------------------
   ヘッダー（Navbar）関連のスタイル（提供コードそのまま）
---------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; }

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 5px 40px;
  background: #003b4e;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
@media (max-width: 768px) {
  #navbar { padding: 7px 15px; }
}
#navbar .logo a { display: inline-block; }
#navbar .logo img { height: 50px; }

#navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin-right: 0;
}
#navbar ul li {
  position: relative;
  padding: 5px 0;
}
#navbar ul li a {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color 0.3s, transform 0.3s;
}
#navbar ul li a:hover {
  color: #ffd700;
  transform: translateY(-2px);
}
#navbar ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}
#navbar ul li a:hover::after { width: 100%; }

#navbar .language-menu > a {
  background: #e0e0e0;
  border-radius: 15px;
  padding: 5px 10px;
  margin-left: 10px;
  color: #333;
  font-size: 0.9rem;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
}
#navbar .language-menu > a::after {
  content: " ▼";
  font-size: 0.8rem;
  color: #333;
}
#navbar .language-menu > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
#navbar .language-menu .dropdown {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: #e0e0e0;
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0,0,0,0.15);
  margin-top: 5px;
  padding: 5px 0;
  list-style: none;
  min-width: 150px;
  z-index: 100;
}
#navbar .language-menu:hover .dropdown { display: block; }
#navbar .language-menu .dropdown li { padding: 5px 10px; }
#navbar .language-menu .dropdown li a {
  color: #333;
  font-size: 0.9rem;
  display: block;
  white-space: nowrap;
}
#navbar .language-menu .dropdown li a:hover { background: #d0d0d0; }

@media (max-width: 768px) { #navbar ul { display: none; } }

/* Mobile Hamburger Button */
#mobileMenuButton {
  display: none;
  cursor: pointer;
}
@media (max-width: 768px) {
  #mobileMenuButton { display: block; }
  #mobileMenuButton .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background-color: #fff;
    transition: all 0.3s ease;
  }
  #mobileMenuButton.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  #mobileMenuButton.active .bar:nth-child(2) {
    opacity: 0;
  }
  #mobileMenuButton.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Mobile Drawer Menu */
#mobileMenuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: rgba(0,0,0,0.85);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
#mobileMenuOverlay.active { transform: translateX(0); }
#mobileMenuOverlay ul { list-style: none; width: 100%; }
#mobileMenuOverlay ul li { margin-bottom: 15px; }
#mobileMenuOverlay ul li.language-menu > a {
  background: #e0e0e0;
  border-radius: 15px;
  padding: 8px 12px;
  color: #333;
  font-size: 1rem;
  display: inline-block;
}
#mobileMenuOverlay ul li.language-menu > a::after {
  content: " ▼";
  font-size: 0.8rem;
  color: #333;
}
#mobileMenuOverlay ul li.language-menu .dropdown {
  display: none;
  margin-top: 8px;
  background: #444;
  border-radius: 10px;
  padding: 5px 0;
  width: 100%;
}
#mobileMenuOverlay ul li.language-menu .dropdown li {
  border-bottom: 1px solid #666;
}
#mobileMenuOverlay ul li.language-menu .dropdown li:last-child {
  border-bottom: none;
}
#mobileMenuOverlay ul li.language-menu .dropdown li a {
  color: #fff;
  font-size: 1rem;
  padding: 8px 12px;
  display: block;
}
#mobileMenuOverlay ul li.menu-item a {
  color: #fff;
  font-size: 1rem;
  display: block;
  padding: 8px 12px;
}

/* ----------------------------------
   本文全体のスタイル（ヘッダー以外）
   ヘッダー部分は上記の通り、ここでは背景・文字色を上書き
---------------------------------- */
body {
  background: #000;
  color: #d4c374;
  font-family: 'Hiragino Mincho ProN', '游明朝', 'Yu Mincho', serif;
  line-height: 1.6;
  padding-top: 80px; /* 固定ヘッダー分の余白 */
  color: #d0caca;
}

/* スライダーコンテンツ */
h1 {
  text-align: center;
  font-size: 2.5rem;
  padding: 10px 0;
  letter-spacing: 0.1em;
  margin-top: 10px; /* ヘッダー分を考慮 */
}
.description {
  text-align: center;
  max-width: 800px;
  margin: 20px auto 10px;
  font-size: 1.3rem;
  padding: 0 20px;
}
.scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px;
  scroll-snap-type: x mandatory;
}
.card {
  flex: 0 0 auto;
  scroll-snap-align: center;
  background-color: #000;
  text-align: center;
  padding: 10px;
  width: 300px; /* 固定幅 */
  
  /* 追加：初期状態のアニメーション用設定 */
  opacity: 0;
  transform: translateY(20px) scale(1);
  transition: transform 0.3s ease, opacity 0.8s ease;
}
/* 入口時のアニメーション */
.card.animate {
  animation: fadeInUp 0.8s forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/* スクロールでin-viewの場合の拡大効果 */
.card.in-view {
  transform: scale(1.05);
}
.card.in-view:hover {
  transform: translateY(-10px) scale(1.05);
}
/* hover時：in-viewでない場合は通常 */
.card:hover {
  transform: translateY(-10px) scale(1);
}
.card img {
  display: block;
  width: 100%;
  height: 50vh;
  object-fit: contain;
  margin: 0 auto;
}
.light-effect {
  width: 100%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.7) 0%, transparent 70%);
  filter: blur(2px);
  margin: 10px 0;
}
.card h2 {
  font-size: 1.3rem;
  margin: 10px 0 5px;
  white-space: pre-wrap;
}
.card p {
  font-size: 1rem;
  padding: 0 10px 10px;
  white-space: pre-wrap;
}
@media screen and (max-width: 768px) {
  .card img { height: 50vh; }
  .card h2 { font-size: 1.1rem; }
  .card p { font-size: 0.9rem; }
  .card {
    padding: 0px;
    width: 200px;
  }
  h1,
  .description {
    display: none;
  }
}
/* スライダー位置インジケーター */
.slider-dots {
  text-align: center;
  margin-top: 20px;
}
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #444;
  border-radius: 50%;
  cursor: pointer;
}
.dot.active { background-color: #d4af37; }
#navbar .logo a {
  display: flex;
  align-items: center;
  justify-content: center;
}
#navbar .logo img { height: 50px; }



.card { box-shadow: none !important; transition: transform 0.3s ease, opacity 0.8s ease; }
.card:hover, .card.in-view { box-shadow: none !important; }
.card.in-view { transform: scale(1.03); }
.card.in-view:hover { transform: translateY(-5px) scale(1.03); }
.card:not(.in-view):hover { transform: translateY(-5px) scale(1); }

/* === プログレスバー === */
.progress-container { width: 80%; max-width: 400px; height: 6px; background-color: #444; border-radius: 3px; margin: 25px auto; overflow: hidden; position: relative; }
.progress-bar { width: 0%; height: 100%; background-color: #d4af37; border-radius: 3px; transition: width 0.1s linear; position: absolute; top: 0; left: 0; }
.slider-dots { display: none; }

/* === ポップアップ（モーダル） === */
.modal { display: none; position: fixed; z-index: 1501; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(255, 255, 255, 0.355); opacity: 0; transition: opacity 0.4s ease; align-items: center; justify-content: center; }
.modal.show { display: flex; opacity: 1; }
.modal-content { position: relative; color: #fff; background-color: transparent; margin: auto; padding: 40px; border: none; width: 90%; max-width: 650px; border-radius: 10px; transform: scale(0.9); transition: transform 0.4s ease, opacity 0.4s ease; opacity: 0; z-index: 1; overflow: hidden; }
.modal-content::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: var(--modal-bg-image); background-size: cover; background-position: center; filter: brightness(0.25); z-index: -1; border-radius: 10px; }
.modal.show .modal-content { transform: scale(1); opacity: 1; }
.close-button { color: #ccc; position: absolute; top: 15px; right: 20px; font-size: 36px; font-weight: bold; line-height: 1; cursor: pointer; z-index: 2; transition: color 0.2s ease; }
.close-button:hover, .close-button:focus { color: #fff; }
.modal-header h3 { margin-top: 0; margin-bottom: 15px; color: #fff; padding-bottom: 10px; font-size: 2em; text-align: center; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.modal-info p { margin: 5px 0; line-height: 1.6; color: #eee; font-size: 0.95em; text-align: center; }
.modal-info p strong { display: inline-block; color: #d4af37; font-weight: 600; margin-right: 8px; }
.modal-description { margin-top: 25px; line-height: 1.8; color: #f0f0f0; font-size: 1em; text-align: left; max-height: 40vh; overflow-y: auto; padding-right: 10px; }
.modal-description::-webkit-scrollbar { width: 6px; }
.modal-description::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
.modal-description::-webkit-scrollbar-thumb { background-color: rgba(212, 175, 55, 0.7); border-radius: 3px; }
.card.sake-card { cursor: pointer; }
.na-value { color: #999; font-style: italic; }



@media (min-width: 769px) { /* 769px以上の画面幅で適用 */
  .modal-content {
    max-width: 800px; /* PCでの最大横幅 (変更済み) */
  }

  /* --- ★文字サイズ調整 --- */
  .modal-header h3 {
    font-size: 2.4em; /* タイトルを大きく */
  }
  .modal-info p {
    font-size: 1.5em;   /* 基本情報を少し大きく */
  }
  .modal-description {
    font-size: 1.1em;  /* 概要文を大きく */
  }

  /* --- ★縦幅調整 (概要文エリアの最大高さを増やす) --- */
  .modal-description {
    max-height: 80vh; /* 例: 画面高さの60%まで表示領域を広げる */
    /* または固定値: max-height: 500px; など */
  }
}
