@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Serif+JP:wght@500;600;700&display=swap");

:root {
  --ink: #251c17;
  --ink-soft: #49382e;
  --paper: #f5f0e7;
  --white: #fffaf0;
  --vermillion: #c84c33;
  --line: rgb(37 28 23 / 0.18);
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

@property --dawn-radius {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.85;
  overflow-x: hidden;
}

body.sheet-open,
body.menu-open { overflow: hidden; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-200%);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 5.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 4.5rem);
  color: var(--white);
  border-bottom: 1px solid rgb(255 250 240 / 0.18);
  transition: background 400ms ease, min-height 400ms ease, backdrop-filter 400ms ease;
  animation: header-reveal 900ms 4.8s both;
}

.site-header.is-scrolled {
  min-height: 4.5rem;
  background: rgb(37 28 23 / 0.88);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  position: relative;
  width: 2.7rem;
  aspect-ratio: 1;
  border: 1px solid rgb(255 250 240 / 0.65);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  background: var(--white);
  transform: translateX(-50%);
}

.brand-mark::before {
  top: 0.65rem;
  width: 0.35rem;
  height: 1.35rem;
}

.brand-mark::after {
  bottom: 0.68rem;
  width: 1.25rem;
  height: 0.08rem;
}

.brand-text {
  display: grid;
  line-height: 1.25;
}

.brand-text small {
  margin-bottom: 0.18rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  opacity: 0.72;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 3rem);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.global-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  white-space: nowrap;
}

.nav-index {
  color: #e66a49;
  font-family: var(--serif);
  font-size: 0.72rem;
  line-height: 1;
}

.global-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  left: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms ease;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-status {
  padding: 0.45rem 0.75rem;
  color: var(--white);
  border: 1px solid rgb(255 250 240 / 0.45);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: #5a4435;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.dawn-reveal,
.hero-shade,
.light-ray,
.dust {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -4;
  overflow: hidden;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  animation: hero-settle 5.5s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, filter;
}

.dawn-reveal {
  z-index: -1;
  --dawn-radius: 0%;
  background: #100b08;
  -webkit-mask-image: radial-gradient(
    circle at 0% 0%,
    transparent 0%,
    transparent var(--dawn-radius),
    rgb(0 0 0 / 0.45) calc(var(--dawn-radius) + 10%),
    #000 calc(var(--dawn-radius) + 24%)
  );
  mask-image: radial-gradient(
    circle at 0% 0%,
    transparent 0%,
    transparent var(--dawn-radius),
    rgb(0 0 0 / 0.45) calc(var(--dawn-radius) + 10%),
    #000 calc(var(--dawn-radius) + 24%)
  );
  animation: dawn-from-left 5.8s 0.45s cubic-bezier(0.45, 0, 0.2, 1) both;
  pointer-events: none;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(18 12 9 / 0.42) 0%, rgb(18 12 9 / 0.12) 43%, transparent 68%),
    linear-gradient(0deg, rgb(15 10 8 / 0.26) 0%, transparent 43%),
    linear-gradient(180deg, rgb(15 10 8 / 0.24) 0%, transparent 24%);
  animation: shade-open 5.1s 0.55s both;
}

.light-ray {
  z-index: -3;
  left: -8%;
  width: 64%;
  background: radial-gradient(ellipse at 9% 10%, rgb(255 232 190 / 0.62), transparent 62%);
  mix-blend-mode: screen;
  animation: light-enter 5.2s 0.9s both, light-breathe 7s 6.2s ease-in-out infinite alternate;
}

.dust {
  z-index: 0;
  width: 100%;
  pointer-events: none;
}

.dust::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: 2%;
  left: -8%;
  height: 24%;
  background: radial-gradient(ellipse at 48% 100%, rgb(196 151 98 / 0.13), transparent 68%);
  filter: blur(16px);
  opacity: 0;
  animation: ground-haze 7s 5.7s ease-in-out infinite alternate;
}

