/* 全体レイアウト */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Meiryo", sans-serif;
  background: radial-gradient(circle at top, #f9f2ff 0%, #e2f6ff 40%, #f5f5ff 100%);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* アプリの枠 */
.app {
  max-width: 720px;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(90, 78, 130, 0.25);
  padding: 28px 22px 32px;
}

/* ヘッダー */
.header {
  text-align: center;
  margin-bottom: 20px;
}

.title {
  margin: 0 0 8px;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  color: #6a4aae;
}

.subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

/* カード部分 */
.stone-card {
  margin-top: 20px;
  padding: 20px 18px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f9f5ff 0%, #f0fbff 50%, #fdf7f0 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(143, 117, 190, 0.25);
}

.section-label {
  margin: 0 0 12px;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c7ac8;
}

/* 画像 */
.image-wrapper {
  width: 100%;
  background: radial-gradient(circle at top, #ffffff 0%, #efe8ff 50%, #ffffff 100%);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

#stone-image {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(90, 78, 130, 0.3);
}

/* テキスト */
.stone-name {
  margin: 6px 0 8px;
  font-size: 1.4rem;
  text-align: center;
  color: #4d3b86;
}

.stone-info {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
}

/* ボタン */
.button-area {
  text-align: center;
  margin-top: 20px;
}

#stone-button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #ff7fbd 0%, #ffb36c 50%, #ffc46c 100%);
  box-shadow: 0 8px 20px rgba(255, 143, 171, 0.5);
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
}

#stone-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 143, 171, 0.6);
  filter: brightness(1.03);
}

#stone-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(255, 143, 171, 0.6);
}

/* スマホ向け調整 */
@media (max-width: 600px) {
  .app {
    padding: 18px 14px 22px;
    border-radius: 18px;
  }

  .title {
    font-size: 1.6rem;
  }

  .stone-card {
    padding: 16px 12px 18px;
  }

  #stone-image {
    max-width: 100%;
  }
}
