/* ========================================
   時代祭つなぐプロジェクト LP
   ======================================== */

:root {
  --color-purple: #746bad;
  --color-purple-dark: #6e4b9b;
  --color-kyoto: #88002c;
  --color-yomiuri: #4b0082;
  --color-kbs: #0071be;
  --color-gold: #d9c371;
  --color-gold-deco: #deb253;
  --color-text: #000000;
  --color-white: #ffffff;
  --color-bg: #fbf6fd;
  --content-width: 110.2rem;
  --font-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-mincho);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 2.6;
  letter-spacing: 0.1em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}

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

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

ul,
ol {
  list-style: none;
}

.u-nowrap {
  white-space: nowrap;
}

.sp-only {
  display: none;
}

.route__scroll-hint {
  display: none;
}

.route__scroll {
  display: none;
}

.route__wave {
  display: none;
}

.inner {
  width: min(100% - 4rem, var(--content-width));
  margin-inline: auto;
}

/* ----------------------------------------
   Section heading
---------------------------------------- */
.section-heading {
  text-align: center;
  margin-bottom: 6rem;
}

.section-heading__emblem {
  width: 18.4rem;
  height: auto;
  margin: 0 auto 6.2rem;
}

.section-heading__title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-purple);
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.section-heading__divider {
  width: 100%;
  max-width: 110.2rem;
  height: 1px;
  margin: 3.8rem auto 0;
  background-color: #6e4b9b;
  border: none;
  opacity: 1;
}

/* ----------------------------------------
   Hero / MV
   Figma: canvas 1920 — logo circle centered (x:755, 410px),
   kasumi wave to the left (x:221)
---------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  background-color: #fbf7fd;
  overflow: hidden;
}

.hero__bg {
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

.hero__bg-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 192rem;
  margin: -13.5rem auto 0;
  min-height: 41rem;
  padding-bottom: 2.4rem;
}

.hero__logo-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 41rem;
  height: 41rem;
  border-radius: 50%;
  box-shadow: 0 0.2rem 1rem rgba(80, 60, 100, 0.14);
}

.hero__circle {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #ffffff;
}

.hero__logo {
  position: absolute;
  top: 3.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 33.9rem;
  height: auto;
}

/* wave x:221 on 1920 → offset from center: 221 - 960 = -739px */
.hero__wave {
  position: absolute;
  left: calc(50% - 73.9rem);
  top: 25.7rem;
  width: 30.3rem;
  height: auto;
  opacity: 0.8;
  mix-blend-mode: multiply;
}

/* ----------------------------------------
   Intro
---------------------------------------- */
.intro {
  padding: 6rem 0 6rem;
  text-align: center;
  background-color: #fbf7fd;
}

.intro__title {
  font-size: 4.6rem;
  font-weight: 800;
  color: var(--color-purple);
  letter-spacing: 0.06em;
  line-height: 1.45;
  margin-bottom: 5.5rem;
}

.intro__text {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 2.6;
  letter-spacing: 0.1em;
  margin-bottom: 5.5rem;
}

.intro__logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  width: min(100%, 111.7rem);
  margin-inline: auto;
}

.intro__logos img {
  width: auto;
  max-width: 34.8rem;
  height: 7.6rem;
  object-fit: contain;
  flex: 1 1 0;
  min-width: 0;
}

.intro__logos img:first-child {
  height: 9.2rem;
  max-width: 34.8rem;
}

.intro__logos img:nth-child(2) {
  max-width: 33.3rem;
}

.intro__logos img:last-child {
  height: 9.6rem;
  max-width: 35.1rem;
}

/* ----------------------------------------
   About (circle text)
---------------------------------------- */
.about {
  position: relative;
  padding: 4rem 0 17rem;
  overflow: hidden;
  background-color: #fbf7fd;
}

.about__inner {
  position: relative;
  width: min(100% - 4rem, 81.1rem);
  margin-inline: auto;
}

/* Figma: wave starts ~104px right of circle edge (page x≈1470) */
.about__wave {
  position: absolute;
  top: 4rem;
  /* Figma: x≈1470 on 1920 → 画面中央から 51rem 右 */
  left: calc(50% + 51rem);
  width: 30.3rem;
  height: auto;
  z-index: 1;
  mix-blend-mode: multiply;
}

