/* =========================
   COLOR
========================= */
:root {
  --teal: #69c3c0;
  --teal-deep: #2eaaa5;
  --red: #e72f44;
  --black: #1b1c1d;
  --gray: #767d84;
  --bg: #fdfdfc;
  --white: #ffffff;
  --font: "Noto Sans JP", sans-serif;
  --section-space: 9rem;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  background: var(--bg);
  font-family: var(--font);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
}

/* =========================
   WEBGL
========================= */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(210px, 310px) 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 4.2vw;
  background: rgba(253, 253, 252, 0.88);
  border-bottom: 1px solid rgba(105, 195, 192, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-logo {
  display: inline-flex;
  align-items: center;
  width: min(255px, 24vw);
  height: 58px;
}

.header-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.nav a {
  position: relative;
  padding: 30px 0 26px;
  color: var(--black);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 19px;
  height: 2px;
  background: var(--teal);
  transition: right 0.25s ease;
}

.nav a:hover::after {
  right: 0;
}

/* =========================
   RIBBON STORY
========================= */
.story-scroll-track {
  position: relative;
  width: 100%;
  height: 320vh;
  z-index: 10;
}

.story-pinned-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  pointer-events: none;
}

.story-phrase {
  position: absolute;
  max-width: 600px;
  padding: 0 1.5rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  line-height: 1.9;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-phrase.p1 {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--gray);
}

.story-phrase.p2 {
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  color: var(--black);
}

.story-phrase.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-main-ui {
  position: absolute;
  bottom: 1.6rem;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero-main-ui.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-info-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: calc(100vw - 40px);
  padding: 1.05rem 2.2rem 1.15rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(27, 28, 29, 0.06);
}

