@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bfig-green: #0b8774;
  --bfig-orange: #ef7536;
  --bfig-navy: #051b40;
  --bfig-ink: #333;
  --bfig-deep: #053930;
  --bfig-pale: #e8f2f2;
  --bfig-food-bg: #e7ecec;
}

#bub-figma-rfl {
  position: relative;
  z-index: 2;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #fff;
  color: var(--bfig-ink);
  font-family: Inter, "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
}

#bub-figma-rfl * {
  box-sizing: border-box;
  letter-spacing: 0;
}

#bub-figma-rfl a {
  color: inherit;
  text-decoration: none;
}

.bfig-voice-bg.sd {
  background: #e8f2f2 !important;
}

#bub-figma-rfl .bfig-section__head,
#bub-figma-rfl .bfig-section__eyebrow,
#bub-figma-rfl .bfig-section__title,
#bub-figma-rfl .bfig-section__head *,
#bub-figma-rfl .bfig-section__eyebrow *,
#bub-figma-rfl .bfig-section__title * {
  color: var(--bfig-green) !important;
}

#bub-figma-rfl .bfig-section__lead {
  color: var(--bfig-deep) !important;
}

#bub-figma-rfl .bfig-link,
#bub-figma-rfl .bfig-link *,
#bub-figma-rfl .bfig-food__tab,
#bub-figma-rfl .bfig-food-card__tab,
#bub-figma-rfl .bfig-room__cell--head,
#bub-figma-rfl .bfig-room__cell--head *,
#bub-figma-rfl .bfig-location__cell--head,
#bub-figma-rfl .bfig-location__cell--head *,
#bub-figma-rfl .bfig-food__panel,
#bub-figma-rfl .bfig-food__panel *,
#bub-figma-rfl .bfig-food-card__body,
#bub-figma-rfl .bfig-food-card__body * {
  color: #fff !important;
}

#bub-figma-rfl .bfig-food__panel--tsukuba .bfig-food__time,
#bub-figma-rfl .bfig-food__panel--tsukuba .bfig-food__time * {
  color: var(--bfig-navy) !important;
}

#bub-figma-rfl .bfig-food__panel--chiba .bfig-food__time,
#bub-figma-rfl .bfig-food__panel--chiba .bfig-food__time * {
  color: var(--bfig-orange) !important;
}

#bub-figma-rfl .bfig-food__panel--yatsu .bfig-food__time,
#bub-figma-rfl .bfig-food__panel--yatsu .bfig-food__time * {
  color: var(--bfig-green) !important;
}

#bub-figma-rfl .bfig-room__num,
#bub-figma-rfl .bfig-location__num,
#bub-figma-rfl .bfig-location__cell--label,
#bub-figma-rfl .bfig-location__cell--label * {
  color: var(--bfig-green) !important;
}

#bub-figma-rfl .bfig-room__small {
  color: var(--bfig-ink) !important;
}

#bub-figma-rfl .bfig-tag--chiba {
  color: #fff !important;
  background: var(--bfig-orange);
}

#bub-figma-rfl .bfig-tag--tsukuba {
  color: #fff !important;
  background: var(--bfig-navy);
}

#bub-figma-rfl .bfig-tag--yatsu {
  color: #fff !important;
  background: var(--bfig-green);
}

.bfig-section {
  width: 100%;
  padding: 100px 0;
  scroll-margin-top: 120px;
}

.bfig-section__inner {
  width: min(1200px, calc(100vw - 48px));
  margin: 0 auto;
}

.bfig-section__head {
  width: 100%;
  margin: 0;
  color: var(--bfig-green);
  text-align: center;
}

.bfig-section__eyebrow {
  margin: 0 0 8px;
  font-family: Inter, "Zen Kaku Gothic New", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.48px !important;
  line-height: 42px;
}

.bfig-section__title {
  margin: 0;
  min-height: 60px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.5;
}

#bub-figma-rfl .bfig-section__title span {
  line-height: inherit !important;
}

