@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

:root {
  --ink: #1b1d1c;
  --muted: #666b68;
  --line: #d9ddda;
  --paper: #f5f5f0;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(89, 130, 246, 0.08), transparent 26rem),
    var(--paper);
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 84px 0 32px;
}

.hero {
  max-width: 760px;
  margin-bottom: 64px;
}

.eyebrow,
.app-number,
footer {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--muted);
}

.eyebrow::before {
  width: 32px;
  height: 2px;
  content: "";
  background: var(--ink);
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6.2vw, 5.7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  --accent: #5379e8;
  position: relative;
  display: flex;
  min-height: 410px;
  padding: 28px;
  overflow: hidden;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  content: "";
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  border-radius: 50%;
  transition: transform 250ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  z-index: 1;
  border-color: var(--accent);
  box-shadow: 0 22px 45px rgba(35, 39, 37, 0.1);
  outline: none;
  transform: translateY(-7px);
}

.app-card:hover::after,
.app-card:focus-visible::after {
  transform: scale(1.25);
}

.app-card--orange {
  --accent: #ee7b44;
}

.app-card--green {
  --accent: #2f9873;
}

.app-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  border-radius: 16px;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 9px 18px color-mix(in srgb, var(--accent) 28%, transparent);
}

.app-content {
  margin-top: auto;
  padding-top: 72px;
}

.app-number {
  margin: 0 0 12px;
  color: var(--accent);
}

h2 {
  margin: 0 0 14px;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.app-content > p:last-child {
  min-height: 3.6em;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.app-link {
  z-index: 1;
  display: flex;
  margin-top: 32px;
  padding-top: 18px;
  justify-content: space-between;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
}

.app-link span {
  color: var(--accent);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.app-card:hover .app-link span {
  transform: translate(3px, -3px);
}

footer {
  display: flex;
  margin-top: 76px;
  padding-top: 24px;
  justify-content: space-between;
  color: #898d8a;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .page-shell {
    padding-top: 64px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 330px;
  }

  .app-content {
    padding-top: 48px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 44px;
  }

  .hero {
    margin-bottom: 42px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .app-card {
    padding: 24px;
  }

  footer {
    gap: 10px;
    flex-direction: column;
  }
}

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