.hero-info-panel .main-title {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.hero-info-panel .catchcopy {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 0.7rem;
}

.festival-date-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.festival-date {
  color: var(--black);
  font-family: var(--font);
  font-size: clamp(0.92rem, 1.5vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.scroll-guide {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.scroll-line {
  width: 1px;
  height: 25px;
  background: var(--gray);
  animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================
   LOWER CONTENT
========================= */
.content-section {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 7.5rem 5vw 10rem;
  background: var(--bg);
  pointer-events: auto;
}

.project-nav-block,
.about-section,
.info-section {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.project-nav-block {
  margin-bottom: 3.2rem;
}

.project-heading {
  margin-bottom: 4.2rem;
}

.project-heading-en {
  display: block;
  font-family: var(--font);
  color: #2ea39d;
  font-size: clamp(4.8rem, 9vw, 8.8rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.04em;
}

.project-heading-ja {
  display: block;
  margin-top: 2.2rem;
  margin-left: 0.4rem;
  color: #2ea39d;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* =========================
   PROJECT CIRCLE BUTTONS
========================= */
.project-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 36px);
  align-items: center;
  justify-items: center;
}

.project-card {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.15rem;
  border: 2px solid var(--teal);
  border-radius: 50%;
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.32);
  transform-origin: center;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  color: white;
  background: var(--teal);
  box-shadow: 0 18px 38px rgba(46, 170, 165, 0.18);
  animation: projectBurun 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes projectBurun {
  0% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1.07, 0.94) rotate(-2deg); }
  40% { transform: scale(0.96, 1.06) rotate(2deg); }
  58% { transform: scale(1.035, 0.98) rotate(-1deg); }
  74% { transform: scale(0.99, 1.02) rotate(0.5deg); }
  88% { transform: scale(1.01, 0.995) rotate(-0.2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* =========================
   PROJECT ICONS (再現SVG用)
========================= */
.project-card svg {
  width: clamp(60px, 5.5vw, 78px);
  height: clamp(60px, 5.5vw, 78px);
  color: var(--teal-deep);
  fill: currentColor;
  stroke: none;
  overflow: visible;
  transition: transform 0.35s ease, color 0.25s ease;
}

.project-card:hover svg {
  transform: scale(1.08);
  color: #ffffff;
}

.project-card span {
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ========================================================
   3D HELIX CAROUSEL & BACKGROUND WAVE (あの日になる日。仕様)
======================================================== */
.ring-block {
  margin-bottom: var(--section-space);
  position: relative;
  padding: 2rem 0 1rem;
}

.ring-wave-bg {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 880px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ring-wave-svg {
  width: 100%;
  height: 100%;
}

.wave-layer {
  mix-blend-mode: multiply;
  transform-origin: center center;
}

.wave-1 { animation: waveFloat1 11s ease-in-out infinite alternate; }
.wave-2 { animation: waveFloat2 14s ease-in-out infinite alternate; }
.wave-3 { animation: waveFloat3 9.5s ease-in-out infinite alternate; }

@keyframes waveFloat1 {
  0% { transform: translateY(0) scaleY(1); }
  100% { transform: translateY(-22px) scaleY(1.06); }
}
@keyframes waveFloat2 {
  0% { transform: translateY(0) scaleY(1); }
  100% { transform: translateY(26px) scaleY(0.94); }
}
@keyframes waveFloat3 {
  0% { transform: translateY(0) scaleY(1); }
  100% { transform: translateY(-16px) scaleY(1.04); }
}

/* セクション小見出し */
.ring-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 1.2rem;
}

.ring-overline {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--teal-deep);
  margin-bottom: 0.45rem;
}

.ring-lead {
  font-size: clamp(0.88rem, 1.3vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--black);
}

/* 3Dステージ */
.ring-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 560px;
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  user-select: none;
  cursor: grab;
  touch-action: pan-y;
}

.ring-stage:active {
  cursor: grabbing;
}

.ring-cylinder {
  position: relative;
  width: 300px;
  height: 236px;
  transform-style: preserve-3d;
  will-change: transform;
}

/* 空間中央の3D軌道リング */
.ring-orbit-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--orbit-radius, 430px) * 2);
  height: calc(var(--orbit-radius, 430px) * 2);
  transform: translate(-50%, -50%) rotateX(90deg);
  border-radius: 50%;
  border: 1px dashed rgba(105, 195, 192, 0.38);
  box-shadow: inset 0 0 0 18px rgba(231, 47, 68, 0.03);
  pointer-events: none;
}

/* カード外枠 */
.ring-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 236px;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  cursor: pointer;
}

.ring-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ring-card.is-active .ring-card-inner {
  transform: translateZ(26px) scale(1.05);
}

.ring-card:hover .ring-card-inner {
  transform: translateZ(32px) scale(1.06);
}

.ring-card-front,
.ring-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4px;
  overflow: hidden;
}

.ring-card-front {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  background: #fffdf9;
  border: 1px solid rgba(27, 28, 29, 0.12);
  box-shadow:
    0 20px 44px rgba(27, 28, 29, calc(0.06 + var(--focus, 0) * 0.14)),
    0 0 0 1px rgba(105, 195, 192, calc(var(--focus, 0) * 0.45));
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.ring-card-front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  opacity: calc(0.45 + var(--focus, 0) * 0.55);
  z-index: 3;
}

.ring-card:nth-child(odd) .ring-card-front::before {
  background: var(--red);
}

.ring-card.is-active .ring-card-front::before {
  height: 3.5px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 50%, var(--red) 50%, var(--red) 100%);
}

.ring-card-photo {
  position: relative;
  width: 100%;
  height: 164px;
  overflow: hidden;
  border-radius: 2px;
  background: #e9eceb;
}

.ring-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  filter:
    grayscale(calc((1 - var(--focus, 0)) * 0.55))
    saturate(calc(0.85 + var(--focus, 0) * 0.3))
    contrast(calc(0.96 + var(--focus, 0) * 0.08));
  transform: scale(calc(1.0 + var(--focus, 0) * 0.03));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ring-card:hover .ring-card-photo img {
  transform: scale(1.07);
}

