:root {
  --main-color: #ff7c88;
  --base-color: #ffe6ea;
  --accent-color: #9b59b6;
  --text-color: #8a8077;
  --footer-text-color: #665E58;
  --white-color: #ffffff;
  --header-height-size: 4em;

  --panel-shadow: 0 18px 42px rgba(255, 124, 136, 0.16);
  --card-shadow: 0 14px 30px rgba(138, 128, 119, 0.14);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 38%),
    radial-gradient(circle at right 18%, rgba(255, 124, 136, 0.16), transparent 28%),
    linear-gradient(180deg, #ffeef2 0%, #fff8fa 38%, #fffdfd 100%);
  overflow-x: hidden;
}

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

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

.scroll-tracking-wrapper {
  position: relative;
  isolation: isolate;
  padding-top: 0;
}

.sticky-bg,
.sticky-character {
  position: sticky;
  top: var(--header-height-size);
  height: calc(100vh - var(--header-height-size));
}

.sticky-bg {
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.05);
}

.sticky-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 250, 0.10) 0%, rgba(255, 245, 248, 0.24) 40%, rgba(255, 255, 255, 0.72) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.44), transparent 34%);
}

.sticky-character {
  z-index: 1;
  margin-top: calc(-100vh + var(--header-height-size));
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  overflow: hidden;
}

.moco-place-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.character-parallax {
  --parallax-x: -50%;
  --parallax-base-y: 0px;
  --parallax-y: 0px;
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--character-width, 100vw);
  max-width: none;
  height: auto;
  transform: translateX(var(--parallax-x)) translateY(calc(var(--parallax-base-y) + var(--parallax-y)));
  filter: drop-shadow(0 22px 32px rgba(138, 128, 119, 0.18));
  will-change: transform;
}

.character-parallax {
  filter: none;
}

.character-float-stage {
  position: relative;
  width: 100%;
  --character-bob-duration: 5.0s;
  animation: character-bob var(--character-bob-duration, 6.7s) ease-in-out -1.2s infinite;
  will-change: transform;
}

.moco-float-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  will-change: auto;
}

.character-base {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 32px rgba(138, 128, 119, 0.18));
}

.moco-layer {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  --scroll-progress: 0;
  --scroll-scale: 1;
  --scroll-rotate: 0deg;
  --scroll-opacity: 1;
  --entry-scale: 0.72;
  --entry-rotate: -140deg;
  --entry-opacity: 0;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--scroll-rotate) + var(--entry-rotate)))
    scale(calc(var(--scroll-scale) * var(--entry-scale)));
  transform-origin: center center;
  opacity: calc(var(--scroll-opacity) * var(--entry-opacity));
  pointer-events: none;
  transition: transform 0.9s ease, opacity 0.9s ease;
  will-change: transform, opacity;
}

.moco-layer.is-visible {
  --entry-scale: 1;
  --entry-rotate: 0deg;
  --entry-opacity: 1;
}

.moco-place-hitbox {
  z-index: 4;
  display: block;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}

.moco-place-overlay .moco-place-hitbox {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  transform-origin: top left;
}

.moco-motion {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center center;
  will-change: transform;
  animation: moco-drift var(--drift-duration, 6s) ease-in-out var(--drift-delay, 0s) infinite;
}

.moco-motion img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center center;
  animation: moco-scale var(--scale-duration, 6s) ease-in-out var(--scale-delay, 0s) infinite;
}

.moco-place {
  width: 18.81%;
  left: 86.35%;
  top: 43.62%;
  --drift-duration: 6.6s;
  --drift-delay: -1.1s;
  --drift-x-start: -1px;
  --drift-y-start: -4px;
  --drift-x-mid: 2px;
  --drift-y-mid: 4px;
  --scale-duration: 6.4s;
  --scale-delay: -0.2s;
}

.moco-time {
  width: 28.35%;
  left: 18.79%;
  top: 26.52%;
  --drift-duration: 5.7s;
  --drift-delay: -0.2s;
  --drift-x-start: 2px;
  --drift-y-start: -2px;
  --drift-x-mid: -1px;
  --drift-y-mid: 6px;
  --scale-duration: 5.8s;
  --scale-delay: -0.7s;
}

.moco-price {
  width: 23.48%;
  left: 16.21%;
  top: 45.55%;
  --drift-duration: 6.1s;
  --drift-delay: -1.5s;
  --drift-x-start: -2px;
  --drift-y-start: 1px;
  --drift-x-mid: 2px;
  --drift-y-mid: -5px;
  --scale-duration: 6.6s;
  --scale-delay: -0.1s;
}