.dust i {
  position: absolute;
  display: block;
  left: var(--dust-x);
  top: var(--dust-y);
  width: var(--dust-size);
  height: var(--dust-size);
  border-radius: 50%;
  background: rgb(255 237 199 / var(--dust-alpha));
  box-shadow: 0 0 calc(var(--dust-size) * 2.5) rgb(255 225 164 / 0.42);
  filter: blur(var(--dust-blur));
  opacity: 0;
  animation: dust-rise var(--dust-duration) var(--dust-delay) linear infinite;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(1.5rem, 7vw, 8rem);
  max-width: 37rem;
  transform: translateY(-48%);
  text-shadow:
    0 1px 2px rgb(16 9 6 / 0.78),
    0 4px 16px rgb(16 9 6 / 0.52),
    0 10px 34px rgb(16 9 6 / 0.34);
}

.hero-kicker,
.hero-lead,
.title-char {
  opacity: 0;
  animation: copy-reveal 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-kicker {
  margin: 0 0 1.35rem;
  padding-left: 3rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  animation-delay: 4.7s;
}

.hero-kicker::before {
  content: "";
  position: absolute;
  width: 2.1rem;
  height: 1px;
  margin-top: 0.78rem;
  margin-left: -3rem;
  background: var(--vermillion);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.08em;
  -webkit-text-stroke: 0.22px rgb(22 13 9 / 0.42);
  text-shadow:
    0 1px 2px rgb(14 8 5 / 0.9),
    0 4px 18px rgb(14 8 5 / 0.58),
    0 12px 38px rgb(14 8 5 / 0.38);
}

.title-line {
  display: block;
  white-space: nowrap;
}

.title-char {
  display: inline-block;
  animation-duration: 1.25s;
  animation-delay: calc(7.4s + var(--char-index) * 180ms);
}

.hero-lead {
  margin: 1.45rem 0 0;
  font-family: var(--serif);
  font-size: clamp(0.94rem, 1.35vw, 1.2rem);
  letter-spacing: 0.16em;
  animation-delay: 5.25s;
}

.hero-meta {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4.5rem);
  bottom: clamp(2rem, 5vw, 4.5rem);
  display: grid;
  min-width: 14rem;
  padding: 0 0 0.9rem 1.15rem;
  border-left: 2px solid var(--vermillion);
  opacity: 0;
  text-shadow:
    0 1px 2px rgb(16 9 6 / 0.82),
    0 4px 16px rgb(16 9 6 / 0.48);
  animation: copy-reveal 1s 5.45s forwards;
}

.hero-meta span {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

.hero-meta strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.1em;
}

.hero-meta small {
  margin-top: 0.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  opacity: 0.62;
}

.scroll-cue {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  opacity: 0;
  transform: translateX(-50%);
  animation: fade-in 1s 5.75s forwards;
}

.scroll-cue i {
  width: 1px;
  height: 3.5rem;
  overflow: hidden;
  background: rgb(255 250 240 / 0.32);
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 100%;
  height: 42%;
  background: var(--white);
  animation: scroll-line 2s ease-in-out infinite;
}

.concept {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: clamp(7rem, 14vw, 13rem) clamp(1.5rem, 10vw, 10rem);
  background: var(--paper);
}

.concept::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("../images/gyoji-gunbai-v1.png");
  background-repeat: no-repeat;
  background-position: calc(100% + 7rem) 48%;
  background-size: min(58vw, 52rem) auto;
  content: "";
  opacity: 0.085;
  filter: grayscale(0.2) sepia(0.1);
}

.concept::after {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  content: "";
}

.concept-heading,
.concept-body {
  position: relative;
  z-index: 2;
}

.concept-heading {
  min-width: 0;
  padding-right: clamp(1.5rem, 3vw, 4rem);
}

.concept-heading h2 span {
  display: block;
}

.section-number {
  position: absolute;
  top: 2rem;
  right: 3vw;
  color: rgb(37 28 23 / 0.05);
  font-family: var(--serif);
  font-size: clamp(7rem, 18vw, 16rem);
  line-height: 1;
}