.ring-card-num {
  position: absolute;
  top: 8px;
  left: 10px;
  padding: 2px 7px;
  background: rgba(27, 28, 29, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 2px;
}

.ring-card-meta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.ring-card-en {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--teal-deep);
}

.ring-card:nth-child(odd) .ring-card-en {
  color: var(--red);
}

.ring-card-ja {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ring-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(244, 248, 247, 0.92), rgba(253, 250, 249, 0.92));
  border: 1px solid rgba(105, 195, 192, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-card-back span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(27, 28, 29, 0.22);
}

.ring-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.ring-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ring-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(118, 125, 132, 0.3);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
}

.ring-dot.is-active {
  width: 24px;
  background: linear-gradient(90deg, var(--teal), var(--red));
}

.ring-caption {
  color: var(--gray);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ring-caption svg {
  width: 15px;
  height: 15px;
  stroke: var(--teal-deep);
  fill: none;
}

/* レスポンシブ対応 */
@media (max-width: 960px) {
  .ring-stage {
    height: 480px;
  }
  .ring-wave-bg {
    height: 740px;
  }
}

/* スマホ表示（スクエア型プロポーション＆見切れ防止） */
/* ========================================================
   スマホ表示（600px以下）：3Dオブジェクト全体を75%に縮小
======================================================== */
@media (max-width: 600px) {

  .ring-block {
    margin-bottom: 4.5rem; /* 全体縮小に合わせて下の余白を調整 */
  }

  /* 3Dステージ全体を75%に縮小 */
  .ring-stage {
    height: 360px; /* 縮小に合わせてステージの枠高さを調整 */
    perspective: 1100px;
    transform: scale(0.65); /* ← 全体を75%にする */
    transform-origin: center center; /* 中央を基準に縮小 */
    margin: -20px 0; /* 縮小によって生じる上下の不要な隙間を詰める */
  }

  .ring-wave-bg {
    height: 520px; /* 背景の波の高さもバランスよく調整 */
  }

  .ring-cylinder,
  .ring-card {
    width: 216px;
    height: 272px;
  }

  .ring-card-front {
    padding: 8px 8px 10px;
  }

  .ring-card-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 2px;
  }

  .ring-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
  }

  .ring-card-num {
    top: 6px;
    left: 8px;
    padding: 2px 6px;
    font-size: 0.65rem;
  }

  .ring-card-meta {
    margin-top: auto;
    padding-top: 8px;
  }

  .ring-card-en {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .ring-card-ja {
    font-size: 0.72rem;
  }
}


/* ========================================
   ABOUT CARD - EDITORIAL PIN STYLE
======================================== */
.about-section {
  margin-bottom: var(--section-space);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 270px 215px;
  column-gap: clamp(42px, 5vw, 72px);
  row-gap: clamp(52px, 6vw, 80px);
}

.about-card-main { grid-column: 1 / 3; grid-row: 1; }
.about-card-02   { grid-column: 3; grid-row: 1; }
.about-card-03   { grid-column: 1; grid-row: 2; }
.about-card-04   { grid-column: 2; grid-row: 2; }
.about-card-05   { grid-column: 3; grid-row: 2; }

.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: #fffdf8;
  border: 1px solid rgba(24, 89, 88, .22);
  border-radius: 4px;
  color: var(--teal-deep);
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, background .35s ease;
}

.about-card::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--teal-deep);
  box-shadow: 0 0 0 4px rgba(46, 170, 165, .08);
  z-index: 5;
}

.about-card-03::before,
.about-card-05::before {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(232, 79, 74, .07);
}

.about-number {
  display: block;
  margin-bottom: auto;
  font-family: "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1;
  color: rgba(24, 89, 88, .25);
}

.about-card-text {
  margin-top: auto;
}