.moco-date {
  width: 31%;
  left: 79.81%;
  top: 25.77%;
  --drift-duration: 5.4s;
  --drift-delay: -0.9s;
  --drift-x-start: 1px;
  --drift-y-start: -3px;
  --drift-x-mid: -2px;
  --drift-y-mid: 5px;
  --scale-duration: 5.9s;
  --scale-delay: -0.5s;
}

.content-layer {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--hero-screen-height, calc(100vh - var(--header-height-size))));
}

.hero-screen {
  position: relative;
  height: var(--hero-screen-height, calc(100vh - var(--header-height-size)));
  min-height: var(--hero-screen-height, calc(100vh - var(--header-height-size)));
}

.hero-logo {
  position: absolute;
  left: 50%;
  bottom: var(--hero-logo-bottom, calc(16px + env(safe-area-inset-bottom) + 58px));
  transform: translateX(-50%);
  width: calc(var(--character-width, 100vw) * 0.5);
  filter: drop-shadow(0 16px 28px rgba(255, 124, 136, 0.18));
}

.hero-logo.fade-in {
  transform: translateX(-50%) translateY(26px);
  transition-delay: 1.6s;
}

.hero-logo.fade-in.is-active {
  transform: translateX(-50%) translateY(0);
}

.page-shell,
.rules-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  padding: 0 0 72px;
}

.intro-block,
.section-block,
.rules-group,
.course-rule-card,
.overview-card,
.feature-card,
.course-card,
.faq-item,
.schedule-table,
.sticky-apply-button {
  border-radius: var(--radius-xl);
}

.intro-block {
  position: relative;
  margin-top: var(--intro-block-margin-top, 50vh);
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 124, 136, 0.16);
  box-shadow: var(--panel-shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--main-color);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.intro-block h1 {
  margin: 0;
  color: #5a514b;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.28;
  text-wrap: balance;
}

.lead {
  margin: 16px 0 0;
  font-size: clamp(0.68rem, 1.26vw, 0.76rem);
  line-height: 1.9;
}

.section-lead {
  margin: 16px 0 0;
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  line-height: 1.9;
}

.section-lead a{
  margin: 16px 0 0;
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  line-height: 1.9;
  color: var(--main-color);
}

.section-block {
  margin-top: 28px;
  padding: clamp(16px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(155, 89, 182, 0.10);
  box-shadow: var(--card-shadow);
}

.section-title {
  margin: 0 0 16px;
  color: #5c514c;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.35;
}

.feature-grid,
.overview-grid,
.course-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.overview-card,
.course-card,
.course-rule-card,
.rules-group,
.faq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 250, 0.96));
  border: 1px solid rgba(255, 124, 136, 0.14);
  box-shadow: 0 12px 24px rgba(138, 128, 119, 0.10);
}

.feature-card {
  position: relative;
  padding: 24px 22px 22px;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--main-color), #ff9fb5);
  color: var(--white-color);
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(255, 124, 136, 0.28);
}

.feature-card h3,
.overview-card h3,
.course-card h3,
.rules-group h3 {
  margin: 0 0 10px;
  color: #5c514c;
  line-height: 1.55;
  font-size: 1.2rem;
}

.feature-card p,
.overview-card p,
.course-card p,
.course-rule-card p,
.rules-group li,
.faq-answer {
  margin: 0;
  line-height: 1.9;
}

.feature-card p {
  color: var(--text-color);
  font-size: 0.8rem;
  line-height: 1.8;
}

.overview-card {
  padding: 22px;
}

.overview-card .map-embed {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  margin-top: 16px;
  border: 0;
  border-radius: 18px;
}

.overview-card .price,
.overview-card .date,
.overview-card .place {
  color: var(--main-color);
  font-size: 1.0rem;
  font-weight: 800;
}

.overview-card .price b,
.overview-card .date b,
.overview-card .place b {
  color: var(--main-color);
  font-size: 1.4rem;
  font-weight: 800;
}

.time-list,
.rules-group ul,
.course-rule-card ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.time-list li,
.rules-group li,
.course-card li,
.course-rule-card li {
  line-height: 1.9;
}

.schedule-table {
  overflow: hidden;
  background: linear-gradient(180deg, #fff3f5 0%, #fff9fa 100%);
  border: 1px solid rgba(255, 124, 136, 0.16);
  box-shadow: var(--panel-shadow);
}

.schedule-head,
.schedule-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 10px;
}

.schedule-head {
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--main-color), #ff9cab);
  color: var(--white-color);
  font-weight: 800;
}

.schedule-row {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.74);
  border-top: 1px solid rgba(255, 124, 136, 0.10);
}

