@charset "utf-8";

:root {
  --joqr75-paper: #f4f0e7;
  --joqr75-ink: #282820;
}

body.home {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--joqr75-paper);
  color: var(--joqr75-ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
}

.page-shell {
  overflow: visible;
  padding-top: 100vh;
  padding-top: 100svh;
  background: transparent;
}

.hero-section {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--joqr75-ink);
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 50%;
  transform: none;
}

.hero-poster {
  z-index: 0;
}

.hero-video {
  z-index: 1;
  visibility: visible;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgb(0 0 0 / 12%);
  pointer-events: none;
}

.hero-logos {
  position: absolute;
  top: 28px;
  left: 36px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 29.6px;
}

.hero-logo-joqr {
  width: 127.7px;
  height: 46.3px;
}

.hero-logo-75 {
  width: 94.7px;
  height: 84.2px;
}

.hero-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 644px;
  height: 218px;
  margin: 0;
  transform: translate(-50%, -50%);
  opacity: var(--hero-copy-opacity, 1);
  transition: opacity 120ms linear;
  will-change: opacity;
}

.hero-copy img {
  position: absolute;
  display: block;
  max-width: none;
}

.hero-copy-top {
  top: 0;
  left: 0;
  width: 644px;
}

.hero-copy-bottom {
  top: 125.1px;
  left: 0;
  width: 453.4px;
}

.hero-scroll-arrow {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  width: 44px;
  height: 56px;
  transform: translateX(-50%);
  animation: joqr75-arrow-float 1.6s ease-in-out infinite;
}

.page-shell > .concept-section,
.page-shell > .container,
.page-shell > .history {
  position: relative;
  z-index: 2;
}

.scroll-layer {
  position: relative;
  isolation: isolate;
}

.concept-section {
  display: flex;
  justify-content: center;
  padding: 96px 0 104px;
  overflow: hidden;
}

.concept-paper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 620px;
  max-width: calc(100% - 40px);
  padding: 78px 56px;
  background-color: var(--joqr75-paper);
  background-image: url("../75th/images/bg-noi.png");
  background-repeat: repeat;
  box-shadow: 0 18px 42px rgb(40 40 32 / 24%);
}

.concept-copy {
  position: relative;
  width: 406px;
  max-width: 100%;
  aspect-ratio: 406 / 136;
  margin: 0;
}

.concept-copy img {
  position: absolute;
  display: block;
  height: auto;
  left: 0;
}

.concept-copy-top {
  top: 0;
  width: 100%;
}

.concept-copy-bottom {
  top: 57.9412%;
  width: 70.3941%;
}

.concept-body {
  width: 508px;
  max-width: 100%;
  font-size: 15px;
  font-weight: 400;
  line-height: 28px;
}

.concept-body p {
  margin: 0 0 28px;
}

.concept-body p:last-child {
  margin-bottom: 0;
}

@keyframes joqr75-arrow-float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 8px);
  }
}

@media (max-width: 767px) {
  .concept-section {
    padding: 70px 0 80px;
  }

  .concept-paper {
    gap: 36px;
    width: 350px;
    max-width: calc(100% - 40px);
    padding: 58px 22px;
  }

  .concept-copy {
    width: 288px;
    aspect-ratio: 288 / 97;
  }

  .concept-copy-bottom {
    top: 57.6289%;
    width: 70.3819%;
  }

  .concept-body {
    width: 306px;
    font-size: 14px;
    line-height: 26px;
  }

  .concept-body p {
    margin-bottom: 26px;
  }

  .hero-logos {
    top: 28px;
    left: 22px;
    gap: 21.7px;
  }

  .hero-logo-joqr {
    width: 93.7px;
    height: 34px;
  }

  .hero-logo-75 {
    width: 69.5px;
    height: 61.8px;
  }

  .hero-copy {
    width: 326px;
    height: 110.4px;
  }

  .hero-copy-top {
    width: 326px;
  }

  .hero-copy-bottom {
    top: 63.4px;
    width: 229.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .hero-copy {
    transition: none;
  }

  .hero-scroll-arrow {
    animation: none;
  }
}

/* 75th Contents: scoped to the front-page section. */
.page-shell > .contents-section {
  position: relative;
  z-index: 2;
  padding: 100px 80px;
  overflow: hidden;
  background: var(--joqr75-paper) url("../75th/images/bg-noi.png") repeat;
}

.contents-section .contents-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.contents-section .contents-ink-rule {
  height: 2px;
  background: var(--joqr75-ink);
}

.contents-section .contents-accent-rule {
  height: 6px;
  background: #ee774e;
}

.contents-section .contents-title {
  margin: 0;
  color: var(--joqr75-ink);
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: 78px;
  line-height: 86px;
  font-weight: 700;
  text-align: center;
}

.contents-section .content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}