.about-en {
  margin: 0 0 8px;
  font-size: .58rem;
  letter-spacing: .18em;
  color: rgba(24, 89, 88, .48);
}

.about-card h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 500;
  letter-spacing: .05em;
}

.about-arrow {
  position: absolute;
  right: 25px;
  bottom: 25px;
  font-size: 1rem;
  transition: transform .3s ease;
}

.about-card-main {
  padding: 0;
  overflow: hidden;
  border: none;
  background: #eee;
}

.about-card-main::before {
  top: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 0 0 4px rgba(255,255,255,.15);
}

.about-card:not(.about-card-main) img {
  position: absolute;
  top: 32px;
  right: 24px;
  width: min(58%, 170px);
  height: min(45%, 100px);
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 3px;
  box-shadow: 0 6px 16px rgba(24, 89, 88, 0.09);
}

.about-card:not(.about-card-main) .about-number,
.about-card:not(.about-card-main) .about-card-text {
  position: relative;
  z-index: 1;
}

.about-card-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

.about-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  color: white;
  background: linear-gradient(to top, rgba(8, 30, 29, .65), rgba(8, 30, 29, 0) 60%);
}

.about-card:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 89, 88, .45);
  background: #ffffff;
}

.about-card:hover .about-arrow {
  transform: translate(3px, -3px);
}

.about-card-main:hover img {
  transform: scale(1.018);
}

/* ========================================
   INFORMATION
======================================== */
.info-section {
  margin-bottom: var(--section-space);
  padding: 0;
}

.info-list {
  border-top: 1px solid rgba(105, 195, 192, 0.55);
}

.info-item {
  display: grid;
  grid-template-columns: 120px 1fr 26px;
  align-items: center;
  gap: 1.4rem;
  min-height: 116px;
  padding: 0 0.4rem;
  border-bottom: 1px solid rgba(105, 195, 192, 0.55);
  color: var(--teal-deep);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.28s ease, stroke 0.28s ease;
}

