:root {
  color: #17202a;
  background: #f7f9fb;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo,
    system-ui, sans-serif;
  font-feature-settings: "palt";
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 64%, #ffffff 100%);
  overflow-wrap: anywhere;
}

#root {
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-enter {
  animation: page-enter 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lift-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.lift-card:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 18px 44px rgba(23, 32, 42, 0.1);
  transform: translateY(-3px);
}

.pressable {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.pressable:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.pressable:active {
  transform: translateY(1px) scale(0.99);
}

.bar-fill {
  animation: bar-grow 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: left center;
}

.ring-spin {
  animation: ring-settle 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.phone-safe {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

.jp-wrap {
  overflow-wrap: anywhere;
  word-break: break-all;
}

p,
h1,
h2,
h3,
a,
button,
span,
figcaption {
  overflow-wrap: anywhere;
  word-break: break-word;
}

p {
  word-break: break-all;
}

@media (max-width: 900px) {
  .pressable {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
  }

  main {
    width: 100%;
    max-width: 390px;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
  }
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bar-grow {
  from {
    transform: scaleX(0.2);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes ring-settle {
  from {
    opacity: 0.2;
    transform: rotate(-22deg) scale(0.94);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

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