.schedule-row:nth-child(even) {
  background: rgba(255, 230, 234, 0.40);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #5c514c;
  font-weight: 700;
  line-height: 1.75;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  margin-left: auto;
  color: var(--main-color);
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "－";
}

.question-mark,
.answer-mark {
  flex: none;
  color: var(--main-color);
  font-weight: 800;
}

.faq-answer {
  padding: 0 20px 18px 50px;
  color: var(--text-color);
}

.course-card {
  padding: 22px;
}

.course-rule-card {
  margin-top: 18px;
  padding: 22px;
  font-size: 0.7rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.course-rule-card p {
  color: #5c514c;
  font-weight: 700;
  margin-bottom: 12px;
}

.course-rule-card ul {
  color: var(--text-color);
}

.rules-section {
  background: var(--white-color);
  padding: 34px 0 110px;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow: 0 -16px 36px rgba(138, 128, 119, 0.10);
}

.rules-shell {
  display: grid;
  gap: 18px;
}

.rules-group {
  padding: 22px;
}

.rules-group h3 {
  color: var(--main-color);
  font-size: 1.08rem;
}

.rules-group table {
  border-collapse: separate;
  border-spacing: 21px;
}

.rules-items-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.rules-items-table tr {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 14px rgba(138, 128, 119, 0.06);
}

.rules-items-table td {
  padding: 14px 16px;
  vertical-align: top;
}

.rules-items-table td:first-child {
  width: 33%;
  min-width: 11em;
  color: var(--text-color);
  font-weight: 800;
  letter-spacing: 0.01em;
  background: rgba(255, 124, 136, 0.05);
  border-radius: 14px 0 0 14px;
}

.rules-items-table td:last-child {
  border-radius: 0 14px 14px 0;
}

.rules-items-table ul {
  margin: 0;
  padding-left: 1.2em;
}

.rules-items-table li + li {
  margin-top: 0.25em;
}

.rules-items-table b {
  font-size: 1.02rem;
}

.sticky-apply-button {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 360px);
  min-height: 58px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--accent-color), #b87bd5);
  color: var(--white-color);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 16px 30px rgba(155, 89, 182, 0.34);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.sticky-apply-button:hover {
  background: linear-gradient(135deg, #c8546d, #d8647d);
  box-shadow: 0 18px 34px rgba(200, 86, 77, 0.34);
  transform: translateX(-50%) translateY(-2px);
}

.fade-in {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
  will-change: opacity, transform, filter;
}

.fade-in.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.floating-anim {
  animation: float 5.2s ease-in-out infinite;
}

@keyframes character-bob {
  0%,
  100% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes moco-drift {
  0%,
  100% {
    transform: translate(var(--drift-x-start, 0px), var(--drift-y-start, 0px));
  }
  50% {
    transform: translate(var(--drift-x-mid, 2px), var(--drift-y-mid, -3px));
  }
}

@keyframes moco-scale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateX(var(--parallax-x)) translateY(calc(var(--parallax-base-y) + var(--parallax-y)));
  }
  50% {
    transform: translateX(var(--parallax-x)) translateY(calc(var(--parallax-base-y) + var(--parallax-y) - 12px));
  }
}

@media (max-width: 960px) {
  .feature-grid,
  .overview-grid,
  .course-grid {
    grid-template-columns: 1fr;
  }

  .character-parallax {
    object-position: center top;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .rules-shell {
    width: min(100% - 20px, 1120px);
  }

  .intro-block {
    padding: 20px 18px;
  }

  .section-block {
    padding: 18px 16px;
  }

  .sticky-apply-button {
    width: calc(100vw - 20px);
    min-height: 56px;
    font-size: 0.98rem;
  }

  .rules-items-table {
    border-spacing: 0 12px;
  }

  .rules-items-table tr {
    display: block;
  }

  .rules-items-table td {
    display: block;
    width: 100%;
  }

  .rules-items-table td:first-child {
    width: 100%;
    min-width: 0;
    border-radius: 14px 14px 0 0;
    padding-bottom: 8px;
  }

  .rules-items-table td:last-child {
    border-radius: 0 0 14px 14px;
    padding-top: 0;
  }

  .faq-item summary {
    padding: 16px 16px;
  }

  .faq-answer {
    padding: 0 16px 16px 42px;
  }

  .schedule-head,
  .schedule-row {
    grid-template-columns: 0.86fr 1.38fr 0.76fr;
    gap: 6px;
    padding: 12px 12px;
    font-size: 0.82rem;
  }

  .schedule-head > div,
  .schedule-row > div {
    min-width: 0;
  }
}
