/* index.php から移動（2026-11-10 CSP の unsafe-inline 除去） */

/* ===== 横幅overflow 完全対策 ===== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  scroll-behavior: smooth;
}

/* ===== スティッキーヘッダー ===== */
#container > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* ===== セクション共通 ===== */
.section-block {
  padding: 56px 12px 64px;
}

/* ===== セクション見出し（おしゃれスタイル）===== */
.section-title {
  text-align   : center;
  color        : rgb(140,98,57);
  font-size    : 1.45em;
  font-weight  : bold;
  letter-spacing: 0.18em;
  margin       : 0 0 32px;
  padding-bottom: 16px;
  position     : relative;
}

/* 薄いセパレーターライン */
.section-title::before {
  content  : '';
  position : absolute;
  bottom   : 0;
  left     : 50%;
  transform: translateX(-50%);
  width    : 100px;
  height   : 1px;
  background: rgba(140,98,57,0.25);
}

/* 中央アクセントバー */
.section-title::after {
  content  : '';
  position : absolute;
  bottom   : -1px;
  left     : 50%;
  transform: translateX(-50%);
  width    : 36px;
  height   : 3px;
  background: rgb(140,98,57);
  border-radius: 2px;
}

/* ===== TOPへ戻るボタン ===== */
#back-to-top {
  position  : fixed;
  bottom    : 28px;
  right     : 22px;
  width     : 52px;
  height    : 52px;
  background: rgb(140,98,57);
  color     : #fff;
  border    : none;
  border-radius: 50%;
  cursor    : pointer;
  display   : flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap       : 2px;
  opacity   : 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s, transform 0.25s, background 0.2s;
  z-index   : 998;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  text-decoration: none;
  line-height: 1;
}
#back-to-top .btt-arrow {
  font-size: 1em;
  line-height: 1;
}
#back-to-top .btt-label {
  font-size  : 0.55em;
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1;
}
#back-to-top.visible {
  opacity   : 1;
  visibility: visible;
}
#back-to-top:hover {
  background: rgb(110,76,44);
  transform : translateY(-4px);
}

/* ===== お店の雰囲気：スライドショー ===== */
.slide {
  position    : relative;
  overflow    : hidden;
  width       : 100%;
  max-width   : 600px;
  aspect-ratio: 3 / 2;
  margin      : 16px auto 0;
}

.slide img {
  display    : block;
  position   : absolute;
  width      : 100%;
  height     : 100%;
  object-fit : cover;
  left       : 100%;
  animation  : slideAnime 56s ease infinite;
}

.slide img:nth-of-type(1) { animation-delay:  0s }
.slide img:nth-of-type(2) { animation-delay:  7s }
.slide img:nth-of-type(3) { animation-delay: 14s }

@keyframes slideAnime {
   0% { left:  100% }
   1% { left:  0    }
  11% { left:  0    }
  12% { left: -100% }
 100% { left: -100% }
}

/* ===== ギャラリーグリッド ===== */
.gallery-note {
  text-align: center;
  color: rgb(140,98,57);
  font-size: 0.88em;
  margin: 0 0 10px;
}

.gallery-grid {
  display        : flex;
  flex-wrap      : wrap;
  justify-content: center;
  gap            : 10px;
  max-width      : 920px;
  margin         : 0 auto;
  padding        : 0 8px;
}

.gallery-grid .img-item {
  flex     : 1 1 calc(33.33% - 10px);
  max-width: 280px;
  min-width: 150px;
}

.gallery-grid .img-item img {
  width      : 100%;
  height     : 200px;
  object-fit : cover;
  display    : block;
}

/* ===== メニュー ===== */
#menu_board a {
  display    : block;
  margin     : 0 auto 12px;
  text-align : center;
}

#menu_board img {
  max-width: 90%;
  height   : auto;
}

