/* =========================================
  基本設定（body・共通スタイル）
========================================= */
body {
  background-color: #414549;
  margin: 0.5%;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  color: #f9f3f3;
  overflow-x: hidden;
  font-family: 'Noto Serif JP', serif;
  padding-bottom: 40px;
  align-items: center;
}

.fixed-reserve-button {
  writing-mode: vertical-lr;
  position: fixed;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) ;
  background-color: gold;
  color: #333;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 2.1em;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.fixed-reserve-button:hover {
  background-color: gold;
  writing-mode: vertical-lr;
}
.txt {
    display: flex;
    overflow: hidden;
    margin-left: 120px;
}

.txt p {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: .06em;
    margin: 0;

    /* ここからアニメーション関係 */
    transform: translateY(2em);
    animation: textanimation 1s forwards;
}
/* 1文字目 */
.txt p:nth-child(1) {
    animation-delay: 0.2s
}
/* 2文字目 */
.txt p:nth-child(2) {
    animation-delay: 0.4s
}
/* 3文字目 */
.txt p:nth-child(3) {
    animation-delay: 0.6s
}
/* 4文字目 */
.txt p:nth-child(4) {
    animation-delay: 0.8s
}
/* 5文字目 */
.txt p:nth-child(5) {
    animation-delay: 1s
}
/* 6文字目 */
.txt p:nth-child(6) {
    animation-delay: 1.2s
}
/* 7文字目 */
.txt p:nth-child(7) {
    animation-delay: 1.4s
}
/* 8文字目 */
.txt p:nth-child(8) {
    animation-delay: 1.6s
}
/* 9文字目 */
.txt p:nth-child(9) {
    animation-delay: 1.8s
}
/* 10文字目 */
.txt p:nth-child(10) {
    animation-delay: 2s
}
/* 11文字目 */
.txt p:nth-child(11) {
    animation-delay: 2.2s
}
/* 12文字目 */
.txt p:nth-child(12) {
    animation-delay: 2.4s
}
.txt p:nth-child(13) {
    animation-delay: 2.6s
}
.txt p:nth-child(14) {
    animation-delay: 2.8s
}
.txt p:nth-child(15) {
    animation-delay: 3.0s
}
.txt p:nth-child(16) {
    animation-delay: 3.2s
}
.txt p:nth-child(17) {
    animation-delay: 3.4s
}
.txt p:nth-child(18) {
    animation-delay: 3.6s
}
.txt p:nth-child(19) {
    animation-delay: 3.8s
}
.txt p:nth-child(20) {
    animation-delay: 4.0s
}

.txt p:nth-child(21) {
    animation-delay: 4.2s
}
/* =========================================
section1 (TOP画像スライドショーの背景として利用)
========================================= */
.section1 {
  position: relative;
  /* 既存の高さとパディングを維持、または調整 */
  padding: 60px 20px; /* 元のpaddingを維持 */
  height: 600px; /* セクションの高さを固定して背景画像が見えるように */
  background-size: cover; /* 背景画像をセクション全体に拡大 */
  background-position: center; /* 背景画像を中央に配置 */
  background-repeat: no-repeat; /* 背景画像を繰り返さない */
  transition: background-image 1s ease-in-out; /* 背景画像切り替え時のトランジション */
  margin-top: 70px; /* 固定ナビゲーションの高さ分下げる */
  z-index: 0; /* 必要に応じて調整 */
}

/* 背景画像が切り替わる際のフェード効果用クラス */
.section1.fade-in {
  /* background-imageのtransitionはすでにsection1に定義済み */
}


/* テキストオーバーレイ */
#top .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: row; /* 元の横並びを維持 */
  justify-content: space-between; /* 元の配置を維持 */
  align-items: center;
  padding: 20px;
  /* background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.1)); オーバーレイのグラデーション */
  z-index: 1; /* 背景画像より手前に */
}

.overlay.center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.horizontal-text {
  width: 66.6%;
  position: absolute; /* absoluteを維持 */
  right: 28%; /* 元のrightを維持 */
  font-family: "Hiragino Maru Gothic Pro", "Rounded Mplus 1c", "Yu Gothic", sans-serif;
  font-weight: bold;
  font-size: 4em;
  color: #fff;
  animation: puffUp 1.5s ease-out forwards;
  opacity: 0;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}