.contents-section .content-card {
  display: block;
  min-width: 0;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--joqr75-ink);
  overflow: hidden;
  text-decoration: none;
  transform-origin: center;
  transform: rotate(var(--card-angle));
  transition: box-shadow 180ms ease;
}

.contents-section .content-card:nth-child(4n + 1) { --card-angle: -1.6deg; }
.contents-section .content-card:nth-child(4n + 2) { --card-angle: 1.1deg; }
.contents-section .content-card:nth-child(4n + 3) { --card-angle: -0.8deg; }
.contents-section .content-card:nth-child(4n) { --card-angle: 1.5deg; }

.contents-section .content-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.contents-section .card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 22px;
  overflow-wrap: anywhere;
}

.contents-section .card-body h3,
.contents-section .card-body p {
  margin: 0;
  color: var(--joqr75-ink);
  letter-spacing: 0.1em;
}

.contents-section .card-body h3 {
  font-size: 17px;
  line-height: 27px;
  font-weight: 700;
}

.contents-section .card-body p {
  font-size: 13px;
  line-height: 22px;
  font-weight: 400;
}

.contents-section .card-body time {
  color: #69665e;
  font-size: 12px;
  line-height: 20.3px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.contents-section .contents-more {
  display: flex;
  justify-content: center;
}

.contents-section [hidden] { display: none; }

.contents-section .contents-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 22px;
  border: 0;
  border-radius: 4px;
  background: #ee774e;
  color: #fbf8f1;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  cursor: pointer;
}

.contents-section a.content-card:hover {
  opacity: 1;
}

.contents-section a.content-card:focus-visible,
.contents-section .contents-more-button:focus-visible {
  outline: 3px solid var(--joqr75-ink);
  outline-offset: 4px;
}

@media (hover: hover) {
  .contents-section a.content-card:hover {
    box-shadow: 0 8px 24px rgb(40 40 32 / 18%);
  }

  .contents-section .contents-more-button:hover { background: #d9643d; }
}

@media (max-width: 767px) {
  .page-shell > .contents-section { padding: 84px 24px; }
  .contents-section .contents-inner { max-width: 342px; }
  .contents-section .contents-title { font-size: 44px; line-height: 55px; }
  .contents-section .content-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .contents-section .content-card { transition: none; }
}

/* overflow:hidden on the legacy wrapper otherwise prevents viewport sticking. */
body.home #wrapper {
  overflow: clip;
}

.page-shell > .time-transition {
  position: relative;
  z-index: 2;
  background: #fff;
  overflow: visible;
}

.time-transition .time-pin {
  position: relative;
  height: calc(100vw * 941 / 1672);
  overflow: hidden;
  background: #fff;
}

.time-transition .time-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.time-transition .time-mask {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: var(--mask-progress, 100%);
  overflow: hidden;
}

.time-transition .time-mask .time-image {
  inset: 0 auto 0 0;
  width: 100vw;
  max-width: none;
}

.time-transition .time-dot-pattern {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: url("../75th/images/p-dot.png") repeat;
}

