/* ==========================================================
   home.css — トップページ固有のスタイル
   並び順：ベース → 768px以下 → 480px以下
   ========================================================== */

/* ---------- ベース ---------- */

/* ファーストビュー：写真を右から開く「のれん」の動きを1回だけ。文字は縦書き */
.hero { position: relative; min-height: 100svh; display: flex; overflow: clip; }
.hero__photo {
  position: absolute; inset: 0 0 0 36%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32%);
          mask-image: linear-gradient(to right, transparent 0, #000 32%);
  animation: noren 1.8s var(--ease) both;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 27, 43, .8), rgba(20, 27, 43, 0) 50%);
}
@keyframes noren { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

.hero__body {
  position: relative; z-index: 1; width: 100%;
  display: flex; align-items: flex-end; gap: clamp(1.5rem, 4vw, 4rem);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3.5rem;
}
.hero__title {
  align-self: flex-start;
  writing-mode: vertical-rl;
  font-family: var(--font-serif); font-weight: 500;
  display: flex; flex-direction: column; gap: 1.6rem; /* 縦書きでは column が横並び（先頭が右） */
  animation: fadeIn 1.2s .9s var(--ease) both;
}
.hero__catch { font-size: clamp(2.1rem, 4.2vw, 3.7rem); line-height: 1.5; letter-spacing: .1em; }
.hero__name { font-size: clamp(.9rem, 1.3vw, 1.1rem); letter-spacing: .5em; color: var(--lamp); padding-top: .6rem; }
.hero__aside { max-width: 30rem; animation: fadeIn 1.2s 1.2s var(--ease) both; }
.hero__lead { margin-bottom: 1.75rem; text-shadow: 0 1px 12px rgba(14, 19, 32, .8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* コンセプト */
.concept__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem); align-items: center;
}
.concept__inner--text { grid-template-columns: minmax(0, 1fr); }
.concept__photos { position: relative; padding-bottom: 16%; }
.concept__photo img { width: 100%; height: 100%; object-fit: cover; }
.concept__photo--main { width: 80%; aspect-ratio: 4 / 5; }
.concept__photo--sub {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 3 / 2;
  border: .6rem solid var(--ink);
}
.concept__body { display: flex; align-items: flex-start; gap: 2.5rem; }
.concept__title { writing-mode: vertical-rl; line-height: 1.9; flex: none; }
.prose p + p { margin-top: 1.4em; }

/* おすすめメニュー */
.menu { background: var(--ink-2); }
.menu__tabs-root { margin-top: 2.5rem; }
.menu__tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
html:not(.js) .menu__tabs { display: none; }
.menu__tab {
  flex: 1 1 0; min-height: 3.75rem; padding: .75rem 1rem;
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  color: var(--muted); font-family: var(--font-serif); font-size: 1.0625rem; letter-spacing: .1em;
  cursor: pointer; transition: color .25s, border-color .25s;
}
.menu__tab:hover { color: var(--paper); }
.menu__tab[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--lamp); }

.menu__panel {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center;
}
.menu__panel + .menu__panel { margin-top: 3rem; }
.js .menu__panel:not(.is-active) { display: none; }
.menu__tabs-root.is-switched .menu__panel.is-active { animation: panelIn .55s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
.menu__photo { aspect-ratio: 4 / 3; overflow: hidden; }
.menu__photo img { width: 100%; height: 100%; object-fit: cover; }
.menu__name { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.6; letter-spacing: .1em; }
.menu__desc { margin-top: 1rem; color: var(--muted); }
.menu__price { margin-top: 1.25rem; font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: .08em; color: var(--lamp); }
.menu__note { margin-top: 2rem; color: var(--muted); font-size: .8125rem; }
.menu__pdf { margin-top: 1.5rem; }

/* ギャラリー：写真の縦横比をそのまま活かす段組 */
.gallery__grid { columns: 3; column-gap: 1rem; margin-top: 2.5rem; }
.gallery__item { break-inside: avoid; margin-bottom: 1rem; }
.gallery__link { position: relative; display: block; overflow: hidden; cursor: zoom-in; }
span.gallery__link { cursor: default; }
.gallery__link img { width: 100%; transition: transform .8s var(--ease); }
.gallery__link:hover img { transform: scale(1.04); }

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(10, 14, 24, .96); color: var(--paper);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10, 14, 24, .96); }
.lightbox__figure { max-width: 92vw; }
.lightbox__img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lightbox__btn {
  position: absolute; width: 3.25rem; height: 3.25rem;
  background: rgba(20, 27, 43, .7); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.lightbox__btn::before, .lightbox__btn::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--paper); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__close::before, .lightbox__close::after { width: 1.3rem; height: 2px; margin: -1px 0 0 -.65rem; transform: rotate(45deg); }