.about__circle-wrap {
  position: relative;
  width: 100%;
  max-width: 81.1rem;
  margin: 5.3rem auto 0;
}

.about__circle {
  width: 100%;
  height: auto;
  opacity: 0.8;
}

.about__texts {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 8rem 10rem;
  text-align: center;
}

.about__texts--sp {
  display: none;
}

.about__texts p {
  font-size: 2rem;
  font-weight: 600;
  line-height: 2.6;
  letter-spacing: 0.1em;
}

/* ----------------------------------------
   時代祭とは
---------------------------------------- */
.jidai {
  padding: 17rem 0 8rem;
  background-color: #f5eff9;
}

.jidai__body {
  display: grid;
  grid-template-columns: 52.6rem 1fr;
  gap: 2.6rem 2.8rem;
  align-items: start;
}

.jidai__photo img,
.jidai__photo-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.jidai__text {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2.6;
  letter-spacing: 0.1em;
  margin-top: -1rem;
}

/* ----------------------------------------
   由緒
---------------------------------------- */
.yusho {
  padding: 6rem 0;
  background-color: #f5eff9;
}

.yusho__text {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2.6;
  letter-spacing: 0.1em;
  text-align: left;
  margin-bottom: 8.5rem;
  margin-top: -1rem;
}

.yusho__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.yusho__photos img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ----------------------------------------
   みどころ
---------------------------------------- */
.midokoro {
  padding: 4rem 0 8rem;
  background-color: #f5eff9;
}

.midokoro__lead {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2.6;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 11rem;
  margin-top: -1rem;
}

.midokoro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.midokoro__grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.midokoro__grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 0.4rem;
}

.midokoro__grid span {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: right;
}

/* ----------------------------------------
   CTA
---------------------------------------- */
.cta {
  padding: 4rem 0 18rem;
  background: #f5eff9;
}

.cta__box {
  position: relative;
  min-height: 64.3rem;
}

.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 6rem;
  min-height: 64.3rem;
}

.cta__emblem {
  width: 18.4rem;
  height: auto;
  margin-bottom: 3.5rem;
}

.cta__title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-purple);
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.cta__text {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2.6;
  letter-spacing: 0.1em;
  margin-bottom: 6.5rem;
  max-width: 80rem;
}

/* ----------------------------------------
   Buttons
---------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 65.9rem;
  height: 8.2rem;
  padding: 0 5.5rem;
  background-color: var(--color-purple);
  color: var(--color-white);
  font-family: var(--font-mincho);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn img {
  position: absolute;
  right: 3.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.7rem;
  height: auto;
  flex-shrink: 0;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-0.2rem);
}

/* ----------------------------------------
   Schedule
---------------------------------------- */
.schedule {
  position: relative;
  padding: 18rem 0 19rem;
  background: #fdfbff;
  overflow: hidden;
}

.schedule__wave-l {
  position: absolute;
  top: 9rem;
  /* Figma: x=70 on 1920 → 画面中央から 89rem 左 */
  left: calc(50% - 89rem);
  width: 30.3rem;
  height: auto;
  opacity: 0.8;
  mix-blend-mode: multiply;
}

.schedule__wave-r {
  position: absolute;
  /* Figma: x=1473 on 1920 → 画面中央から 51.3rem 右 */
  left: calc(50% + 51.3rem);
  right: auto;
  bottom: 10rem;
  width: 27.8rem;
  height: auto;
  mix-blend-mode: multiply;
}

.schedule .section-heading {
  margin-bottom: 9rem;
}

.schedule__list {
  width: 100%;
}

.schedule__item {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2rem 7rem;
  padding: 4rem 0;
  border-top: 1px solid #6e4b9b;
}

.schedule__item:last-child {
  border-bottom: 1px solid #6e4b9b;
}

.schedule__item dt {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-purple);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.schedule__event {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-purple);
  margin-bottom: 0;
  line-height: 2.6;
  letter-spacing: 0.1em;
}

.schedule__event + .schedule__event {
  margin-top: 2.4rem;
}

.schedule__time {
  font-weight: 700;
}

