:root {
  color-scheme: light;
  --page-background: #981b0f;
  --content-width: 750px;
  --wine: #711238;
  --paper: #fff8df;
  --ink: #731331;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-background);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-background);
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--page-background);
}

.content {
  position: relative;
  width: min(100%, var(--content-width));
  margin-inline: auto;
  overflow: hidden;
  background: var(--page-background) url("./assets/contents-bg.jpg") center top / 750px auto repeat-y;
}

.design-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.information {
  padding: 48px 47px 0;
  color: #fff;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.65;
}

.introduction {
  padding: 0 20px 62px;
  text-align: center;
}

.introduction p {
  margin: 10px 0;
}

.section-title {
  margin: 0;
  padding: 9px 20px;
  color: #fff;
  background: var(--wine);
  border: 3px double #f0c8a4;
  font-size: 25px;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: center;
}

.panel {
  margin: 0 0 62px;
  padding: 55px 43px 52px;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 218, 104, 0.28), transparent 52%),
    var(--paper);
}

.details {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 29px 32px;
  margin: 0;
}

.details dt {
  align-self: start;
  padding: 7px 8px;
  color: #fff;
  background: var(--wine);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.details dd {
  min-width: 0;
  margin: 0;
}

.details strong {
  font-size: 1.12em;
  font-weight: 700;
}

.details small {
  display: block;
  font-size: 0.68em;
  line-height: 1.5;
}

.details .store-count {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.details .store-count small {
  display: inline;
  margin-inline: 0.1em;
}

.keep-together {
  white-space: nowrap;
}

.detail-block {
  display: block;
  margin-top: 22px;
}

.panel-wide {
  padding-inline: 43px;
}

.subheading {
  margin: 52px 0 24px;
  padding: 7px 18px;
  color: #fff;
  background: var(--wine);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

.panel p {
  margin: 0 0 28px;
}

.panel h4 {
  margin: 30px 0 5px;
  font-size: 19px;
}

.panel ul {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.panel li {
  padding-left: 1em;
  text-indent: -1em;
}

.panel li::before {
  content: "・";
}

.deadline {
  margin: 42px 0 48px !important;
  color: #d20c22;
  font-size: 34px;
  font-weight: 800;
  text-align: center;
}

.application-closed-message {
  margin: -22px 0 42px !important;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.75;
  text-align: center;
}

.application-closed-content {
  display: none;
}

.is-application-closed .application-open-content {
  display: none;
}

.is-application-closed .application-closed-content {
  display: block;
}

.application-button {
  position: relative;
  display: block;
  margin-top: 42px;
  padding: 11px 24px;
  color: #fff;
  background: #b73332;
  border: 4px double #f5c08c;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.application-button::after {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 0.55em;
  height: 0.55em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.application-button:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 3px;
}

.fixed-application-button {
  position: fixed;
  z-index: 10;
  right: 50%;
  bottom: 0;
  width: min(var(--content-width), 100vw);
  margin: 0;
  padding-block: 16px;
  background: #C32E1F;
  transform: translateX(50%);
  box-shadow: 0 5px 18px rgba(42, 0, 5, 0.34);
}

.contact {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 2px 0 54px;
}

.contact h2 {
  margin: 0;
  font-size: 21px;
}

.contact p {
  margin: 3px 0 0;
}

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

.footer-line {
  display: block;
  width: calc(100% + 94px);
  height: auto;
  margin-left: -47px;
}

.desktop-only {
  display: inline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 751px) {
  .content {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
  }
}

@media (max-width: 750px) {
  .content {
    width: 100%;
    background-size: 100% auto;
  }

  .information {
    padding: 6.4vw 6.27vw 0;
    font-size: clamp(12px, 2.67vw, 20px);
  }

  .introduction {
    padding: 0 2.67vw 7.73vw;
  }

  .section-title {
    padding: 1.2vw 2.67vw;
    font-size: clamp(16px, 3.33vw, 25px);
  }

  .panel,
  .panel-wide {
    margin-bottom: 8.27vw;
    padding: 7.33vw 5.73vw 6.93vw;
    font-size: clamp(11px, 2.4vw, 18px);
  }

  .details {
    grid-template-columns: 16.27vw 1fr;
    gap: 4vw 4.27vw;
  }

  .details dt {
    padding: 0.93vw 1.07vw;
    font-size: clamp(11px, 2.27vw, 17px);
  }

  .subheading {
    margin: 6.93vw 0 3.2vw;
    padding: 0.93vw 2.4vw;
    font-size: clamp(12px, 2.4vw, 18px);
  }

  .panel h4 {
    margin-top: 4vw;
    font-size: clamp(13px, 2.53vw, 19px);
  }

  .panel p {
    margin-bottom: 3.73vw;
  }

  .deadline {
    margin: 5.6vw 0 6.4vw !important;
    font-size: clamp(20px, 4.53vw, 34px);
  }

  .application-closed-message {
    margin: -2.93vw 0 5.6vw !important;
    font-size: clamp(16px, 3.47vw, 26px);
  }

  .application-button {
    margin-top: 5.6vw;
    padding: 1.47vw 3.2vw;
    font-size: clamp(16px, 3.2vw, 24px);
  }

  .fixed-application-button {
    right: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding-block: 2vw max(2vw, env(safe-area-inset-bottom));
    transform: none;
  }

  .application-button::after {
    right: 3.2vw;
  }

  .contact {
    font-size: clamp(12px, 2.4vw, 18px);
    padding-bottom: 7.2vw;
  }

  .contact h2 {
    font-size: clamp(14px, 2.8vw, 21px);
  }

  .footer-line {
    width: calc(100% + 12.54vw);
    margin-left: -6.27vw;
  }

  .desktop-only {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