.info-text {
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.info-arrow {
  color: var(--teal);
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.25s ease, color 0.25s ease;
}

.info-item:hover {
  background: rgba(105, 195, 192, 0.05);
}

.info-item:hover .info-icon svg {
  transform: scale(1.06);
}

.info-item:hover .info-arrow {
  transform: translateX(5px);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 960px) {
  .header {
    grid-template-columns: minmax(180px, 230px) 1fr;
    padding: 0 1.5rem;
  }

  .nav {
    display: none;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 650px;
  }

  .ring-stage {
    height: 440px;
  }

  .ring-wave-bg {
    height: 720px;
  }
}

@media (max-width: 700px) {
  :root {
    --section-space: 6rem;
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 215px 165px 165px;
    column-gap: 18px;
    row-gap: 28px;
  }

  .about-card-main { grid-column: 1 / 3; grid-row: 1; min-height: 215px; }
  .about-card-02   { grid-column: 1; grid-row: 2; }
  .about-card-03   { grid-column: 2; grid-row: 2; }
  .about-card-04   { grid-column: 1; grid-row: 3; }
  .about-card-05   { grid-column: 2; grid-row: 3; }

  .about-card {
    padding: 18px;
  }

  .about-card:not(.about-card-main) img {
    top: 20px;
    right: 15px;
    width: 56%;
    height: min(40%, 64px);
  }

  .about-card-main {
    padding: 0;
  }

  .about-number {
    font-size: 1.55rem;
  }

  .about-card h3 {
    font-size: .95rem;
  }

  .about-arrow {
    right: 16px;
    bottom: 15px;
  }

  .info-heading {
    margin-bottom: 2.8rem;
  }

  .info-item {
    grid-template-columns: 72px 1fr 18px;
    gap: 1.85rem;
    min-height: 82px;
    padding: 0 0.1rem;
  }

  .info-icon svg {
    width: 38px;
    height: 38px;
    stroke-width: 1.8;
    margin-left: 200%;
  }

  .info-text {
    font-size: 0.98rem;
    letter-spacing: 0.05em;
  }

  .info-arrow {
    font-size: 1.45rem;
  }
}

@media (max-width: 600px) {
  .header {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 22px 0 12px;
  }

  .header-logo {
    flex-shrink: 0;
    width: 108px;
    height: 44px;
  }

  .nav {
    display: flex !important;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-right: 4px;
    min-width: 0;
  }

  .nav a {
    display: block;
    padding: 0;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .nav a:first-child { display: none; }
  .nav a::after { display: none; }

  .content-section {
    padding: 5.5rem 1.2rem 7rem;
  }

  .project-nav-block {
    margin-bottom: 2.4rem;
  }

  .project-heading {
    margin-bottom: 2.8rem;
  }

  .project-heading-en {
    font-size: 4rem;
  }

  .project-grid {
    gap: 0.8rem;
  }

  .project-card {
    border-width: 1.5px;
    border-radius: 50%;
    gap: 0.75rem;
  }

  .project-card span {
    font-size: 0.82rem;
  }

  .hero-main-ui {
    bottom: 1.15rem;
  }

  .hero-info-panel {
    width: calc(100vw - 32px);
    padding: 0.9rem 1rem 1rem;
  }

  .festival-date {
    font-size: 0.86rem;
    letter-spacing: 0.035em;
  }
}

/* ABOUT: all five cards use edge-to-edge photos */
.about-section .about-card {
  overflow: hidden;
  padding: 0;
  background: #eee;
  isolation: isolate;
}
.about-section .about-card > img,
.about-section .about-card:not(.about-card-main) > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  z-index: 0;
}
.about-section .about-card:not(.about-card-main)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,30,29,.72), transparent 75%);
  z-index: 0;
  pointer-events: none;
}
.about-section .about-card:not(.about-card-main) .about-number {
  position: absolute;
  top: 20px;
  left: 22px;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,.25);
  z-index: 2;
}
.about-section .about-card:not(.about-card-main) .about-card-text {
  position: absolute;
  left: 22px;
  right: 35px;
  bottom: 22px;
  color: #fff;
  z-index: 2;
}
.about-section .about-card:not(.about-card-main) .about-en { color: rgba(255,255,255,.85); }
.about-section .about-card:not(.about-card-main) .about-arrow { color: #fff; z-index: 2; }
.about-section .about-card-main > img { z-index: 0; }
.about-section .about-card-main .about-overlay { z-index: 2; }
@media (max-width: 700px) {
  .about-section .about-card:not(.about-card-main) .about-number { top: 13px; left: 14px; }
  .about-section .about-card:not(.about-card-main) .about-card-text { left: 14px; right: 22px; bottom: 15px; }
}

/* ABOUT 01: shift the image upward slightly to reveal more of the stalls. */
.about-section .about-card-main > img {
  object-position: center 65%;
}

/* ==================================================
   ABOUT: matching text, pins and image positions
   ================================================== */
.about-section .about-card,
.about-section .about-card .about-number,
.about-section .about-card .about-en,
.about-section .about-card h3 {
  font-family: var(--font);
}

.about-section .about-card::before,
.about-section .about-card-03::before,
.about-section .about-card-05::before {
  top: 10px;
  left: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 4px rgba(255, 255, 255, .15);
}

.about-section .about-card-main .about-overlay {
  display: block;
  padding: 0;
}
.about-section .about-card-main .about-number {
  position: absolute;
  top: 20px;
  left: 22px;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .25);
}
.about-section .about-card-main .about-overlay > div {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 35px;
}
.about-section .about-card-main .about-en {
  color: rgba(255, 255, 255, .85);
}
.about-section .about-card-main .about-arrow {
  color: #fff;
}

.about-section .about-card:not(.about-card-main) > img {
  object-position: center 95%;
}

.about-section .about-card-main > img {
  object-position: center 75%;
}

