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

body {
  background-color: #c8c8c8;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 390px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  background-color: #f8faf7;
}

/* ===== TOP SECTION ===== */
.s-top {
  position: relative;
  height: 1100px;
  overflow: hidden;
  perspective: 1000px;
}

.s-top::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -120px;
  height: 260px;
  background:
    radial-gradient(circle at 20% 80%, rgba(30, 80, 45, 0.55) 0 18%, transparent 42%),
    radial-gradient(circle at 75% 85%, rgba(20, 65, 38, 0.5) 0 20%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(15, 55, 32, 0.65) 0 25%, transparent 55%);
  transform: translateY(var(--top-foreground-y, 0px)) scale(var(--top-foreground-scale, 1));
  transform-origin: center bottom;
  pointer-events: none;
  z-index: 6;
  will-change: transform;
}

.s-top__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform-origin: center bottom;
  will-change: transform, filter;
}

.s-top__front {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
  z-index: 4;
  will-change: transform;
}

.s-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.65) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: var(--top-whiteout, 0);
  pointer-events: none;
  z-index: 20;
}

.tpo-text {
  position: absolute;
  left: 55px;
  top: 299px;
  width: 288px;
  height: 153px;
}

.tpo-text,
.menu-btn {
  z-index: 10;
}

.tpo-text__title {
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 48px;
  color: #42301d;
  line-height: normal;
  white-space: nowrap;
}

.tpo-text__sub {
  position: absolute;
  left: 50%;
  top: 95px;
  transform: translateX(-50%);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 20px;
  color: #5c5c5c;
  text-align: center;
  white-space: nowrap;
}

.tpo-text__sub p { line-height: normal; }

