/* event.html 専用。index.html からは読み込まない。 */

:root {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #100e0c;
}

body {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
  background: #100e0c;
  color: #f3ece3;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.back {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto 1rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(196, 163, 106, 0.72);
  border-radius: 0.3rem;
  background: rgba(24, 47, 79, 0.55);
  color: #f3ece3;
  font: inherit;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  cursor: pointer;
}

.back:hover,
.back:focus-visible {
  background: rgba(42, 74, 118, 0.78);
  border-color: #e4cb90;
}

.back:focus-visible {
  outline: 2px solid #c4a36a;
  outline-offset: 3px;
}

.back:active {
  background: rgba(52, 88, 136, 0.88);
  transform: translateY(1px);
}

.event-updated {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: fit-content;
  margin: 1.35rem auto 0.85rem;
  padding: 0.45rem 0.6rem;
  border: 0;
  background: transparent;
  color: #c4b8a8;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.event-updated:hover,
.event-updated:focus-visible {
  color: #e6dccf;
}

.event-updated:focus-visible {
  outline: 2px solid #c4a36a;
  outline-offset: 3px;
}

.event-updated:disabled {
  cursor: progress;
}

.event-stage {
  position: relative;
}

.event-view {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* 第一回だけ。画像右端の黒い余白（55px / 812px）を枠の外に出し、ポスター本体を中央に置く。画像ファイルは加工しない。 */
.event-stage.is-first {
  overflow: hidden;
}

.event-stage.is-first .event-view {
  width: calc(100% * 812 / 757);
  max-width: none;
  height: auto;
}

@media (max-width: 430px) {
  body:has(.event-stage.is-first) {
    padding-bottom: 0.5rem;
  }

  body:has(.event-stage.is-first) .back {
    margin-bottom: 0.75rem;
  }

  .event-stage.is-first {
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

.event-view[hidden] {
  display: none;
}
