@charset "UTF-8";

:root {
  --red: #9c000e;
  --navy: #174f9e;
  --navy-deep: #002f67;
  --yellow: #fff000;
  --gold: #ac996f;
  --orange: #e67640;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--navy);
  overflow-x: hidden;
}

.gradation {
  background-color: #e67640;
  background-image:
    url("../images/bg.png"),
    linear-gradient(34deg, #efcb00, #db933a 25%, #e67640 50%, #db933a 75%, #efcb00);
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center center;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
}

.events-section {
  padding-top: 3rem;
  overflow: visible;
}

.events-section .row > *,
.campaign-section,
.campaign-section .container-xl {
  overflow: visible;
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  font-family: "senobi-gothic", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: var(--red);
}

p {
  color: var(--navy);
}

time {
  font-style: inherit;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
}

.hero-person {
  display: block;
  width: auto;
  max-width: min(92vw, 980px);
  height: 92svh;
  max-height: 92svh;
  margin: 4svh auto 0;
  object-fit: contain;
  opacity: 0;
  transform-origin: 50% 92%;
  will-change: transform;
  animation:
    hero-fade 1.1s ease 0.05s forwards,
    hero-hop 1.8s ease-in-out 1.05s 1 forwards;
}

.hero-logo-wrap {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-54%, -50%);
  /* 3rd value caps height via aspect (~0.85 w/h) so short notebooks don't clip */
  width: min(64vw, 680px, 58svh);
  margin: 0;
  z-index: 2;
}

.hero-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
  opacity: 0;
  animation: hero-logo-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.hero-banner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--red);
    color: #fff;
    font-family: "senobi-gothic", sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.75rem);
    padding: 0.5rem 0.02rem;
    margin: 0;
    gap: 0.18em;
    line-height: 1;
    z-index: 3;
    opacity: 0;
    animation: hero-fade 0.35s ease forwards;
    animation-delay: var(--banner-delay, 0.7s);
}

.hero-banner > span {
  --tx: 0px;
  --ty: 0px;
  display: block;
  width: 1em;
  height: 1em;
  line-height: 1;
  text-align: center;
  opacity: 0;
  animation: char-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--banner-delay, 0.7s) + 0.08s + var(--i, 0) * 0.09s);
}

.hero-banner > span:nth-child(1) { --i: 0; }
.hero-banner > span:nth-child(2) { --i: 1; }
.hero-banner > span:nth-child(3) { --i: 2; }
.hero-banner > span:nth-child(4) { --i: 3; }
.hero-banner > span:nth-child(5) { --i: 4; }
.hero-banner > span:nth-child(6) { --i: 5; }
.hero-banner > span:nth-child(7) { --i: 6; }
.hero-banner > span:nth-child(8) { --i: 7; }

/* 読点は字面がマス左下に入るので、縦積みのとき光学的に中央へ */
.hero-banner > span.punc-comma {
  --tx: 0.6em;
  --ty: -0.4em;
}

.hero-banner > span.punc-excl {
  --tx: 0.06em;
  --ty: 0px;
}

.banner-hashigo {
  top: 5%;
  left: calc(3% + 1.2em + 0.75rem);
  --banner-delay: 0.82s;
}

.banner-tanoshimo {
  top: 32%;
  left: 3%;
  --banner-delay: 1.28s;
}

.banner-aki {
  top: 5%;
  right: 2.5%;
  --banner-delay: 0.7s;
}

.banner-machi {
  top: 18%;
  right: calc(2.5% + 1.2em + 0.75rem);
  --banner-delay: 1.12s;
}

@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hero-hop {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  35% {
    transform: translate(3px, -7px) rotate(0.5deg);
  }
  70% {
    transform: translate(5px, 0) rotate(0deg);
  }
}

@keyframes hero-logo-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes char-in {
  from {
    opacity: 0;
    transform: translate(var(--tx), calc(var(--ty) - 0.22em));
  }
  to {
    opacity: 1;
    transform: translate(var(--tx), var(--ty));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-person,
  .hero-logo,
  .hero-banner,
  .hero-banner > span {
    animation: none;
    opacity: 1;
  }

  .hero-banner > span.punc-comma {
    transform: translate(0.34em, -0.22em);
  }

  .hero-banner > span.punc-excl {
    transform: translate(0.06em, 0);
  }
}

/* ========== Stall cards ========== */
.stall {
  position: relative;
  overflow: visible;
  background: #fff;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 1.25rem 1.25rem 1.5rem;
  margin-top: 2.4rem;
  box-shadow: 0 10px 28px rgba(86, 28, 8, 0.16);
}

.stall::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 0;
  width: auto;
  height: 35px;
  transform: translateY(-96%);
  background-color: transparent;
  background-image: url("../images/waku.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
  pointer-events: none;
}

.stall:not(.stall-side)::before {
  background-image: url("../images/waku-long.svg");
}

.events-main {
  display: flex;
  flex-direction: column;
}

.events-main .stall {
  flex: 1 1 auto;
}

.stall-stack {
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .events-main,
  .stall-stack {
    padding-top: 2.4rem;
  }

  .events-main .stall,
  .stall-stack .stall {
    margin-top: 0;
  }

  .stall-stack {
    gap: 2.4rem;
  }

  .stall-stack .stall-side {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
}

.stall-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    background-image: url("../images/bg-title.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    min-height: 88px;
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 3vw, 2.4rem);
    line-height: 1.3;
}

.heading-sm {
  min-height: 96px;
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  gap: 0.4rem;
}

.event-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.82em;
  flex: 0 0 auto;
}