/* Match the reference's 420svh scene and following section's -96svh overlap.
   Put the overlap on this scene so History itself remains unchanged. */
.page-shell > .time-transition.is-time-animated {
  height: 420svh;
  margin-bottom: -96svh;
}

.time-transition.is-time-animated .time-pin {
  position: sticky;
  top: 0;
}

@media (max-width: 767px) {
  .time-transition .time-pin { height: 70svh; }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell > .time-transition.is-time-animated {
    height: auto;
    margin-bottom: 0;
  }

  .time-transition.is-time-animated .time-pin { position: relative; }
  .time-transition .time-mask { width: 100%; }
}

/* History's CMS-backed image strip; year-by-year blocks keep their styles. */
.page-shell > .history-slider-section {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #ed774f url("../75th/images/p-logo-w.png") repeat;
  background-size: 83.2px 128px;
}

.history-slider-top-rule {
  height: 10px;
  background: #ee774e;
}

.history-slider-heading {
  position: relative;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 52px 0 40px;
}

.history-slider-heading h2 {
  margin: 0;
  color: var(--joqr75-ink);
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: 104px;
  line-height: 112px;
  font-weight: 700;
  text-align: center;
}

.history-slider-section .history-strip {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.history-slider-section .history-strip::-webkit-scrollbar { display: none; }

.history-slider-section .history-strip-track {
  display: flex;
  width: max-content;
  animation: joqr75-history-strip-scroll var(--history-strip-duration, 90s) linear infinite;
  will-change: transform;
}

.history-slider-section .history-strip-item {
  position: relative;
  width: 320px;
  flex: 0 0 320px;
  aspect-ratio: 8 / 5;
  overflow: hidden;
}

.history-slider-section .history-strip-item img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-slider-section .history-strip:focus-visible {
  outline: 3px solid var(--joqr75-ink);
  outline-offset: -3px;
}

.history-slider-section .history-strip:focus .history-strip-track {
  animation-play-state: paused;
}

@keyframes joqr75-history-strip-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 767px) {
  .history-slider-heading { max-width: 342px; }
  .history-slider-heading h2 { font-size: 64px; line-height: 72px; }
  .page-shell > .history-slider-section { background-image: none; }
  .history-slider-section .history-strip-item {
    width: 234px;
    flex-basis: 234px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-slider-section .history-strip-track {
    animation: none;
    will-change: auto;
  }
  .history-slider-section .history-strip-item[aria-hidden="true"] { display: none; }
}

/* CMS era cards, matching the 75th static History layout. */
.page-shell > .history-years {
  position: relative;
  z-index: 2;
  color: var(--joqr75-ink);
  background: #ed774f url("../75th/images/p-logo-w.png") repeat;
  background-size: 83.2px 128px;
  overflow: hidden;
}

.history-years-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 100px 0 80px;
}

.history-year-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  transform-origin: center;
}

.history-year-block::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, var(--joqr75-ink) 0 0.55px, transparent 0.75px),
    radial-gradient(circle at 72% 64%, var(--joqr75-ink) 0 0.45px, transparent 0.7px);
  background-size: 10px 12px, 14px 16px;
}

.history-year-block:nth-child(4n + 1) { transform: rotate(-0.7deg); }
.history-year-block:nth-child(4n + 2) { transform: rotate(0.55deg); }
.history-year-block:nth-child(4n + 3) { transform: rotate(-0.45deg); }
.history-year-block:nth-child(4n) { transform: rotate(0.7deg); }

.history-year-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.history-year-title {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 32px;
  align-items: center;
  min-width: 0;
}

.history-year-title h3 {
  margin: 0;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: 58px;
  line-height: 68px;
  font-weight: 700;
}

.history-year-title p {
  margin: 0;
  color: #e3744e;
  font-size: 24px;
  line-height: 40px;
  font-weight: 700;
}

