:root {
  --navy: #081d33;
  --navy-light: #12314f;
  --ink: #172437;
  --paper: #f3e8d3;
  --paper-light: #fbf4e7;
  --orange: #d65a18;
  --gold: #e8ad51;
  --cream: #fff8e9;
  --muted: #594d3d;
  --paper-line: rgba(89, 66, 39, 0.28);
  --night-line: rgba(232, 173, 81, 0.42);
  --page-width: 1024px;
  --gutter: clamp(28px, 4.5vw, 48px);
  --section-space: clamp(48px, 7vw, 72px);
  --font-brush: "Yuji Boku", serif;
  --font-heading: "Shippori Mincho", "Yu Mincho", serif;
  --font-body: "Noto Sans JP", sans-serif;
  --shadow: 0 18px 44px rgba(5, 18, 31, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--navy);
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #061424;
  font-family: var(--font-body);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

main,
.site-header {
  width: min(100%, var(--page-width));
  margin-inline: auto;
}

main {
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 64px rgba(0, 0, 0, 0.42);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure,
h1,
h2,
h3,
p,
ol,
ul {
  margin-top: 0;
}

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

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--navy);
  background: var(--cream);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
  padding: 10px 28px;
  border-bottom: 1px solid rgba(255, 248, 233, 0.18);
  color: var(--cream);
  background: rgba(8, 29, 51, 0.96);
  box-shadow: 0 8px 24px rgba(3, 14, 24, 0.22);
}

.site-brand {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.3vw, 28px);
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-header nav a {
  padding: 7px 0;
  border-bottom: 1px solid transparent;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.hero {
  position: relative;
  display: grid;
  min-height: 510px;
  overflow: hidden;
  color: var(--cream);
  background: var(--navy);
  isolation: isolate;
}

.hero-copy,
.hero-art {
  grid-area: 1 / 1;
}

.hero-art {
  z-index: -1;
  width: 100%;
  height: 100%;
  margin: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.68) saturate(1.08);
}

.hero-copy {
  align-self: end;
  z-index: 1;
  width: 61%;
  padding: 54px var(--gutter) 58px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.88);
}

.eyebrow {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: clamp(0.88rem, 1.7vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 5.5em;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8.2vw, 6.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0.03em;
}

.hero-lead {
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-copy > p:last-child {
  margin-bottom: 0;
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 600;
}

.about,
.rhythm,
.activities {
  background-color: var(--paper);
  background-image: url("assets/rebuilt/paper-texture.webp");
  background-repeat: repeat;
  background-size: 450px 350px;
}

.section-intro {
  position: relative;
  padding-left: 50px;
}

.section-mark {
  position: absolute;
  top: 4px;
  left: 0;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.section-intro h2,
.contact-copy h2 {
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.35;
  letter-spacing: 0.035em;
}

#about-title {
  font-family: Georgia, "Times New Roman", serif;
}

#about-title span {
  display: block;
}

.section-intro p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.about {
  display: grid;
  grid-template-columns: 1.4fr 1.08fr 0.92fr;
  grid-template-areas: "intro timeline art";
  gap: 34px;
  padding: var(--section-space) var(--gutter);
  align-items: start;
}

.about .section-intro {
  grid-area: intro;
}

.about-art {
  grid-area: art;
  align-self: stretch;
  margin: 0;
}

.about-art img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 1px solid rgba(214, 90, 24, 0.28);
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
}

.about-art figcaption {
  margin-top: 10px;
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.timeline {
  grid-area: timeline;
  padding: 4px 0 0;
}

.timeline h3 {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--paper-line);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.2em;
}

.timeline ol {
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--paper-line);
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  padding: 0 0 18px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline time {
  color: var(--orange);
  font-family: var(--font-heading);
  font-weight: 700;
}

.timeline span {
  font-weight: 600;
}

.timeline small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
}

.festival {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  padding: 44px var(--gutter);
  color: var(--cream);
  background: var(--navy);
}

