.app-wrapper[data-top-page-wrapper="true"] {
  --890a5922: 0.5;
  --5688cee5: white;
  --2aac83de: gray;
  --fe5bc972: rgba(27, 27, 27, 0.8);
  --ceca8ebc: white;
  --58decc5a: 1.1vw;
  --6e8ed13d: black;
  --61a7b920: rgb(232, 230, 230);
  --2cc14b8a: black;
  --49759b04: rgba(197, 197, 197, 0.7);
  --2e6a82a0: orange;
  --61b54a5c: orange;
  --044265e3: white;
  --7f3658ef: orange;
}

.top-content-wrapper {
  color: black;
  font-size: 1em;
  border-color: gray;
}

.top-page-content .top-menu-dropdown {
  position: relative;
}

.top-page-content .top-exhibit-list-menu {
  display: none;
  position: absolute;
  z-index: 5000;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
}

#topExhibitListMenu .el-popper__arrow,
#topExhibitListMenu .el-popper__arrow::before {
  display: none !important;
}

.top-page-content .accordion-content-hidden {
  display: none;
}

.top-page-content .tournament-arrow-icon {
  font-size: 100%;
  --color: white;
}

.top-thumbnail-image-fit {
  object-fit: cover;
}

.gallery-auth-overlay {
  z-index: 4000;
}

.gallery-auth-dialog {
  margin-top: 35vh;
  width: 30%;
}

.gallery-auth-message {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 99999;
}

.auth-text {
  font-weight: bold;
  display: flex;
  justify-content: left;
  margin-left: 3%;
  padding-bottom: 2%;
}

.auth-group {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2%;
}

.auth-code-row {
  width: 18vw;
  margin-right: 4%;
}

#galleryAuthOverlay .el-input {
  width: 18vw;
  min-width: 240px;
}

#galleryAuthOverlay .el-input__inner {
  background-color: #fff;
  border: 1px solid var(--el-border-color, #dcdfe6);
  color: #303133;
}

#galleryAuthOverlay .el-input__inner:focus {
  outline: none;
  border-color: var(--el-color-primary, #409eff);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.top-page-content .gallery-top-banners {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 1em;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.top-page-content .gallery-top-banners .top-banner-link {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 16 / 5;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  border: 1px solid #efb023 !important;
}

.top-page-content .gallery-top-banners .top-banner-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.top-page-content .top-banner-mobile {
  display: none;
  width: 75vw !important;
  max-width: 75vw !important;
  margin: 0 auto 1em auto;
  padding: 0;
  box-sizing: border-box !important;
  overflow: hidden;
}

.top-page-content .top-banner-desktop {
  width: 100%;
}

.top-page-content .top-banner-mobile-list {
  width: 100%;
}

.top-page-content .thumbnail-group {
  margin: 1rem 1rem 0rem 1rem;
}

.top-page-content .thumbnail-grid {
  display: grid;
  width: 100%;
  justify-content: center;
  gap: 5px;
  grid-template-columns: repeat(4, 1fr);
}

.top-page-content .thumbnail-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--5688cee5);
  border: 1px solid var(--2aac83de);
}

.top-page-content .image-wrapper {
  position: relative;
  width: 100%;
  height: 15vw;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.top-page-content .image-wrapper .el-image {
  width: 14vw;
  height: 14vw;
  padding: 1%;
  max-width: 14vw;
  max-height: 14vw;
}

.top-page-content .thumbnail-image,
.top-page-content .hover-overlay {
  cursor: pointer;
}

.top-page-content .hover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65%;
  background-color: var(--fe5bc972);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.top-page-content .hover-text {
  color: var(--ceca8ebc);
  font-size: var(--58decc5a);
  text-align: center;
  padding: 3px;
  word-break: break-all;
  overflow-wrap: break-word;
}

.top-page-content .image-wrapper:hover .hover-overlay,
.top-page-content .image-wrapper:focus .hover-overlay {
  opacity: 1;
}

.top-page-content .title-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 3% 1% 3% 1%;
}

.top-page-content .title-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url('/assets/top-background-704866c6.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  height: 15rem;
  width: 100%;
}

.top-page-content .title-text {
  font-size: 1em;
  text-align: center;
  color: var(--6e8ed13d);
}

.top-page-content .title-container-second {
  display: flex;
}

.top-page-content .first,
.top-page-content .second {
  color: var(--ceca8ebc);
  text-shadow: rgb(0, 0, 0) 1px 0 10px;
  font-weight: bold;
  margin-top: 5rem;
  font-size: 4vw;
}

