.fun-ui-page,
.fun-ui-page * {
  box-sizing: border-box;
}

.fun-ui-page {
  --fun-ui-ink: #17202a;
  --fun-ui-muted: #657282;
  --fun-ui-border: #eadfd3;
  --fun-ui-bg: #fffdf8;
  --fun-ui-soft: #fff6e9;
  --fun-ui-accent: #f29f58;
  --fun-ui-accent-2: #78b7a3;
  --fun-ui-pink: #f2a7b4;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  background: transparent;
  color: var(--fun-ui-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
}

.fun-ui-page + .seeda-section--footer .seeda-footer {
  margin-top: 0;
}

.fun-ui-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 4px;
  background: transparent;
  pointer-events: none;
}

.fun-ui-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--fun-ui-accent), var(--fun-ui-accent-2));
}

.fun-ui-hero {
  padding: 62px 0 46px;
}

.fun-ui-eyebrow {
  margin: 0 0 12px;
  color: var(--fun-ui-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fun-ui-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.fun-ui-hero__sub {
  margin: 18px 0 0;
  color: var(--fun-ui-ink);
  font-size: clamp(18px, 2.4vw, 25px);
  font-weight: 800;
  line-height: 1.7;
}

.fun-ui-hero__lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--fun-ui-muted);
  line-height: 1.9;
}

.fun-ui-hero__anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.fun-ui-hero__anchors a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid #d8eee6;
  border-radius: 999px;
  background: #edf8f4;
  color: #4d907b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.fun-ui-hero__anchors a:hover,
.fun-ui-hero__anchors a:focus-visible {
  background: var(--fun-ui-accent-2);
  color: #fff;
  outline: none;
}

.fun-ui-button,
.fun-ui-demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.fun-ui-button--primary,
.fun-ui-demo-button {
  margin-top: 24px;
  padding: 12px 22px;
  background: var(--fun-ui-ink);
  color: #fff;
  box-shadow: 0 12px 24px rgba(23, 32, 42, .16);
}

.fun-ui-button:hover,
.fun-ui-button:focus-visible,
.fun-ui-demo-button:hover,
.fun-ui-demo-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(23, 32, 42, .18), 0 0 0 4px rgba(23, 32, 42, .08);
  outline: none;
}

.fun-ui-bg-demo span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: var(--fun-ui-accent);
  opacity: .42;
  transition: transform .35s ease;
}

.fun-ui-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  scroll-margin-top: 90px;
}

.fun-ui-category-heading {
  grid-column: 1 / -1;
  padding-top: 10px;
  scroll-margin-top: 96px;
}

.fun-ui-category-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #edf8f4;
  color: #4d907b;
  font-size: 12px;
  font-weight: 800;
}

.fun-ui-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 418px;
  padding: 22px;
  border: 1px solid var(--fun-ui-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(103, 82, 58, .09);
  overflow: hidden;
}

.fun-ui-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.fun-ui-card__num,
.fun-ui-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.fun-ui-card__num {
  width: 42px;
  height: 42px;
  background: var(--fun-ui-soft);
  color: var(--fun-ui-accent);
}

.fun-ui-card__tag {
  min-height: 30px;
  padding: 5px 11px;
  background: #edf8f4;
  color: #4d907b;
  font-size: 12px;
}

.fun-ui-card-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.38;
  letter-spacing: 0;
}

.fun-ui-card-description,
.fun-ui-card-note {
  margin: 0;
  color: var(--fun-ui-muted);
  line-height: 1.72;
}

.fun-ui-card-note {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 16px;
  background: #fffaf2;
  font-size: 13px;
}

.fun-ui-demo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #f1e7dc;
  border-radius: 20px;
  background: linear-gradient(135deg, #fffdfa, #f8fbf8);
  overflow: hidden;
}

.fun-ui-particle {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--size, 10px);
  height: var(--size, 10px);
  border-radius: var(--radius, 3px);
  background: var(--color, var(--fun-ui-accent));
  pointer-events: none;
  animation: fun-ui-pop .78s ease-out forwards;
}

