:root {
  --c-red: #E50012;
  --c-blue: #00A0E9;
  --c-green: #8FC31F;
  --c-orange: #F08300;
  --c-yellow: #FFF100;
  --c-cream: #FCF6E8;
  --c-text: #231815;
  --c-white: #FFFFFF;
  /* TODO: H_hero確定後、赤い中部会場バンド開始Y(px)に差し替える。 */
  --h-hero: 1300px;
  /* TODO: COOKING背景の正式な十字線色が確定したら差し替える。 */
  --cl-line: #FFFFFF;
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  color: var(--c-text);
  background: var(--c-white);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-inner {
  width: calc(100% - 80px);
  max-width: 640px;
  margin: 0 auto;
}

.section-inner--wide {
  width: 100%;
  max-width: 1080px;
}

.site-header {
  display: none;
}

.hero {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: var(--c-white);
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  /* TODO: H_hero確定後、1300を実際のpx値に差し替える（--h-heroと合わせること） */
  aspect-ratio: 1080 / 1300;
  min-height: 360px;
  overflow: visible;
}

.hero-item {
  position: absolute;
  left: var(--x);
  top: var(--top, 0);
  width: var(--w);
  transform-origin: center;
}

.hero-seal {
  z-index: 1;
  opacity: 0;
  transform: translateY(-120vh) rotate(-5deg);
  will-change: transform, opacity;
}

img.hero-item.hero-seal[src$="seal_yamamomo.svg"] {
  z-index: -1;
}

img.hero-item.hero-seal[src$="seal_tomato.svg"] {
  z-index: -2;
}

img.hero-item.hero-seal[src$="seal_icecream.svg"] {
  z-index: 0;
}

img.hero-item.hero-seal[src$="seal_kidz.svg"] {
  z-index: 2;
}

img.hero-item.hero-seal[src$="seal_sushi.svg"],
img.hero-item.hero-seal[src$="seal_tachi.svg"],
img.hero-item.hero-seal[src$="seal_tataki.svg"],
img.hero-item.hero-seal[src$="seal_dog.svg"] {
  z-index: 2;
}

.hero-fall-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.hero-seal--b {
  position: absolute;
  top: 0;
  left: var(--x);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-140vh) rotate(-5deg) scale(var(--b-scale, 1));
}

.hero-main {
  z-index: 3;
}

.hero-title {
  z-index: 2;
}

/* TODO: hero_ballon_1/2.svgはviewBoxに余白あり。再書き出し待ちのため現状SVGのまま配置。 */
.hero-balloon {
  z-index: 4;
  transform-origin: center;
  will-change: transform;
  animation: hero-balloon-swap 1s steps(1, end) infinite;
}

.hero-balloon--right {
  animation-delay: .5s;
}

@keyframes hero-balloon-swap {
  0%,
  49.999% {
    transform: rotate(0deg);
  }

  50%,
  100% {
    transform: rotate(5deg);
  }
}

.link-mark {
  position: absolute;
  left: var(--x);
  top: var(--top, 0);
  z-index: 0;
  width: var(--w);
  height: auto;
  opacity: .95;
  transform-origin: center;
  will-change: transform;
  animation: link-mark-swap 1s steps(1, end) infinite;
}

.hero-stage > .link-mark:nth-child(even) {
  animation-delay: .5s;
}

@keyframes link-mark-swap {
  0%,
  49.999% {
    transform: rotate(0deg);
  }

  50%,
  100% {
    transform: rotate(5deg);
  }
}

.hero.is-falling .hero-seal:not(.hero-seal--b) {
  animation: hero-fall .82s cubic-bezier(.2, .8, .2, 1.06) both;
  animation-delay: var(--fall-delay, 0s);
}

