@charset "UTF-8";
/* ==========================================================================
   components.css — ボタン / ギャラリー / ライトボックス / フローティング予約
   ========================================================================== */

/* --------------------------------------------------------------------------
   ボタン
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  font-family: var(--font-mincho);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { text-decoration: none; opacity: .85; }

/* 移行前は padding が rem 基準（＝ルートの流体サイズに追随）で、
   高さは固定 px という組み合わせだった。ここでもそれを再現している。 */

/* See More（ギャラリー下） */
.btn--more {
  width: 180px;
  min-height: 48px;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--color-beige);
  color: #fff;
}

/* ご予約はこちら（ベージュ・フローティング） */
.btn--reserve {
  min-width: 160px;
  min-height: 56px;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  background: var(--color-beige);
  color: #fff;
}

/* フッター内のボタン（アイボリー） */
.btn--ivory {
  min-width: 160px;
  min-height: 56px;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  background: var(--color-ivory);
  color: var(--color-brown);
}

/* 電話 CTA（番号＋サブテキストの 2 行。トップの ACCESS 用） */
.btn--tel {
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
  width: 320px;
  max-width: 100%;
  min-height: 62px;
  padding: 0.7rem 0;
  border-radius: var(--radius-pill);
  background: var(--color-beige);
  color: var(--color-ivory);
}
.btn--tel .btn__sub { font-size: .95em; }

/* 電話 CTA（番号のみ。contact ページ用） */
.btn--tel-single {
  width: 280px;
  max-width: 100%;
  min-height: 56px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: var(--color-beige);
  color: var(--color-ivory);
}

/* 道順動画 CTA（Instagram 風グラデーション） */
.btn--movie {
  width: 320px;
  max-width: 100%;
  min-height: 62px;
  padding: 0.7rem 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(45deg,
    #f0dd33 0%, #e6683c 25%, #dc2743 50%, #cc2366 64%, #bc1888 85%, #8a3ab9 100%);
  color: #fff;
}

/* LINE ボタン */
.btn--line {
  width: 100%;
  max-width: 360px;
  min-height: 96px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--color-line);
  color: #fff;
}
.btn--line i { font-size: 1.6em; }

/* --------------------------------------------------------------------------
   ギャラリーのグリッド
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.gallery-grid__item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #f4f0ea;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-grid__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-grid__item:hover img { transform: scale(1.04); }

/* 横長（gallery.html） */
.gallery-grid--landscape .gallery-grid__item { aspect-ratio: 1 / 1; }
/* 縦長（トップの GALLERY 3枚） */
.gallery-grid--portrait .gallery-grid__item { aspect-ratio: 2 / 3; }

/* --------------------------------------------------------------------------
   ライトボックス
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  background: rgba(38, 26, 18, .9);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .3); }
.lightbox__btn--close { top: 16px; right: 16px; }
.lightbox__btn--prev  { top: 50%; left: 16px;  transform: translateY(-50%); }
.lightbox__btn--next  { top: 50%; right: 16px; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   フローティング予約ボタン（トップページのみ）
   -------------------------------------------------------------------------- */
.floating-reserve {
  position: fixed;
  right: 0;
  bottom: 40px;
  z-index: 150;
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity .3s, visibility .3s, transform .3s;
}
.floating-reserve.is-visible { opacity: 1; visibility: visible; transform: none; }

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .gallery-grid { gap: 16px; }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .floating-reserve { bottom: 16px; }
  .lightbox { padding: 56px 12px; }
  .lightbox__btn { width: 40px; height: 40px; font-size: 17px; }
}