.fun-ui-particle--heart,
.fun-ui-particle--star {
  width: auto;
  height: auto;
  background: transparent;
  color: var(--color, var(--fun-ui-pink));
  font-size: var(--size, 18px);
}

.fun-ui-particle--heart::before {
  content: "";
  display: block;
  width: var(--size, 18px);
  height: var(--size, 18px);
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 58' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M32 55C19.4 44.2 6 34.1 6 20.2 6 9.5 14.5 3 23.1 3c4.7 0 8 2.4 8.9 5.4C32.9 5.4 36.2 3 40.9 3 49.5 3 58 9.5 58 20.2 58 34.1 44.6 44.2 32 55Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 58' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M32 55C19.4 44.2 6 34.1 6 20.2 6 9.5 14.5 3 23.1 3c4.7 0 8 2.4 8.9 5.4C32.9 5.4 36.2 3 40.9 3 49.5 3 58 9.5 58 20.2 58 34.1 44.6 44.2 32 55Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(1.15);
}

.fun-ui-particle--star::before {
  content: "★";
}

.fun-ui-squish {
  box-shadow: 0 10px 0 #0b1118, 0 20px 28px rgba(23, 32, 42, .18);
  transform-origin: center bottom;
}

.fun-ui-squish:hover,
.fun-ui-squish:focus-visible {
  box-shadow: 0 10px 0 #0b1118, 0 22px 30px rgba(23, 32, 42, .2);
}

.fun-ui-squish:active,
.fun-ui-squish.is-popping {
  animation: fun-ui-squish .54s cubic-bezier(.2, 1.8, .4, 1);
}

.fun-ui-like {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid #f6c9d2;
  border-radius: 999px;
  background: #fff6f8;
  color: #c95168;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.fun-ui-heart-icon {
  display: inline-block;
  width: 22px;
  height: 20px;
  transform: translateY(1px);
  overflow: visible;
}

.fun-ui-heart-icon path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linejoin: round;
  transition: fill .18s ease, stroke-width .18s ease;
}

.fun-ui-like[aria-pressed="true"] .fun-ui-heart-icon {
  color: #e05570;
}

.fun-ui-like[aria-pressed="true"] .fun-ui-heart-icon path {
  fill: currentColor;
  stroke-width: 0;
}

.fun-ui-check-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  font-weight: 800;
}

.fun-ui-check-label input {
  width: 22px;
  height: 22px;
  accent-color: var(--fun-ui-accent-2);
}

.fun-ui-stamp {
  position: absolute;
  right: -4px;
  top: -12px;
  padding: 6px 10px;
  border: 2px solid #e05570;
  border-radius: 8px;
  color: #e05570;
  font-size: 18px;
  font-weight: 900;
  opacity: 0;
  transform: rotate(-10deg) scale(.4);
  transition: opacity .2s ease, transform .32s cubic-bezier(.2, 1.6, .4, 1);
}

.fun-ui-check-label input:checked + .fun-ui-stamp,
.fun-ui-check-label.is-stamped .fun-ui-stamp {
  opacity: 1;
  transform: rotate(-10deg) scale(1);
}

.fun-ui-mini-card {
  width: min(100%, 230px);
  padding: 22px;
  border: 1px solid var(--fun-ui-border);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-align: left;
  box-shadow: 0 10px 20px rgba(23, 32, 42, .08);
  transition: transform .24s ease, box-shadow .24s ease;
  cursor: pointer;
}

.fun-ui-mini-card strong,
.fun-ui-mini-card span {
  display: block;
}

.fun-ui-mini-card span {
  margin-top: 8px;
  color: var(--fun-ui-muted);
  font-size: 13px;
}

.fun-ui-mini-card:hover,
.fun-ui-mini-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(23, 32, 42, .14), 0 0 0 4px rgba(120, 183, 163, .14);
  outline: none;
}