@media (max-width: 700px) {
  .about-section .about-card-main > img {
    object-position: 0% 75%;
  }
  .about-section .about-card-main .about-number {
    top: 13px;
    left: 14px;
  }
  .about-section .about-card-main .about-overlay > div {
    bottom: 15px;
    left: 14px;
    right: 22px;
  }
}

.about-section .about-card::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.15),
    0 0 0 7px rgba(255, 255, 255, 0.15);
}

@media (max-width: 700px) {
  html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    position: relative;
  }

  .content-section {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .ring-block {
    max-width: 100%;
    overflow-x: clip;
  }

  .ring-stage {
    max-width: 100%;
    touch-action: pan-y;
  }
}

@media (max-width: 700px) {
  .project-card {
    width: 85%;
    max-width: 170px;
    justify-self: center;
  }
}

/* ========================================================
   STATEMENT SECTION
======================================================== */
.statement-section {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 4rem auto 0;
  padding: 5.5rem 1.5rem 4rem;
  text-align: center;
}

.statement-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, 90vw);
  height: min(680px, 90vw);
  background: radial-gradient(
    circle,
    rgba(105, 195, 192, 0.09) 0%,
    rgba(231, 47, 68, 0.05) 45%,
    rgba(253, 253, 252, 0) 72%
  );
  pointer-events: none;
  z-index: 0;
}

.statement-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.statement-thread {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.8rem;
}

.statement-thread .thread-line {
  display: block;
  width: 1.5px;
  height: 36px;
}

.statement-thread .thread-line.teal {
  background: linear-gradient(to bottom, rgba(105, 195, 192, 0), var(--teal));
}

.statement-thread .thread-line.red {
  background: linear-gradient(to bottom, var(--red), rgba(231, 47, 68, 0));
}

.statement-thread .thread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-deep);
  box-shadow: 0 0 0 4px rgba(105, 195, 192, 0.18);
}

.statement-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--teal-deep);
  margin-bottom: 3.6rem;
}

.statement-body {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}

.statement-paragraph {
  color: var(--black);
  font-size: clamp(0.95rem, 1.5vw, 1.18rem);
  font-weight: 500;
  line-height: 2.35;
  letter-spacing: 0.14em;
  font-feature-settings: "palt";
}

.statement-turning {
  margin-top: 0.6rem;
  font-size: clamp(1.02rem, 1.65vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.16em;
}

.statement-finale {
  margin-top: 1.4rem;
  font-size: clamp(1.25rem, 2.5vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.8;
  color: var(--black);
}

.statement-finale span {
  position: relative;
  display: inline-block;
  padding: 0 0.2em 0.45rem;
}

.statement-fade {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 700px) {
  .statement-section {
    margin-top: 1.5rem;
    padding: 3.5rem 0.5rem 2.5rem;
  }

  .statement-label {
    margin-bottom: 2.6rem;
  }

  .statement-body {
    gap: 2.2rem;
  }

  .statement-paragraph {
    font-size: clamp(0.86rem, 3.6vw, 0.98rem);
    line-height: 2.2;
    letter-spacing: 0.09em;
  }

  .statement-turning {
    font-size: clamp(0.94rem, 3.9vw, 1.08rem);
    letter-spacing: 0.11em;
  }

  .statement-finale {
    margin-top: 0.8rem;
    font-size: clamp(1.12rem, 4.8vw, 1.4rem);
    letter-spacing: 0.13em;
  }
}

.project-heading-en {
  font-size: clamp(4rem, 7.5vw, 7.5rem);
}

@media (max-width: 700px) {
  .project-heading-en {
    font-size: clamp(2.8rem, 10vw, 3.4rem);
    letter-spacing: -0.04em;
  }
}

.project-heading-ja {
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
  margin-top: 1.5rem;
}

@media (max-width: 700px) {
  .project-heading-ja {
    font-size: 0.9rem;
    margin-top: 1.2rem;
    letter-spacing: 0.08em;
  }
}

/* ===== 下の模様 ===== */
.footer-decoration {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1743 / 360;
  background: url("images/top.svg") center bottom / 100% 100% no-repeat;
}

/* ===== フッター ===== */
.site-footer {
  flex: 0 0 auto;
  width: 100%;
  padding: 36px 20px 42px;
  background: var(--page-bg);
  text-align: center;
}

.footer-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== SNSアイコン ===== */
.footer-sns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-bottom: 26px;
}

.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--footer-icon);
  transition: transform .2s, opacity .2s;
}

