.gallery-default-wrapper {
  --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;
}

.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.gallery-main {
  display: block;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.content-wrapper * {
  font-size: inherit;
  border: 10% 0% 0% 0%;
}

.layout {
  position: relative;
  padding-top: 70px;
  -webkit-touch-callout: none;
}

.background-layers {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/site-background-c1f0ead4.png');
  background-size: cover;
  width: 100%;
  background-position: center;
  opacity: 0.5;
}

.background-color-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: var(--890a5922);
  pointer-events: none;
}

.background-color-layer-default {
  background-color: white;
}

.backtop-default-state {
  position: fixed;
  z-index: 1000;
  display: none;
  bottom: 30px;
  right: 30px;
  --23b1664c: gray;
  --795d0fc5: gray;
  --bb3df3f2: white;
}

.backtop {
  width: 10vw;
  height: 10vw;
  max-width: 5em;
  max-height: 5em;
}

.page-top {
  width: 100%;
  height: 100%;
  background-color: var(--23b1664c);
  border: solid 1px var(--795d0fc5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.icon {
  font-size: 1.3vw;
}

.page-top-text {
  color: var(--bb3df3f2);
  font-size: 0.8vw;
}

.footer-default-state {
  --d0d7940c: black;
  --cb4671dc: white;
}

.footer-section {
  background-color: var(--d0d7940c);
  color: var(--cb4671dc);
  font-size: 1em;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--d0d7940c);
  color: var(--cb4671dc);
  width: 100%;
  text-align: center;
}

.tournament-list {
  font-size: 1em;
  color: var(--cb4671dc);
  cursor: pointer;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-list {
  font-size: 1em;
  color: var(--cb4671dc);
}

.outside-site-link {
  color: var(--cb4671dc);
  font-size: 1em;
  display: block;
}

.link-group {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}

.footer .el-link {
  width: max-content;
}

.outside-site {
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer .tournament-list .el-link__inner,
.footer .outside-site-link .el-link__inner {
  text-decoration: none;
}

.footer .tournament-list:hover .el-link__inner,
.footer .outside-site-link:hover .el-link__inner {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #409eff;
}

.footer .footer-tournament-row,
.footer .footer-info-row {
  display: block;
  width: 100%;
}

.footer .footer-info-row {
  margin-top: 0.5em;
}

.header-default-state {
  background-color: white;
  color: black;
  font-size: 1em;
  border-color: gray;
  --0c9eafde: 1em;
  --445e13da: orange;
  --0706cecc: white;
  --0ea5c054: gray;
  --4b31dec2: rgb(24, 107, 128);
  --036626dd: white;
  --59760b35: black;
}

.Header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: auto;
  max-width: 100%;
  border-bottom: solid 1px #a8a8a8;
  display: grid;
  grid-template-columns: auto 1fr;
  padding: 1%;
  align-items: center;
  margin: auto;
}

.header-group {
  display: flex;
  align-items: center;
  gap: 3em;
  justify-content: flex-end;
  margin-right: 5rem;
}

.col-common-settings {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 3rem;
}

.system-icon-img {
  max-height: 2.5rem;
  max-width: 100%;
}

.size-btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--0c9eafde);
}

.exhibit-list-button {
  background-color: var(--445e13da);
  color: var(--0706cecc);
  font-size: var(--0c9eafde);
  max-width: 25vw;
  max-height: 3.5rem;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  padding: 18% 10% 18% 10%;
  white-space: nowrap;
  border: solid 1px var(--0ea5c054);
}

.menu-list {
  overflow-x: auto;
}

.menu-list::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}

.menu-list::-webkit-scrollbar-track {
  background: #eee;
}

.menu-list::-webkit-scrollbar-thumb {
  background: #aaa;
  border: none;
}

.menu-list::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.visual-support {
  background-color: var(--4b31dec2);
  font-size: var(--0c9eafde);
  border: solid 1px var(--0ea5c054);
  color: var(--0706cecc);
  max-width: 25vw;
  max-height: 3.5rem;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  padding: 10% 10% 10% 10%;
  white-space: nowrap;
}

.support-menu {
  background-color: var(--036626dd);
  border: solid 1px;
  border-color: var(--0ea5c054);
  margin: 0;
}

.support-container {
  display: flex;
}

.bold-text {
  font-size: 120%;
  font-weight: bold;
  padding: 5px;
}

.default-text {
  font-size: 100%;
  padding: 5px;
}

.support-section {
  padding: 1em;
}

.custom-popper-arrow.el-popper.is-light {
  transform: translateX(-25px) !important;
}

.color-btn-white,
.color-btn-blue,
.color-btn-yellow,
.color-btn-black {
  border: solid 1px gray;
  height: 30px;
  width: 15px;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-size: var(--0c9eafde);
}

.color-btn-white {
  background-color: white;
  color: black;
}

.color-btn-blue {
  background-color: blue;
  color: white;
}

.color-btn-yellow {
  background-color: yellow;
  color: black;
}

.color-btn-black {
  background-color: black;
  color: white;
}

.size-btn {
  background-color: white;
}

.size-btn.el-dropdown-menu__item {
  width: 2.8em;
  height: 2.8em;
  line-height: 1em;
  padding: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: solid 1px gray;
}