.menu-btn {
  position: absolute;
  left: 318px;
  top: 38px;
  width: 51px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-btn__text {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  font-family: 'Arimo', sans-serif;
  font-size: 12px;
  color: #f8faf7;
  text-align: center;
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
}

/* ===== NEWS SECTION ===== */
.s-news {
  position: relative;
  background: #f8faf7;
  height: 579px;
  margin-top: -90px;
  z-index: 5;
  border-top-left-radius: 38px;
  border-top-right-radius: 38px;
}

.news-heading {
  position: absolute;
  left: 2px;
  top: 6px;
  width: 350px;
  height: 81px;
  overflow: hidden;
}

.news-heading__frag {
  position: absolute;
  left: 6px;
  top: 43px;
  width: 28.644px;
  height: 38px;
}

.news-heading__title {
  position: absolute;
  left: 43px;
  top: 32px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 36px;
  color: #5c5c5c;
  white-space: nowrap;
  line-height: normal;
}

.news-image {
  position: absolute;
  left: 20px;
  top: 84px;
  width: 351px;
  height: 234px;
  border-radius: 20px;
  overflow: hidden;
}

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

.news-image__border {
  position: absolute;
  inset: 0;
  border: 2px solid #42301d;
  border-radius: 20px;
  pointer-events: none;
}

.news-text {
  position: absolute;
  left: 20px;
  top: 336px;
  width: 324px;
  text-align: center;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #42301d;
  line-height: 28px;
}

.more-btn {
  position: absolute;
  left: 202px;
  top: 438px;
  display: flex;
  align-items: center;
  gap: 25px;
  background: #0d401d;
  color: #f8faf7;
  border-radius: 30px;
  padding: 0 20px;
  height: 38px;
  width: 168px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-circle { width: 24px; height: 24px; flex-shrink: 0; }

/* ===== GUIDE SECTION ===== */
.s-guide {
  position: relative;
  height: 735px;
  overflow: hidden;
}

.s-guide__bg {
  position: absolute;
  top: -1px;
  left: 0;
  right: -2px;
  bottom: 0;
  overflow: hidden;
  border-top-right-radius: 30px;
}

.s-guide__bg img {
  position: absolute;
  max-width: none;
  pointer-events: none;
  width: 599.53%;
  height: 239.13%;
  left: -329.7%;
  top: -139.11%;
}

.guide-heading {
  position: absolute;
  left: 2px;
  top: 0;
  width: 390px;
  height: 86px;
  overflow: hidden;
}

.guide-heading__frag {
  position: absolute;
  left: 12px;
  top: 32px;
  width: 28.644px;
  height: 38px;
}

.guide-heading__title {
  position: absolute;
  left: 54px;
  top: 31px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 36px;
  color: #5c5c5c;
  white-space: nowrap;
  line-height: normal;
}

.step-label {
  position: absolute;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 24px;
  color: #42301d;
  white-space: nowrap;
  line-height: normal;
}

.step1-label  { left: 280px; top: 107px; }
.step1-circle { position: absolute; left: 280px; top: 135px; width: 64px; height: 44px; }

.guide-path1 { position: absolute; left: 243px; top: 175px; width: 80px; height: 139px; }
.guide-path1 > div { position: absolute; inset: -2.19% -6.38% -4.15% -2.05%; }

.step2-label  { left: 175px; top: 271px; }
.step2-circle { position: absolute; left: 168px; top: 299px; width: 82px; height: 57px; }

.guide-path2 { position: absolute; left: 90px; top: 346px; width: 89px; height: 172px; }
.guide-path2 > div { position: absolute; inset: -3.19% -2.71% -0.57% -6.74%; }

.step3-frag   { position: absolute; left: 43px; top: 509px; width: 28.644px; height: 47px; }
.step3-label  { left: 72px; top: 509px; }
.step3-circle { position: absolute; left: 41px; top: 537px; width: 117px; height: 79px; }

.try-btn {
  position: absolute;
  left: 107px;
  top: 625px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #0d401d;
  color: #f8faf7;
  border-radius: 30px;
  padding: 0 20px;
  height: 38px;
  width: 263px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

/* ===== SCHEDULE SECTION ===== */
.s-schedule {
  position: relative;
  height: 1287px;
  overflow: hidden;
  border-top-left-radius: 30px;
  margin-top: -30px;
}

.s-schedule__bg-wrap {
  position: absolute;
  left: -2px;
  top: 4px;
  width: 395px;
  height: 1283px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-schedule__bg-inner {
  transform: rotate(90deg);
  width: 1283px;
  height: 395px;
  border-bottom-left-radius: 30px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.s-schedule__bg-inner img {
  position: absolute;
  max-width: none;
  pointer-events: none;
  height: 360.76%;
  left: 0;
  top: -0.07%;
  width: 148.19%;
}

.schedule-heading {
  position: absolute;
  left: 0;
  top: 0;
  width: 350px;
  height: 81px;
  overflow: hidden;
}

.schedule-heading__frag {
  position: absolute;
  left: 12px;
  top: 32px;
  width: 28.644px;
  height: 38px;
}

.schedule-heading__title {
  position: absolute;
  left: 41px;
  top: 32px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 36px;
  color: #5c5c5c;
  white-space: nowrap;
  line-height: normal;
}

.schedule-list {
  position: absolute;
  left: 23px;
  top: 131px;
  width: 351px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.schedule-item { height: 173px; position: relative; width: 100%; }

.schedule-item__header {
  position: absolute;
  left: 0; top: 0;
  width: 351px; height: 65px;
  background: #33ad8b;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-item__header span {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: #f8faf7;
  line-height: normal;
}

.schedule-item__body {
  position: absolute;
  left: 0; top: 65px;
  width: 351px; height: 108px;
  background: #f8faf7;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
}

.schedule-row { display: flex; align-items: center; gap: 12px; width: 100%; }

.schedule-row__label {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 24px;
  color: #42301d;
  white-space: nowrap;
  flex-shrink: 0;
}

.schedule-row__value {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #42301d;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== FIGHT SECTION ===== */
.s-fight { position: relative; height: 373px; overflow: hidden; }

.s-fight__bg { position: absolute; inset: 0; overflow: hidden; }

.s-fight__bg img {
  position: absolute;
  max-width: none;
  pointer-events: none;
  height: 179.36%;
  left: -131.09%; top: -79.36%;
  width: 231.09%;
}

.fight-btn {
  position: absolute;
  left: 53px; top: 120px;
  width: 281px; height: 93px;
  background: #f8faf7;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-sizing: border-box;
  padding: 0 12px 0 15px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #42301d;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(184, 138, 98, .26);
  box-shadow: 0 6px 18px rgba(66, 48, 29, .12), 0 2px 5px rgba(184, 138, 98, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateY(0);
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, transform .22s ease, box-shadow .22s ease;
}

.fight-btn.is-pressed {
  animation: fightBtnPress .48s ease;
}

.fight-btn.is-complete {
  background: #33ad8b;
  color: #f8faf7;
  border-color: rgba(248, 250, 247, .34);
}

.fight-btn__forest {
  width: 38px;
  height: 29px;
  flex: 0 0 auto;
}

.fight-btn__forest path,
.fight-btn__forest ellipse {
  transition: fill .4s ease, stroke .4s ease;
}

.fight-btn.is-complete .fight-btn__forest path {
  stroke: rgba(248, 250, 247, .82);
}

.fight-btn.is-complete .fight-btn__forest ellipse {
  fill: rgba(248, 250, 247, .9);
}

.fight-btn__label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  letter-spacing: 0;
}

.fight-arrow {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ddefd9;
  color: #33ad8b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62), 0 1px 4px rgba(51, 173, 139, .10);
  transition: background-color .4s ease, color .4s ease, box-shadow .4s ease;
}

.fight-btn.is-complete .fight-arrow {
  background: rgba(255, 255, 255, .2);
  color: #f8faf7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.fight-arrow svg {
  width: 17px;
  height: 17px;
}

.fight-effect {
  position: absolute;
  left: var(--start-x);
  top: var(--start-y);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) translate(0, 0) scale(.72) rotate(0deg);
  animation: fightEffectFloat 1.9s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

.fight-effect--ring {
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(248, 250, 247, .78);
  box-shadow: 0 0 16px rgba(221, 239, 230, .46);
  animation: fightHarmonyRing .72s ease-out forwards;
  animation-delay: 0s;
}

.fight-effect--note {
  color: var(--effect-color, #33ad8b);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: var(--size, 20px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(255, 255, 255, .72);
}

.fight-effect--leaf,
.fight-effect--petal {
  width: var(--size, 17px);
  height: calc(var(--size, 17px) * .62);
  border-radius: 100% 0 100% 0;
}

.fight-effect--leaf {
  background: var(--effect-color, #5cc7a5);
}

.fight-effect--petal {
  background: var(--effect-color, #f3a6b8);
}

.fight-message {
  position: absolute;
  left: 18px; top: 296px;
  width: 350px; height: 57px;
  background: #f8faf7;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fight-message__inner {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 16px;
  color: #42301d;
  text-align: center;
  line-height: 30px;
}

.fight-message.is-bright {
  animation: fightMessageGlow 1.05s ease;
}

@keyframes fightBtnPress {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(66, 48, 29, .12), 0 2px 5px rgba(184, 138, 98, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
  }
  42% {
    transform: translateY(4px);
    box-shadow: 0 3px 10px rgba(66, 48, 29, .10), 0 1px 3px rgba(184, 138, 98, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
  }
}

@keyframes fightEffectFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 0) scale(.72) rotate(0deg);
  }
  16% {
    opacity: .92;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--move-x), var(--move-y)) scale(1.08) rotate(var(--rotate));
  }
}

@keyframes fightHarmonyRing {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.55);
  }
  18% {
    opacity: .78;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(5.2);
  }
}

@keyframes fightMessageGlow {
  0%, 100% {
    filter: brightness(1);
    box-shadow: none;
  }
  35% {
    filter: brightness(1.08);
    box-shadow: 0 0 18px rgba(248, 250, 247, .82), 0 5px 16px rgba(92, 199, 165, .12);
  }
}

/* ===== SNS SECTION ===== */
.s-sns { position: relative; height: 271px; overflow: hidden; }

.s-sns__bg { position: absolute; left: 0; top: 0; width: 390px; height: 283px; overflow: hidden; }

.s-sns__bg img {
  position: absolute;
  max-width: none;
  pointer-events: none;
  height: 479.95%;
  left: -152.31%; top: -265.42%;
  width: 464.36%;
}

.sns-heading { position: absolute; left: 2px; top: 0; width: 388px; height: 82px; overflow: hidden; }

.sns-heading__frag { position: absolute; left: 28px; top: 37px; width: 28.644px; height: 38px; }

.sns-heading__title {
  position: absolute;
  left: 68px; top: 33px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 36px;
  color: #5c5c5c;
  white-space: nowrap;
  line-height: normal;
}

.sns-icons {
  position: absolute;
  left: 0; top: 119px;
  width: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 29px;
}

.sns-icon { cursor: pointer; text-decoration: none; display: block; transition: opacity 0.2s; }
.sns-icon:hover { opacity: 0.7; }

.sns-handle {
  position: absolute;
  left: 50%; top: 236px;
  transform: translateX(-50%);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #42301d;
  text-align: center;
  width: 390px;
  line-height: normal;
  white-space: nowrap;
}

/* ===== MENU OVERLAY ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(66, 48, 29, 0.94);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.active { opacity: 1; pointer-events: all; }

.menu-content { text-align: center; position: relative; }

.menu-close {
  position: absolute;
  top: -60px; right: -20px;
  background: none; border: none;
  color: #f8faf7;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.menu-content nav { display: flex; flex-direction: column; gap: 40px; }

.menu-content nav a {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 32px;
  color: #f8faf7;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

.menu-content nav a:hover { color: #33ad8b; }