@keyframes puffUp {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.vertical-text {
  writing-mode: vertical-rl;
  position: absolute; /* absoluteを維持 */
  top: 30%; /* 元のtopを維持 */
  left: 70%; /* 元のleftを維持 */
  font-size: 4em;
  line-height: 1.5;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.vertical-text .top-text {
  display: inline-block;
  margin-bottom: 3.2em;
}

.vertical-text .bottom-text {
  display: inline-block;
}

.vertical-text p {
  margin: 0 0 10px 0;
  padding: 0;
  line-height: 1.5;
}

/* =========================================
  紙吹雪関連（アニメーション＆表示エリア）
========================================= */
.confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  pointer-events: none;
  z-index: 1;
}

.confetti > span {
  display: block;
  position: absolute;
  opacity: 0;
}

.confetti > span > span {
  display: block;
  width: 100%;
  height: 100%;
}

.confetti > span > span > span {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes rotateY {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes rotate360 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =========================================
  ナビゲーション
========================================= */
.fixed-nav {
  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  background-color: #333;
  padding: 10px 10px;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fixed-nav .logo img {
  height: 50px;
  width: auto;
}

.fixed-nav ul {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 10px 0;
  list-style: none;
}

.fixed-nav li {
  margin: 0 15px;
}

.fixed-nav a {
  text-decoration: none;
  color: #eee;
  font-weight: bold;
  background-color: transparent;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 4px;
  background-color: #eee;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================================
  セクション全体と画像 (その他セクションの調整)
========================================= */
section {
  position: relative;
  text-align: center;
  /* section1は個別にpaddingを設定するため、ここでは削除 */
}

/* section1以外のpaddingを調整 */
.section2, .section4, .section5, .section6 {
    padding: 60px 20px; /* 必要に応じて調整 */
}

.section img {
  width: 100%;
  height: auto;
  display: block;
  background-size: cover;
}

.section2 p {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}
.section3{
  width: 80%; /* 幅を調整したい場合は変更してください */
  max-width: 800px;
  margin: 50px auto; /* ページの中央に配置 */
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
/* 「お知らせ」のタイトル */
.news-title {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

/* お知らせのリスト全体 */
.news-list {
  list-style: none; /* リストの点（・）を非表示に */
  padding: 0;
  margin: 0;
}

/* 個別のお知らせ */
.news-item {
  display: flex; /* 日付とテキストを横並びに */
  justify-content: space-between; /* 日付を左、テキストを右に配置 */
  padding: 15px 0;
  line-height: 1.6;
}

/* お知らせの日付 */
.news-date {
  font-weight: bold;
  color: #ddd;
  white-space: nowrap; /* 日付が改行されないように */
}

/* お知らせの区切り線 */
.news-divider {
  border: 0;
  height: 1px;
  background-color: #ddd;
  margin: 0;
}
.section4 {
  padding: 80px 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  margin-bottom: 80px;
  color: #f9f3f3;
}

.section5 {
  padding: 80px 20px;
  margin-top: 80px;
  background-color: #414549;
  margin-bottom: 80px;
}

.section5 p {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #f9f3f3;
}

.section5 a {
  color: #a4d8ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.section5 a:hover {
  color: #72b2e8;
  text-decoration: underline;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.product-item {
  text-align: center;
  background-color: #33363b;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.product-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
  border-radius: 4px;
}

.product-item p {
  font-size: 1.1em;
  font-weight: bold;
  color: #f9f3f3;
  margin: 0;
}

/* product-link のスタイル */
.product-item .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.section6 {
  background-color: #414549;
  color: #f9f3f3;
  padding: 50px 20px;
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 180px;
}

footer {
  background-color: #222;
  color: #eee;
  padding: 30px 20px;
  text-align: center;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-nav ul li a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: #a4d8ff;
}
/* フッター用のナビゲーションスタイルを新しく追加 */
.footer-nav { /* 新しいクラス名 */
  position: fixed; /* 画面に固定 */
  bottom: 0;       /* 画面下部に固定 */
  left: 0;
  width: 100%;
  background-color: #333; /* フッターの背景色（例） */
  color: #fff;       /* 文字色 */
  padding: 30px 0;
  text-align: center;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2); /* 上方向に影 */
  z-index: 1000;     /* 他のコンテンツの上に表示 */
  font-size: 11px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; /* 横並びにするためにflexboxを使用 */
  justify-content: center; /* 中央寄せ */
}

.footer-nav ul li {
  margin: 0 15px; /* 各項目の左右の余白 */
}

.footer-nav ul li a {
  color: #fff;
  text-decoration: none;
}



a {
  color: #f5f5f5;
  text-decoration: underline;
}

/* ==== レスポンシブ（モバイル対応）==== */
@media (max-width: 768px) {
  .fixed-reserve-button {
    left: 5px;
    padding: 8px 12px;
    font-size: 1em;
  }

  /* TOPセクションのモバイル調整 */
  .section1 {
    height: 400px; /* モバイルでの高さ */
    margin-top: 60px; /* モバイルナビゲーションの高さに合わせて調整 */
  }

  .horizontal-text {
    display: none; /* モバイルでは非表示 */
  }

  #top .overlay {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .vertical-text {
    writing-mode: horizontal-tb; /* モバイルでは横書きにする */
    font-size: 2em; /* モバイルでの文字サイズ調整 */
    line-height: 1.5;
    position: static; /* positionをstaticに戻す */
    top: auto;
    left: auto;
  }
  .vertical-text .top-text {
    margin-bottom: 0.5em; /* モバイルでの間隔調整 */
  }

  .txt {
    margin-left: auto;
    justify-content: center;
  }
  .txt p {
    font-size: 15px;
  }

  .fixed-nav ul {
    display: none; /* ハンバーガーメニューがアクティブになるまでは非表示 */
  }
  /* ここは、ハンバーガーメニューのJSでdisplay: flex; に変更されるはず */
.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* background-color: #ffffff; 必要に応じて調整 */
   background-color: #333; /* フッターの背景色（例） */
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
}

  .product-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
  }

  .product-item {
    flex: 0 0 auto;
    min-width: 160px;
    scroll-snap-align: start;
    text-align: center;
    background-color: #33363b;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .product-item img {
    width: 100%;
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    border-radius: 4px;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 15px;
    right: 50px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    background-color: #333;
    width: 100%;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    transition: opacity .6s ease, visibility .6s ease; visibility: hidden;
  }

  .nav-menu.active {
    display: flex;
    visibility: visible;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  section {
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 16px; /* 他のセクションの左右パディング */
  }
  /* section1以外のpadding-topは維持 */
  .section2, .section3, .section4, .section5, .section6 {
    padding-top: 60px;
  }

  .product-info table tr:last-child td:last-child {
      display: none;
  }
}

@media (max-width: 480px) {
  .product-gallery { grid-template-columns: 1fr; }
  .section6 { font-size: 1em; }
  .fixed-reserve-button {
    top: 50%; font-size: 1em;
    font-size: 0.9em;
  }
}

/* キーフレームアニメーション */
@keyframes puffUp {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes textanimation {
  from {
    transform: translateY(2em);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}