.lightbox__close::after { transform: rotate(-45deg); }
.lightbox__prev, .lightbox__next { top: 50%; margin-top: -1.625rem; }
.lightbox__prev { left: 1.25rem; }
.lightbox__next { right: 1.25rem; }
.lightbox__prev::before, .lightbox__next::before { width: .8rem; height: .8rem; background: none; border-top: 2px solid var(--paper); border-left: 2px solid var(--paper); margin: -.4rem 0 0 -.25rem; transform: rotate(-45deg); }
.lightbox__next::before { margin-left: -.55rem; transform: rotate(135deg); }
.lightbox__btn::after { content: none; }
.lightbox__close::after { content: ""; }
.lightbox__btn:hover { border-color: var(--lamp); }

/* 利用シーン */
.scenes { background: var(--moss); }
.scenes__list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.scenes__item {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 1.5rem 3rem; align-items: baseline;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.scenes__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.6rem); letter-spacing: .1em; line-height: 1.6; }
.scenes__text { color: rgba(239, 233, 220, .82); }

/* SNS */
.sns__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem 4rem; flex-wrap: wrap; }
.sns__list { display: flex; flex-wrap: wrap; gap: .75rem; }
.sns__link {
  display: inline-flex; align-items: center; min-height: 3.25rem; padding: .5em 1.8em;
  border: 1px solid var(--line); text-decoration: none; letter-spacing: .12em;
  transition: border-color .25s, color .25s;
}
.sns__link:hover { border-color: var(--lamp); color: var(--lamp); }

/* 店舗情報・アクセス */
.shop-info, .access { background: var(--ink-2); }
.shop-info + .access { padding-top: 0; }
.info-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.info-list__row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--muted); }
.info-list a { text-decoration-thickness: 1px; }
.access__layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); margin-top: 2rem; align-items: start; }
.access__layout--nomap { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
.access__map { aspect-ratio: 4 / 3; background: var(--ink); }
.access__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(.95); }
.access__address { line-height: 1.9; }
.access__info .info-list { margin-top: 1.25rem; }
.access__info .btn { margin-top: 1.75rem; }

/* 予約・来店案内：最後に琥珀色の面で締める */
.reservation { background: var(--lamp); color: var(--ink); }
.reservation .section-lead { color: rgba(20, 27, 43, .82); }
.reservation__options { display: flex; flex-wrap: wrap; gap: 3rem 5rem; margin-top: 3rem; }
.reservation__option + .reservation__option { padding-left: 5rem; border-left: 1px solid rgba(20, 27, 43, .3); }
.reservation__label { font-family: var(--font-serif); font-size: 1.125rem; letter-spacing: .12em; margin-bottom: .75rem; }
.reservation__tel { display: inline-block; font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .08em; line-height: 1.3; text-decoration: none; }
.reservation__tel:hover { text-decoration: underline; }
.reservation__note { margin-top: .75rem; font-size: .875rem; }
.reservation .btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.reservation .btn:hover { background: transparent; color: var(--ink); }
.reservation :focus-visible { outline-color: var(--ink); }
.reservation__notes { margin-top: 3rem; font-size: .875rem; }
.reservation__notes li { padding-left: 1.2em; text-indent: -1.2em; }
.reservation__notes li::before { content: "※"; margin-right: .2em; }

/* ---------- 768px以下（タブレット） ---------- */
@media screen and (max-width: 768px) {
  .hero__photo {
    inset: 0 0 32% 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    animation-name: norenSp;
  }
  @keyframes norenSp { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
  .hero__photo::after { display: none; }
  .hero__body { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; }
  .hero__title { align-self: flex-end; text-shadow: 0 2px 18px rgba(14, 19, 32, .85); }
  .hero__aside { max-width: none; }

  .concept__inner { grid-template-columns: minmax(0, 1fr); }
  .concept__body { flex-direction: column; gap: 1.5rem; }
  .concept__title { writing-mode: horizontal-tb; line-height: 1.6; }

  .menu__tabs-root { margin-top: 2rem; }
  .menu__panel { grid-template-columns: minmax(0, 1fr); }
  .gallery__grid { columns: 2; }
  .scenes__item { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding: 1.5rem 0; }
  .access__layout { grid-template-columns: minmax(0, 1fr); }
  .reservation__option + .reservation__option { padding-left: 0; border-left: 0; }
  .reservation__options { gap: 2.5rem; }
}

/* ---------- 480px以下（スマートフォン） ---------- */
@media screen and (max-width: 480px) {
  .hero__photo { inset: 0 0 38% 0; }
  .hero__catch { font-size: 2.1rem; }
  .hero__actions { flex-direction: column; }
  .menu__tab { min-height: 3.5rem; padding: .6rem .4rem; font-size: .875rem; letter-spacing: .04em; }
  .menu__photo { aspect-ratio: 5 / 4; }
  .gallery__grid { column-gap: .6rem; }
  .gallery__item { margin-bottom: .6rem; }
  .info-list__row { grid-template-columns: minmax(0, 1fr); gap: .15rem; padding: .9rem 0; }
  .sns__list { width: 100%; }
  .sns__list li { flex: 1 1 calc(50% - .4rem); }
  .sns__link { width: 100%; justify-content: center; padding-inline: .5rem; }
  .lightbox__btn { width: 2.75rem; height: 2.75rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1.25rem; margin-top: 0; }
  .lightbox__prev { left: 25%; }
  .lightbox__next { right: 25%; }
}
