/* ==== Bonz UI/UX fixes (mobile & tablet) ==== */

/* 1) タブレット幅(768〜1079px)ではナビリンクが収まらないためハンバーガーに切替 */
@media (min-width: 768px) and (max-width: 1149.98px) {
  .nav-desktop { display: none !important; }
  .nav-burger { display: flex !important; }
  #mobile-menu { display: block; }
  #mobile-menu.hidden { display: none; }
}

/* 1080〜1279pxはリンク間隔を詰めてロゴとの重なりを防止 */
@media (min-width: 1150px) and (max-width: 1279.98px) {
  .nav-desktop { gap: 1.25rem; }
}

@media (max-width: 639.98px) {
  /* 2) ヒーローのスライダー操作をSCROLL表示から離す */
  .hero-controls { bottom: 8.5rem; }
  .hero-dots { bottom: 7rem; }

  /* 3) 長文CTAボタンは折り返して全幅表示(横スクロール防止) */
  .btn-block-mobile {
    white-space: normal;
    display: block;
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    line-height: 1.9;
  }

  /* 4) ABOUT見出しの折り返しを許可(nowrapで画面からはみ出すため) */
  #about h2 { white-space: normal; }
}

/* ==== Bonz ロゴマーク ==== */
.logo-mark {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  object-fit: cover;
  flex-shrink: 0;
}
.nav-logo { width: 2.25rem; height: 2.25rem; }
@media (min-width: 768px) { .nav-logo { width: 2.5rem; height: 2.5rem; } }
.hero-logo { width: 4.5rem; height: 4.5rem; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .hero-logo { width: 6rem; height: 6rem; } }
/* bonzcupヒーローは中央寄せレイアウトのため */
.h-full.flex.flex-col.items-center .hero-logo { margin-bottom: 1.25rem; }
.footer-logo { width: 4rem; height: 4rem; }
@media (min-width: 768px) { .footer-logo { width: 5rem; height: 5rem; } }
.cs-logo { width: 3rem; height: 3rem; border-radius: 9999px; opacity: 0.55; }

/* ヒーローの右上バッジ配置(フロー外なのでレイアウトに影響しない) */
.hero-badge {
  position: absolute;
  top: 6.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  opacity: 0.9;
}
@media (min-width: 768px) {
  .hero-badge { top: 7.5rem; right: 2.5rem; width: 6rem; height: 6rem; }
}
@media (min-width: 1024px) {
  .hero-badge { right: 4rem; width: 7rem; height: 7rem; }
}

/* ヒーローのスライダー操作をmd以上では右下に配置(中央配置だとCTAボタンと重なるため) */
@media (min-width: 768px) {
  .hero-controls { left: auto; right: 2.5rem; bottom: 4rem; transform: none; }
  .hero-dots { left: auto; right: 2.5rem; bottom: 2.75rem; transform: none; }
}
@media (min-width: 1024px) {
  .hero-controls { right: 4rem; }
  .hero-dots { right: 4rem; }
}

/* ==== GALLERY(THE WORLD OF Bonz) ==== */
.gallery-masonry { columns: 1; column-gap: 1.25rem; }
@media (min-width: 640px) { .gallery-masonry { columns: 2; } }
@media (min-width: 1024px) { .gallery-masonry { columns: 3; } }
.gallery-item {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  background: #0a0a0a;
}
.gallery-item img { width: 100%; display: block; transition: transform 0.7s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.1rem 0.85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover figcaption { opacity: 1; }
/* タッチ端末はホバーが無いので常時表示 */
@media (hover: none) { .gallery-item figcaption { opacity: 1; } }
.gallery-item .cat { font-size: 10px; letter-spacing: 0.2em; color: rgba(255,255,255,0.55); font-family: var(--font-label); white-space: nowrap; }
.gallery-item .cap { font-size: 12px; color: #fff; font-family: var(--font-label); }
.gallery-item.hide { display: none; }
.gallery-tab {
  padding: 0.55rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px; letter-spacing: 0.2em;
  font-family: var(--font-label);
  cursor: pointer; background: transparent;
  transition: all 0.3s ease; white-space: nowrap;
}
.gallery-tab:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.gallery-tab.active { background: #fff; color: #000; border-color: #fff; }

/* lightbox */
#lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.94); display: flex; align-items: center; justify-content: center; padding: 2rem; }
#lightbox.hidden { display: none; }
#lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border: 1px solid rgba(255, 255, 255, 0.1); }
#lightbox .lb-cap { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 12px; letter-spacing: 0.15em; text-align: center; font-family: var(--font-label); white-space: nowrap; }
#lightbox button { position: absolute; width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); background: rgba(0,0,0,0.4); cursor: pointer; transition: all 0.3s ease; }
#lightbox button:hover { background: #fff; color: #000; }
#lightbox .lb-close { top: 1.25rem; right: 1.25rem; }
#lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* THEATERの写真帯: 3:2の写真が縦長に切れないよう、セル比率を写真に合わせる */
.t-strip img { height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* grid-cols-3(無印)はコンパイル済みCSSに無いため明示定義(シアター写真帯の縦積み防止) */
.t-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Bonz Cupメインビジュアル: 高さ0による遅延読み込み不発を防ぐ */
.cup-visual { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