.event-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-mark strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.market-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 1rem 0.4rem 1.15rem;
  border-bottom: 2px dotted var(--navy);
}

.market-item .place {
  margin-top: auto;
}

.market-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.market-item h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: var(--navy);
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    text-align: center;
    margin: 0 0 0.2rem;
    background-image: url("../images/bg-title.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    padding: 0.7rem 0.4rem;
}

.market-item h3 .en {
  display: inline-block;
  margin-left: 0.15em;
  font-size: 0.86em;
  letter-spacing: 0.02em;
}

.sub {
  text-align: center;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
    font-family: "senobi-gothic", sans-serif;
}

.desc {
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.date-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.1rem 0.15rem;
  color: var(--navy);
  font-weight: 700;
  margin: 0.15rem 0 0.6rem;
}

.date-line time {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem 0.15rem;
}

.date-line .month,
.date-line .day,
.date-line .dot,
.date-line .dash {
  font-size: 1.25rem;
}

.lantern-date {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 3.05rem;
}

.lantern-date.lantern-wide {
  width: 3.15rem;
}

.lantern-date img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lantern-date strong {
  position: relative;
  z-index: 1;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
}

.time {
  text-align: center;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.place {
  display: flex;
  align-items: center;
  margin: 0;
}

.place dt {
  margin: 0;
}

.place dt span {
  background-color: var(--navy);
  border-radius: 5px;
  color: #fff;
  min-width: 64px;
  height: 36px;
  padding: 0 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.place dd {
  text-align: left;
  margin: 0;
  padding-left: 10px;
  color: var(--red);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Side events */
.side-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.circle-badge {
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #c45a12;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
    padding-top: 5px;
}

.side-title h2 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
  margin: 0;
  background-image: url("../images/bg-title.svg");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 120% auto;
  padding: 0.6rem 0;
}

.side-title ruby rt {
  font-size: 0.45em;
  color: var(--red);
}

.side-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.side-body .desc {
  margin-bottom: 0;
}

.stall-side .place {
  margin-top: auto;
  padding-top: 0.5rem;
}

.stall-side {
  padding: 1.5rem 1.6rem 2rem;
}

.reserve-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: #fff;
  font-family: "senobi-gothic", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.reserve-btn:hover,
.reserve-btn:focus-visible {
  background: var(--navy-deep);
  color: #fff;
}

.reserve-btn:active {
  transform: translateY(1px);
}

/* ========== Campaign ========== */
.campaign-head {
  align-items: center;
  gap: 0.6rem 0.8rem;
  margin-bottom: 1rem;
}

.enjoy-label span {
    background: var(--red);
    color: #fff;
    font-weight: 700;
    margin: 0;
    padding: 0.4rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 5px;
}

.campaign-head h2 {
  flex: 1 1 220px;
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  background-image: url("../images/bg-title.svg");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 80% auto;
}

.campaign-row > [class*="col-"] {
  display: flex;
}

.campaign-row .stall {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.campaign-row .stall::before {
  background-image: url("../images/waku-middle.svg");
}

.campaign-stall .stamp-note {
  margin-top: auto;
}

.campaign-qr {
  display: block;
  width: 140px;
  height: auto;
  align-self: center;
}

.campaign-contact {
  margin-top: 0.85rem;
}

.period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.4rem;
}

.period .date-line {
  justify-content: flex-start;
  margin-bottom: 0;
}

.period-note {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
}

.small-note {
  display: inline;
  font-size: 0.82em;
}

.stamp-note {
  background: var(--yellow);
  color: var(--red);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 0.75rem 0.9rem;
  margin: 0.8rem 0 0;
}

.calendar {
  background: #fff;
  border: 1px solid rgba(23, 79, 158, 0.12);
  border-radius: 12px;
  padding: 0.85rem 0.7rem 1rem;
}

.cal-week,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem 0.2rem;
  text-align: center;
}

.cal-week {
  margin-bottom: 0.45rem;
}

.wd {
  width: 1.55rem;
  height: 1.55rem;
  margin: 0 auto;
  border-radius: 50%;
  background: #5c4033;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd.sun {
  background: #c44536;
}

.cal-days span {
  min-height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8aa0bf;
}

.cal-days .sunday {
  color: #e08a7a;
}

.cal-days .on {
  width: 1.85rem;
  height: 1.85rem;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
}

.map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin-bottom: 0.6rem;
}