.schedule__desc {
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 2;
  letter-spacing: 0.1em;
  padding-left: 0;
}

.schedule__timeline {
  display: flex;
  flex-direction: column;
}

.schedule__slot:not(:last-child) {
  position: relative;
  padding-bottom: 2.2rem;
  margin-bottom: 0.8rem;
}

.schedule__slot:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.55em;
  bottom: -7px;
  width: 2px;
  height: 2.2rem;
  background-color: #746bad;
}

/* ----------------------------------------
   Route
---------------------------------------- */
.route {
  position: relative;
  padding: 17rem 0 16rem;
  text-align: center;
  overflow: hidden;
  background: #f9f5fb;
}

.route__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

.route__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route .inner {
  position: relative;
  z-index: 1;
}

.route__title {
  margin-bottom: 10rem;
}

.route__map-wrap {
  width: 100%;
  max-width: 110rem;
  margin-inline: auto;
}

.route__map {
  width: 100%;
}

.route__map img {
  width: 100%;
  height: auto;
}

/* ----------------------------------------
   News
---------------------------------------- */
.news {
  position: relative;
  padding: 15rem 0 10rem;
  background: #fbf8fe;
  overflow: hidden;
}

.news__deco {
  position: absolute;
  top: 10rem;
  /* Figma: x=55 on 1920 → 画面中央から 90.5rem 左 */
  left: calc(50% - 90.5rem);
  width: 36.6rem;
  height: auto;
  opacity: 0.8;
  mix-blend-mode: multiply;
}

.news__title {
  text-align: center;
  margin-bottom: 10rem;
}

.news__list {
  border-top: 1px solid #000;
}

.news__item {
  display: grid;
  grid-template-columns: 22rem 1fr;
  gap: 2rem 8rem;
  align-items: center;
  padding: 4.2rem 1rem;
  border-bottom: 1px solid #000;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.news__item time {
  white-space: nowrap;
}

.news__item--link a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-right: 2.4rem;
  transition: opacity 0.25s ease;
}

.news__item--link a span {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.news__item--link a:hover {
  opacity: 0.7;
}

.news__item--link img {
  width: 2.7rem;
  height: auto;
  flex-shrink: 0;
  margin-top: 0;
}

/* ----------------------------------------
   Media Links
---------------------------------------- */
.links {
  padding: 4rem 0 8rem;
  background: #fbf7fe;
}

.links .inner {
  display: flex;
  flex-direction: column;
  gap: 5.8rem;
}

.links__banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20.2rem;
  padding: 3.5rem 4rem 3.5rem 6rem;
  color: var(--color-white);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.links__banner:hover {
  opacity: 0.4;
  transform: translateY(-0.2rem);
}

.links__banner--kyoto {
  background-color: var(--color-kyoto);
  opacity: 0.4;
}

.links__banner--yomiuri {
  background-color: var(--color-yomiuri);
  opacity: 0.4;
}

.links__banner--kbs {
  background-color: var(--color-kbs);
}

.links__icon {
  position: relative;
  z-index: 1;
  width: 12.8rem;
  height: auto;
  flex-shrink: 0;
}

.links__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 28rem);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 0.08em;
}

.links__arrow {
  position: relative;
  z-index: 1;
  width: 2.7rem;
  height: auto;
  flex-shrink: 0;
}

/* ----------------------------------------
   Sponsors
---------------------------------------- */
.sponsors {
  padding: 4rem 0 6rem;
  position: relative;
  background: #fbf6fd;
  overflow: hidden;
}

.sponsors__head {
  position: relative;
  text-align: center;
  margin-bottom: 6rem;
  width: min(100% - 4rem, 144.3rem);
  margin-inline: auto;
}

.sponsors__wave {
  position: absolute;
  top: 2rem;
  /* Figma: x≈1549 on 1920 → 画面中央から 58.9rem 右 */
  left: calc(50% + 58.9rem);
  right: auto;
  width: 30.3rem;
  height: auto;
  mix-blend-mode: multiply;
}

.sponsors__list {
  display: flex;
  justify-content: center;
  max-width: 110.2rem;
}

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

.sponsors__item img {
  width: 23rem;
  height: auto;
}

