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

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Segoe UI", sans-serif;
  background: radial-gradient(
    circle at top,
    #121826 0,
    #050710 45%,
    #020308 100%
  );
  color: #f9fafb;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-wrapper {
  width: 100%;
  padding: calc(32px + var(--safe-top)) calc(16px + var(--safe-right))
    calc(32px + var(--safe-bottom)) calc(16px + var(--safe-left));
}

.card {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 28px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(148, 163, 184, 0.18);
  text-align: center;
  backdrop-filter: blur(14px);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-icon {
  width: 148px;
  height: 148px;
  border-radius: 32px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(96, 165, 250, 0.12)
  );
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(148, 163, 184, 0.35);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.app-name {
  font-size: 2.1rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.tagline {
  font-size: 0.98rem;
  color: #cbd5f5;
  margin-bottom: 20px;
}

.description {
  font-size: 0.95rem;
  color: #e5e7eb;
  line-height: 1.7;
  margin-bottom: 28px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.badge-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  text-decoration: none;
  color: #f9fafb;
  font-size: 0.92rem;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.98),
    rgba(30, 64, 175, 0.95)
  );
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.7);
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    border-color 0.16s ease-out, background 0.16s ease-out;
}

.badge-button span {
  display: block;
}

.badge-button .sub {
  font-size: 0.7rem;
  opacity: 0.8;
}

.badge-button .main {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(191, 219, 254, 0.35);
  border-color: rgba(191, 219, 254, 0.75);
  background: linear-gradient(
    135deg,
    rgba(30, 64, 175, 0.98),
    rgba(37, 99, 235, 0.98)
  );
}

.badge-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.7),
    0 0 0 1px rgba(148, 163, 184, 0.7);
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.85rem;
}

.links a,
.section a {
  color: #9ca3af;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.links a::after,
.section a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #60a5fa, #a855f7);
  transition: width 0.16s ease-out;
}

.links a:hover,
.section a:hover {
  color: #e5e7eb;
}

.links a:hover::after,
.section a:hover::after {
  width: 100%;
}

.footer-note {
  margin-top: 24px;
  font-size: 0.75rem;
  color: #6b7280;
}

/* Deep link / 説明セクション */
.deeplink {
  margin-top: 24px;
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.4);
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.6;
}

.deeplink strong {
  color: #22d3ee;
}

.section {
  margin-top: 24px;
  text-align: left;
}

.section h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.section p {
  font-size: 0.9rem;
  color: #cbd5f5;
  margin: 4px 0;
  line-height: 1.6;
}

.section a,
.section a:visited {
  color: #f9fafb; /* 他の文字と同じくらいの白に */
  text-decoration: none; /* デフォルトの下線を消す（お好み） */
}

.section a:hover {
  text-decoration: underline; /* ホバー時にだけ下線（お好み） */
}

@media (max-width: 600px) {
  .card {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }

  .app-name {
    font-size: 1.7rem;
  }

  .description {
    font-size: 0.9rem;
  }
}
