@charset "UTF-8";

:root {
  --page-background: #f1f0e3;
  --content-background: #fff;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  background-color: #f1f0e3;
  background-color: var(--page-background);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background-color: #f1f0e3;
  background-color: var(--page-background);
  color: #231815;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium",
    "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
}

.main-content {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  background: var(--content-background);
}

/*
 * 画面比率 16:10〜16:16
 * メイン幅：画面の横幅
 * キャッチコピー領域：メイン幅の1/2
 */
.catchphrase {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2 / 1;
}

.catchphrase-image {
  display: block;
  width: 33.333333%;
  height: auto;
}

.event-banner {
  display: block;
  filter: drop-shadow(2px 2px 3px rgba(35, 24, 21, 0.12));
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.event-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.event-banner:hover {
  filter: drop-shadow(1px 1px 1px rgba(35, 24, 21, 0.1));
  transform: translateY(3px);
}

.event-banner:active {
  transform: translateY(5px);
}

.event-banner:focus-visible {
  outline: 2px solid #231815;
  outline-offset: 4px;
}

.event-banner--hero {
  position: absolute;
  z-index: 10;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(-36px, -3vw, -18px);
  width: clamp(120px, 16%, 190px);
}

.event-banner--fixed {
  position: fixed;
  z-index: 100;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(72px, 10vw, 150px);
  width: clamp(100px, 12vw, 160px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 250ms ease,
    visibility 250ms ease,
    transform 250ms ease,
    filter 180ms ease;
}

.event-banner--fixed.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.event-banner--fixed.is-visible:hover {
  transform: translateY(3px);
}

.event-banner--fixed.is-visible:active {
  transform: translateY(5px);
}

/*
 * 画面比率が16:10より横長
 * メイン幅：画面の高さ × 1.6
 * キャッチコピー領域：メイン幅の1/2
 */
@media (min-aspect-ratio: 8 / 5) {
  .main-content {
    width: 160vh;
    width: max(900px, 160vh);
    width: max(900px, 160dvh);
  }
}

/*
 * 画面比率が16:16より縦長
 * メイン幅：画面の横幅
 * キャッチコピー領域：画面の高さ − 画面の横幅の1/2
 */
@media (max-aspect-ratio: 1 / 1) {
  .catchphrase {
    height: calc(100vh - 50vw);
    height: calc(100dvh - 50vw);
    aspect-ratio: auto;
  }
}

/*
 * 画面比率が16:16より縦長の場合のみ
 * SVG幅：メイン幅の1/3 + 画面高の1/12
 */
@media (aspect-ratio < 1 / 1) {
  .catchphrase-image {
    width: calc(33.333333% + 8.333333vh);
    width: calc(33.333333% + 8.333333dvh);
  }
}

.slideshow {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #f1f0e3;
}

.slideshow-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center;
  will-change: opacity, transform;
}

.slideshow-image--first {
  animation: slideshow-first 10s linear infinite;
}

.slideshow-image--second {
  animation: slideshow-second 10s linear infinite;
}

@keyframes slideshow-first {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  45% {
    opacity: 1;
    transform: scale(1.03);
  }

  49% {
    opacity: 0;
    transform: scale(1.03);
  }

  50%,
  95% {
    opacity: 0;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideshow-second {
  0%,
  45% {
    opacity: 0;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  95% {
    opacity: 1;
    transform: scale(1.03);
  }

  99% {
    opacity: 0;
    transform: scale(1.03);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slideshow-image {
    animation: none;
  }

  .slideshow-image--second {
    display: none;
  }

  .event-banner {
    transition: none;
  }
}

.opening-info {
  width: min(calc(100% - 48px), 42em);
  margin-inline: auto;
  padding-block: clamp(72px, 10vw, 150px);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.01em;
  text-align: justify;
}

.opening-info h1,
.opening-info h2,
.opening-info p,
.opening-info dl,
.opening-info address {
  margin-top: 0;
}

.opening-info h1 {
  margin-bottom: 3em;
  font-size: 1.5em;
  font-weight: 900;
}

.opening-info h2 {
  margin-bottom: 1em;
  font-size: 1.1em;
  font-weight: 900;
}

.opening-summary h2 {
  font-size: 1.3em;
}

.opening-info section {
  margin-top: 4em;
}

.opening-introduction p {
  margin-bottom: 1.25em;
}

.opening-documents ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.opening-documents li {
  padding-left: 1em;
}

.opening-documents li::before {
  content: "-";
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.opening-details dl {
  margin-bottom: 0;
}

.opening-details dl div {
  display: flex;
  align-items: flex-start;
  margin-top: 1em;
}

.opening-details dt {
  flex: 0 0 auto;
  font-weight: 900;
}

.opening-details dd {
  flex: 1 1 auto;
  margin-left: 0;
}

.opening-note {
  font-size: 0.9em;
}

.opening-info a {
  color: inherit;
  text-decoration: underline;
}

.opening-contact address {
  font-style: normal;
}

.event-content {
  width: min(calc(100% - 48px), 42em);
  margin-inline: auto;
  padding-top: clamp(36px, 5vw, 75px);
  padding-bottom: clamp(72px, 10vw, 150px);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.event-hero {
  display: flex;
  width: 100%;
  margin: 0;
}

.event-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.event-content h1,
.event-content h2,
.event-content h3,
.event-content h4,
.event-content p {
  margin-top: 0;
}

.event-content .program-header {
  margin-bottom: 5em;
}

.event-content h1 {
  margin-bottom: 0.75em;
  font-size: 1.45em;
  font-weight: 900;
}

.program-title-image,
.program-theme-image {
  display: block;
  width: 100%;
  height: auto;
  margin-block: 2.5em;
  transform: translateX(-0.8em);
}

.program-title,
.program-subtitle {
  font-size: 1.15em;
  font-weight: 700;
}

.program-english {
  font-size: 0.8em;
  letter-spacing: 0.08em;
}

.program-date {
  margin-top: 6em !important;
  padding-top: 2em;
  border-top: 1px solid currentColor;
  font-weight: 700;
}

.program-introduction-copy {
  font-size: 1.25em;
  line-height: 1.9;
}

.opening-page-banner {
  display: block;
  width: min(45%, 260px);
  margin: 3em 0 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.opening-page-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.opening-page-banner:hover {
  opacity: 0.78;
  transform: translateY(2px);
}

.opening-page-banner:focus-visible {
  outline: 2px solid #231815;
  outline-offset: 4px;
}

.event-content .program-day,
.event-content .program-info,
.event-content .program-application {
  margin-top: 5em;
}

.event-content h2 {
  margin-bottom: 0.25em;
  font-size: 1.2em;
  font-weight: 900;
}

.event-content h3 {
  margin-top: 2.5em;
  margin-bottom: 0.5em;
  font-size: 1em;
  font-weight: 900;
}

.event-content h4 {
  margin-bottom: 0.15em;
  font-size: 1em;
  font-weight: 900;
}

.program-lead {
  margin-bottom: 3em;
}

.program-schedule,
.program-item {
  margin-top: 2em;
}

.program-note {
  font-size: 0.9em;
}

.program-workshop {
  margin-block: 1.5em;
  padding-left: 2em;
}

.program-workshop li,
.event-content ul li {
  margin-bottom: 0.6em;
}

.event-content ul {
  list-style: none;
  padding-left: 1em;
}

.event-content ul li::before {
  content: "・";
  margin-left: -1em;
}

.event-content a {
  color: inherit;
  text-decoration: underline;
}

.program-credit {
  margin-top: 4em !important;
}

.program-closing {
  margin-top: 3em !important;
  font-weight: 700;
}