/* ----------------------------------------
   Contact
---------------------------------------- */
.contact {
  padding: 4rem 0 8rem;
  background: #fbf6fd;
}

.contact__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20.2rem;
  padding: 4rem 6rem;
  background-color: var(--color-purple);
  color: var(--color-white);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact__btn:hover {
  opacity: 0.9;
  transform: translateY(-0.2rem);
}

.contact__emblem {
  position: relative;
  z-index: 1;
  width: 12.9rem;
  height: auto;
  flex-shrink: 0;
}

.contact__btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 28rem);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
}

.contact__arrow {
  position: relative;
  z-index: 1;
  width: 2.7rem;
  height: auto;
  flex-shrink: 0;
}

/* ----------------------------------------
   Footer
---------------------------------------- */
.footer {
  width: 100%;
  background-color: var(--color-purple);
  padding: 2rem 2rem;
  text-align: center;
}

.footer__copy {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.04em;
}

/* ----------------------------------------
   Page Top
---------------------------------------- */
.pagetop {
  position: fixed;
  right: 3.2rem;
  bottom: 3.2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 6.4rem;
  height: 6.4rem;
  background-color: var(--color-purple);
  color: var(--color-white);
  border: 1px solid rgba(217, 195, 113, 0.55);
  box-shadow: 0 0.2rem 1.2rem rgba(80, 60, 100, 0.18);
  font-family: var(--font-mincho);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.2rem);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background-color 0.25s ease;
}

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

.pagetop:hover {
  background-color: var(--color-purple-dark);
}

.pagetop__arrow {
  display: block;
  width: 1rem;
  height: 1rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(-45deg);
  margin-bottom: -0.2rem;
}