.section-number-light {
  color: rgb(255 250 240 / 0.055);
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--vermillion);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.concept h2,
.spirit h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.07em;
  line-break: strict;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.concept-body {
  align-self: end;
  max-width: 34rem;
  padding: 5rem 0 0 clamp(2rem, 6vw, 7rem);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.concept-body p {
  margin: 0 0 1.5rem;
}

.spirit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(6rem, 11vw, 10rem) clamp(1.5rem, 10vw, 10rem);
  color: var(--white);
  background: var(--ink);
}

.spirit::before {
  position: absolute;
  z-index: -2;
  inset: -5%;
  background-image: url("../images/sumo-spirit-dohyo-v3-shikiri-sen.png");
  background-position: center 48%;
  background-size: cover;
  content: "";
  transform: scale(1);
  animation: spirit-slow-zoom 26s ease-in-out infinite alternate;
  will-change: transform;
}

.spirit::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(25 17 13 / 0.66) 0%, rgb(25 17 13 / 0.78) 100%),
    linear-gradient(90deg, rgb(20 13 10 / 0.34), transparent 46%, rgb(20 13 10 / 0.34));
  content: "";
}

.spirit-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgb(255 250 240 / 0.16);
}

.spirit-intro .eyebrow {
  order: 2;
  margin: 0 0 0.6rem;
}

.spirit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.spirit-card {
  min-height: 20rem;
  padding: 3.5rem clamp(1.5rem, 3vw, 3.5rem);
  border-right: 1px solid rgb(255 250 240 / 0.16);
}

.spirit-card:last-child {
  border-right: 0;
}

.spirit-card > span {
  display: block;
  margin-bottom: 4rem;
  color: var(--vermillion);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.spirit-card h3 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.2em;
}

.spirit-card p {
  max-width: 17rem;
  margin: 0;
  color: rgb(255 250 240 / 0.68);
  font-size: 0.95rem;
}

@keyframes spirit-slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem clamp(1.5rem, 4vw, 4.5rem);
  color: rgb(255 250 240 / 0.64);
  background: #17110e;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.site-footer p,