.fun-ui-shine {
  position: relative;
  overflow: hidden;
}

.fun-ui-shine::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -42%;
  width: 34%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  transform: rotate(24deg);
}

.fun-ui-shine:hover::after,
.fun-ui-shine:focus-visible::after {
  animation: fun-ui-shine .82s ease;
}

.fun-ui-input-wrap {
  display: grid;
  gap: 8px;
  width: min(100%, 260px);
  color: var(--fun-ui-ink);
  font-weight: 800;
}

.fun-ui-input-wrap input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--fun-ui-border);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
}

.fun-ui-input-wrap input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(242, 159, 88, .14);
}

.fun-ui-praise-message {
  min-height: 20px;
  color: #4d907b;
  font-size: 13px;
}

.fun-ui-complete {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--fun-ui-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.fun-ui-complete svg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #edf8f4;
}

.fun-ui-complete path {
  fill: none;
  stroke: #4d907b;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 58;
  stroke-dashoffset: 58;
}

.fun-ui-complete.is-done path {
  animation: fun-ui-draw .55s ease forwards;
}

.fun-ui-face-demo {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(100%, 260px);
}

.fun-ui-face {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff6d8;
  font-size: 46px;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease;
}

.fun-ui-face.is-happy {
  background: #e9f8ef;
  transform: rotate(2deg) scale(1.04);
}

.fun-ui-face.is-sad {
  background: #eef2f7;
  transform: rotate(-2deg);
}

.fun-ui-face-demo input {
  width: 100%;
  accent-color: var(--fun-ui-accent);
}

.fun-ui-tabs {
  width: min(100%, 300px);
}

.fun-ui-tab-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-bottom: 8px;
}

.fun-ui-tab-list button {
  border: 0;
  background: transparent;
  color: var(--fun-ui-muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.fun-ui-tab-list button.is-active {
  color: var(--fun-ui-ink);
}

.fun-ui-tab-list span {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 33.333%;
  height: 4px;
  border-radius: 999px;
  background: var(--fun-ui-accent);
  transition: transform .28s ease;
}

.fun-ui-tab-panel {
  margin: 16px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  color: var(--fun-ui-muted);
  line-height: 1.7;
  animation: fun-ui-panel .24s ease;
}

.fun-ui-accordion {
  width: min(100%, 310px);
}

.fun-ui-accordion button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--fun-ui-border);
  border-radius: 16px;
  background: #fff;
  color: var(--fun-ui-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.fun-ui-accordion > div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.fun-ui-accordion > div > p {
  overflow: hidden;
  margin: 0;
  color: var(--fun-ui-muted);
  line-height: 1.75;
}

.fun-ui-accordion.is-open > div {
  grid-template-rows: 1fr;
  margin-top: 12px;
}

.fun-ui-magnet {
  will-change: transform;
}

.fun-ui-local-meter {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 250px);
}

.fun-ui-local-meter span {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e9edf0;
  overflow: hidden;
}

.fun-ui-local-meter i {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fun-ui-accent), var(--fun-ui-accent-2));
  transition: width .28s ease;
}

.fun-ui-toggle {
  position: relative;
  width: 94px;
  height: 48px;
  border: 1px solid var(--fun-ui-border);
  border-radius: 999px;
  background: #fff6d8;
  cursor: pointer;
  transition: background .24s ease;
}

.fun-ui-toggle span {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(23, 32, 42, .16);
  transition: transform .24s ease;
}

.fun-ui-toggle b,
.fun-ui-toggle i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
}

.fun-ui-toggle b {
  left: 16px;
}

.fun-ui-toggle i {
  right: 14px;
  color: #5d6571;
  font-size: 13px;
  font-weight: 800;
}

.fun-ui-toggle[aria-pressed="true"] {
  background: #dde9f6;
}

.fun-ui-toggle[aria-pressed="true"] span {
  transform: translateX(47px);
}