.history-year-program {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 22px;
  border: 0;
  border-radius: 4px;
  background: #ee774e;
  color: #fbf8f1;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.history-year-program::before,
.history-year-program::after { content: none; }
.history-year-program:hover { opacity: 1; }

.history-year-rule { width: 100%; height: 6px; background: #ee774e; }
.history-year-programs { margin: 0; font-size: 15px; line-height: 27px; font-weight: 700; }

.history-year-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
}

.history-year-photo {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.history-year-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

/* Keep the opening portrait complete within the unchanged photo grid cell. */
.history-year-photo--portrait {
  position: relative;
  aspect-ratio: 8 / 5;
}

.history-year-photo--portrait img {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  transform: translateX(-50%);
}

.history-year-timeline { margin: 0; }
.history-year-timeline > div {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #bbb4a6;
  font-size: 15px;
  line-height: 25px;
}
.history-year-timeline > div:last-child { border-bottom: 0; }
.history-year-timeline dt { font-family: "IBM Plex Sans", sans-serif; font-weight: 700; }
.history-year-timeline dd { margin: 0; overflow-wrap: anywhere; }
.history-year-timeline > .history-year-event-text { grid-template-columns: 1fr; }
.history-year-event-text dt { display: none; }

.history-year-photo:focus-visible,
.history-year-program:focus-visible { outline: 3px solid var(--joqr75-ink); outline-offset: 3px; }
.history-years .history-photo-caption { margin: 12px 0 0; color: #fff; text-align: center; font-size: 14px; line-height: 1.6; }

@media (max-width: 767px) {
  .page-shell > .history-years { background-image: none; }
  .history-years-inner { max-width: 342px; padding: 40px 0 56px; }
  .history-year-block { padding: 28px 16px; }
  .history-year-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .history-year-title { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
  .history-year-title h3 { font-size: 36px; line-height: 44px; }
  .history-year-title p { font-size: 18px; line-height: 30px; }
  .history-year-program { min-height: 40px; padding: 9px 18px; }
  .history-year-programs { font-size: 13px; line-height: 24px; }
  .history-year-timeline > div { grid-template-columns: 40px 1fr; gap: 7px; font-size: 13px; line-height: 21px; }
  .history-year-timeline > .history-year-event-text { grid-template-columns: 1fr; }
}

/* 75th footer: dimensions and texture match the completed static site. */
.site-footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 50px 80px 44px;
  background: #fff;
  text-align: center;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, var(--joqr75-ink) 0 0.55px, transparent 0.75px),
    radial-gradient(circle at 72% 64%, var(--joqr75-ink) 0 0.45px, transparent 0.7px);
  background-size: 10px 12px, 14px 16px;
}

.site-footer .footer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.site-footer .footer-logo {
  position: relative;
  display: block;
  width: 176.8px;
  height: 63.7px;
}

.site-footer .sns {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  justify-content: space-between;
  gap: 10px 0;
  width: min(100%, 240px);
  margin: 0;
}

.site-footer .sns dt {
  grid-column: 1 / -1;
  margin: 0;
  color: #69665e;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.site-footer .sns dd { margin: 0; }

.site-footer .sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.site-footer .sns img { display: block; width: 36px; height: 36px; }
.site-footer .sns a:focus-visible { outline: 2px solid var(--joqr75-ink); outline-offset: 2px; }

.site-footer .footer-logo img {
  position: absolute;
  display: block;
  height: auto;
}

.site-footer .footer-logo-main {
  top: 0;
  left: 0;
  width: 176.8px;
}

.site-footer .footer-logo-sub {
  left: 24.2px;
  bottom: 0;
  width: 128.6px;
}

.site-footer .copyright {
  margin: 0;
  color: #69665e;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: normal;
}

@media (max-width: 767px) {
  .site-footer { padding: 50px 24px 44px; }
  .site-footer .footer-inner { max-width: 342px; }
  .site-footer .copyright { font-size: 10px; line-height: 17px; }
}