.map-stall h2 {
  color: var(--navy);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin: 0;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.map-legend li {
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

.leg-market {
  background: var(--yellow);
}

.leg-night {
  background: #99ccf2;
}

.event-map {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== Shop list ========== */
.shop-row {
  align-items: stretch;
  border-radius: 12px;
  padding: 1.5rem 1rem 2rem;
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  width: 100%;
  max-width: 100%;
}

.shop-row > [class*="col-"] {
  display: flex;
  align-items: stretch;
}

.shop-section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.shop-card {
  display: grid;
  grid-template-rows: auto minmax(2.8em, auto) 1fr auto;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  padding: 0 0.25rem 0.4rem;
}

.shop-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 0.75rem;
  background: #4a4a4a;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.shop-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.shop-name {
  color: var(--red);
  font-family: "senobi-gothic", sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  font-weight: 700;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.4;
  word-break: break-word;
  min-height: 2.8em;
  height: 100%;
  margin: 0 0 0.5rem;
}

.shop-meta {
  display: grid;
  grid-template-columns: 6.8em 1fr;
  gap: 0.3rem 0.45rem;
  align-items: center;
  align-self: start;
  width: 100%;
  margin: 0 0 0.85rem;
}

.shop-meta dt,
.shop-meta dd {
  margin: 0;
  color: #555;
  font-size: 0.7rem;
  line-height: 1.45;
  font-weight: 800;
}

.shop-meta dt {
  color: var(--navy);
  text-align: center;
  border: 1px solid var(--navy);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  line-height: 1.35;
}

.shop-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
}

.shop-btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.35rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.shop-btn:hover,
.shop-btn:focus-visible {
  background: var(--navy-deep);
  color: #fff;
}

/* ========== Language button ========== */
.lang-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  background: var(--navy);
  color: #fff;
  font-family: "senobi-gothic", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: background-color 0.2s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: var(--navy-deep);
  color: #fff;
}

/* ========== Footer ========== */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2.2rem;
  color: #fff;
}

.site-footer .organizer {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.site-footer .note {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  margin: 0;
}

/* ========== Breakpoints ========== */
@media (min-width: 768px) {
  .market-grid {
    grid-template-columns: 1fr 1fr;
  }

  .market-item {
    padding: 1.1rem 1rem 1.2rem;
    border-right: 2px dotted var(--navy);
  }

  .market-item:nth-child(2n) {
    border-right: 0;
  }

  .market-item:nth-child(-n + 2) {
    border-bottom: 2px dotted var(--navy);
  }

  .market-item:nth-child(n + 3) {
    border-bottom: 0;
    padding-bottom: 0.2rem;
  }

  .campaign-grid {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }

  .place dt span {
    min-width: 72px;
    font-size: 1rem;
  }

  .place dd {
    font-size: 1.15rem;
  }

  .stall {
    padding: 1.5rem 1.6rem 1.8rem;
  }

  .stall-side {
    padding: 1.75rem 1.8rem 2.25rem;
  }
}

@media (max-width: 767.98px) {
    .shop-card {
  padding: 0 0rem 0.4rem;
}

  .lang-btn {
    right: 0.9rem;
    bottom: 0.9rem;
    width: 88px;
    height: 88px;
    font-size: 1rem;
  }
  .gradation {
    background-attachment: scroll, scroll;
    background-size: auto 100vh, cover;
  }

  .hero-person {
    height: 78svh;
    max-height: 78svh;
    margin-top: 10svh;
  }

  .hero-logo-wrap {
    width: min(72vw, 340px, 52svh);
    transform: translate(-50%, -38%);
  }

  .hero-banner {
    padding: 0.5rem 0.02rem;
    font-size: clamp(1.4rem, 8vw, 2.4rem);
    gap: 0.18em;
  }

  .banner-hashigo {
    top: 5%;
    left: calc(3% + 1.2em + 0.5rem);
  }

  .banner-tanoshimo {
    top: 30%;
    left: 2.5%;
  }

  .banner-aki {
    top: 5%;
    right: 2%;
  }

  .banner-machi {
    top: 20%;
    right: calc(2% + 1.2em + 0.5rem);
  }

  .stall:not(.stall-side)::before {
    background-image: url("../images/waku.svg");
  }

  .stall-side {
    padding: 1.65rem 1.5rem 2.15rem;
  }

  .circle-badge {
    width: 78px;
    height: 78px;
    font-size: 0.62rem;
  }

  .shop-meta {
    grid-template-columns: 1fr;
    gap: 0.12rem 0;
  }

  .shop-meta dt {
    justify-self: start;
    width: 100%;
    max-width: 100%;
    margin-top: 0.45rem;
    text-align: left;
  }

  .shop-meta dt:first-child {
    margin-top: 0;
  }

  .shop-meta dd {
    text-align: left;
    word-break: break-word;
  }
    .shop-btn {
  font-size: 0.6rem;
}
}

@media (min-width: 1200px) {
  .hero-logo-wrap {
    width: min(64vw, 720px, 58svh);
  }
}

@media (max-height: 760px) and (min-width: 768px) {
  .hero-logo-wrap {
    width: min(58vw, 520px, 52svh);
    top: 48%;
  }
}

@media (min-width: 1400px) {
  .hero-banner {
    font-size: clamp(2.2rem, 3.8vw, 4.25rem);
  }
}

@media (min-width: 1800px) {
  .hero-banner {
    font-size: clamp(2.8rem, 4vw, 5.25rem);
  }
}