.section-title {
  font-size: var(--0c9eafde);
  color: var(--59760b35);
  margin-bottom: 12px;
  text-align: center;
  font-weight: 500;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

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

.big-A {
  font-size: 100%;
  font-weight: bold;
  color: var(--0706cecc);
}

.small-A {
  font-size: 80%;
  font-weight: bold;
  color: var(--0706cecc);
  margin-left: 2px;
}

.Header .visual-support-dropdown {
  position: relative;
}

.Header .header-dropdown-popper {
  display: none;
  position: absolute;
  z-index: 2000;
  left: 0;
  top: calc(100% + 8px);
}

.Header .visual-support-dropdown #visualSupportMenu {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: 0 !important;
}

.Header .visual-support-dropdown .custom-popper-arrow.el-popper.is-light {
  left: auto !important;
  right: 0 !important;
  transform: none !important;
}

.Header .visual-support-dropdown .el-popper__arrow,
#exhibitListMenu .el-popper__arrow,
#exhibitListMenu .el-popper__arrow::before {
  display: none !important;
}

.control-size {
  position: relative;
}

.menu-list {
  position: fixed;
  left: 0;
  width: 100%;
  background: white;
  border-top: none;
  z-index: 1000;
}

.menu-list-item {
  padding: 3% 2% 3% 5%;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

a.menu-list-item {
  display: block;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

/* 収蔵品リストドロップダウン: li 内の実リンク（SEO / a[href]） */
.gallery-dropdown-menu-li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.Header .header-dropdown-popper a.el-dropdown-menu__item,
.top-page-content .top-exhibit-list-menu a.el-dropdown-menu__item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 24px;
  justify-content: center;
}

.menu-line {
  width: 110%;
  height: 100%;
  background-color: white;
}

.is-close .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 8px);
}

.is-close .menu-line:nth-child(2) {
  opacity: 0;
}

.is-close .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -8px);
}

@media (min-width: 1200px) and (max-width: 1600px) {
  .icon {
    font-size: 1.8vw;
  }

  .page-top-text {
    font-size: 1vw;
  }
}

@media (min-width: 620px) and (max-width: 1200px) {
  .icon {
    font-size: 2vw;
  }

  .page-top-text {
    font-size: 1.3vw;
  }
}

@media (max-width: 1100px) {
  .col-common-settings {
    width: 100%;
    margin-left: 1.5rem;
  }
}

@media (max-width: 900px) {
  .header-group {
    margin-right: 4rem;
  }
}

@media (max-width: 800px) {
  .header-group {
    margin-right: 2.5rem;
  }
}

@media (max-width: 700px) {
  .header-group {
    gap: 4vw;
    margin-right: 2.5rem;
  }
}

@media (min-width: 621px) {
  .menu-container {
    width: auto;
    height: auto;
    display: none;
  }
}

@media (max-width: 620px) {
  /*
   * トップ以外: 固定ヘッダー（モバイルは2段）下に本文を置く。
   * content-wrapper 内は空の .layout + 本体 .layout の2段があり、両方に padding があると二重になるため
   * 先頭の空 .layout は 0、2つ目にまとめて余白を取る。
   */
  .app-wrapper.gallery-default-wrapper:not([data-top-page-wrapper]) .content-wrapper > .layout:first-child {
    padding-top: 0;
  }

  .app-wrapper.gallery-default-wrapper:not([data-top-page-wrapper]) .content-wrapper > .layout + .layout {
    /* 以前の約1/2（ヘッダー下は確保しつつ余白を詰める） */
    padding-top: clamp(2.875rem, 14vw, 5rem);
  }

  /*
   * 先頭が戻るリンク（.footer-list）の list-block 共通：
   * 「トップページに戻る」「ひとつ前の画面に戻る」等の上に余白をそろえる
   */
  .app-wrapper.gallery-default-wrapper:not([data-top-page-wrapper])
    .content-wrapper
    .list-block-container:has(> a.footer-list:first-child) {
    padding-top: 1rem !important;
  }

  /*
   * index-580b73ec.css の .layout .list-content { margin-top: 20px } より優先し、
   * 収蔵品閲覧（view-exhibit）と同じ 10px / padding 0 に揃える
   */
  .app-wrapper.gallery-default-wrapper:not([data-top-page-wrapper]) .layout .list-content {
    margin-top: 10px;
    padding: 0 !important;
  }

  .backtop {
    width: 13vw;
    height: 13vw;
    max-width: 6.5em;
    max-height: 6.5em;
  }

  .icon,
  .page-top-text {
    font-size: 2vw;
  }

  .Header {
    grid-template-columns: 1fr;
  }

  .system-icon-img {
    max-height: 4.5rem;
    height: 5em;
    max-width: 100%;
  }

  .control-size {
    display: flex;
    gap: 5rem;
  }

  .col-common-settings {
    width: 100%;
    margin-left: 1rem;
  }

  .Header_List {
    display: none;
  }

  .menu-container {
    margin-left: 5%;
    width: auto;
    height: auto;
  }

  .menu-button {
    width: 5em;
    height: 5em;
    padding: 1em;
    margin-top: 5%;
    background-color: #efb023;
  }
}

@media (max-width: 480px) {
  .system-icon-img {
    height: 15vw;
    width: auto;
  }

  .menu-button {
    width: 15vw;
    height: 15vw;
    margin-top: 5%;
  }
}

@media (max-width: 420px) {
  .menu-list {
    top: 0;
    max-width: 100%;
    border-top: 1px solid #eee;
  }
}
