:root {
  --bg: #f2f4e9;
  --ink: #333230;
  --gray: #55524c;
  --purple: #7f47dd;
  --green: #4fbf78;
  --green-bright: #73df91;
  --orange: #ff8a3d;
  --peach: #ffa56e;
  --blue: #3a7bd5;

  --c-mint: #8fe3ab;
  --c-cream: #f7efd8;
  --c-peach: #ffc39a;
  --c-pink: #f7b9c7;
  --c-mustard: #ffd25e;
  --c-gold: #f5c85a;
  --c-coral: #f4977b;
  --c-apricot: #f7b267;
  --c-terracotta: #d97a52;
  --c-light-orange: #ffd9ad;

  --pink-bg: #f6c9d6;
  --green-bg: #8fe3ab;
  --sky-bg: #a8c0d8;
  --mustard-bg: #f0d890;
  --lavender-bg: #c0c0d8;
  --peach-bg: #f09060;
  --teal-bg: #a8d8d8;

  --frame-w: 428px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 350;
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--purple); }

.inner {
  padding: 0 24px;
}

.pc-only { display: none; }
.sp-only { display: inline; }

/* ================================================================
   This entire design is authored mobile-first: every component below
   always renders at phone-optimized sizes. On wide viewports (see the
   frame breakpoint at the bottom) the content column is pinned to a
   fixed smartphone width instead of being reflowed into a "desktop"
   layout — the design itself never changes, only the framing around it.
   ================================================================ */

/* ================= FRAME LAYOUT ================= */

.frame {
  display: block;
}

.frame-side {
  display: none;
}

/* On mobile there is no side frame — instead the illustration itself
   becomes the first-view hero, oversized so it bleeds off both edges. */
.frame-illust {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.frame-illust img {
  max-width: none;
  width: 105%;
  margin-left: -2.5%;
}

.frame-content {
  width: 100%;
}

/* ================= HERO 2 : TOP (キャッチコピー + タイトル) ================= */

.hero2-top {
  padding: 48px 24px 40px;
  text-align: center;
  background: var(--pink-bg);
}

.hero2-title {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 28px;
}

.hero2-copy {
  font-weight: 700;
  font-size: 1.13rem;
  line-height: 1.8;
  margin: 0 auto;
  color: var(--ink);
}

/* ---- reveal animation ---- */

.hero2-title,
.hero2-copy,
.frame-illust img,
.frame-copy img {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero2-title.is-in,
.hero2-copy.is-in,
.frame-illust img.is-in,
.frame-copy img.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero2-title,
  .hero2-copy,
  .frame-illust img,
  .frame-copy img {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ================= INTRO 2 ================= */

.intro2 {
  padding: 40px 24px;
  background: var(--green-bg);
}

.intro2 p {
  margin: 0 0 22px;
  font-size: 1rem;
  color: var(--ink);
}

.intro2 p:last-child { margin-bottom: 0; }

.xoss-photo {
  width: 100%;
}

/* ================= SECTION SHARED ================= */

.section {
  padding: 56px 0;
}

.section--sky { background: var(--sky-bg); }
.section--mustard { background: var(--mustard-bg); }
.section--lavender { background: var(--lavender-bg); }
.section--peach { background: var(--peach-bg); }
.section--teal { background: var(--teal-bg); }

.section-title {
  display: block;
  width: fit-content;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--ink);
  background: var(--c-mint);
  padding: 4px 20px;
  box-shadow: 5px 5px 0 var(--purple);
}

.flow-photo {
  width: 100%;
  margin: 0 0 28px;
  box-shadow: 8px 8px 0 var(--purple);
  opacity: 0;
  transform: translateX(-70px);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flow-photo.is-in {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .flow-photo {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.text-block p {
  margin: 0 0 20px;
  font-size: 1rem;
}

.text-block p:last-child { margin-bottom: 0; }

.note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--gray);
}

/* ================= CARD GRID ================= */

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  display: flex;
  align-items: center;
  border-radius: 0;
  padding: 26px 24px;
  text-align: left;
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--purple);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:nth-child(odd) {
  transform: translateX(-70px);
}

.card:nth-child(even) {
  transform: translateX(70px);
}

.card.is-in {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
}

.card--mint { background: var(--c-gold); }
.card--cream { background: var(--c-cream); }
.card--peach { background: var(--c-peach); }
.card--lavender { background: var(--c-mint); }
.card--sky { background: var(--c-apricot); }
.card--pink { background: var(--c-pink); }
.card--mustard { background: var(--c-mustard); }
.card--periwinkle { background: var(--c-light-orange); }

/* ================= PROGRAM STEPS ================= */

.program-lead {
  text-align: center;
  margin: 0 0 32px;
  font-size: 1rem;
}

.steps {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  text-align: center;
}

.steps-item {
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px dashed var(--purple);
}

.steps-item:last-child { border-bottom: none; }

.program-foot {
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray);
  margin: 0;
}

/* ================= OUTLINE (開催概要) ================= */

.outline-list {
  margin: 0;
}

.outline-row {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--purple);
}

.outline-row:first-child {
  border-top: 1px solid var(--purple);
}

