:root {
  --color-cyan: #009ee5;
  --color-gray: #959595;
  --color-line: #e5e8e7;
  --color-text: #444444;
  --color-bg: #fffffb;
  --color-bg-white: #fffffa;
  --color-bg-blue: #f4fcff;
  --font-shuei: "dnp-shuei-gothic-kin-std", sans-serif;
  --header-height: 100px;
  --logo-width: 40px;
  --side-padding: 40px;
  --subnav-height: 60px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--color-bg);
  color: #000;
  font-family: var(--font-shuei);
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

.event-page,
.program-page,
.about-page,
.exhibition-page {
  display: grid;
  width: 100%;
  background: var(--color-bg);
}

.event-page--list,
.event-page--detail,
.program-page,
.about-page,
.exhibition-page--list,
.exhibition-page--detail {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.event-page--list,
.program-page--overview,
.about-page--overview,
.exhibition-page--list {
  height: 100vh;
  min-height: 680px;
}

.event-left,
.program-left,
.about-left,
.exhibition-left {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.event-left,
.exhibition-left {
  background: var(--color-bg);
}

.program-left,
.about-left {
  background: var(--color-bg-white);
}

.event-header,
.program-header,
.about-header,
.exhibition-header {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: max-content minmax(0, 1fr) var(--logo-width);
  align-items: center;
  width: 100%;
  min-height: var(--header-height);
  padding: 0 var(--side-padding);
  border-bottom: 1px solid var(--color-line);
}

.event-header__logo-link,
.program-header__logo-link,
.about-header__logo-link,
.exhibition-header__logo-link {
  display: block;
  width: var(--logo-width);
}

.event-header__logo,
.program-header__logo,
.about-header__logo,
.exhibition-header__logo {
  display: block;
  width: var(--logo-width);
  height: auto;
}

.event-header__title,
.program-header__title,
.about-header__title,
.exhibition-header__title {
  justify-self: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: 1.8px;
  white-space: nowrap;
}

.site-menu-button {
  display: none;
}

.event-filter,
.program-back,
.about-back,
.exhibition-filter {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 0 var(--side-padding);
  border-bottom: 1px solid var(--color-line);
}

.event-filter,
.exhibition-filter {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.event-filter__back,
.program-back__link,
.about-back__link,
.exhibition-filter__back {
  position: relative;
  display: block;
  width: 21px;
  height: 20px;
  transform: rotate(180deg);
}

.event-filter__back,
.program-back__link,
.about-back__link,
.exhibition-filter__back {
  color: var(--color-cyan);
}

.event-filter__back svg,
.program-back__link svg,
.about-back__link svg,
.exhibition-filter__back svg {
  display: block;
  width: 100%;
  height: 100%;
}

.program-back__label,
.program-back__title,
.about-back__label,
.about-back__title {
  display: none;
}

.event-filter__back,
.exhibition-filter__back {
  position: absolute;
  top: 50%;
  left: var(--side-padding);
  transform: translateY(-50%) rotate(180deg);
}

.event-list,
.program-left__scroll,
.about-left__scroll,
.exhibition-list {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.event-entry__arrow,
.program-menu__arrow,
.exhibition-entry__arrow {
  position: relative;
  display: block;
  width: 21px;
  height: 20px;
  background: url("../images/common/arrow.svg") center / contain no-repeat;
}

.event-visual,
.program-visual,
.about-visual,
.exhibition-visual {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
}

.event-visual__image,
.program-visual__image,
.about-visual__image,
.exhibition-visual__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

[data-visual-slideshow] .event-visual__image,
[data-visual-slideshow] .program-visual__image,
[data-visual-slideshow] .about-visual__image,
[data-visual-slideshow] .exhibition-visual__image {
  position: absolute;
  inset: 0;
  max-width: none;
  opacity: 0;
}

[data-visual-slideshow] .event-visual__image:first-child,
[data-visual-slideshow] .program-visual__image:first-child,
[data-visual-slideshow] .about-visual__image:first-child,
[data-visual-slideshow] .exhibition-visual__image:first-child,
[data-visual-slideshow] .event-visual__image.is-active,
[data-visual-slideshow] .program-visual__image.is-active,
[data-visual-slideshow] .about-visual__image.is-active,
[data-visual-slideshow] .exhibition-visual__image.is-active {
  opacity: 1;
}

[data-visual-slideshow] .event-visual__image.is-active,
[data-visual-slideshow] .program-visual__image.is-active,
[data-visual-slideshow] .about-visual__image.is-active,
[data-visual-slideshow] .exhibition-visual__image.is-active {
  z-index: 1;
}

.event-detail,
.program-detail,
.exhibition-detail {
  width: 100%;
  min-height: 100%;
  background: var(--color-bg-blue);
}

.detail {
  padding: 36px var(--side-padding) 64px;
}

.detail > * {
  margin: 0;
}

.detail > * + * {
  margin-top: 36px;
}

.detail__title + * {
  margin-top: 36px;
}

.detail__body + .detail__border {
  margin-top: 36px;
}

.detail__border + .detail__body {
  margin-top: 36px;
}

.detail__image--full + .detail__body {
  margin-top: 74px;
}

.detail__button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
}

.detail__title {
  display: block;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: 1.5px;
  text-align: left;
}

.detail__body {
  width: 100%;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: 1.5px;
  text-align: left;
}

.detail__body p {
  margin: 0;
}

.detail__body p + p {
  margin-top: 30px;
}

.detail__body span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.detail__image,
.detail__image--full {
  overflow: hidden;
}

.detail__image {
  width: 57%;
  margin-right: auto;
  margin-left: auto;
}

.detail__image--full {
  width: calc(100% + 80px);
  max-width: none;
  margin-right: -40px;
  margin-left: -40px;
}
@media (max-width: 850px) {
  .detail__image--full {
    width: calc(100% + 40px);
    margin-right: -20px;
    margin-left: -20px;
  }
}

.detail__image img,
.detail__image--full img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center center;
}

.detail__border {
  width: 100%;
  height: 1px;
  background: #000;
}

.detail__button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 15px 20px;
  border: 3px solid #000;
  border-radius: 8px;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.site-menu {
  display: none;
}

@media (hover: hover) {
  .event-entry:hover::before,
  .program-menu__item:hover::before,
  .exhibition-entry:hover::before {
    opacity: 0.8;
  }

  .event-filter__items a:hover,
  .exhibition-filter__items a:hover,
  .program-back__label:hover,
  .about-back__label:hover {
    color: var(--color-cyan);
  }

  .event-filter__back:hover,
  .exhibition-filter__back:hover,
  .program-back__link:hover,
  .about-back__link:hover {
    color: var(--color-gray);
  }

  .detail__button a:hover {
    background: #000;
    color: #fff;
  }
}

@media (max-width: 850px) {
  :root {
    --header-height: 80px;
    --side-padding: 20px;
  }

  .event-page--list,
  .event-page--detail,
  .program-page,
  .about-page,
  .exhibition-page--list,
  .exhibition-page--detail {
    grid-template-columns: 1fr;
  }

  .event-page,
  .program-page,
  .about-page,
  .exhibition-page {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: var(--header-height);
  }

  .event-page--detail,
  .program-page--detail,
  .exhibition-page--detail {
    padding-top: calc(var(--header-height) + var(--subnav-height));
  }

  .event-page--list,
  .program-page--overview,
  .program-page--detail,
  .about-page--overview,
  .exhibition-page--list,
  .exhibition-page--detail {
    height: auto;
    min-height: 0;
  }

  .event-left,
  .program-left,
  .about-left,
  .exhibition-left {
    position: static;
    display: contents;
    height: auto;
    overflow: visible;
  }

  .event-header,
  .program-header,
  .about-header,
  .exhibition-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    flex: 0 0 auto;
    order: 1;
    grid-template-columns: var(--logo-width) minmax(0, 1fr) var(--logo-width);
    padding: 0 20px;
    background: var(--color-bg-white);
  }

  .event-page--detail .event-detail__subnav,
  .program-page--detail .program-back,
  .exhibition-page--detail .exhibition-detail__subnav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 19;
    min-height: var(--subnav-height);
    background: var(--color-bg-white);
  }

  .event-header__title,
  .program-header__title,
  .about-header__title,
  .exhibition-header__title {
    font-size: 18px;
    letter-spacing: 1.8px;
  }

  .site-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 21px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .site-menu-button img {
    display: block;
    width: 20px;
    height: auto;
  }

  body.is-site-menu-open {
    overflow: hidden;
  }

  .site-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    background: var(--color-bg-white);
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu__visual {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .site-menu__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .site-menu__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 60px;
    width: 100%;
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid var(--color-line);
  }

  .site-menu__brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 186px;
    height: 22px;
  }

  .site-menu__logo-mark {
    display: block;
    flex: 0 0 auto;
    width: 40px;
    height: auto;
  }

  .site-menu__logo-type {
    display: block;
    flex: 0 0 auto;
    width: 132px;
    height: auto;
  }

  .site-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: rotate(180deg);
  }

  .site-menu__close img {
    display: block;
    width: 20px;
    height: auto;
  }

  .site-menu__nav {
    flex: 0 0 auto;
    width: 100%;
  }

  .site-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-cyan);
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 1.5px;
  }

  .site-menu__link:last-child {
    border-bottom: 0;
  }

  .site-menu__arrow {
    display: block;
    flex: 0 0 auto;
    width: 17px;
    height: 16px;
    background: url("../images/common/arrow.svg") center / contain no-repeat;
  }

  .event-visual,
  .program-visual,
  .about-visual,
  .exhibition-visual {
    position: static;
    height: auto;
    min-height: 0;
  }

  .event-visual__image,
  .program-visual__image,
  .about-visual__image,
  .exhibition-visual__image {
    height: auto;
    min-height: 80vw;
  }

  .event-visual[data-visual-slideshow],
  .program-visual[data-visual-slideshow],
  .about-visual[data-visual-slideshow],
  .exhibition-visual[data-visual-slideshow] {
    position: relative;
    min-height: 80vw;
    overflow: hidden;
  }

  [data-visual-slideshow] .event-visual__image,
  [data-visual-slideshow] .program-visual__image,
  [data-visual-slideshow] .about-visual__image,
  [data-visual-slideshow] .exhibition-visual__image {
    height: 100%;
    min-height: 0;
  }
}
