/* sub-visual */
.sub-visual__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  pointer-events: none;
  will-change: transform;
}

/* about-us */
.about-us-sub-visual .sub-visual__media {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    var(--about-us-sub-bg);
}

/* Hidden until GSAP fade-g-up runs (avoids scrub half-state flash) */
.fade-g-up {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-g-up {
    opacity: 1;
    transform: none;
  }
}

.our-story {
  display: flex;
  gap: 150px;
  margin-bottom: 110px;
}

.our-story .story-txt h2 {
  margin-bottom: 20px;
}

.our-story .story-txt p {
  margin-bottom: 50px;
  color: rgba(255, 255, 255, 0.8);
}

.our-story .story-txt p:last-child {
  margin-bottom: 0;
}

.our-story img {
  height: fit-content;
}

.story-feeling div {
  position: relative;
}

.story-feeling .freshess {
  float: right;
}

.story-feeling .freshess h1 {
  position: absolute;
  top: 30px;
  left: -150px;
}

.story-feeling .craftsmanship {
  padding-top: 320px;
}

.story-feeling .craftsmanship h1 {
  position: absolute;
  bottom: 330px;
  left: 180px;
}

/* branches */
.branches-sub-visual .sub-visual__media {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    var(--branches-sub-bg);
}

.branches-tabs__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  align-items: flex-end;
  gap: 0;
  margin: 0 0 clamp(28px, 4vw, 60px);
}

.branches-tabs__tab {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px 12px;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    font-weight 0.25s ease;
}

.branches-tabs__tab[aria-selected="true"] {
  color: var(--color-white);
  font-weight: 500;
  border-bottom-width: 2px;
  border-bottom-color: #fff;
}

.branches-tabs__tab:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
}

.branches-tabs__panel {
  min-height: 1px;
}

.branches-tabs__panel[hidden] {
  display: none !important;
}

.branches-tabs__placeholder {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.branches-shot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.branches-shot img {
  min-width: 630px;
  height: auto;
}

.branches-shot .branches-btns {
  display: flex;
  gap: 20px;
}

.branch-detail {
  box-sizing: border-box;
}

.branch-detail__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.branch-detail__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(20px, 4vw, 56px);
  row-gap: clamp(24px, 4vw, 36px);
}

.branch-detail__row--top {
  padding-bottom: clamp(28px, 5vw, 44px);
  margin-bottom: clamp(28px, 5vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.branch-detail__cell {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  column-gap: clamp(16px, 3vw, 36px);
  align-items: start;
}

.branch-detail__label {
  color: var(--color-white);
  min-width: 120px;
  font-weight: 500;
}

.branch-detail__body {
  margin: 0;
  color: rgba(255, 255, 255, 0.8) !important;
}

.branch-detail__para {
  margin: 0 0 0.35em;
}

.branch-detail__para:last-child {
  margin-bottom: 0;
}

.branch-detail__note {
  margin: 0.5em 0 0;
  font-size: 0.92em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.branch-detail__inline-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.branch-detail__ext-text {
  text-decoration: none;
}

.branch-detail__ext-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-block;
  object-fit: contain;
  margin-left: 5px;
  transform: translateY(3px);
}

.branch-detail__sns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.branch-detail__sns .branch-detail__ext {
  width: fit-content;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.branches_map {
  margin-top: clamp(28px, 4vw, 60px);
}

.taiko-map {
  width: 100%;
  height: clamp(320px, 50vh, 450px);
  min-height: 320px;
  background: #110d0c;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* menu */
.menu-sub-visual .sub-visual__media {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    var(--menu-sub-bg);
}

.menu-sub-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(320px, 55vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: left;
  padding: clamp(100px, 14vw, 140px) 0;
}

.menu-sub-visual__contents {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.menu-sub-visual__title {
  margin: 0;
  color: var(--color-white);
  text-align: left;
}

.menu-discover__inner {
  text-align: center;
}

.menu-discover__title {
  margin: 0 0 clamp(16px, 3vw, 20px);
}

.menu-discover__lead {
  margin: 0 auto clamp(40px, 6vw, 56px);
  color: rgba(255, 255, 255, 0.8);
}

.menu-discover__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 32px);
  text-align: left;
}

.menu-location-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: clamp(24px, 4vw, 36px);
}

.menu-location-card__name {
  margin: 0 0 clamp(20px, 3vw, 28px);
}

.menu-location-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-meal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.menu-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  font: inherit;
  border: 1px solid rgb(255, 255, 255, 0.2);
}

.menu-menu-btn.is-active {
  color: var(--color-text);
  border-color: #fff;
  background: #fff;
}

.menu-meal-row__download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.menu-meal-row__download:hover,
.menu-meal-row__download:focus-visible {
  border-color: #fff;
  /* background: rgba(255, 255, 255, 0.2); */
}

.menu-meal-row__download img {
  display: block;
  width: 16px;
  height: 16px;
}

.menu-preview {
  margin-top: clamp(48px, 7vw, 72px);
  text-align: left;
}

.menu-preview__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(16px, 3vw, 24px);
  padding-bottom: clamp(16px, 3vw, 20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.menu-preview__title {
  margin: 0;
  flex: 1 1 200px;
}

.menu-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu-preview__download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-preview__download img {
  display: block;
  width: 16px;
  height: 16px;
}

.menu-preview__frame-wrap {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  min-height: clamp(420px, 62vh, 720px);
  overflow: hidden;
}

.menu-preview__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(17, 13, 12, 0.92);
  color: rgba(255, 255, 255, 0.8);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.menu-preview__loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.menu-preview__spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: menu-preview-spin 0.85s linear infinite;
}

@keyframes menu-preview-spin {
  to {
    transform: rotate(360deg);
  }
}

.menu-preview__desktop {
  position: absolute;
  inset: 0;
}

.menu-preview__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #1a1615;
}