.festival .section-intro p {
  color: rgba(255, 248, 233, 0.78);
}

.festival .section-mark {
  filter: saturate(1.2) brightness(1.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.card-grid figure {
  display: flex;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--night-line);
  background: var(--navy-light);
  flex-direction: column;
}

.card-grid img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}

.card-grid figcaption {
  display: flex;
  flex: 1;
  padding: 11px 9px 12px;
  flex-direction: column;
}

.card-grid strong {
  margin-bottom: 3px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  line-height: 1.4;
}

.card-grid span {
  color: rgba(255, 248, 233, 0.76);
  font-size: 0.66rem;
  line-height: 1.6;
}

.rhythm {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
  padding: var(--section-space) var(--gutter);
}

.rhythm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rhythm-step;
}

.rhythm-steps li {
  min-width: 0;
  counter-increment: rhythm-step;
}

.rhythm-steps img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  margin-bottom: 13px;
  border: 1px solid rgba(214, 90, 24, 0.24);
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(65, 45, 25, 0.15);
}

.rhythm-steps h3 {
  margin-bottom: 5px;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.35;
}

.rhythm-steps h3::before {
  content: counter(rhythm-step);
  display: inline-block;
  min-width: 1.65rem;
  margin-right: 7px;
  color: var(--cream);
  background: var(--navy);
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.65rem;
  text-align: center;
}

.rhythm-steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.activities {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(250px, 0.82fr);
  grid-template-areas:
    "intro art"
    "list art";
  gap: 22px 30px;
  padding: 44px var(--gutter) 52px;
}

.activities .section-intro {
  grid-area: intro;
}

.achievement-list {
  grid-area: list;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  list-style: none;
}

.achievement-list li {
  min-width: 0;
  padding: 17px 12px;
  border-right: 1px solid var(--paper-line);
  text-align: center;
}

.achievement-list li:last-child {
  border-right: 0;
}

.achievement-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 9px;
  object-fit: contain;
}

.achievement-list strong,
.achievement-list span {
  display: block;
}

.achievement-list strong {
  margin-bottom: 7px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  line-height: 1.45;
}

.achievement-list span {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.65;
}

.activities-art {
  position: relative;
  grid-area: art;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--paper-line);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.activities-art img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

.activities-art figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 12px;
  color: var(--cream);
  background: rgba(8, 29, 51, 0.88);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
}

.official-banner {
  padding: 32px var(--gutter);
  background: var(--navy-light);
}

.official-banner a {
  display: block;
  width: min(100%, 720px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--night-line);
  box-shadow: var(--shadow);
}

.official-banner img {
  width: 100%;
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1.55fr 0.9fr;
  grid-template-areas:
    "copy support card"
    "art art art";
  gap: 30px;
  padding: 44px var(--gutter) 0;
  overflow: hidden;
  color: var(--cream);
  background: var(--navy);
}

.contact-copy {
  grid-area: copy;
}

.contact-copy .eyebrow {
  color: var(--gold);
}

.contact-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
}

.contact-copy > p:last-child {
  margin-bottom: 0;
  color: rgba(255, 248, 233, 0.72);
  font-size: 0.78rem;
}

.support-grid {
  grid-area: support;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start;
  min-width: 0;
  border: 1px solid rgba(255, 248, 233, 0.32);
  background: rgba(255, 248, 233, 0.92);
}

.support-grid > a {
  min-width: 0;
  padding: 16px 10px;
  border-right: 1px solid rgba(89, 66, 39, 0.22);
  color: var(--ink);
  text-align: center;
}

.support-grid > a:last-child {
  border-right: 0;
}

.support-grid > a:hover,
.support-grid > a:focus-visible {
  background: var(--paper-light);
}

.support-icon {
  width: 45px;
  height: 45px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.support-grid strong,
.support-grid span {
  display: block;
}

.support-grid strong {
  margin-bottom: 5px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.82rem;
}

.support-grid span {
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.55;
}

.contact-card {
  grid-area: card;
  align-self: start;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--gold);
  font-style: normal;
  background: var(--navy-light);
}

