/* =========================================================
   銀座 Bar R — style.css
   配色は店内から：マホガニーの影 / 真鍮 / 琥珀 / 革椅子 / 象牙
   ========================================================= */
:root {
  --ink: #110c09;
  --wood: #1d1410;
  --wood-2: #2c1e18;
  --brass: #c9a35a;
  --amber: #e6c07a;
  --oxblood: #5c2626;
  --ivory: #f2ebdd;
  --ivory-70: rgba(242, 235, 221, .72);
  --ivory-15: rgba(242, 235, 221, .15);
  --muted: #a89f8f;

  --display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --mincho: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;

  --container: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 120px);
  --topbar-h: 36px;
  --header-h: 72px;
}
.nowrap { white-space: nowrap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brass); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ロゴ「R」: 支給データを SVG 化した img/logo-r.svg を mask にして currentColor で塗る（RⅡ は logo-r2.svg） */
.mark {
  display: inline-block; aspect-ratio: 2669 / 2119; background: currentColor; flex: none;
  -webkit-mask: url("../img/logo-r.svg") center / contain no-repeat; mask: url("../img/logo-r.svg") center / contain no-repeat;
}
.mark--r2 { -webkit-mask-image: url("../img/logo-r2.svg"); mask-image: url("../img/logo-r2.svg"); }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--topbar-h);
  font-size: 12.5px; letter-spacing: .06em; color: var(--ivory-70);
  font-family: var(--display); font-weight: 500; font-size: 14px;
  transition: transform .3s;
}
.topbar__inner { display: flex; gap: 28px; align-items: center; height: 100%; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.topbar__item .ico { color: var(--brass); }
.is-scrolled .topbar { transform: translateY(-100%); }

/* ---------- header ---------- */
.header {
  position: fixed; left: 0; right: 0; top: var(--topbar-h); z-index: 50; height: var(--header-h);
  transition: top .3s, background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.is-scrolled .header { top: 0; background: rgba(17, 12, 9, .9); border-bottom-color: var(--ivory-15); backdrop-filter: blur(8px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); }
.brand:hover { color: var(--ivory); }
.brand__mark { width: 40px; color: var(--ivory); }
.brand__name { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .08em; line-height: 1; }
.brand__name small { font-size: 14px; letter-spacing: .22em; margin-left: 8px; color: var(--brass); }
.nav { display: flex; gap: 30px; }
.nav a { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: .06em; color: var(--ivory-70); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--brass); transition: right .25s; }
.nav a:hover, .nav a:focus-visible { color: var(--ivory); }
.nav a:hover::after { right: 0; }
.nav__ig { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ivory); transition: transform .3s, top .3s; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; background: url("../img/hero.webp") center 40% / cover no-repeat;
  filter: saturate(.8) sepia(.18) brightness(.92);   /* 少し琥珀に寄せてオーセンティックバーの色味に */
}
@media (prefers-reduced-motion: no-preference) {
  .hero__bg { animation: kenburns 18s ease-out forwards; }
  @keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(17, 12, 9, .55) 0%, rgba(17, 12, 9, .35) 35%, rgba(17, 12, 9, .55) 70%, var(--ink) 100%),
    radial-gradient(ellipse at 50% 55%, rgba(17, 12, 9, 0) 0%, rgba(17, 12, 9, .45) 70%);
}
.hero__inner { position: relative; padding: calc(var(--topbar-h) + var(--header-h) + 24px) var(--gutter) 64px; }
.hero__mark { width: clamp(130px, 18vw, 200px); color: var(--ivory); filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .6)); }
.hero__en { margin: 22px 0 8px; font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(17px, 2vw, 21px); letter-spacing: .18em; color: var(--brass); }
.hero__title { margin: 0; font-family: var(--mincho); font-weight: 500; font-size: clamp(24px, 3.6vw, 36px); letter-spacing: .12em; line-height: 1.5; }
.hero__lead { margin: 12px 0 0; font-size: 14px; letter-spacing: .1em; color: var(--ivory-70); }
.hero__actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 56px; transform: translateX(-50%); overflow: hidden; background: var(--ivory-15); }
.hero__scroll span { position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--brass); animation: drip 2.2s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; top: 60%; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 136px; padding: 11px 26px;
  border: 1px solid var(--brass); border-radius: 999px; color: var(--ivory);
  font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: .12em;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--brass); color: var(--ink); }