.footer-sns a:hover {
  transform: translateY(-2px);
  opacity: .8;
}

.footer-sns a:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 4px;
}

.footer-sns i {
  font-size: 2.55rem;
  line-height: 1;
}

/* ===== みたぬき ===== */
.tanuki-image {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* ===== コピーライト ===== */
.footer-copy {
  margin: 0;
  color: var(--footer-muted);
  font-size: .95rem;
  letter-spacing: .04em;
}

/* ===== スマートフォン ===== */
@media (max-width: 600px) {
  .footer-decoration {
    aspect-ratio: 1743 / 420;
  }

  .site-footer {
    padding: 28px 16px 34px;
  }

  .footer-sns {
    gap: 22px;
    margin-bottom: 20px;
  }

  .footer-sns a {
    width: 46px;
    height: 46px;
  }

  .footer-sns i {
    font-size: 2.1rem;
  }

  .tanuki-image {
    width: 38px;
    height: 38px;
  }

  .footer-copy {
    font-size: .82rem;
    line-height: 1.7;
  }
}

@media (max-width: 360px) {
  .footer-sns {
    gap: 16px;
  }
}

/* ===================================
   トップページ フッター修正
=================================== */
:root {
  --page-bg: #f7f8f8;
  --footer-icon: #1f2022;
  --footer-muted: #6f7276;
}

.content-section {
  padding-bottom: 4rem;
}

body > .footer-decoration {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  aspect-ratio: 1743 / 360;
  margin: 0;
  background:
    #f7f8f8 url("images/sita.svg")
    center bottom / 100% 100% no-repeat;
}

body > .site-footer {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  padding: 36px 20px 42px;
  margin: 0;
  background: #f7f8f8;
  text-align: center;
}

.site-footer .footer-sns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin: 0 0 26px;
  padding: 0;
}

.site-footer .footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: #1f2022;
  text-decoration: none;
}

.site-footer .footer-sns i {
  font-size: 2.55rem;
  line-height: 1;
}

.site-footer .tanuki-image {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-footer .footer-copy {
  margin: 0;
  color: #6f7276;
  font-size: .95rem;
  letter-spacing: .04em;
}

@media (max-width: 600px) {
  body > .footer-decoration {
    aspect-ratio: 1743 / 420;
  }

  body > .site-footer {
    padding: 28px 16px 34px;
  }

  .site-footer .footer-sns {
    gap: 22px;
    margin-bottom: 20px;
  }

  .site-footer .footer-sns a {
    width: 46px;
    height: 46px;
  }

  .site-footer .footer-sns i {
    font-size: 2.1rem;
  }

  .site-footer .tanuki-image {
    width: 38px;
    height: 38px;
  }

  .site-footer .footer-copy {
    font-size: .82rem;
    line-height: 1.7;
  }
}

@media (max-width: 360px) {
  .site-footer .footer-sns {
    gap: 16px;
  }
}

body > .footer-decoration {
  background-color: #fdfdfc;
}

body > .site-footer {
  background-color: #fdfdfc;
}
/* ヘッダーから各セクションへのスクロール */
html {
  scroll-behavior: smooth;
}

/* ヘッダーに見出しが隠れないように調整 */
#projects,
#about,
#information {
  scroll-margin-top: 100px;
}