.has-site-nav {
  padding-top: 48px;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.site-nav-topbar {
  position: fixed;
  z-index: 900;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 48px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line, #d9d9d9);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.site-nav-topbar .site-nav-logo {
  display: flex;
}

.site-nav {
  position: fixed;
  z-index: 900;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid #d9d9d9;
  background: rgb(255 255 255 / 96%);
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  box-shadow: 0 -4px 18px rgb(17 17 17 / 8%);
  backdrop-filter: blur(12px);
}

.site-nav-inner {
  width: min(100%, 960px);
  margin: 0 auto;
}

.site-nav-logo {
  display: none;
  align-self: center;
  align-items: center;
  color: #1a2e42;
  text-decoration: none;
}

.site-nav-logo-wordmark {
  display: block;
  width: 90px;
  height: auto;
}

.site-nav-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-nav-item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 64px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  background: transparent;
  color: #5f6368;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.site-nav-item:hover,
.site-nav-item:focus-visible,
.site-nav-item.is-active {
  color: #1a2e42;
}

.site-nav-item.is-active::after {
  position: absolute;
  bottom: 4px;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #1a2e42;
  content: "";
}

.site-nav-icon {
  display: flex;
  overflow: hidden;
  height: 28px;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  line-height: 1;
}

.site-nav-icon--search {
  font-size: 2rem;
}

.site-nav-label {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.68rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav-menu-wrap {
  position: relative;
}

.site-nav-menu-button {
  width: 100%;
}

.site-nav-menu {
  position: absolute;
  right: 8px;
  bottom: calc(100% + 8px);
  width: min(240px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(17 17 17 / 18%);
}

.site-nav-menu[hidden] {
  display: none;
}

.site-nav-menu a {
  display: block;
  padding: 12px 14px;
  color: #111;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav-menu a + a {
  border-top: 1px solid #ececec;
}

.site-nav-menu a:hover,
.site-nav-menu a:focus-visible {
  background: #eef1f4;
}

.search-modal-overlay {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 20px 12px;
  background: rgb(8 18 28 / 64%);
}

.search-modal-overlay[hidden] {
  display: none;
}

.search-modal {
  width: min(100%, 580px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  color: #111;
  box-shadow: 0 20px 60px rgb(0 0 0 / 24%);
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search-modal-header h2 {
  margin: 0;
  font-size: 1.18rem;
}

.search-modal-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.search-modal-input {
  width: 100%;
  margin-top: 16px;
  border: 1px solid #8b8f94;
  border-radius: 10px;
  padding: 12px 13px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 1rem;
}

.search-modal-input:focus {
  border-color: #1a2e42;
  outline: 2px solid rgb(38 65 94 / 18%);
  outline-offset: 1px;
}

.search-modal-results,
.search-modal-quicklinks {
  margin-top: 16px;
}

.search-result-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 10px 12px;
  color: #111;
  text-decoration: none;
}

.search-result-item + .search-result-item {
  margin-top: 7px;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  border-color: #26415e;
  background: #eef1f4;
}

.search-result-item strong {
  font-size: 0.9rem;
}

.search-result-item span {
  color: #5f6368;
  font-size: 0.74rem;
}

.search-modal-empty {
  margin: 0;
  border-radius: 10px;
  padding: 16px 12px;
  background: #f7f7f7;
  color: #5f6368;
  font-size: 0.86rem;
  text-align: center;
}

.search-quicklink-group + .search-quicklink-group {
  margin-top: 16px;
}

.search-quicklink-group h3 {
  margin: 0 0 8px;
  font-size: 0.86rem;
}

.search-quicklink-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.search-quicklink-list a {
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  padding: 6px 11px;
  color: #1a2e42;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.search-quicklink-list a:hover,
.search-quicklink-list a:focus-visible {
  border-color: #26415e;
  background: #eef1f4;
}

.favorite-heart-anchor {
  position: relative;
}

.favorite-heart {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: #1a2e42;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 3px 12px rgb(17 17 17 / 16%);
  cursor: pointer;
}

.favorite-heart:hover,
.favorite-heart:focus-visible {
  background: #fff;
  outline: 2px solid rgb(38 65 94 / 28%);
  outline-offset: 2px;
}

.favorite-heart.is-active {
  color: var(--brand-red);
}

.festival-header > .favorite-heart {
  position: absolute !important;
  top: 14px;
  right: 14px;
  z-index: 3 !important;
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  font-size: 1.9rem;
}

.festival-header > .favorite-heart:hover,
.festival-header > .favorite-heart:focus-visible {
  background: transparent;
  outline: 0;
}

.festival-header > .favorite-heart.is-active {
  color: var(--brand-red);
}

.favorites-empty {
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  color: #5f6368;
  text-align: center;
}

.favorites-empty a {
  color: #1a2e42;
  font-weight: 700;
}

@media (min-width: 768px) {
  .has-site-nav {
    padding-top: 52px;
    padding-bottom: 0;
  }

  .site-nav {
    top: 0;
    bottom: auto;
    border-top: 0;
    border-bottom: 1px solid #d9d9d9;
    box-shadow: 0 3px 14px rgb(17 17 17 / 7%);
  }

  .site-nav-topbar {
    display: none;
  }

  .site-nav-inner {
    display: flex;
    min-height: 52px;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 20px;
  }

  .site-nav-logo {
    display: flex;
    font-size: 1rem;
  }

  .site-nav-logo-wordmark {
    width: 100px;
  }

  .site-nav-items {
    display: flex;
    align-items: stretch;
  }

  .site-nav-item {
    position: relative;
    min-width: 86px;
    min-height: 52px;
    flex-direction: row;
    gap: 6px;
    padding: 0 12px;
  }

  .site-nav-item.is-active::after {
    right: 12px;
    bottom: 0;
    left: 12px;
    width: auto;
  }

  .site-nav-icon {
    display: inline-flex;
    height: 22px;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    transform: translateY(-1px);
  }

  .site-nav-icon--search {
    font-size: 1.5rem;
  }

  .site-nav-label {
    font-size: 0.76rem;
    line-height: 1;
  }

  .site-nav-menu {
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
  }
}
