/* ============================================================
   Bar 蔵さび — style.css
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --color-main:      #111;
  --color-text:      #333;
  --color-link:      #0d77d9;
  --color-bg:        #fff;
  --color-gray:      #f7f7f7;
  --color-footer-bg: #545454;
  --color-footer-txt:#ffffff;
  --color-header-bg: #ffffff;
  --color-header-txt:#333;
  --color-header-overlay: #fff;   /* ヘッダー文字色（透過時） */

  --container-width: 1200px;
  --header-height-sp: 51px;
  --header-height-pc: 76px;
  --header-height: var(--header-height-sp);

  --grad-bg: linear-gradient(
    360deg,
    rgba(42,61,39,.4)   0%,
    rgba(201,164,0,.4)  26.4%,
    rgba(187,137,0,.4)  34.83%,
    rgba(110,114,62,.4) 66.85%,
    rgba(121,86,0,.4)   70.22%,
    rgba(146,129,124,.4)100%
  );
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--color-link); text-decoration: none; }
ul  { list-style: none; margin: 0; padding: 0; }
p   { margin: 0 0 1em; line-height: 1.8; }
h3  { margin: 1.5em 0 .5em; font-size: 1rem; }
figure { margin: 0; }
figcaption {
  font-size: .95rem;
  color: #000;
  text-align: center;
  margin-top: .75rem;
  line-height: 1.5;
  display: block;
}
iframe { display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.l-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  color: var(--color-header-overlay);
  transition: background-color .25s, color .25s, opacity .25s;
  opacity: 0;                      /* JS でフェードイン */
}
[data-scrolled="true"] .l-header {
  background-color: var(--color-header-bg);
  color: var(--color-header-txt);
  box-shadow: 0 1px 6px rgba(0,0,0,.12);
}

.l-header__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 10px 1.25rem 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ — grid stacking で2枚を同セルに重ねてズレをなくす */
.l-header__logo {
  display: grid;
}
.l-header__logo img {
  grid-area: 1 / 1;          /* 同じグリッドセルに重ねる */
  height: var(--header-height-sp);
  width: auto;
  object-fit: contain;
  transition: opacity .25s;
  align-self: center;
}
.logo-top    { opacity: 1; }
.logo-scroll { opacity: 0; }

[data-scrolled="true"] .logo-top    { opacity: 0; }
[data-scrolled="true"] .logo-scroll { opacity: 1; }

/* ハンバーガーボタン */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  position: relative;
  transition: transform .45s ease;
}
.menu-btn svg {
  fill: currentColor;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .25s;
}
.icon-menu  { opacity: 1; }
.icon-close { opacity: 0; }

[data-drawer="opened"] .menu-btn    { transform: rotate(90deg); }
[data-drawer="opened"] .icon-menu  { opacity: 0; }
[data-drawer="opened"] .icon-close { opacity: 1; }

@media (min-width: 1000px) {
  .l-header__logo img { height: var(--header-height-pc); }
}

/* ============================================================
   DRAWER
   ============================================================ */
.p-drawer {
  position: fixed;
  top: 69px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.88);
  color: #fff;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s ease, visibility .4s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
[data-drawer="opened"] .p-drawer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.p-drawer__inner {
  max-width: 480px;
  margin: 0 auto;
}
.p-drawer__body {
  padding: 1.5rem 6vw 3rem;
}

.drawer-nav li {
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.drawer-nav li:first-child {
  border-top: 1px solid rgba(255,255,255,.15);
}
.drawer-nav a {
  display: block;
  color: #fff;
  padding: 1rem .5rem;
  font-size: .9rem;
  text-decoration: none;
}
.drawer-nav a:hover { opacity: .7; }


/* ============================================================
   VISUAL / FIRST VIEW
   ============================================================ */
.visual-cover {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.visual-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 50%;
  background-attachment: fixed;
}
.visual-overlay {
  position: absolute;
  inset: 0;
}
.dim-0  { background: rgba(0,0,0,0);   }
.dim-10 { background: rgba(0,0,0,.10); }
.dim-20 { background: rgba(0,0,0,.20); }
.dim-30 { background: rgba(0,0,0,.30); }
.dim-40 { background: rgba(0,0,0,.40); }

.visual-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 8vh;
}

/* ビジュアルロゴ・キャプション — JS でフェードイン */
.visual-logo {
  width: 300px;
  opacity: 0;
  transition: opacity 2s ease;
  margin-bottom: 2rem;
}
.visual-caption {
  width: 100px;
  opacity: 0;
  transition: opacity 2s ease;
}

