@charset "UTF-8";

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

body {
  padding: 2rem 1rem;
  background-color: #fff0f5; /* ほんのりピンクの背景 */
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #555;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #ff69b4; /* ホットピンク */
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(255, 182, 193, 0.6);
  letter-spacing: 2px;
}

.tab-container {
  max-width: 600px;
  margin: auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(255, 192, 203, 0.5);
}

.tab-buttons {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
  border-bottom: 3px dashed #ffb6c1; /* かわいい点線 */
  padding-bottom: 5px;
}

.tab-button {
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 15px 15px 0 0;
  background-color: #ffe4e1; /* ミスティローズ */
  color: #d87093;
  font-weight: bold;
  position: relative;
  z-index: 2;
  border: 2px solid #ffb6c1;
  border-bottom: none;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background-color: #ffc0cb;
  transform: translateY(-2px);
}

.tab-button.active {
  background-color: #ff69b4; /* 選択中は鮮やかなピンク */
  color: #ffffff;
  border: 2px solid #ff1493;
  border-bottom: none;
  box-shadow: 0 -4px 10px rgba(255, 105, 180, 0.3);
}

.tab-content {
  display: none;
  padding: 1.5rem;
  background-color: #fffaf0; /* フローラルホワイト */
  border: 2px solid #ffb6c1;
  border-top: none;
  min-height: 200px;
  border-radius: 0 0 15px 15px;
  position: relative;
  z-index: 1;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.tab-content h2 {
  color: #db7093;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem 0;
  color: #ffb6c1;
  font-size: 0.9rem;
}

/* === キラキラエフェクト用のスタイル === */
.sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 16px;
  animation: sparkleAnim 0.6s forwards;
  z-index: 10;
}

@keyframes sparkleAnim {
  0% {
    transform: translate(0, 0) scale(0.5) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(1.4) rotate(180deg);
    opacity: 0;
  }
}