.bfig-section__lead {
  width: min(1080px, 100%);
  margin: 24px auto 0;
  color: var(--bfig-deep);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.bfig-sp-title {
  display: none;
}

.bfig-room .bfig-section__head {
  margin-bottom: 0;
}

.bfig-room__subhead {
  display: none;
}

.bfig-room__scroll {
  width: 100%;
  margin-top: 24px;
}

.bfig-food .bfig-section__head {
  margin-bottom: 48px;
}

.bfig-locations .bfig-section__head {
  margin-bottom: 24px;
}

.bfig-table {
  overflow: hidden;
  border-radius: 8px;
  background: #f6f6f6;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.06);
}

.bfig-room__table {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 83.937px 63.348px 63.348px 63.348px 97px;
  gap: 1.584px;
  width: 1080px;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: none;
}

.bfig-room__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 12px 10px;
  background: var(--bfig-pale);
  color: var(--bfig-ink);
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.bfig-room__cell--head {
  min-height: 0;
  background: var(--bfig-green);
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.bfig-room__num {
  color: var(--bfig-green);
  font-family: Inter, "Zen Kaku Gothic New", sans-serif;
  font-size: 25.339px;
  font-weight: 600;
  line-height: 1;
}

#bub-figma-rfl .bfig-room__cell span[style] {
  color: #333 !important;
  font-size: 14px !important;
}

.bfig-room__small {
  display: block;
  margin-top: 4px;
  color: var(--bfig-ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.bfig-room__tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.bfig-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 23px;
  padding: 0 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.bfig-tag--chiba {
  color: var(--bfig-orange);
}

.bfig-tag--tsukuba {
  color: var(--bfig-navy);
}

.bfig-tag--yatsu {
  color: var(--bfig-green);
}

.bfig-link-row {
  display: flex;
  gap: 24px;
  width: min(1080px, 100%);
  margin: 40px auto 0;
  filter: drop-shadow(0 6px 2.5px rgba(0, 0, 0, 0.16));
}

.bfig-link {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 70px;
  padding: 10px 16px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.08);
}

.bfig-link strong {
  font-size: 20px;
}

.bfig-link--chiba {
  background: var(--bfig-orange);
}

.bfig-link--tsukuba {
  background: var(--bfig-navy);
}

.bfig-link--yatsu {
  background: var(--bfig-green);
}

.bfig-cal {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.bfig-room__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 1248px;
  max-width: none;
  margin: 40px auto 0;
}

.bfig-photo-card {
  width: 400px;
  max-width: 100%;
  margin: 0 auto;
}

.bfig-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 400 / 267;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.2);
}

#bub-figma-rfl img {
  max-width: 100% !important;
}

.bfig-photo-card figcaption {
  margin-top: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  line-height: 2.2;
  text-align: center;
  text-shadow: none;
}

.bfig-room {
  position: relative;
  background: #fff;
}

.bfig-room::before {
  content: "";
  position: absolute;
  left: 0;
  top: -70px;
  z-index: 1;
  width: 100%;
  height: 70px;
  pointer-events: none;
  background: url("/figma-sections-assets/room-top-brush-v2.png") center bottom / 100% 70px repeat-x;
}

.bfig-room .bfig-photo-card figcaption {
  color: var(--bfig-deep);
  text-shadow: none;
}

.bfig-food {
  background: var(--bfig-food-bg);
}