.btn--small { min-width: 0; padding: 8px 20px; font-size: 15px; }

/* hero reveal（1回だけ） */
@media (prefers-reduced-motion: no-preference) {
  .hero__mark, .hero__en, .hero__title, .hero__lead, .hero__actions { opacity: 0; animation: rise 1s cubic-bezier(.2, .7, .2, 1) forwards; }
  .hero__mark { animation-duration: 1.4s; }
  .hero__en { animation-delay: .5s; }
  .hero__title { animation-delay: .65s; }
  .hero__lead { animation-delay: .8s; }
  .hero__actions { animation-delay: 1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- section common ---------- */
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head__en { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(44px, 6vw, 64px); line-height: 1; letter-spacing: .02em; color: var(--ivory); }
.section-head__ja { margin: 10px 0 0; font-family: var(--mincho); font-size: 14px; letter-spacing: .2em; color: var(--brass); }

/* ---------- about ---------- */
.about { position: relative; padding: var(--section-y) 0; overflow: hidden; overflow: clip; }   /* clip: hidden だとスクロールコンテナ扱いになり scroll-margin が効かない */
.about::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../img/about-bg.webp") center / cover no-repeat; opacity: .28;
}
.about::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to bottom, var(--ink), rgba(17, 12, 9, .6) 30%, rgba(17, 12, 9, .6) 70%, var(--ink)); }
@media (min-width: 1024px) { .about::before { background-attachment: fixed; } }
.about__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__text p { margin: 0 0 1.2em; max-width: 34em; }
.about__photo { grid-column: 2; grid-row: 1 / span 2; }   /* 2026-10-17 紹介文を写真の前後 2 つに分割。PC は左に文章 2 段・右に写真 */
.about__text--more { grid-column: 1; }
@media (min-width: 901px) { .about__inner { row-gap: 0; } }
.about__sign { margin-top: 2em !important; font-family: var(--mincho); font-size: 14px; letter-spacing: .12em; color: var(--ivory-70); }
.about__sign span { font-size: 19px; color: var(--ivory); margin-right: .6em; }
.link-ig { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .06em; }
.link-ig .ico { font-size: 18px; }

.frame { position: relative; margin: 0; }
.frame img { position: relative; z-index: 1; width: 100%; border: 1px solid var(--ivory-15); }
.frame::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--brass); transform: translate(14px, 14px); z-index: 0; }