.pagetop__label {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

/* ----------------------------------------
   Loader
---------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fbf7fd;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.loader__emblem {
  width: 14rem;
  height: auto;
  margin-bottom: 2.4rem;
  animation: loader-fade 1.4s ease infinite alternate;
}

.loader__text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-purple);
  letter-spacing: 0.18em;
  line-height: 1.6;
  margin-bottom: 3.2rem;
}

.loader__bar {
  position: relative;
  width: 18rem;
  height: 1px;
  background-color: rgba(110, 75, 155, 0.2);
  overflow: hidden;
}

.loader__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gold) 30%,
    var(--color-purple-dark) 70%,
    transparent
  );
  animation: loader-bar 1.2s ease-in-out infinite;
}

@keyframes loader-fade {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@keyframes loader-bar {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

body.is-loading {
  overflow: hidden;
}

/* ----------------------------------------
   Motion
---------------------------------------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(2.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up-center {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(2.4rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero__logo-wrap {
  animation: fade-up-center 1s ease 0.2s both;
}

.hero__wave {
  animation: fade-up 1.1s ease 0.45s both;
}

.intro__title {
  animation: fade-up 0.9s ease 0.15s both;
}

/* ----------------------------------------
   Responsive
---------------------------------------- */
@media (max-width: 1200px) {
  .inner {
    width: min(100% - 4.8rem, var(--content-width));
  }

  .jidai__body {
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
  }

  .about__texts {
    padding: 6rem 5rem;
  }

  .about__texts p {
    font-size: 1.7rem;
  }

  .btn {
    min-width: min(100%, 65.9rem);
  }

  .schedule__item {
    grid-template-columns: 12rem 1fr;
    gap: 2rem 4rem;
  }

  .links__banner {
    padding: 3rem 3rem 3rem 4rem;
  }

  .links__label {
    font-size: 2.4rem;
    max-width: calc(100% - 20rem);
  }

  .contact__btn span {
    font-size: 3rem;
  }

  .sponsors__list {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .midokoro__grid {
    gap: 3.5rem 2.4rem;
  }

  .jidai {
    padding: 10rem 0;
  }

  .cta {
    padding: 4rem 0 10rem;
  }

  .schedule {
    padding: 10rem 0 12rem;
  }

  .route {
    padding: 10rem 0 10rem;
  }

  .news {
    padding: 10rem 0 8rem;
  }

  .about {
    padding: 4rem 0 10rem;
    overflow: visible;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 56.25%; /* 1rem ≈ 9px */
  }

  .inner {
    width: min(100% - 3.2rem, var(--content-width));
  }

  /* Hero — SP: KV画像切替は picture 側 */

  .hero__inner {
    position: relative;
    margin-top: -8.65rem;
    min-height: 0;
    height: auto;
    padding-bottom: 2.4rem;
  }

  .hero__logo-wrap {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
    width: 17.3rem;
    height: 17.3rem;
    animation: fade-up 1s ease 0.2s both;
  }

  .hero__circle {
    width: 100%;
    height: 100%;
  }

  .hero__logo {
    width: 82%;
    top: 8%;
  }

  .hero__wave {
    display: block;
    position: absolute;
    left: calc(50% - 8.65rem - 12.5rem);
    top: 10.2rem;
    width: 13.3rem;
    height: auto;
    opacity: 0.8;
    mix-blend-mode: multiply;
    z-index: 1;
    pointer-events: none;
  }

  .sp-only {
    display: inline;
  }

  br.sp-only {
    display: inline;
  }

  /* Intro */
  .intro {
    padding: 3.2rem 0 2rem;
  }

  .intro__title {
    font-size: 2.67rem;
    letter-spacing: 0.1em;
    margin-bottom: 2.8rem;
    line-height: 1.4;
  }

  .intro__text {
    font-size: 1.9rem;
    line-height: 2;
    letter-spacing: 0.2em;
    margin-bottom: 4rem;
  }

  .intro__logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    column-gap: 2rem;
    row-gap: 1.8rem;
    width: 100%;
    max-width: 39.3rem;
    margin-inline: auto;
  }

  .intro__logos img,
  .intro__logos img:first-child,
  .intro__logos img:nth-child(2),
  .intro__logos img:last-child {
    width: 100%;
    height: auto;
    max-width: 18.4rem;
    flex: none;
    min-width: 0;
    object-fit: contain;
  }

  .intro__logos img:first-child {
    max-width: 18.4rem;
  }

  .intro__logos img:nth-child(2) {
    max-width: 17.6rem;
  }

  .intro__logos img:last-child {
    grid-column: 1 / -1;
    max-width: 18.6rem;
  }

  /* About — SP: テキスト高さに合わせて領域を伸ばし、円は背景として追従 */
  .about {
    padding: 3.2rem 0 7rem;
  }

  .sponsors__wave {
    display: none;
  }

  .schedule__wave-l {
    display: block;
    top: 3.2rem;
    left: max(0.8rem, calc(50% - 18rem));
    width: 10rem;
    opacity: 0.8;
    mix-blend-mode: multiply;
    z-index: 1;
  }

  .schedule__wave-r {
    display: block;
    top: auto;
    bottom: 2.4rem;
    left: auto;
    right: 0.8rem;
    width: 10rem;
    opacity: 0.8;
    mix-blend-mode: multiply;
    z-index: 1;
  }

  .news__deco {
    display: block;
    top: 2.4rem;
    left: 0;
    width: 12rem;
    opacity: 0.8;
    mix-blend-mode: multiply;
    z-index: 1;
  }

  .about__inner {
    width: 90%;
  }

  .about__circle-wrap {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    margin: 0 auto;
    max-width: none;
  }

  .about__circle {
    display: block;
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
    align-self: stretch;
    justify-self: stretch;
    pointer-events: none;
  }

  .about__texts--pc {
    display: none;
  }

  .about__texts--sp {
    display: flex;
    grid-area: 1 / 1;
    position: relative;
    inset: auto;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 3.2rem;
    padding: 0;
    text-align: left;
  }

  .about__texts--sp p {
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 2;
    letter-spacing: 0.12em;
    text-align: left;
  }

  .about__wave {
    display: block;
    top: auto;
    bottom: -1.2rem;
    left: calc(50% + 8rem);
    width: 12rem;
    z-index: 1;
  }

  /* Headings */
  .section-heading {
    margin-bottom: 3.2rem;
  }

  .section-heading__title {
    font-size: 2.8rem;
    letter-spacing: 0.06em;
  }

  .section-heading__emblem {
    width: 11rem;
    margin-bottom: 2.4rem;
  }

  .section-heading__divider {
    margin-top: 2.4rem;
  }

  /* 時代祭とは */
  .jidai {
    padding: 6rem 0 2rem;
  }

  .jidai__body {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .jidai__photo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .jidai__text {
    font-size: 1.65rem;
    line-height: 2.2;
    letter-spacing: 0.2em;
  }

  /* 由緒 */
  .yusho {
    padding: 4rem 0 3rem;
  }

  .yusho__text {
    font-size: 1.65rem;
    line-height: 2.2;
    letter-spacing: 0.2em;
    text-align: left;
    margin-bottom: 3.2rem;
  }

  .yusho__photos {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  /* みどころ — SPは2列 */
  .midokoro {
    padding: 4rem 0 4rem;
  }

  .midokoro__lead {
    font-size: 1.7rem;
    line-height: 2.2;
    letter-spacing: 0.2em;
    text-align: left;
    margin-bottom: 4rem;
  }

  .midokoro__lead br {
    display: none;
  }

  .midokoro__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem 1.2rem;
  }

  .midokoro__grid span {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
  }

  /* CTA */
  .cta {
    padding: 2rem 0 6rem;
  }

  .cta__box {
    min-height: auto;
  }

  .cta__content {
    position: relative;
    padding: 4rem 2.4rem;
    min-height: auto;
    background:
      linear-gradient(var(--color-white), var(--color-white)) padding-box,
      linear-gradient(
        180deg,
        #9b7a35 0%,
        #eadc7d 19%,
        #bc9649 40%,
        #fdf1a9 65%,
        #866123 100%
      ) border-box;
    border: 1rem solid transparent;
    box-shadow: none;
  }

  .cta__bg {
    display: none;
  }

  .cta__title {
    font-size: 2.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.6rem;
    line-height: 1.4;
  }

  .cta__text {
    font-size: 1.7rem;
    line-height: 2.2;
    letter-spacing: 0.2em;
    margin-bottom: 3.2rem;
    text-align: left;
  }

  .cta__text br {
    display: none;
  }

  .cta__emblem {
    width: 8.1rem;
    margin-bottom: 2rem;
  }

  .btn {
    display: flex;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 8rem;
    font-size: 2.2rem;
    letter-spacing: 0.15em;
    line-height: 1.6;
    padding: 1.2rem 4.8rem 1.2rem 1.6rem;
    text-align: center;
  }

  .btn span {
    display: block;
  }

  .btn img {
    right: 1.6rem;
    width: 1.6rem;
  }

  /* Schedule */
  .schedule {
    padding: 6rem 0 8rem;
  }

  .schedule .section-heading {
    margin-bottom: 4rem;
  }

  .schedule__wave-l {
    top: 4.8rem;
    left: 1.2rem;
    width: 11rem;
  }

  .schedule__wave-r {
    bottom: 1.6rem;
    right: 1.2rem;
    width: 11rem;
  }

  .schedule__item {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 2.8rem 0;
  }

  .schedule__item dt {
    font-size: 2.2rem;
    text-align: center;
    white-space: normal;
  }

  .schedule__event {
    font-size: 1.55rem;
    line-height: 1.8;
  }

  .schedule__desc {
    font-size: 1.7rem;
    line-height: 2;
    letter-spacing: 0.06em;
    padding-left: 0;
  }

  .schedule__slot:not(:last-child) {
    padding-bottom: 1.8rem;
    margin-bottom: 0.6rem;
  }

  .schedule__slot:not(:last-child)::after {
    height: 1.8rem;
  }

  /* Route — SP: タイトル＋ヒント分を除き、画面高さぎりぎりまで地図を表示 */
  .route {
    padding: 4rem 0 8rem;
  }

  .route__title {
    margin-bottom: 2rem;
  }

  .route__map-wrap {
    max-width: none;
    margin-inline: 0;
  }

  .route__map {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-width: none;
    background-color: #ffffff;
  }

  .route__map img {
    display: block;
    width: auto;
    max-width: none;
    min-width: 0;
    /* 余白・見出し・ヒント・矢印分を差し引き、端末の画面高さに追従 */
    height: calc(100vh - 24rem);
    height: calc(100dvh - 24rem);
  }

  .route__scroll {
    display: block;
    margin-top: 1.6rem;
    text-align: center;
  }

  .route__scroll-hint {
    display: block;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.6;
  }

  .route__scroll-arrow {
    display: block;
    width: min(100%, 35.1rem);
    height: auto;
    margin: 1.2rem auto 0;
  }

  .route__wave {
    display: none;
  }

  /* News */
  .news {
    padding: 5rem 0 6rem;
  }

  .news__deco {
    top: 1.6rem;
    left: 0;
    width: 14rem;
  }

  .news__title {
    margin-bottom: 4rem;
  }

  .news__item {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2.8rem 0.4rem;
  }

  .news__item time {
    font-size: 1.4rem;
    white-space: normal;
  }

  .news__item,
  .news__item--link a span {
    font-size: 1.7rem;
    line-height: 1.7;
  }

  .news__item--link a {
    padding-right: 0.4rem;
    gap: 1.2rem;
  }

  .news__item--link img {
    width: 2.2rem;
  }

  /* Media links */
  .links {
    padding: 3.2rem 0 3rem;
  }

  .links .inner {
    gap: 2rem;
  }

  .links__banner {
    min-height: 11rem;
    padding: 2rem 1.6rem 2rem 2rem;
  }

  .links__icon {
    width: 6.4rem;
  }

  .links__label {
    font-size: 1.6rem;
    line-height: 1.45;
    letter-spacing: 0.06em;
    max-width: calc(100% - 11rem);
  }

  .links__arrow {
    width: 2.2rem;
  }

  /* Sponsors */
  .sponsors {
    padding: 4rem 0 1rem;
  }

  .sponsors__head {
    margin-bottom: 3.2rem;
    width: min(100% - 3.2rem, 144.3rem);
  }

  .sponsors__head .section-heading__title {
    font-size: 2.4rem;
  }

  .sponsors__list {
    max-width: 100%;
  }

  .sponsors__item img {
    width: 18rem;
  }

  /* Contact */
  .contact {
    padding: 2.4rem 0 6rem;
  }

  .contact__btn {
    min-height: 10rem;
    padding: 2rem 1.6rem 2rem 2rem;
  }

  .contact__emblem {
    width: 6.4rem;
  }

  .contact__btn span {
    font-size: 1.8rem;
    letter-spacing: 0.06em;
    max-width: calc(100% - 11rem);
  }

  .contact__arrow {
    width: 2.2rem;
  }

  /* Footer / UI */
  .footer {
    padding: 1.6rem 1.6rem;
  }

  .footer__copy {
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    line-height: 1.6;
  }

  .pagetop {
    right: max(1.2rem, env(safe-area-inset-right));
    bottom: max(1.2rem, env(safe-area-inset-bottom));
    width: 5.2rem;
    height: 5.2rem;
  }

  .pagetop__label {
    font-size: 1rem;
  }

  .loader__emblem {
    width: 10rem;
  }

  .loader__text {
    font-size: 1.35rem;
    letter-spacing: 0.12em;
  }

  .loader__bar {
    width: 14rem;
  }
}

@media (max-width: 480px) {
  /* マーク・イントロは 768 の実寸指定を維持（52% 縮小で崩れないよう上書き） */
  .hero__logo-wrap {
    width: min(40vw, 17.3rem);
    height: min(40vw, 17.3rem);
  }

  .hero__wave {
    left: calc(50% - 25.65rem);
    top: auto;
    width: min(30.8vw, 13.3rem);
    bottom: 0;
  }

  .intro__title {
    font-size: 2.67rem;
  }

  .intro__text {
    font-size: 3.8vw;
  }

  .section-heading__title {
    font-size: 2.6rem;
  }

  .cta__title {
    font-size: 2rem;
  }

  .btn {
    min-height: 7.2rem;
    font-size: 2rem;
    padding-right: 4.4rem;
  }

  .links__label,
  .contact__btn span {
    font-size: 1.5rem;
  }

  .links__icon,
  .contact__emblem {
    width: 5.6rem;
  }

  .midokoro__grid span {
    font-size: 1.7rem;
  }
}

@media (max-width: 360px) {
  .intro__logos img:last-child {
    max-width: 16rem;
  }
}