.bfig-food__pc {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.bfig-food__tabs {
  display: flex;
  gap: 16px;
  width: calc(100% - 160px);
  margin: 0 auto;
}

.bfig-food__tab {
  flex: 1 1 0;
  height: 55px;
  border: 0;
  border-radius: 8px 8px 0 0;
  color: #fff;
  font: 800 18px/1.2 "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  cursor: pointer;
  appearance: none;
}

.bfig-food__tab.is-active,
.bfig-food-card__tab.is-active {
  position: relative;
  z-index: 1;
}

.bfig-food__tab.is-taffy,
.bfig-food-card__tab.is-taffy {
  transform-origin: var(--bfig-taffy-origin, center bottom);
  animation: bfig-liquid-taffy 260ms cubic-bezier(0.2, 0.8, 0.3, 1);
  will-change: transform, border-radius;
}

@keyframes bfig-liquid-taffy {
  0% { transform: scaleX(0.72) scaleY(1.04); border-radius: 22px 8px 0 0; }
  45% { transform: scaleX(1.08) scaleY(0.94); border-radius: 5px 14px 0 0; }
  72% { transform: scaleX(0.98) scaleY(1.03); }
  100% { transform: scale(1); border-radius: 8px 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bfig-food__tab.is-taffy,
  .bfig-food-card__tab.is-taffy {
    animation: none;
  }
}

.bfig-food__tab--tsukuba,
.bfig-food__panel--tsukuba {
  background: var(--bfig-navy);
}

.bfig-food__tab--chiba,
.bfig-food__panel--chiba {
  background: var(--bfig-orange);
}

.bfig-food__tab--yatsu,
.bfig-food__panel--yatsu {
  background: var(--bfig-green);
}

.bfig-food__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  min-height: 584px;
  padding: 48px 60px;
  border-radius: 8px;
  color: #fff;
}

.bfig-food__copy {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bfig-food__time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 46px;
  flex: 0 0 60px;
  border-radius: 4px;
  background: rgba(232, 242, 242, 0.92);
  color: currentColor;
  font-family: Inter, "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.bfig-food__panel--tsukuba .bfig-food__time {
  background: #d8dfeb;
  color: var(--bfig-navy);
}

.bfig-food__panel--chiba .bfig-food__time {
  background: #ffdabf;
  color: var(--bfig-orange);
}

.bfig-food__panel--yatsu .bfig-food__time {
  background: #e8f2f2;
  color: var(--bfig-green);
}

.bfig-food__headline {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
}

.bfig-food__body {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.bfig-food__body p {
  margin: 0 0 12px;
}

.bfig-food__body p:last-child {
  margin-bottom: 0;
}

.bfig-food__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  height: 239px;
}

.bfig-food__images img {
  display: block;
  width: 100%;
  height: 239px;
  border-radius: 8px;
  object-fit: cover;
}

.bfig-food__mobile {
  display: none;
}

.bfig-locations {
  background: #fff;
}

.bfig-location__wrap {
  position: relative;
  width: min(1000px, 100%);
  margin: 0 auto;
  padding-top: 58px;
}

.bfig-location__badge {
  position: absolute;
  top: 0;
  left: 203px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 158px;
  height: 43px;
  padding: 0 12px 7px;
  border: 1px solid var(--bfig-orange);
  border-radius: 999px;
  background: #fff;
  color: var(--bfig-orange);
  font-size: 18.2px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.bfig-location__badge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid var(--bfig-orange);
  border-bottom: 1px solid var(--bfig-orange);
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.bfig-location__table {
  display: grid;
  grid-template-columns: 145px repeat(3, 1fr);
  grid-template-rows: 56px repeat(5, 50px);
  gap: 1px;
  width: 100%;
}

.bfig-location__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 8px 10px;
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.bfig-location__cell--blank,
.bfig-location__cell--head {
  min-height: 0;
  background: var(--bfig-green);
  color: #fff;
}

.bfig-location__cell--label {
  flex-direction: column;
  gap: 2px;
  background: var(--bfig-pale);
  color: var(--bfig-green);
}

.bfig-location__cell small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
}

.bfig-location__label-main {
  display: block;
  white-space: nowrap;
}

.bfig-location__place {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: center;
  color: #fff;
  white-space: nowrap;
}

.bfig-location__place strong {
  font-size: 22px;
}

.bfig-location__place span {
  font-size: 14px;
  font-weight: 400;
}

.bfig-location__num {
  color: var(--bfig-green);
  font-family: Inter, "Zen Kaku Gothic New", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.bfig-locations .bfig-link-row {
  width: min(1000px, 100%);
}

@media (max-width: 767px) {
  .bfig-section {
    padding: 56px 0;
  }

  .bfig-section__inner {
    width: min(335px, calc(100vw - 40px));
  }

  .bfig-section__head {
    margin-bottom: 32px;
    text-align: left;
  }

  .bfig-section__eyebrow {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 42px;
    letter-spacing: 2px !important;
  }

  .bfig-section__title {
    min-height: 0;
    font-size: 28px;
    line-height: 1.6;
  }

  .bfig-pc-title {
    display: none;
  }

  .bfig-sp-title {
    display: inline;
  }

  .bfig-section__lead {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    text-align: left;
  }

  .bfig-room__subhead {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 30px 0 10px;
    color: var(--bfig-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
  }

  #bub-figma-rfl .bfig-room__subhead,
  #bub-figma-rfl .bfig-room__subhead * {
    color: var(--bfig-ink) !important;
  }

  .bfig-room__subhead span {
    display: block;
    white-space: nowrap;
  }

  .bfig-room__subhead img {
    display: block;
    width: 33px;
    height: 39px;
    margin: 0;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
  }

  .bfig-room__scroll {
    width: 100vw;
    margin-top: 0;
    margin-left: calc((100vw - 100%) / -2);
    overflow-x: auto;
    padding: 0 20px 2px;
    -webkit-overflow-scrolling: touch;
  }

  .bfig-room__table {
    width: 480px;
    min-width: 480px;
    grid-template-rows: 57.557px 43.439px 43.439px 43.439px 74.063px;
    margin: 0;
  }

  .bfig-room__cell {
    min-height: 0;
    padding: 5px 4px;
    font-size: 12px;
    line-height: 1.25;
  }

  .bfig-room__cell:nth-child(19),
  .bfig-room__cell:nth-child(21) {
    font-size: 11px;
  }

  .bfig-room__cell--head {
    min-height: 0;
    font-size: 12px;
  }

  .bfig-room__num {
    font-size: 18px;
  }

  .bfig-room__small {
    font-size: 8.8px;
  }

  #bub-figma-rfl .bfig-room__cell span[style] {
    font-size: 9px !important;
  }

  .bfig-room__tags {
    gap: 2px;
  }

  .bfig-tag {
    min-width: 48px;
    width: auto;
    height: 16px;
    margin: 0 auto;
    padding: 0 9px;
    border-width: 0.543px;
    font-size: 10.86px;
    line-height: 1;
  }

  .bfig-link-row {
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    filter: none;
  }

  .bfig-link {
    flex-direction: column;
    gap: 6px;
    min-height: 94px;
    padding: 12px 8px;
    border-width: 1px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.42;
  }

  .bfig-link strong {
    display: block;
    font-size: 16px;
    line-height: 1.42;
  }

  .bfig-room__photos {
    display: none;
  }

  .bfig-food__pc {
    display: none;
  }

  .bfig-food__mobile {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
  }

  .bfig-food-card {
    width: 100%;
  }

  .bfig-food-card__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .bfig-food-card__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border: 0;
    border-radius: 8px 8px 0 0;
    color: #fff;
    font-family: Inter, "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    appearance: none;
    cursor: pointer;
  }

  .bfig-food-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px 40px;
    border-radius: 0 0 8px 8px;
    color: #fff;
  }

  .bfig-food-card__hero {
    display: block;
    width: 100%;
    height: calc((100vw - 48px) * 185 / 327);
    border-radius: 8px;
    object-fit: cover;
  }

  .bfig-food-card__thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .bfig-food-card__thumbs img {
    display: block;
    width: 100%;
    height: calc(((100vw - 56px) / 2) * 90 / 159.5);
    border-radius: 8px;
    object-fit: cover;
  }

  .bfig-food-card .bfig-food__copy {
    gap: 12px;
  }

  .bfig-food-card .bfig-food__time {
    width: 45px;
    height: 46px;
    flex-basis: 45px;
    font-size: 13px;
  }

  .bfig-food-card .bfig-food__headline {
    font-size: 18px;
    line-height: 1.4 !important;
  }

  .bfig-food-card .bfig-food__body {
    font-size: 14px;
    line-height: 1.6 !important;
  }

  .bfig-food-card .bfig-food__body p {
    margin: 0 0 12px !important;
    line-height: 1.6 !important;
  }

  .bfig-food-card .bfig-food__body p:last-child {
    margin-bottom: 0 !important;
  }

  .bfig-location__wrap {
    width: 100%;
    padding-top: 32px;
  }

  .bfig-locations .bfig-section__inner {
    width: min(405px, calc(100vw - 24px));
  }

  .bfig-locations .bfig-link-row {
    margin-top: 40px;
  }

  .bfig-location__badge {
    left: 78px;
    width: 112px;
    min-width: 112px;
    height: 28px;
    padding: 0 0 3px;
    border-width: 1px;
    font-size: 13px;
  }

  .bfig-location__badge::after {
    bottom: -5px;
    width: 10px;
    height: 10px;
  }

  .bfig-location__table {
    grid-template-columns: 78px repeat(3, 1fr);
    grid-template-rows: 56px repeat(5, 54px);
  }

  .bfig-location__cell {
    min-height: 0;
    padding: 6px 4px;
    font-size: 13px;
    line-height: 1.2;
  }

  .bfig-location__cell:nth-child(7),
  .bfig-location__cell:nth-child(20) {
    font-size: 12px;
  }

  .bfig-location__cell--label {
    flex-direction: column;
    gap: 2px;
  }

  .bfig-location__cell small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .bfig-location__label-main {
    display: block;
    white-space: nowrap;
  }

  .bfig-location__cell--blank,
  .bfig-location__cell--head {
    min-height: 0;
  }

  .bfig-location__place {
    display: block;
  }

  .bfig-location__place strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
  }

  .bfig-location__place span {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.2;
  }

  .bfig-location__num {
    font-size: 18px;
  }
}