.top-page-content .collection-image {
  background-image: url('/assets/collection-background-b9604dce.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
}

.top-page-content .collection-section {
  color: var(--ceca8ebc);
  font-size: 2em;
  padding: 1.9% 0% 1.9% 10%;
}

.top-page-content .tag-group {
  padding: 2%;
  margin-bottom: 50px;
  background-color: var(--61a7b920);
}

.top-page-content .tag-name {
  display: flex;
  background-color: var(--5688cee5);
  padding: 1%;
  border-radius: 4px;
  border: 1px solid var(--2aac83de);
  align-items: center;
}

.top-page-content .exhibit-title {
  display: none;
}

.top-page-content .card-container {
  background-color: var(--fe5bc972);
  align-items: center;
  padding: 2% 10%;
}

.top-page-content .tournament-list-button {
  background-color: var(--49759b04);
  padding: 5% 13% 2% 13%;
}

.top-page-content .tournament-list-button .tournament-button {
  background-color: var(--5688cee5);
  color: var(--6e8ed13d);
  border-color: var(--2e6a82a0);
  border-radius: 20px;
  padding: 1.5%;
  margin: 1%;
}

.top-page-content .tournament-button:hover {
  background-color: rgba(255, 165, 0, 0.5);
  transition: all 0.5s ease-out;
}

.top-page-content a.tournament-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  vertical-align: middle;
}

.top-page-content .accordion-content {
  margin-top: 1em;
  background-color: var(--5688cee5);
  color: var(--6e8ed13d);
}

.top-page-content .accordion-button {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: var(--5688cee5);
  color: var(--6e8ed13d);
  padding-right: 2.5em;
  box-sizing: border-box;
  font-weight: bold;
}

.top-page-content .accordion-arrow {
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
}

.top-page-content .el-collapse-item__header {
  border: 1px solid var(--2e6a82a0);
  background-color: var(--5688cee5);
  color: var(--6e8ed13d);
  padding: 1em !important;
  font-size: 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  min-height: 3.3em;
}

.top-page-content .el-collapse-item__arrow {
  display: none !important;
}

.top-page-content .el-collapse-item.is-active > .el-collapse-item__wrap {
  border: 1px solid var(--2e6a82a0);
  border-top: none;
  box-sizing: border-box;
  background-color: var(--5688cee5);
  color: var(--6e8ed13d);
}

.top-page-content .el-collapse-item__wrap,
.top-page-content .el-collapse {
  background-color: var(--5688cee5);
}

.top-page-content .el-collapse {
  --el-collapse-border-color: none !important;
}

.top-page-content .scroll_up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.top-page-content .scroll_up.on {
  opacity: 1;
  transform: translateY(0);
}

.top-page-content .tag-header {
  display: flex;
  gap: 5%;
}

.top-page-content .divider {
  border: none;
  height: 1px;
  background-color: #000000;
  margin: 3% 0%;
}

.top-page-content .arrow-icon {
  margin-left: 1em;
  background-color: var(--2e6a82a0);
  border-radius: 50%;
}

.top-page-content .scroll_down {
  position: absolute;
  left: 50%;
  top: calc(100% - 2.75rem);
  width: 50px;
  height: 82px;
  transform: translateX(-50%);
}

.top-page-content .scroll_down .scroll-down-inner {
  position: relative;
  display: block;
  width: 50px;
  height: 82px;
}

.top-page-content .arrow-round {
  position: absolute;
  left: 50%;
  margin-left: -25px;
  bottom: -12px;
  display: block;
  width: 50px;
  height: 8px;
  border-radius: 10px;
  background-color: black;
  transform: rotate(90deg);
}

.top-page-content .arrow-round::before {
  content: "";
  position: absolute;
  top: 9px;
  right: -2px;
  display: block;
  width: 30px;
  height: 8px;
  border-radius: 10px;
  background-color: black;
  transform: rotate(-45deg);
}

.top-page-content .arrow-round::after {
  content: "";
  position: absolute;
  bottom: 9px;
  right: -2px;
  display: block;
  width: 30px;
  height: 8px;
  border-radius: 10px;
  background-color: black;
  transform: rotate(45deg);
}

.top-page-content .arrow {
  position: absolute;
  left: 11px;
  width: 28px;
  height: 5px;
  opacity: 0;
  animation: top-arrow-move 3s ease-out infinite;
}

.top-page-content .arrow:first-child,
.top-page-content .arrow:nth-child(2) {
  animation: top-arrow-move 3s ease-out 1s infinite;
}