.fun-ui-bg-demo {
  position: relative;
  width: min(100%, 280px);
  min-height: 124px;
  border-radius: 20px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.fun-ui-bg-demo span:nth-child(1) {
  width: 58px;
  height: 58px;
  left: 18px;
  top: 16px;
}

.fun-ui-bg-demo span:nth-child(2) {
  width: 34px;
  height: 34px;
  right: 28px;
  top: 24px;
  background: var(--fun-ui-accent-2);
}

.fun-ui-bg-demo span:nth-child(3) {
  width: 70px;
  height: 22px;
  right: 54px;
  bottom: 18px;
  border-radius: 12px;
  background: var(--fun-ui-pink);
}

.fun-ui-bg-demo strong {
  position: relative;
  z-index: 1;
}

.fun-ui-plane-button {
  position: relative;
  min-height: 48px;
  padding: 12px 64px 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--fun-ui-ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  overflow: visible;
}

.fun-ui-plane-button i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-44%) scale(2);
  transform-origin: center;
  font-style: normal;
  line-height: 1;
  z-index: 2;
}

.fun-ui-plane-button.is-flying i {
  animation: fun-ui-plane .7s ease forwards;
}

.fun-ui-count-demo {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.fun-ui-count-demo strong {
  font-size: 48px;
  line-height: 1;
}

.fun-ui-related {
  width: 100vw;
  margin: 56px calc(50% - 50vw) 0;
  padding: 44px max(20px, calc((100vw - 1180px) / 2));
  border: 0;
  border-radius: 0;
  background: #fff6e9;
  box-shadow: none;
}

.fun-ui-related__eyebrow {
  margin: 0 0 8px;
  color: var(--fun-ui-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fun-ui-related h2 {
  margin: 0 0 10px;
  color: var(--fun-ui-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
  letter-spacing: 0;
}

.fun-ui-related p {
  max-width: 720px;
  margin: 0;
  color: var(--fun-ui-muted);
  line-height: 1.8;
}

.fun-ui-related a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--fun-ui-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.fun-ui-related a:hover,
.fun-ui-related a:focus-visible {
  background: var(--fun-ui-accent-2);
  outline: none;
}

@keyframes fun-ui-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.4);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot, 120deg)) scale(1);
  }
}

@keyframes fun-ui-squish {
  0% {
    box-shadow: 0 10px 0 #0b1118, 0 20px 28px rgba(23, 32, 42, .18);
    transform: translateY(0) scale(1);
  }
  42% {
    box-shadow: 0 2px 0 #0b1118, 0 8px 14px rgba(23, 32, 42, .18);
    transform: translateY(8px) scale(1.08, .82);
  }
  72% {
    box-shadow: 0 13px 0 #0b1118, 0 22px 30px rgba(23, 32, 42, .16);
    transform: translateY(-3px) scale(.96, 1.08);
  }
  100% {
    box-shadow: 0 10px 0 #0b1118, 0 20px 28px rgba(23, 32, 42, .18);
    transform: translateY(0) scale(1);
  }
}

@keyframes fun-ui-shine {
  from {
    left: -42%;
  }
  to {
    left: 120%;
  }
}

@keyframes fun-ui-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fun-ui-panel {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fun-ui-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}

@keyframes fun-ui-plane {
  0% {
    opacity: 1;
    transform: translateY(-44%) scale(2);
  }
  100% {
    opacity: 0;
    transform: translate(96px, -96px) rotate(18deg) scale(2);
  }
}

@media (max-width: 760px) {
  .fun-ui-page {
    padding: 0 16px;
  }

  .fun-ui-hero {
    padding: 38px 0 30px;
  }

  .fun-ui-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .fun-ui-card {
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
  }

  .fun-ui-card-title {
    font-size: 20px;
  }

  .fun-ui-related {
    margin-top: 40px;
    padding: 34px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fun-ui-page *,
  .fun-ui-page *::before,
  .fun-ui-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