.features {
  position: relative; z-index: 1; list-style: none; margin: clamp(56px, 8vw, 96px) auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ivory-15); border-bottom: 1px solid var(--ivory-15);
}
.feature { padding: 30px 20px 26px; text-align: center; border-left: 1px solid var(--ivory-15); }
.feature:first-child { border-left: 0; }
.feature p { margin: 0; }
.feature__ico { width: 34px; height: 34px; fill: none; stroke: var(--brass); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.feature__en { margin-top: 12px !important; font-family: var(--display); font-style: italic; font-size: 15px; letter-spacing: .12em; color: var(--brass); }
.feature__ja { font-family: var(--mincho); font-size: 19px; letter-spacing: .14em; margin-top: 2px !important; }
.feature__note { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; margin-top: 4px !important; }

/* ---------- system ---------- */
.system { padding: var(--section-y) 0; background: var(--wood); border-top: 1px solid var(--ivory-15); border-bottom: 1px solid var(--ivory-15); }
.price { margin: 0; max-width: 640px; }
.price__row { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px dotted rgba(242, 235, 221, .28); }
.price__row:last-child { border-bottom-color: transparent; }
.price__row dt { flex: none; font-family: var(--mincho); font-size: 15.5px; letter-spacing: .08em; }
.price__row dd { margin: 0 0 0 auto; text-align: right; font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: .04em; color: var(--amber); white-space: nowrap; }
.price__sub { font-family: var(--sans); font-weight: 300; font-size: 13px; color: var(--ivory-70); margin-right: 6px; }
.price__sub--after { margin: 0 0 0 8px; }
.price__unit { font-family: var(--sans); font-weight: 300; font-size: 12px; color: var(--muted); margin-left: 10px; letter-spacing: .06em; }
.price__text { font-family: var(--mincho) !important; font-size: 17px !important; color: var(--ivory) !important; letter-spacing: .12em !important; }
.pay { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; max-width: 640px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ivory-15); }
.pay__label { margin: 0; font-family: var(--mincho); font-size: 13.5px; letter-spacing: .1em; color: var(--brass); }
.pay__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.pay__list li { padding: 3px 12px; border: 1px solid var(--ivory-15); border-radius: 999px; font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: .06em; color: var(--ivory-70); }
.price__sep { margin: 0 8px; color: var(--muted); font-weight: 300; }
.notes { margin: 26px 0 0; padding: 0; list-style: none; max-width: 640px; font-size: 13px; color: var(--muted); }
.notes li { padding-left: 1.2em; text-indent: -1.2em; }
.notes li::before { content: "※"; margin-right: .4em; }
.notes a { border-bottom: 1px solid rgba(201, 163, 90, .4); }
.notes__sub { margin: 4px 0 0; padding: 0; list-style: none; text-indent: 0; }
.notes__sub li { padding-left: 1em; text-indent: -1em; }
.notes__sub li::before { content: "・"; margin-right: 0; }

/* ---------- gallery ---------- */
.gallery { padding: var(--section-y) 0; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tile { display: block; width: 100%; overflow: hidden; background: var(--wood); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .3s; opacity: .92; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); opacity: 1; }
.gallery__more { margin: 26px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- RⅡ（姉妹店） ---------- */
.r2 { padding: var(--section-y) 0; background: var(--wood); border-top: 1px solid var(--ivory-15); }
.r2__card { display: grid; grid-template-columns: minmax(0, 440px) 1fr; border: 1px solid var(--ivory-15); background: var(--ink); }
.r2__photo {
  position: relative; margin: 0; min-height: 100%; display: grid; place-items: center; padding: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 56px); overflow: hidden;
  background: url("../img/r2.webp") center 45% / cover no-repeat #000;
}
.r2__photo::before { content: ""; position: absolute; inset: 0; backdrop-filter: saturate(.8) sepia(.18) brightness(.92); }   /* hero と同じ色味 */
.r2__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(17, 12, 9, .5), rgba(17, 12, 9, .5)),
    radial-gradient(ellipse at 50% 50%, rgba(17, 12, 9, 0) 0%, rgba(17, 12, 9, .5) 75%);
}
.r2__logo { position: relative; z-index: 1; width: min(62%, 220px); color: var(--ivory); filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .6)); }
.ii { letter-spacing: -.06em; margin-left: .04em; }
.r2__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.r2__lead { margin: 0; font-family: var(--mincho); font-size: 17px; letter-spacing: .1em; line-height: 1.9; }
.info--compact { width: 100%; }
.info--compact .info__row { padding: 10px 0; }
.info--compact .info__row:first-child { border-top: 1px solid var(--ivory-15); }