.site-footer small {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-settle {
  0%, 10% { transform: scale(1.035); filter: brightness(0.24) saturate(0.65); }
  to { transform: scale(1); filter: brightness(1.13) saturate(1.03) contrast(0.98); }
}

@keyframes dawn-from-left {
  0%, 8% { --dawn-radius: 0%; opacity: 1; }
  82% { opacity: 1; }
  100% { --dawn-radius: 145%; opacity: 0; }
}

@keyframes shade-open {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes light-enter {
  from { opacity: 0; transform: translate(-2%, -1%); }
  to { opacity: 0.82; transform: translate(0, 0); }
}

@keyframes light-breathe {
  from { opacity: 0.62; }
  to { opacity: 0.92; }
}

@keyframes copy-reveal {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes header-reveal {
  from { opacity: 0; transform: translateY(-0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  to { opacity: 0.72; }
}

@keyframes dust-rise {
  0% { opacity: 0; transform: translate3d(0, 14px, 0); }
  16% { opacity: 0.78; }
  74% { opacity: 0.28; }
  100% { opacity: 0; transform: translate3d(var(--dust-drift), var(--dust-rise), 0); }
}

@keyframes ground-haze {
  0% { opacity: 0.22; transform: translate3d(-1%, 3px, 0) scaleX(0.96); }
  100% { opacity: 0.48; transform: translate3d(1%, -4px, 0) scaleX(1.04); }
}

@keyframes scroll-line {
  0% { transform: translateY(-110%); }
  100% { transform: translateY(250%); }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 4.75rem;
    padding: max(0.9rem, env(safe-area-inset-top)) max(1.1rem, env(safe-area-inset-right)) 0.9rem max(1.1rem, env(safe-area-inset-left));
  }

  .brand-mark {
    width: 2.25rem;
  }

  .brand-text strong {
    font-size: 0.74rem;
  }

  .brand-text small {
    font-size: 0.56rem;
  }

  .menu-button {
    position: relative;
    z-index: 3;
    display: block;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    color: inherit;
    border: 1px solid rgb(255 250 240 / 0.4);
    border-radius: 50%;
    background: transparent;
  }

  .menu-button span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1px;
    background: currentColor;
    transform: translate(-50%, -0.26rem);
    transform-origin: center;
    transition: transform 250ms ease;
  }

  .menu-button span:last-child {
    transform: translate(-50%, 0.26rem);
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translate(-50%, 0) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translate(-50%, 0) rotate(-45deg);
  }

  .global-nav {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    display: grid;
    width: 100vw;
    height: 100dvh;
    min-height: 100svh;
    align-content: center;
    justify-items: center;
    gap: clamp(1.35rem, 4.5dvh, 2rem);
    padding: max(5.5rem, env(safe-area-inset-top)) 1.5rem calc(5rem + env(safe-area-inset-bottom));
    background: rgb(37 28 23 / 0.97);
    box-sizing: border-box;
    font-family: var(--serif);
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
  }

  .site-header .brand {
    position: relative;
    z-index: 3;
  }

  .global-nav a {
    gap: 0.75rem;
  }

  .global-nav .nav-index {
    min-width: 1.2em;
    font-size: 0.9rem;
    text-align: center;
  }

  .global-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .hero-media img {
    object-position: 50% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgb(17 11 8 / 0.45) 0%, transparent 54%),
      linear-gradient(180deg, rgb(17 11 8 / 0.32) 0%, transparent 30%);
  }

  .hero-copy {
    top: clamp(6.5rem, 14svh, 8.5rem);
    right: 1.25rem;
    bottom: auto;
    left: 1.25rem;
    transform: none;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 9.5vw, 3.2rem);
    line-height: 1.32;
    letter-spacing: 0.045em;
    -webkit-text-stroke-width: 0.18px;
    text-shadow:
      0 1px 2px rgb(14 8 5 / 0.92),
      0 3px 14px rgb(14 8 5 / 0.64),
      0 8px 28px rgb(14 8 5 / 0.42);
  }

  .hero-kicker {
    margin-bottom: 0.8rem;
  }

  .hero-lead {
    margin-top: 0.9rem;
    font-size: clamp(0.78rem, 3.3vw, 0.95rem);
    letter-spacing: 0.1em;
  }

  .hero-meta {
    display: none;
  }

  .scroll-cue {
    left: auto;
    right: max(1rem, env(safe-area-inset-right));
    transform: none;
  }

  .concept {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding: 6.5rem 1.25rem;
    background: var(--paper);
  }

  .concept::after {
    display: none;
  }

  .concept::before {
    z-index: -1;
    background-position: 38% 24%;
    background-size: 42rem auto;
    opacity: 0.055;
  }

  .concept-heading {
    padding-right: 0;
  }

  .concept h2 {
    max-width: 18em;
    font-size: clamp(1.7rem, 7.5vw, 2.45rem);
    line-height: 1.6;
    letter-spacing: 0.04em;
  }

  .concept-body {
    max-width: none;
    padding: 2rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .spirit-intro {
    display: block;
  }

  .spirit::before {
    inset: -3rem -24%;
    background-position: center 42%;
    animation-duration: 30s;
  }

  .spirit::after {
    background:
      linear-gradient(180deg, rgb(25 17 13 / 0.62) 0%, rgb(25 17 13 / 0.79) 38%, rgb(25 17 13 / 0.88) 100%),
      linear-gradient(90deg, rgb(20 13 10 / 0.42), transparent 50%, rgb(20 13 10 / 0.42));
  }

  .spirit-intro .eyebrow {
    margin-bottom: 1rem;
  }

  .spirit-grid {
    grid-template-columns: 1fr;
  }

  .spirit-card {
    min-height: auto;
    padding: 2.5rem 0;
    border-right: 0;
    border-bottom: 1px solid rgb(255 250 240 / 0.16);
  }

  .spirit-card > span {
    margin-bottom: 1.5rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 380px) {
  .brand-text strong {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .hero-copy {
    right: 1rem;
    left: 1rem;
  }

  .hero-kicker {
    padding-left: 2.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .hero-kicker::before {
    width: 1.6rem;
    margin-left: -2.4rem;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Full tournament sample */
[id] {
  scroll-margin-top: 5.5rem;
}

.sample-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.8rem clamp(1rem, 4vw, 4rem);
  color: var(--white);
  background: var(--vermillion);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.sample-notice p { margin: 0; }

.content-section,
.important-info,
.quick-links,
.contact-section {
  padding: clamp(5.5rem, 10vw, 9rem) clamp(1.25rem, 8vw, 9rem);
}

.content-section {
  position: relative;
  overflow: hidden;
}

.content-section > *:not(.section-number) {
  position: relative;
  z-index: 1;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.section-heading.compact { margin-bottom: 2.5rem; }

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.06em;
  line-break: strict;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section-heading > p,
.info-accordion summary span,
.info-accordion summary small,
.sponsor-more summary span,
.contact-card h3,
.organizers dd {
  line-break: strict;
  overflow-wrap: anywhere;
}

@media (min-width: 821px) {
  .single-line-desktop {
    max-width: none;
    white-space: nowrap;
  }

  .important-info .section-heading {
    max-width: none;
  }

  .important-info .section-heading h2 {
    font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  }

  .concept h2 {
    font-size: clamp(1.8rem, 2.75vw, 3.4rem);
    line-height: 1.48;
    letter-spacing: 0.02em;
  }

  .concept-heading h2 span {
    white-space: nowrap;
  }
}

.section-heading > p:last-child:not(.eyebrow) {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.section-heading.light h2 { color: var(--white); }
.section-heading.light > p:last-child { color: rgb(255 250 240 / 0.68); }

.important-info { background: #eee6d9; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-grid article {
  display: grid;
  min-height: 11rem;
  align-content: center;
  padding: 1.5rem clamp(1rem, 2vw, 2rem);
  border-right: 1px solid var(--line);
}

.fact-grid article:last-child { border-right: 0; }
.fact-grid span { color: var(--vermillion); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; }
.fact-grid strong { margin: 0.4rem 0; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 600; }
.fact-grid small { color: var(--ink-soft); }

.quick-links { background: var(--white); }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.quick-grid a {
  display: grid;
  min-height: 10rem;
  align-content: center;
  padding: 1.5rem;
  background: var(--white);
  transition: color 250ms ease, background 250ms ease;
}

.quick-grid a:hover,
.quick-grid a:focus-visible { color: var(--white); background: var(--ink); }
.quick-grid a > span { display: grid; width: 2.2rem; height: 2.2rem; margin-bottom: 1.1rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 0.8rem; }
.quick-grid strong { font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0.08em; }
.quick-grid small { opacity: 0.62; }

.text-link { display: inline-flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem; color: var(--vermillion); font-family: var(--sans); font-size: 0.8rem; font-weight: 700; }
.text-link::after { content: "→"; }

.event-section { background: var(--paper); }
.event-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr); border: 1px solid var(--line); }
.event-panel dl { margin: 0; }
.event-panel dl > div { display: grid; grid-template-columns: 8rem 1fr; border-bottom: 1px solid var(--line); }
.event-panel dl > div:last-child { border-bottom: 0; }
.event-panel dt,
.event-panel dd { margin: 0; padding: 1.25rem 1.5rem; }
.event-panel dt { color: var(--ink-soft); background: rgb(37 28 23 / 0.035); font-size: 0.76rem; font-weight: 700; }
.event-panel dd { font-family: var(--serif); }
.event-panel em { display: inline-block; margin-left: 0.7rem; padding: 0.1rem 0.55rem; color: var(--vermillion); border: 1px solid currentColor; border-radius: 2rem; font-family: var(--sans); font-size: 0.65rem; font-style: normal; }

.venue-placeholder { display: grid; place-content: center; justify-items: center; padding: 2.5rem; color: var(--white); background: var(--ink); text-align: center; }
.venue-placeholder span { display: grid; width: 6rem; aspect-ratio: 1; margin-bottom: 1.25rem; place-items: center; border: 1px solid rgb(255 250 240 / 0.5); border-radius: 50%; font-family: var(--serif); font-size: 2rem; }
.venue-placeholder strong { font-family: var(--serif); font-size: 1.5rem; }
.venue-placeholder p { max-width: 17rem; margin: 0.7rem 0 0; color: rgb(255 250 240 / 0.62); font-size: 0.8rem; }

.entry-section { background: #eee6d9; }
.info-accordion-grid { display: grid; gap: 1rem; }
.info-accordion { border-top: 1px solid var(--line); background: rgb(255 250 240 / 0.5); }
.info-accordion summary,
.sponsor-more summary,
.faq-list summary { list-style: none; cursor: pointer; }
.info-accordion summary::-webkit-details-marker,
.sponsor-more summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker { display: none; }
.info-accordion summary { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1.5rem 4rem 1.5rem 1.5rem; }
.info-accordion summary::after { content: "+"; position: absolute; right: 1.5rem; font-size: 1.5rem; font-weight: 300; }
.info-accordion[open] summary::after { content: "−"; }
.info-accordion summary span { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 600; }
.info-accordion summary small { color: var(--ink-soft); }
.accordion-content { padding: 0 1.5rem 2rem; }
.accordion-content > :first-child { margin-top: 0; }
.accordion-content > :last-child { margin-bottom: 0; }
.accordion-content ul { padding-left: 1.25rem; }
.provisional { padding: 0.8rem 1rem; border-left: 2px solid var(--vermillion); background: rgb(200 76 51 / 0.07); font-size: 0.78rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0; background: var(--line); list-style: none; counter-reset: step; }
.steps li { display: grid; min-height: 9rem; align-content: center; padding: 1.25rem; background: var(--white); counter-increment: step; }
.steps li::before { content: "其の" counter(step, cjk-ideographic); margin-bottom: 0.5rem; color: var(--vermillion); font-family: var(--serif); font-size: 0.72rem; }
.steps strong { font-family: var(--serif); }
.steps span { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.72rem; }

.guide-section { color: var(--white); background: var(--ink); }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgb(255 250 240 / 0.17); }
.info-accordion.inverse { border: 0; background: var(--ink); }
.info-accordion.inverse summary small { color: rgb(255 250 240 / 0.55); }
.info-accordion.inverse .accordion-content { color: rgb(255 250 240 / 0.74); }
.info-accordion.inverse .provisional { background: rgb(255 250 240 / 0.05); }
.check-list { columns: 2; column-gap: 2rem; }

.day-section { background: var(--white); }
.day-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr); gap: clamp(2rem, 6vw, 6rem); }
.timeline h3,
.day-note h3 { margin-top: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.5vw, 2rem); }
.timeline ol { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--vermillion); font-family: var(--serif); font-weight: 600; }
.timeline strong { font-family: var(--serif); font-size: 1.1rem; }
.timeline p { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.85rem; }
.day-note { align-self: start; padding: clamp(1.5rem, 4vw, 3rem); color: var(--white); background: var(--vermillion); }
.day-note > span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; }
.day-note h3 { margin-top: 1rem; }
.button-link { display: inline-block; margin-top: 1rem; padding: 0.75rem 1rem; border: 1px solid rgb(255 250 240 / 0.62); font-size: 0.76rem; font-weight: 700; }

.faq-section { background: #eee6d9; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 1.5rem 4rem 1.5rem 3.5rem; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.faq-list summary::before { content: "問"; position: absolute; left: 0.5rem; color: var(--vermillion); }
.faq-list summary::after { content: "+"; position: absolute; right: 1rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 4rem 1.5rem 3.5rem; color: var(--ink-soft); }

.news-section { background: var(--paper); }
.news-list { border-top: 1px solid var(--line); }
.news-list article { display: grid; grid-template-columns: 9rem 7rem 1fr; gap: 1.5rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.news-list time { font-family: var(--serif); }
.news-list span { color: var(--vermillion); font-size: 0.7rem; font-weight: 700; }
.news-list h3 { margin: 0; font-size: 0.95rem; font-weight: 500; }

.history-section { background: var(--white); }
.history-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; padding: 1px; background: var(--line); list-style: none; }
.history-list li { display: grid; min-height: 12rem; align-content: center; padding: 1.5rem; background: var(--white); }
.history-list span { color: var(--vermillion); font-family: var(--serif); }
.history-list strong { margin: 0.65rem 0; font-family: var(--serif); font-size: 1.2rem; }
.history-list time { color: var(--ink-soft); font-size: 0.75rem; }
.history-list .current { color: var(--white); background: var(--vermillion); }
.history-list .current span,
.history-list .current time { color: inherit; }

.support-section { color: var(--white); background: #1b1512; }
.sponsor-note { margin: -2rem 0 3rem; padding: 0.8rem 1rem; border: 1px solid rgb(255 250 240 / 0.2); font-size: 0.76rem; }
.sponsor-ranks { display: grid; gap: 1rem; }
.sponsor-rank { margin: 0; padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid rgb(255 250 240 / 0.16); }
.sponsor-rank > h3 { margin: 0 0 1.5rem; color: #d6b675; font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.2em; text-align: center; }
.sponsor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ozeki .sponsor-grid { grid-template-columns: repeat(4, 1fr); }
.sponsor-logo { display: grid; min-height: 10rem; place-items: center; align-content: center; gap: 0.8rem; color: var(--ink); background: var(--white); }
.sponsor-logo i { position: relative; width: 3rem; aspect-ratio: 1; border: 1px solid var(--ink); border-radius: 50%; }
.sponsor-logo i::before,
.sponsor-logo i::after { content: ""; position: absolute; inset: 22%; border: 1px solid var(--vermillion); transform: rotate(45deg); }
.sponsor-logo i::after { inset: 34%; transform: none; }
.sponsor-logo span { font-family: var(--serif); font-size: 0.85rem; }
.sponsor-more { padding: 0; }
.sponsor-more summary { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; }
.sponsor-more summary span { color: #d6b675; font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.12em; }
.sponsor-more summary small::after { content: " ＋"; }
.sponsor-more[open] summary small::after { content: " −"; }
.sponsor-name-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 1px; background: rgb(255 250 240 / 0.15); }
.sponsor-name-grid.compact { grid-template-columns: repeat(5, 1fr); }
.sponsor-name-grid span { padding: 1rem; background: #241c18; font-size: 0.75rem; text-align: center; }

.organizers { margin-top: clamp(4rem, 8vw, 7rem); padding-top: 3rem; border-top: 1px solid rgb(255 250 240 / 0.18); }
.organizers h3 { font-family: var(--serif); font-size: 1.5rem; }
.organizers dl { margin: 0; }
.organizers dl > div { display: grid; grid-template-columns: 7rem 1fr; padding: 0.8rem 0; border-bottom: 1px solid rgb(255 250 240 / 0.1); }
.organizers dt { color: #d6b675; font-size: 0.75rem; }
.organizers dd { margin: 0; color: rgb(255 250 240 / 0.75); }

.contact-section { background: #e9dfcf; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); padding: clamp(1.5rem, 5vw, 4rem); color: var(--white); background: var(--ink); }
.contact-card span { color: #d6b675; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; }
.contact-card h3 { margin: 1rem 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.5vw, 2rem); line-height: 1.6; }
.contact-card address { border-left: 1px solid rgb(255 250 240 / 0.18); padding-left: clamp(1.5rem, 4vw, 4rem); font-style: normal; }
.contact-card p { color: rgb(255 250 240 / 0.7); }
.contact-card strong { color: var(--white); }

.mobile-dock,
.bottom-sheet { display: none; }

@media (max-width: 820px) {
  body { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
  .sample-notice { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .content-section,
  .important-info,
  .quick-links,
  .contact-section { padding: 4.5rem 1.25rem; }
  .section-heading { margin-bottom: 2.5rem; }
  .section-heading h2 {
    max-width: 14em;
    font-size: clamp(1.65rem, 7.4vw, 2.55rem);
    line-height: 1.5;
    letter-spacing: 0.04em;
  }
  .important-info .section-heading h2 {
    max-width: none;
    font-size: clamp(1.2rem, 6.2vw, 1.65rem);
    line-height: 1.55;
    letter-spacing: 0.025em;
    white-space: normal;
  }
  .important-info .title-prefix,
  .important-info .title-main {
    display: block;
  }
  .important-info .title-main {
    white-space: nowrap;
  }
  .section-number { top: 1.25rem; right: 0.75rem; font-size: clamp(5.5rem, 27vw, 8rem); }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-grid article { min-height: 9rem; border-bottom: 1px solid var(--line); }
  .fact-grid article:nth-child(2n) { border-right: 0; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid a { min-height: 8.5rem; padding: 1.1rem; }
  .quick-grid small { font-size: 0.68rem; }
  .event-panel,
  .day-layout,
  .contact-card { grid-template-columns: 1fr; }
  .event-panel dl > div { grid-template-columns: 6.5rem 1fr; }
  .event-panel dt,
  .event-panel dd { padding: 1rem; }
  .venue-placeholder { min-height: 18rem; }
  .info-accordion summary { grid-template-columns: 1fr; gap: 0.15rem; padding: 1.25rem 3.5rem 1.25rem 1rem; }
  .info-accordion summary::after { right: 1rem; }
  .accordion-content { padding: 0 1rem 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 7rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .check-list { columns: 1; }
  .timeline li { grid-template-columns: 6.2rem 1fr; gap: 1rem; }
  .news-list article { grid-template-columns: 1fr auto; gap: 0.35rem 1rem; }
  .news-list h3 { grid-column: 1 / -1; }
  .history-list { grid-template-columns: repeat(2, 1fr); }
  .history-list li { min-height: 9.5rem; }
  .sponsor-grid,
  .ozeki .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsor-logo { min-height: 8rem; }
  .sponsor-name-grid,
  .sponsor-name-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .organizers dl > div { grid-template-columns: 5rem 1fr; gap: 0.75rem; }
  .contact-card address { padding: 1.5rem 0 0; border-top: 1px solid rgb(255 250 240 / 0.18); border-left: 0; }
  .contact-card h3 { font-size: clamp(1.1rem, 5vw, 1.5rem); }
  .site-footer { padding-bottom: 2.5rem; }

  .mobile-dock {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 4.4rem;
    padding-bottom: env(safe-area-inset-bottom);
    color: var(--white);
    border-top: 1px solid rgb(255 250 240 / 0.18);
    background: rgb(29 22 18 / 0.96);
    backdrop-filter: blur(14px);
  }
  .mobile-dock a,
  .mobile-dock button { display: grid; place-items: center; align-content: center; gap: 0.1rem; padding: 0.4rem 0.2rem; color: inherit; border: 0; background: transparent; font-family: var(--sans); font-size: 0.62rem; }
  .mobile-dock span { font-family: var(--serif); font-size: 1rem; }

  .bottom-sheet { position: fixed; z-index: 40; inset: 0; display: block; visibility: hidden; opacity: 0; transition: opacity 250ms ease, visibility 250ms ease; }
  .bottom-sheet.is-open { visibility: visible; opacity: 1; }
  .sheet-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgb(10 7 5 / 0.66); }
  .sheet-panel { position: absolute; right: 0; bottom: 0; left: 0; max-height: 82svh; padding: 0.8rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 1.2rem 1.2rem 0 0; background: var(--paper); transform: translateY(102%); transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1); }
  .bottom-sheet.is-open .sheet-panel { transform: translateY(0); }
  .sheet-handle { width: 2.8rem; height: 0.25rem; margin: 0 auto 1rem; border-radius: 1rem; background: var(--line); }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; }
  .sheet-head h2 { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
  .sheet-head button { padding: 0.45rem 0.7rem; color: var(--ink); border: 1px solid var(--line); background: transparent; }
  .sheet-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 1rem; border: 1px solid var(--line); background: var(--line); }
  .sheet-links a { padding: 1rem; background: var(--white); font-size: 0.8rem; }
}

@media (max-width: 380px) {
  .section-heading h2 { font-size: 1.55rem; }
  .concept h2 { font-size: 1.55rem; }
  .fact-grid strong { font-size: 1.05rem; }
  .info-accordion summary span { font-size: 1.05rem; }
  .sponsor-more summary { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
}
