body {
  position: relative;
  background-color: #e4c98a;
  color: #111;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 500;
}

body::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/lp_back_cp.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% 50%;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 980px;
  width: calc(100% - 48px);
  margin: 20px auto 28px;
  padding: 18px 40px 28px;
}

.sp-only {
  display: none;
}

.sp-break {
  display: none;
}

main {
  margin: 0 -40px;
  padding: 28px 40px 32px;
  background-color: #fefce3;
}

.hero {
  margin: 0 -40px;
}

.hero__bar {
  display: flex;
  align-items: stretch;
  background: #efb93f;
  min-height: 64px;
}

.hero__date {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0 60px 0 0;
  padding: 8px 6px 8px 18px;
  background: #4a2032;
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
}

.hero__date::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  right: 0px;
  width: 88px;
  background: #4a2032;
  transform: skewX(-44deg);
  transform-origin: bottom right;
}

.hero__date::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -12px;
  width: 6px;
  background: #2a1018;
  transform: skewX(-44deg);
  transform-origin: bottom right;
}

.hero__labels {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px 8px 20px;
  color: #fff;
  font-size: clamp(16px, 9.39px + 1.695vw, 26px);
  font-weight: 700;
  line-height: 1.35;
}

.hero__race,
.hero__catch {
  margin: 0;
}

.hero__race {
  font-size: calc(1em - 2px);
}

.hero__title {
  margin: 22px 0 28px;
  padding: 0 16px;
  text-align: center;
  font-size: clamp(16px, 9.39px + 1.695vw, 26px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.paper {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}

.js .paper {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .paper.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .paper {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.paper + .paper {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #c9c1ad;
}

.paper__brand {
  text-align: center;
}

.paper__body {
  border-left: 1px solid #c9c1ad;
  padding-left: 14px;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.logo--sanspo {
  width: 196px;
  margin: 4px auto 0;
}

.logo--sponichi {
  width: 210px;
  margin: 0 auto;
}

.logo--tospo {
  width: 196px;
  margin: 2px auto 0;
}

.paper__name {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.paper__heading {
  margin: 0 0 0.7em;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.paper__body p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
  text-align: justify;
}

.paper__body p + p {
  margin-top: 1.05em;
}

.paper__subhead {
  font-weight: 700;
}

.paper__subhead + p {
  margin-top: 0.2em;
}

.picks {
  margin: 1.45em 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.picks--odds {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 2em;
  width: 100%;
  max-width: 100%;
}

.picks--odds span:last-child {
  min-width: 0;
}

.picks--odds li {
  display: contents;
}

.footer {
  margin-top: 48px;
  padding: 20px 8px 8px;
  text-align: center;
}

.footer__copyright {
  display: block;
  color: #111;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.page-top {
  position: fixed;
  z-index: 20;
  right: max(16px, calc(50% - 490px));
  bottom: 0;
  display: grid;
  place-items: center;
  width: 57px;
  aspect-ratio: 1;
  cursor: pointer;
}

.page-top img {
  width: 22px;
  height: auto;
}

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

html.js .page-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

html.js .page-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  html.js .page-top {
    transition: none;
  }
}

@media screen and (min-width: 768px) {
  .page-top {
    width: 69px;
  }
}

@media screen and (max-width: 1036px) and (min-width: 971px) {
  .hero__labels {
    flex-wrap: nowrap;
    font-size: calc(-12.2px + 3.54vw);
  }

  .hero__race,
  .hero__catch {
    white-space: nowrap;
  }
}

@media screen and (max-width: 970px) {
  .sp-only {
    display: inline;
  }

  .hero__bar {
    min-height: 96px;
  }

  .hero__labels {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 14px 24px 14px 48px;
    font-size: clamp(16px, 6.59px + 2.414vw, 30px);
  }
}

@media screen and (max-width: 767px) {
  .sp-break {
    display: inline;
  }

  html {
    overflow-x: hidden;
    scrollbar-width: none;
  }

  html::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  body::before {
    background-image: url("../images/lp_back_sp.png");
    background-size: 100% 20%;
  }

  .page {
    width: calc(100% - 50px);
    min-width: 0;
    margin: 12px auto 16px;
    padding: 10px 30px 20px;
  }

  main {
    margin: 0 -30px;
    padding: 20px 30px 24px;
  }

  .hero {
    margin-right: calc(-30px - (50px / 2));
    margin-left: calc(-30px - (50px / 2));
    overflow: hidden;
  }

  .hero__bar {
    min-height: 80px;
  }

  .hero__date {
    margin-right: 14px;
    padding: 8px 4px 8px 12px;
    font-size: 30px;
  }

  .hero__date::after,
  .hero__date::before {
    transform: skewX(-32deg);
  }

  .hero__labels {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 12px 10px 12px 3em;
    line-height: 1.35;
  }

  .hero__title {
    margin: 16px 0 18px;
    padding: 0 8px;
    letter-spacing: 0.02em;
  }

  .paper {
    grid-template-columns: 1fr;
    row-gap: 12px;
    justify-items: center;
  }

  .paper + .paper {
    margin-top: 22px;
    padding-top: 22px;
  }

  .paper__name {
    display: none;
  }

  .logo--sanspo,
  .logo--tospo {
    width: 168px;
  }

  .logo--sponichi {
    width: 190px;
  }

  .paper__body {
    width: 100%;
    min-width: 0;
    border-left: 0;
    padding-left: 0;
  }

  .paper__heading {
    margin-bottom: 0.55em;
    font-size: 15px;
    text-align: center;
  }

  .paper__body p,
  .picks {
    font-size: 14px;
  }

  .picks--odds {
    column-gap: 1.2em;
  }

  .footer {
    margin-top: 36px;
    padding-top: 16px;
  }

  .footer__copyright {
    font-size: 10px;
    letter-spacing: 0;
  }
}

@media screen and (max-width: 400px) {
  .hero__labels {
    min-width: 0;
    padding-right: 8px;
    padding-left: 32px;
    font-size: 15px;
  }

  .hero__race,
  .hero__catch {
    white-space: nowrap;
  }

  .hero__title {
    font-size: 15px;
  }

  .paper__heading {
    font-size: clamp(11px, 3.4vw, 13px);
    letter-spacing: 0;
    white-space: nowrap;
  }
}