@media (min-width: 1000px) {
  .visual-logo    { width: 300px; }
  .visual-caption { width: 120px; }
}
@media (max-width: 999px) {
  .visual-inner {
    padding-top: 80px;   /* 固定ヘッダー分を補正してロゴ・キャプションを下げる */
    padding-bottom: 0;
  }
}
@media (max-width: 599px) {
  .visual-logo    { width: 200px; }
  .visual-caption { width: 80px; }
}

/* ============================================================
   PARALLAX BLOCKS（中間区切り）
   ============================================================ */
.parallax-block {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: 50% 50%;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-block > .dim-0,
.parallax-block > .dim-10,
.parallax-block > .dim-20,
.parallax-block > .dim-30,
.parallax-block > .dim-40 { display: none; } /* 不要（親に直接 dim- クラス付与） */

/* dim を parallax-block 自身に before で適用 */
.parallax-block.dim-0::before  { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); }
.parallax-block.dim-20::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.parallax-block.dim-30::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.parallax-block.dim-40::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.4); }

.welcome {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  padding: 0 1rem;
}
.welcome img { width: 100%; height: auto; }

@media (min-width: 1000px) {
  .welcome { width: 800px; }
}
@media (max-width: 999px) {
  .parallax-block {
    min-height: 50vh;
    background-attachment: scroll;  /* iOS は fixed 非対応のため無効化 */
  }
  .visual-bg {
    background-attachment: scroll;
  }
}

/* ============================================================
   SECTION 共通
   ============================================================ */
.section { position: relative; }
.bg-white { background-color: var(--color-bg); }
.bg-gray  { background-color: var(--color-gray); }
.bg-grad  { background: var(--grad-bg); }

/* ============================================================
   #bar : 店舗紹介
   ============================================================ */
#bar .section-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 25%-50%-25% カラム */
.cols-25-50-25 {
  display: flex;
  align-items: flex-start;
  width: 100%;
}
.cols-25-50-25 > *:first-child,
.cols-25-50-25 > *:last-child { flex-basis: 25%; }
.cols-25-50-25 > *:nth-child(2) { flex: 1; }

/* 25%-70%-25% カラム */
.cols-25-70-25 {
  display: flex;
  align-items: flex-start;
  width: 100%;
}
.cols-25-70-25 > *:first-child,
.cols-25-70-25 > *:last-child { flex-basis: 15%; }
.cols-25-70-25 > *:nth-child(2) { flex: 1; }

.opening-txt p.center-text { text-align: center; }

/* 写真ペア */
.photo-pair {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 800px;
  width: 100%;
}
.photo-col { flex: 1; margin-top: 0 !important; }
.photo-col img { width: 100%; height: auto; }

.u-mt-20 { margin-top: 1.25rem; }
.u-mt-30 { margin-top: 1.875rem; }
.u-mt-40 { margin-top: 2.5rem; }
.u-mt-0  { margin-top: 0 !important; }

@media (max-width: 599px) {
  .opening-txt p.center-text { text-align: left; }
  .cols-25-50-25 > *:first-child,
  .cols-25-50-25 > *:last-child { display: none; }
  .cols-25-70-25 > *:first-child,
  .cols-25-70-25 > *:last-child { display: none; }
}

/* ============================================================
   #origin : 店名の由来
   ============================================================ */
#origin {
  padding: 2rem 0;
}
.kurasabi-origin {
  width: 80%;
  margin: 0 auto;
}
.kurasabi-origin img {
  width: 100%;
  height: auto;
}

@media (max-width: 599px) {
  #origin {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
  }
  .kurasabi-origin {
    width: 90%;
    overflow-x: scroll;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
  }
  .scrl-img {
    height: 80vh;
  }
  .scrl-img img {
    width: auto;
    height: 80vh;
  }
}

/* ============================================================
   #room : 独立型個室
   ============================================================ */
.room-section {
  position: relative;
  background-image: url(../images/visual/bg_room.jpg);
  background-size: cover;
  background-position: 49% 6%;
  min-height: 1508px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.room-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.room-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 4rem 1.5rem;
}

/* room 内の tempo-section は白カードを維持 */
.room-section .tempo-section {
  margin: 4rem auto;
}

/* koshitsu タイトル */
.room-section .alignwide {
  max-width: 100%;
}
.room-section .alignwide img { width: 100%; height: auto; }

.room-desc {
  text-align: center;
  color: var(--color-main);
}

/* box-80 */
.box-80 {
  width: 80%;
  margin: 0 auto;
}
.box-80 figure + figure { margin-top: 1.5rem; }
.box-80 img { width: 100%; height: auto; }