.top-page-content .arrow::before,
.top-page-content .arrow::after {
  content: " ";
  position: absolute;
  top: 0;
  height: 10px;
  width: 30%;
  background: #000;
}

.top-page-content .arrow::before {
  border-radius: 50%;
  left: 10px;
  height: 8px;
  width: 30%;
}

.top-page-content .arrow::after {
  border-radius: 50%;
  right: 10px;
  height: 8px;
  width: 30%;
}

@keyframes top-arrow-move {
  25% {
    opacity: 1;
  }

  33% {
    opacity: 1;
    transform: translateY(30px);
  }

  67% {
    opacity: 1;
    transform: translateY(40px);
  }

  100% {
    opacity: 0;
    transform: translateY(55px);
  }
}

@media (min-width: 621px) {
  .top-page-content .tournament-list-button {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
  }

  .top-page-content .menu-container {
    width: auto;
    height: auto;
    display: none;
  }
}

@media (min-width: 621px) and (max-width: 1100px) {
  .top-page-content .thumbnail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .top-page-content .top-banner-mobile {
    display: block !important;
  }

  .top-page-content .top-banner-mobile-list {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0.75em !important;
  }

  .top-page-content .top-banner-desktop {
    display: none !important;
  }

  /* 収蔵品リストのドロップダウンが後続の .sub-content より下に潜らないよう、
     タイトルブロック全体を上のスタックにする */
  .top-page-content .title-content {
    position: relative;
    z-index: 20;
  }

  /* overflow-x: hidden だと absolute なメニューが縦方向にも切れることがあるため、
     横方向の抑制は .top-page-content の overflow-x に任せる */
  .top-page-content .title-container {
    overflow-x: visible;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .top-page-content .top-banner-link {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .top-page-content .top-banner-mobile-list .top-banner-link {
    display: block !important;
    aspect-ratio: auto !important;
    height: auto !important;
  }

  .top-page-content .top-banner-mobile-list .top-banner-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .top-page-content {
    overflow-x: hidden;
  }

  .top-page-content .hover-overlay {
    display: none;
  }

  .top-page-content .title-image {
    height: 35vw;
    width: 100%;
  }

  .top-page-content .title-text {
    display: flex;
    padding: 0% 10%;
    font-size: 0.8em;
    text-align: center;
  }

  .top-page-content .title-container-second {
    display: initial;
    text-align: center;
  }

  .top-page-content .first,
  .top-page-content .second {
    display: block;
  }

  .top-page-content .first {
    margin-top: 10vw;
  }

  .top-page-content .second {
    margin-top: 0;
  }

  .top-page-content .main-content {
    background-color: transparent;
  }

  .top-page-content .tournament-list-button,
  .top-page-content .scroll_down {
    display: none;
  }

  .top-page-content .menu-container {
    display: flex;
    justify-content: center;
    right: 1em;
    width: 75vw;
    max-width: 75vw;
    height: 100%;
    margin: 0 auto;
  }

  .top-page-content .menu-container .el-dropdown,
  .top-page-content .top-menu-dropdown {
    display: flex;
    width: 100%;
  }

  .top-page-content .collection-image {
    height: 15vw;
    width: 100%;
  }

  .top-page-content .collection-section {
    color: white;
    font-size: 3vw;
    padding: 5% 0% 2% 10%;
  }

  .top-page-content .card-container {
    padding: 10px 0;
  }

  .top-page-content .tag-group {
    margin-bottom: 10px;
    height: 100%;
  }

  .top-page-content .tag-name {
    font-size: 3vw;
  }

  .top-page-content .see-all-link {
    margin-left: auto;
    font-size: 3vw;
  }

  .top-page-content .grid-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .top-page-content .thumbnail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-items: center;
    margin: 0 auto;
  }

  .top-page-content .thumbnail-container {
    height: 30vw;
    width: 42vw;
    position: relative;
  }

  .top-page-content .image-wrapper .el-image {
    padding: 3%;
    height: 27vw;
    width: 35vw;
    max-height: 30vw;
    max-width: 35vw;
  }

  .top-page-content .exhibit-title {
    display: block;
    background-color: var(--2cc14b8a);
    color: var(--ceca8ebc);
    text-align: center;
    overflow-wrap: break-word;
    font-size: 3vw;
    width: 42vw;
    padding: 1% 1% 1% 0%;
  }

  .top-page-content .layout {
    padding-top: 8vw;
  }

  .top-page-content .exhibit-list-button {
    background-color: #efb023;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 15vw;
    padding: 0;
    border-radius: 10px;
    font-size: 1.5em;
  }
}