/* ---------- access ---------- */
.access { padding: var(--section-y) 0; background: var(--wood); border-top: 1px solid var(--ivory-15); }
.access__inner { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "info photo" "map photo"; gap: clamp(28px, 4vw, 48px) clamp(36px, 6vw, 72px); align-items: start; }
.access__info { grid-area: info; }
.access__map { grid-area: map; }
.access__photo { grid-area: photo; }
.info { margin: 0; }
.info__row { display: grid; grid-template-columns: 6em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ivory-15); }
.info__row:first-child { border-top: 1px solid var(--ivory-15); }
.info__row dt { font-family: var(--mincho); font-size: 13.5px; letter-spacing: .1em; color: var(--brass); padding-top: 2px; }
.info__row dd { margin: 0; }
.info__sub { font-size: 13px; color: var(--muted); }
.info__list { margin: 0; padding: 0; list-style: none; }
.info__list li { padding-left: 1em; text-indent: -1em; }
.info__list li::before { content: "・"; }
.access__map { position: relative; }
.access__photo { margin: 0; align-self: stretch; }
.access__photo img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 80%; display: block; border: 1px solid var(--ivory-15); }   /* PC は左列（情報＋地図）の高さまで伸ばす */
.access__map iframe { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--ivory-15); display: block; filter: grayscale(.35) contrast(.92) brightness(.82); }
.access__maplink { position: absolute; right: 10px; bottom: 10px; padding: 6px 14px; border-radius: 999px; background: rgba(17, 12, 9, .9); border: 1px solid var(--brass); font-size: 12.5px; letter-spacing: .06em; color: var(--ivory); }
.access__maplink:hover { background: var(--brass); color: var(--ink); }

/* ---------- footer ---------- */
.footer { padding: 44px 0 40px; background: #000; border-top: 1px solid var(--wood-2); text-align: center; }
.footer__mark { width: 40px; color: var(--brass); }
.footer__sep { color: var(--wood-2); }
.footer__addr { margin: 14px 0 4px; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.footer__copy { margin: 0; font-family: var(--display); font-size: 14px; letter-spacing: .12em; color: var(--ivory-70); }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 5, 3, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; object-fit: contain; border: 1px solid var(--ivory-15); }
.lightbox__close, .lightbox__nav { position: absolute; color: var(--ivory-70); font-family: var(--display); line-height: 1; padding: 12px; transition: color .2s; }
.lightbox__close:hover, .lightbox__nav:hover { color: var(--amber); }
.lightbox__close { top: 14px; right: 18px; font-size: 40px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 64px; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about__inner, .access__inner, .r2__card { grid-template-columns: 1fr; }
  .access__inner { grid-template-areas: "info" "photo" "map"; }
  .access__photo img { height: auto; }
  .r2__photo { aspect-ratio: 4 / 3; padding: 0; }
  .r2__logo { width: min(48%, 200px); }
  .about__photo { max-width: 560px; grid-column: auto; grid-row: auto; }
  .about__text--more { grid-column: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .topbar { font-size: 13px; }
  .topbar__inner { gap: 18px; }
  .brand__mark { width: 34px; }
  .features { grid-template-columns: 1fr; }
  .feature { border-left: 0; border-top: 1px solid var(--ivory-15); padding: 22px 12px; }
  .feature:first-child { border-top: 0; }
  .footer__sep { display: block; height: 4px; overflow: hidden; }
  .brand__name { font-size: 21px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    background: rgba(17, 12, 9, .97); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { font-size: 26px; }
  .nav__ig { display: inline; color: var(--brass); font-size: 18px !important; margin-top: 10px; }
  /* スクロール時は topbar も残るので、ヘッダーと同じ背景にして 1 本の帯に見せる */
  .is-scrolled .topbar { transform: none; background: rgba(17, 12, 9, .9); backdrop-filter: blur(8px); }
  .is-scrolled .header { top: var(--topbar-h); }
  section[id] { scroll-margin-top: calc(var(--topbar-h) + var(--header-h)); }
  .hero__inner { padding-bottom: 48px; }
  .price__row { flex-wrap: wrap; }
  .price__row dd { font-size: 20px; }
  .info__row { grid-template-columns: 6.2em 1fr; gap: 10px; }
  .frame::before { transform: translate(10px, 10px); }
  .lightbox__nav { font-size: 48px; }
}