/* room AB 全体写真 */
.room-section > .room-inner > .tempo-section > figure {
  margin-top: 1.5rem;
}
.room-section figure img { width: 100%; height: auto; }

/* 丸写真行 */
.maru-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.maru-wide  { flex-basis: 66.66%; flex-shrink: 0; }
.maru-narrow{ flex-basis: 33.33%; flex-shrink: 0; }
.maru-row figure img { width: 100%; height: auto; }

@media (max-width: 599px) {
  .maru-narrow.pc { display: none; }
  .maru-wide { flex-basis: 100%; }
}

/* ============================================================
   TEMPO-SECTION（system / floor / access の白カード）
   ============================================================ */
.tempo-section {
  width: 800px;
  max-width: 100%;
  padding: 4rem 6.4rem;
  background: rgba(255,255,255,.75);
  border-radius: 10px;
  box-shadow: inset 0 2px 20px 0 rgba(0,0,0,.2);
  margin: 0 auto;
}
.section.bg-grad {
  padding: 4rem 0;
}
.section.bg-grad > .tempo-section {
  margin-top: 0;
  margin-bottom: 0;
}
.tempo-section figure { margin: 0 0 1.5rem; }
.tempo-section figure:last-child { margin-bottom: 0; }
.tempo-section img { width: 100%; height: auto; }

@media (max-width: 599px) {
  .tempo-section {
    width: 100%;
    padding: 2rem 1rem;
  }
  .section.bg-grad {
    padding: 2rem 0;
  }
  .section.bg-grad > .tempo-section {
    margin-top: 0;
    margin-bottom: 0;
  }
  .room-section .tempo-section {
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* ============================================================
   #floor : フロアガイド
   ============================================================ */
.floor-cols {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.floor-seats { flex: 1; }
.floor-camera { flex-basis: 40%; }
.floor-camera img { width: 100%; height: auto; }

.img-map { width: 100%; }
.img-map img { width: 100%; height: auto; }

/* ============================================================
   #access : アクセス
   ============================================================ */
#access h3 { text-align: left; }
#access p  { text-align: left; }
#access a[href^="tel"] { color: var(--color-text); text-decoration: underline; }
#access iframe {
  width: 100%;
  max-width: 600px;
  height: 450px;
  border: 0;
  margin-top: .5rem;
}

@media (max-width: 599px) {
  #access iframe { height: 300px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.l-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-txt);
  position: relative;
  z-index: 0;
}
.l-footer a { color: inherit; }
.l-footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.l-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem .5rem;
  margin-bottom: .75rem;
}
.l-footer__nav a {
  display: block;
  font-size: .8rem;
  padding: .25rem .5rem;
  text-decoration: none;
}
.l-footer__nav a:hover { opacity: .7; }
.c-copyright {
  text-align: center;
  font-size: .75rem;
  opacity: .8;
  margin: 0;
}

/* ============================================================
   PAGE TOP BUTTON
   ============================================================ */
.c-pagetop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  background: var(--color-main);
  color: #fff;
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  box-shadow: 0 2px 8px rgba(0,0,0,.2), 0 4px 4px -4px rgba(0,0,0,.15);
}
.c-pagetop svg { fill: #fff; }
.c-pagetop:hover { opacity: .8; }
[data-scrolled="true"] .c-pagetop {
  opacity: .5;
  pointer-events: auto;
}
[data-scrolled="true"] .c-pagetop:hover { opacity: 1; }

/* ============================================================
   UTILITIES
   ============================================================ */
.u-only-sp { display: none; }

@media (max-width: 999px) {
  .u-only-pc { display: none !important; }
  .u-only-sp { display: block; }
  /* parallax-block は SP でも flex を維持 */
  .parallax-block.u-only-sp { display: flex; }
}

/* PC: parallax-block に u-only-pc が付いても flex を維持 */
.parallax-block.u-only-pc { display: flex; }

.pc { display: block; }
@media (max-width: 599px) {
  .pc { display: none !important; }
}

/* フェードイン */
.fade-in {
  opacity: 0;
  transition: opacity .5s ease;
}
.fade-in.show {
  opacity: 1;
}

/* テキスト中央 */
.center-text { text-align: center; }

/* ============================================================
   CUSTOM LIGHTBOX
   ============================================================ */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  cursor: pointer;
}
.lb-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  cursor: default;
}
.lb-caption {
  color: #fff;
  font-size: .9rem;
  margin-top: 1rem;
  text-align: center;
  max-width: 90vw;
}
.lb-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