/* ===== ライトボックス ===== */
#lightbox {
  display        : none;
  position       : fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background     : rgba(0,0,0,0.88);
  z-index        : 9999;
  justify-content: center;
  align-items    : center;
}
#lightbox.active {
  display: flex;
}
#lightbox-inner {
  display        : flex;
  flex-direction : column;
  align-items    : center;
  gap            : 18px;
  max-width      : 92vw;
}
#lightbox-img {
  max-width   : 92vw;
  max-height  : 75vh;
  object-fit  : contain;
  border-radius: 4px;
  box-shadow  : 0 4px 28px rgba(0,0,0,0.6);
  display     : block;
}
#lightbox-close {
  background   : #fff;
  color        : #333;
  border       : none;
  border-radius: 30px;
  padding      : 11px 36px;
  font-size    : 1em;
  font-weight  : bold;
  cursor       : pointer;
  box-shadow   : 0 2px 10px rgba(0,0,0,0.35);
  letter-spacing: 0.05em;
}
#lightbox-close:hover {
  background: #eee;
}

/* ===== HOME section：スライドショーを確実に収める ===== */
section#home {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* ===== ハンバーガー wrapper（デスクトップでは非表示）===== */
#hamburger-wrap {
  display    : none;
  align-items: center;
  margin     : 6px 10px 6px auto;
  gap        : 6px;
}

#hamburger-label {
  color      : rgb(140,98,57);
  font-size  : 0.88em;
  font-weight: bold;
  white-space: nowrap;
}

/* ===== ハンバーガーボタン（デスクトップでは非表示）===== */
#hamburger {
  display        : flex;
  flex-direction : column;
  justify-content: space-between;
  width          : 34px;
  height         : 24px;
  cursor         : pointer;
  background     : none;
  border         : none;
  padding        : 0;
  margin         : 0;
  flex-shrink    : 0;
}

#hamburger span {
  display         : block;
  width           : 100%;
  height          : 3px;
  background      : rgb(140,98,57);
  border-radius   : 2px;
  transition      : transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* ☰ → ✕ アニメーション */
#hamburger.active span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
#hamburger.active span:nth-child(2) { opacity: 0; }
#hamburger.active span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* ===== スマホ（768px以下）：ハンバーガーメニュー ===== */
@media (max-width: 768px) {

  /* ハンバーガーwrapper表示 */
  #hamburger-wrap {
    display: flex;
  }

  /* デフォルトでナビを非表示 */
  #navi {
    display   : none;
    width     : 100%;
    background: rgb(140,98,57);
  }

  /* 開いた状態 */
  #navi.open {
    display: block;
  }

  /* 縦並びメニュー */
  #navi .float {
    display       : flex;
    flex-direction: column;
    width         : 100%;
    padding       : 0;
    gap           : 0;
  }

  #navi li {
    display      : block;
    width        : 100%;
    height       : auto;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  nav li:not(:last-child) {
    border-right: none;
  }

  #navi a {
    color      : #fff !important;
    font-size  : 1.05em !important;
    padding    : 15px 22px !important;
    display    : block;
    width      : 100%;
    text-align : left;
    font-weight: bold;
  }

  nav a.current {
    color           : #FFE066 !important;
    border-bottom   : none !important;
    background      : rgba(0,0,0,0.12);
  }

  nav a:hover {
    color      : #FFE066 !important;
    border-bottom: none !important;
    background : rgba(0,0,0,0.18);
  }

  /* ヘッダー内を横並びに（ロゴ＋ハンバーガー） */
  #container > header nav {
    display        : flex;
    align-items    : center;
    justify-content: flex-end;
    flex-wrap      : wrap;
  }
}

/* ===== ギャラリーグリッド スマホ（600px以下） ===== */
@media (max-width: 600px) {
  .gallery-grid .img-item {
    flex     : 1 1 calc(50% - 10px);
    min-width: 130px;
  }
  .gallery-grid .img-item img {
    height: 150px;
  }
  .section-title {
    font-size: 1.1em;
  }
}