@keyframes hero-fall {
  0% {
    opacity: 0;
    transform: translateY(-120vh) rotate(-10deg);
  }
  84% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  92% {
    opacity: 1;
    transform: translateY(.45%) rotate(.18deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

.hero-is-falling .hero-fall-layer .hero-seal--b {
  animation: hero-fall-viewport .95s linear both;
  animation-delay: var(--fall-delay-b, 0s);
}

@keyframes hero-fall-viewport {
  0% {
    opacity: 0;
    transform: translateY(-140vh) rotate(-10deg) scale(var(--b-scale, 1));
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
    transform: translateY(118vh) rotate(6deg) scale(var(--b-scale, 1));
  }
  100% {
    opacity: 0;
    transform: translateY(160vh) rotate(10deg) scale(var(--b-scale, 1));
  }
}

.venues {
  position: relative;
  z-index: 1;
  margin-top: -20px;
  overflow: hidden;
}

.venue-band {
  position: relative;
  color: var(--c-white);
  margin-top: -1px;
  padding: 0 0 10px;
}

.venue-band--red {
  background: var(--c-red);
}

.venue-band--blue {
  background: var(--c-blue);
}

.venue-band--green {
  background: var(--c-green);
  padding-bottom: 60px;
}

.venue-band__inner {
  width: 100%;
  padding: 0 50px 8px;
  margin: 0 auto;
}

.venue-band--red .venue-band__inner {
  padding-top: 2px;
}

.venue-band__image {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  margin: 0;
}

.venue-band__image--wide {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  margin: 0;
}

.comingsoon {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding: 0 0 clamp(32px, 6vw, 64px);
  background: transparent;
}

.comingsoon__art {
  position: relative;
  width: 100%;            /* 画面全幅。max-width制限を撤廃して左右端まで繋げる */
  display: grid;
  place-items: center;
  overflow: hidden;
}

.comingsoon__bg,
.comingsoon__title {
  grid-area: 1 / 1;
}

.comingsoon__bg {
  width: 100%;
  height: 22vw;           /* PC：帯の高さ。シフト量51.587vwと比例関係を保つこと */
  background: url("../../images/comingsoon_bg.svg") 0 50% / auto 100% repeat-x;
  animation: cs-marquee-pc 24s linear infinite;
  will-change: background-position;
}

.comingsoon__title {
  position: relative;
  z-index: 1;
  width: min(92%, 918px);
  height: auto;
  transform: translateY(-2px);
}

/* SP：帯が薄く見えるので高さを大きく。シフト量も比例して切替（継ぎ目維持） */
@media (max-width: 767px) {
  .comingsoon__bg {
    height: 42vw;
    animation-name: cs-marquee-sp;
  }
}

/* 1タイル幅 = (795.98/339.42) × 高さ。PC=22vw→51.587vw / SP=42vw→98.485vw。ちょうど1枚分ずらしてシームレス */
@keyframes cs-marquee-pc {
  from { background-position-x: 0; }
  to   { background-position-x: -51.587vw; }
}

@keyframes cs-marquee-sp {
  from { background-position-x: 0; }
  to   { background-position-x: -98.485vw; }
}

.cl {
  position: relative;
  z-index: 1;
  margin-top: -64px;
  padding: clamp(62px, 11vw, 126px) 0;
}

/* PC：Cooking Linkのオレンジ地をCOMING SOON波帯の下端まで食い込ませ、白い隙間を消す */
@media (min-width: 768px) {
  .comingsoon {
    padding-bottom: 0;
  }

  .cl {
    margin-top: -48px;
    padding-bottom: clamp(31px, 5.5vw, 63px);
  }

  .cl.cl-bg {
    background-size: 70px 70px;
    background-position: -35px -35px;
  }
}

@media (max-width: 767px) {
  .cl {
    padding-top: clamp(76px, 13vw, 140px);
  }
}

.cl-bg {
  background-color: var(--c-orange);
  background-image:
    linear-gradient(to right, var(--cl-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--cl-line) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: -25px -25px;
}

.cl-card {
  position: relative;
  padding: clamp(0px, 9vw, 82px) clamp(24px, 6vw, 54px) clamp(30px, 7vw, 56px);
  background: var(--c-white);
}

.cl-card__balloon {
  position: absolute;
  top: clamp(-42px, -6vw, -30px);
  left: -22px;
  width: clamp(84px, 23vw, 138px);
  transform: rotate(-9deg);
  transform-origin: center;
  will-change: transform;
  animation: cl-balloon-swap 1s steps(1, end) infinite;
}

@keyframes cl-balloon-swap {
  0%,
  49.999% {
    transform: rotate(-9deg);
  }

  50%,
  100% {
    transform: rotate(-4deg);
  }
}

.cl-card__title {
  width: 82%;
  max-width: 500px;
  margin: 0 auto clamp(4px, 1.5vw, 12px);
}

.cl-copy {
  display: block;
  width: min(100%, 760px);
  max-width: 760px;
  height: auto;
  margin: clamp(18px, 4vw, 30px) auto clamp(14px, 3vw, 24px);
  overflow: visible;
}

.cl-copy__line {
  fill: #000;
  stroke: #fff;
  stroke-width: 18;
  stroke-linejoin: round;
  stroke-linecap: round;
  paint-order: stroke fill;
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

.cl-button {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
  width: 82%;
  max-width: 390px;
  min-height: 58px;
  margin: 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
}

.cl-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 2px solid #000;
  border-radius: inherit;
  background: var(--c-orange);
  transform: translateY(8px);
  transition: transform .14s ease;
}

.cl-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 2px solid #000;
  border-radius: inherit;
  background: var(--c-white);
  transition: transform .14s ease;
}

.cl-button__text {
  position: relative;
  z-index: 2;
  grid-column: 2;
  justify-self: center;
  width: min(52vw, 158px);
  transition: transform .14s ease;
}

.cl-button__arrow {
  position: relative;
  z-index: 2;
  grid-column: 3;
  justify-self: end;
  width: 34px;
  transition: transform .14s ease;
}

.cl-button:active::after,
.cl-button:active .cl-button__text,
.cl-button:active .cl-button__arrow {
  transform: translateY(8px);
}

.footer {
  padding: clamp(36px, 6vw, 60px) 0;
  background: var(--c-white);
  font-family: var(--font-body);
  font-weight: 700;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(88px, 0.78fr) minmax(0, 2.22fr);
  align-items: center;
  gap: clamp(12px, 3vw, 24px);
}

.footer__logo {
  width: min(22vw, 118px);
  justify-self: start;
}

.footer__meta {
  --footer-row-gap: clamp(18px, 2.8vw, 28px);
  display: grid;
  grid-template-columns: auto 1px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: stretch;
  column-gap: clamp(8px, 1.8vw, 14px);
  row-gap: var(--footer-row-gap);
}

.footer__labels {
  display: contents;
}

.footer__labels p,
.footer__copy p {
  margin: 0;
}

.footer__labels p {
  font-size: clamp(10px, 1.9vw, 14px);
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.footer__labels p:first-child {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.footer__labels p:last-child {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
}

.footer__rule {
  display: grid;
  grid-template-rows: 1fr 1fr;
  row-gap: var(--footer-row-gap);
  width: 1px;
  align-self: stretch;
  background: transparent;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.footer__rule::before,
.footer__rule::after {
  content: "";
  width: 1px;
  background: rgba(35, 24, 21, .55);
}

.footer__rule::before {
  grid-row: 1;
}

.footer__rule::after {
  grid-row: 2;
}

.footer__copy {
  display: contents;
}

.footer__copy p {
  grid-column: 3;
  font-size: clamp(10px, 2.1vw, 14px);
  line-height: 1.45;
  white-space: nowrap;
}

.footer__copy p:first-child {
  grid-row: 1;
}

.footer__copy p:last-child {
  grid-row: 2;
}

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

.footer a {
  text-decoration: none;
}

@media (max-width: 767px) {
  .footer {
    padding-inline: 24px 40px;
  }

  .footer .section-inner {
    width: 100%;
    max-width: none;
  }
}

.fade-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}

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

@media (min-width: 768px) {
  .venues {
    margin-top: -52px;
  }

  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 10;
    display: grid;
    grid-template-columns: 160px minmax(0, 1080px) 160px;
    align-items: start;
    justify-content: center;
    gap: 24px;
    padding: 24px clamp(24px, 4vw, 56px);
    pointer-events: none;
  }

  .site-header__logo,
  .site-header__nav {
    pointer-events: auto;
  }

  .site-header__logo {
    display: block;
    width: 116px;
  }

  .site-header__nav {
    grid-column: 3;
    display: grid;
    gap: 10px;
    justify-items: end;
    font-family: var(--font-round);
    font-size: 14px;
    font-weight: 700;
  }

  .site-header__nav a {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    text-decoration: none;
    box-shadow: 0 3px 0 rgba(35, 24, 21, .08);
  }

  .hero-stage {
    max-width: 960px;
  }

  .section-inner {
    width: calc(100% - 60px);
    max-width: 640px;
  }

  .section-inner--wide {
    width: 100%;
    max-width: 1080px;
  }

  .cl-button__arrow {
    width: calc(34px * .8);
  }

  .footer__inner {
    grid-template-columns: minmax(180px, 0.9fr) minmax(0, 2.1fr);
  }

  .footer__logo {
    width: 170px;
  }

  .footer__labels p {
    font-size: 16px;
  }

  .footer__copy p {
    font-size: 16px;
  }

  .venue-band__image {
    width: min(100%, 760px);
    margin: 0 auto;
  }

  .venue-band__image--wide {
    width: min(100%, 820px);
  }

  .venue-band__inner {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .cl-card {
    padding-inline: 20px;
  }
}

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

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

  .hero-seal:not(.hero-seal--b),
  .fade-section {
    opacity: 1;
    transform: none;
  }

  .hero-fall-layer,
  .hero-seal--b {
    display: none;
  }

  .comingsoon__bg {
    animation: none;
  }
}