.contact-card h3 {
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.contact-card p {
  margin-bottom: 11px;
  color: rgba(255, 248, 233, 0.78);
  font-size: 0.67rem;
  line-height: 1.65;
}

.contact-card a {
  overflow-wrap: anywhere;
  font-size: 0.74rem;
  font-weight: 700;
}

.contact-card > a:last-child {
  display: block;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 248, 233, 0.42);
  text-align: center;
}

.contact-card a:hover {
  color: var(--gold);
}

.contact-art {
  grid-area: art;
  margin: 0 -48px;
}

.contact-art img {
  width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

/* Keep the desktop composition close to the compact 1024px poster rhythm. */
@media (min-width: 861px) {
  .hero {
    min-height: 430px;
  }

  .hero-copy {
    width: 62%;
    padding: 30px 38px 34px;
  }

  .hero h1 {
    margin-bottom: 12px;
    font-size: clamp(4rem, 7vw, 5.3125rem);
    line-height: 0.98;
  }

  .hero-lead {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
  }

  .about {
    grid-template-columns: 1.35fr 1.02fr 0.86fr;
    gap: 22px;
    padding: 32px 36px;
  }

  .about .section-intro p {
    margin-bottom: 7px;
    font-size: 0.76rem;
    line-height: 1.68;
  }

  .about-art img {
    min-height: 270px;
  }

  .about-art figcaption {
    margin-top: 5px;
    font-size: 0.7rem;
  }

  .timeline h3 {
    margin-bottom: 10px;
    padding-bottom: 5px;
  }

  .timeline li {
    grid-template-columns: 72px 1fr;
    gap: 6px;
    padding-bottom: 9px;
    font-size: 0.66rem;
    line-height: 1.45;
  }

  .timeline small {
    font-size: 0.58rem;
  }

  .festival {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 20px;
    padding: 28px 36px;
  }

  .festival .section-intro h2,
  .rhythm .section-intro h2 {
    margin-bottom: 12px;
    font-size: 1.7rem;
  }

  .festival .section-intro p,
  .rhythm .section-intro p {
    font-size: 0.74rem;
    line-height: 1.65;
  }

  .card-grid img {
    aspect-ratio: 1 / 0.78;
  }

  .card-grid figcaption {
    padding: 7px 8px 8px;
  }

  .card-grid strong {
    font-size: 0.78rem;
  }

  .card-grid span {
    font-size: 0.58rem;
    line-height: 1.45;
  }

  .rhythm {
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 24px;
    padding: 32px 36px;
  }

  .rhythm-steps {
    gap: 12px;
  }

  .rhythm-steps img {
    aspect-ratio: 1 / 0.68;
    margin-bottom: 8px;
  }

  .rhythm-steps h3 {
    font-size: 1rem;
  }

  .rhythm-steps p {
    font-size: 0.66rem;
    line-height: 1.55;
  }

  .activities {
    gap: 16px 24px;
    padding: 30px 36px 34px;
  }

  .achievement-list li {
    padding: 11px 8px;
  }

  .achievement-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
  }

  .activities-art img {
    min-height: 230px;
  }

  .contact {
    gap: 22px;
    padding: 32px 36px 0;
  }

  .contact-copy h2 {
    font-size: 1.55rem;
  }

  .support-grid > a {
    padding: 12px 8px;
  }

  .support-icon {
    width: 40px;
    height: 40px;
  }

  .contact-card {
    padding: 14px;
  }

  .contact-art {
    margin-inline: -36px;
  }

  .contact-art img {
    max-height: none;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 32px;
    --section-space: 54px;
  }

  .site-header {
    display: block;
    min-height: 0;
    padding: 9px 20px 8px;
  }

  .site-brand {
    display: block;
    margin-bottom: 2px;
    font-size: 0.78rem;
  }

  .site-header nav {
    gap: 22px;
    width: 100%;
    overflow-x: auto;
    padding: 2px 0 4px;
    font-size: 0.7rem;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 500px;
  }

  .hero-copy {
    width: 69%;
  }

  .about {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-areas:
      "intro art"
      "timeline timeline";
  }

  .about-art img {
    min-height: 300px;
  }

  .timeline ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    border-left: 0;
  }

  .festival,
  .rhythm {
    grid-template-columns: 1fr;
  }

  .festival .section-intro,
  .rhythm .section-intro {
    max-width: 620px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-grid figure {
    display: grid;
    grid-template-columns: 42% 1fr;
  }

  .card-grid img {
    height: 100%;
    aspect-ratio: auto;
  }

  .activities {
    grid-template-columns: 1fr 0.78fr;
  }

  .achievement-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .achievement-list li:nth-child(2) {
    border-right: 0;
  }

  .achievement-list li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--paper-line);
  }

  .contact {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "copy card"
      "support support"
      "art art";
  }

  .contact-art {
    margin-inline: -32px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --section-space: 42px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .site-header nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .hero-art {
    order: 1;
    height: auto;
  }

  .hero-art img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) saturate(1.05);
  }

  .hero-copy {
    order: 2;
    width: 100%;
    padding: 28px 20px 34px;
    text-shadow: none;
  }

  .hero h1 {
    max-width: 7em;
    margin-bottom: 14px;
    font-size: clamp(3.1rem, 15.5vw, 4.1rem);
  }

  .hero-lead {
    font-size: 1.06rem;
  }

  .section-intro {
    padding-left: 42px;
  }

  .section-mark {
    width: 29px;
    height: 29px;
  }

  .section-intro h2,
  .contact-copy h2 {
    font-size: 1.7rem;
  }

  .about {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "art"
      "timeline";
    gap: 28px;
  }

  .about-art img {
    min-height: 0;
    aspect-ratio: 5 / 4;
  }

  .timeline ol {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline li {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .festival,
  .rhythm,
  .activities,
  .contact {
    padding-inline: var(--gutter);
  }

  .card-grid,
  .rhythm-steps,
  .activities,
  .achievement-list,
  .contact,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .card-grid figure {
    grid-template-columns: 43% minmax(0, 1fr);
    min-height: 136px;
  }

  .rhythm-steps {
    gap: 24px;
  }

  .rhythm-steps img {
    aspect-ratio: 16 / 10;
  }

  .activities {
    grid-template-areas:
      "intro"
      "art"
      "list";
  }

  .activities-art img {
    min-height: 0;
    aspect-ratio: 5 / 3;
  }

  .achievement-list li,
  .achievement-list li:nth-child(2) {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 2px 12px;
    padding: 14px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--paper-line);
    text-align: left;
  }

  .achievement-list li:last-child {
    border-bottom: 0;
  }

  .achievement-icon {
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
  }

  .achievement-list strong {
    margin: 0;
    font-size: 0.9rem;
  }

  .achievement-list span {
    font-size: 0.72rem;
  }

  .official-banner {
    padding: 20px 16px;
  }

  .contact {
    grid-template-areas:
      "copy"
      "support"
      "card"
      "art";
    gap: 28px;
  }

  .support-grid > a {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 2px 12px;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(89, 66, 39, 0.22);
    text-align: left;
  }

  .support-grid > a:last-child {
    border-bottom: 0;
  }

  .support-icon {
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
  }

  .support-grid strong {
    margin: 0;
    font-size: 0.92rem;
  }

  .support-grid span {
    font-size: 0.7rem;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-card p,
  .contact-card a {
    font-size: 0.78rem;
  }

  .contact-art {
    margin-inline: -20px;
  }

  .contact-art img {
    min-height: 0;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  html,
  body {
    color: #000;
    background: #fff;
  }

  .site-header,
  .skip-link {
    display: none;
  }

  main {
    width: 100%;
    overflow: visible;
    box-shadow: none;
  }

  section,
  figure {
    break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }
}
