body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #3f4652;
  background: linear-gradient(
    135deg,
    #c6e6ee 0%,   /* 少し濃い水色 */
    #d9eef4 40%,
    #eef7fa 100%
  );
}

.page-container {
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.diagnosis-card {
  width: 100%;
  padding: 48px 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(180, 200, 210, 0.65);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(120, 150, 165, 0.18);
  backdrop-filter: blur(10px);
}

.page-title {
  font-family: "Kiwi Maru", serif;
  font-size: 42px;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
  color: #4b6470;
}

.page-text-main {
  font-size: 20px;
  line-height: 1.8;
  margin: 0 0 10px;
  color: #5f6f78;
  font-weight: 600;
}

.page-text-sub {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  color: #7d8990;
}

.page-text-sub + .page-text-sub {
  margin-top: 6px;
}

.page-text-sub:last-of-type {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 42px;
}

.main-button {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 16px 36px;
  border-radius: 999px;
  background: #f6e7a1;
  color: #5a5a5a;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(160, 160, 120, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-button:hover {
  transform: translateY(-2px);
  background: #f2dc8c;
}

.ripple-button::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.ripple-button:active::after {
  animation: ripple 0.55s ease-out;
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.7;
  }

  100% {
    width: 260px;
    height: 260px;
    opacity: 0;
  }
}

.loading-text {
  font-size: 20px;
  letter-spacing: 0.16em;
  color: #7f8d96;
  animation: blink 1s infinite;
  margin: 36px 0;
}

@keyframes blink {
  0%, 100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

.fortune-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 22px;
  line-height: 1.8;
  color: #5ea9c6;
  font-weight: 600;
  margin: 40px 0;
  letter-spacing: 0.05em;
}

.fortune-text.rare {
  color: #dbc30e;
  font-weight: 700;
  animation: glow 1.5s ease-in-out infinite alternate;
}

.rare-badge {
  font-size: 13px;
  font-weight: 700;
  color: #d4a800;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.rare-badge::before,
.rare-badge::after {
  content: "✦";
  margin: 0 4px;
}

@keyframes glow {
  from {
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.2);
  }
  to {
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  }
}

.action-links {
  display: flex;
  justify-content: center;
  gap: 60px; /* ←ここで間隔調整 */
  margin-top: 32px;
}

.sub-link {
  display: inline-block;
  margin-top: 28px;
  color: #5f7f8c;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #b7dce5;
  padding-bottom: 4px;
}

.sub-link:hover {
  opacity: 0.65;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
    .action-links {
    gap: 24px;
  }

  .page-container {
    padding: 56px 20px;
  }

  .diagnosis-card {
    padding: 40px 22px;
  }

  .page-title {
    font-size: 32px;
  }

  .page-text-main {
    font-size: 18px;
  }

  .page-text-sub {
    font-size: 13px;
  }

  .fortune-text {
    font-size: 24px;
  }
}