.outline-row dt {
  display: inline-block;
  font-weight: 700;
  color: #fff;
  background: var(--purple);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.outline-row dd {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.venue-name {
  font-weight: 700;
}

.outline-date {
  display: block;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.outline-note {
  display: block;
  margin-top: 2px;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.schedule {
  border-collapse: collapse;
  width: 100%;
  font-size: 1.15rem;
  margin-top: 12px;
}

.schedule th, .schedule td {
  text-align: left;
  font-weight: 350;
  padding: 13px 12px 13px 0;
  vertical-align: top;
  border-bottom: 1px dashed var(--purple);
}

.schedule tr:last-child th,
.schedule tr:last-child td {
  border-bottom: none;
}

.schedule th {
  color: var(--purple);
  font-weight: 700;
  width: 96px;
  white-space: nowrap;
}

/* ================= FOOTER ================= */

.footer {
  padding: 48px 24px 36px;
  text-align: center;
  background: var(--bg);
}

.footer-logo {
  width: 96.6%;
  max-width: 437px;
  margin: 0 auto 20px;
}

.footer-copy {
  margin: 0 0 70px;
  font-size: 0.72rem;
  color: var(--gray);
}

/* ================= FLOATING CTA ================= */

.cta-float {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 200;
  translate: -50% 0;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), #5f34b3);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(127, 71, 221, 0.4), 0 3px 8px rgba(51, 50, 48, 0.12);
  animation: cta-float-bob 2.4s ease-in-out infinite;
  transition: box-shadow 0.25s ease;
}

.cta-float:hover {
  box-shadow: 0 14px 30px rgba(127, 71, 221, 0.5), 0 4px 10px rgba(51, 50, 48, 0.14);
}

.cta-float-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}

.cta-float-icon svg {
  width: 100%;
  height: 100%;
}

.cta-float:hover .cta-float-icon {
  transform: translateX(4px);
}

@keyframes cta-float-bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-float {
    animation: none;
  }
}

/* ================= MASCOTS (pinned to specific spots) ================= */

.recommend {
  position: relative;
  overflow: visible;
}

.mascot-kuma {
  position: absolute;
  top: -116px;
  right: 194px;
  width: 125px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(51, 50, 48, 0.15));
  animation: kuma-float-bob 2.6s ease-in-out infinite;
}

.outline-row--date dd {
  position: relative;
}

.mascot-cat {
  position: absolute;
  top: 122px;
  right: -10px;
  width: 124px;
  z-index: 5;
  pointer-events: none;
  transform-origin: bottom center;
  filter: drop-shadow(0 6px 10px rgba(51, 50, 48, 0.15));
  animation: cat-sway 2.4s ease-in-out infinite;
}

.program {
  position: relative;
  overflow: visible;
}

.mascot-cloud {
  position: absolute;
  top: -76px;
  right: 18px;
  width: 108px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(51, 50, 48, 0.15));
  animation: kuma-float-bob 2.6s ease-in-out infinite;
}

.organizers {
  position: relative;
  overflow: visible;
}

.mascot-oumu {
  position: absolute;
  top: -68px;
  right: 294px;
  width: 76px;
  z-index: 5;
  pointer-events: none;
  transform-origin: bottom center;
  filter: drop-shadow(0 6px 10px rgba(51, 50, 48, 0.15));
  animation: cat-sway 2.4s ease-in-out infinite;
}

.outline-row--capacity {
  position: relative;
}

.mascot-window {
  position: absolute;
  top: 36px;
  right: -6px;
  width: 198px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(51, 50, 48, 0.15));
  animation: kuma-float-bob 2.6s ease-in-out infinite;
}

@keyframes kuma-float-bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes cat-sway {
  0%, 100% {
    transform: rotate(-7deg);
  }
  50% {
    transform: rotate(7deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-kuma,
  .mascot-cat,
  .mascot-cloud,
  .mascot-oumu,
  .mascot-window {
    animation: none;
  }
}

/* ================================================================
   DESKTOP FRAME
   At wide viewports the page stops scrolling as a whole; only the
   center phone-width column scrolls. Left = fixed illustration,
   right = fixed vertical headline (copy2.svg), both pinned full-height.
   ================================================================ */

@media (min-width: 1024px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }

  .pc-only { display: inline; }
  .sp-only { display: none; }

  .frame {
    display: flex;
    height: 100vh;
    width: 100vw;
  }

  .frame-side {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--bg);
    overflow: hidden;
  }

  .frame-illust {
    flex: 1.8 1 0;
    justify-content: flex-end;
  }

  .frame-copy {
    flex: 0.6 1 0;
  }

  .frame-illust img {
    width: auto;
    height: auto;
    max-width: 93%;
    max-height: 88vh;
    margin-left: 0;
    margin-right: 30px;
  }

  .frame-copy img {
    width: auto;
    height: auto;
    max-width: 46%;
    max-height: 86vh;
  }

  .frame-content {
    flex: 0 0 var(--frame-w);
    width: var(--frame-w);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .frame-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .cta-float {
    position: sticky;
    left: auto;
    bottom: 16px;
    translate: none;
    margin: 24px 20px 0 auto;
  }
}