.menu-preview__mobile {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: clamp(32px, 6vw, 48px) clamp(20px, 4vw, 32px);
  text-align: center;
}

.menu-preview__mobile[hidden] {
  display: none !important;
}

.menu-preview__mobile-lead {
  margin: 0 auto clamp(24px, 4vw, 32px);
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.8);
}

.menu-preview__mobile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.menu-preview.is-mobile .menu-preview__desktop {
  visibility: hidden;
  pointer-events: none;
}

.menu-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.menu-pdf-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-pdf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.menu-pdf-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1200px, 100%);
  height: min(92vh, 900px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--color-bg);
}

.menu-pdf-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 3vw, 24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-pdf-modal__header h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.menu-pdf-modal__close {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: transparent;
  color: var(--color-white);
  font-size: 35px;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.menu-pdf-modal__close .bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transform-origin: center;
  transition: opacity 0.25s ease;
}

.menu-pdf-modal__close .bar:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-pdf-modal__close .bar:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* .menu-pdf-modal__close:hover,
.menu-pdf-modal__close:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
} */

.menu-pdf-modal__body {
  flex: 1;
  min-height: 0;
}

.menu-pdf-modal__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #1a1615;
}

.menu-page-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-page-gallery-row {
  overflow: hidden;
  width: 100%;
}

.menu-page-gallery .menu-marquee {
  width: 100%;
}

/* Branches page */
.branches-sub-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(320px, 55vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: left;
  padding: clamp(100px, 14vw, 140px) 0;
}

.branches-sub-visual__contents {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.branches-sub-visual__title {
  margin: 0;
  color: var(--color-white);
  text-align: left;
}

/* About Us & QnA pages (sub-visual matches Menu / Branches) */
.about-us-sub-visual,
.qna-sub-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(320px, 55vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: left;
  padding: clamp(100px, 14vw, 140px) 0;
}

.qna-sub-visual .sub-visual__media {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), var(--qna-sub-bg);
}

.about-us-sub-visual__contents,
.qna-sub-visual__contents {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.about-us-sub-visual__title,
.qna-sub-visual__title {
  margin: 0;
  color: var(--color-white);
  text-align: left;
}

/* qna */
.qna-body ul li {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.qna-body ul li:last-child {
  border-bottom: none;
}

.qna-body ul li p {
  opacity: 0.8;
}

.qna-body ul li span {
  display: inline-block;
  margin-right: 10px;
}
