/* ========================================
   ポコリス - 推し活応援サイト
   共通スタイルシート
   ======================================== */

/* ========== CSS Custom Properties ========== */
:root {
  /* パステルカラーパレット */
  --color-pink: #FFB6C1;
  --color-pink-light: #FFE4EC;
  --color-pink-dark: #FF69B4;
  --color-purple: #DDA0DD;
  --color-purple-light: #E9D5FF;
  --color-purple-dark: #9B59B6;
  --color-blue: #87CEEB;
  --color-blue-light: #E0F2FE;
  --color-mint: #98FB98;
  --color-mint-light: #F0FFF0;
  --color-yellow: #FFFACD;
  --color-yellow-light: #FFFEF0;
  --color-peach: #FFDAB9;
  --color-peach-light: #FFF5EE;
  --color-lavender: #E6E6FA;

  /* グラデーション */
  --gradient-rainbow: linear-gradient(135deg, #FFB6C1, #DDA0DD, #87CEEB, #98FB98);
  --gradient-pink: linear-gradient(135deg, #FFB6C1, #FF69B4);
  --gradient-purple: linear-gradient(135deg, #DDA0DD, #9B59B6);
  --gradient-sunset: linear-gradient(135deg, #FFB6C1, #FFDAB9, #FFFACD);
  --gradient-dreamy: linear-gradient(135deg, #E9D5FF, #FFE4EC, #E0F2FE);

  /* テキストカラー */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-white: #FFFFFF;

  /* その他 */
  --shadow-soft: 0 4px 15px rgba(255, 182, 193, 0.3);
  --shadow-card: 0 8px 25px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 35px rgba(255, 105, 180, 0.25);
  --border-radius: 20px;
  --border-radius-sm: 12px;
  --border-radius-lg: 30px;

  /* フォント */
  --font-main: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* ========== Base Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Maru Gothic', var(--font-main);
  background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
  /* パステルグラデーション */
  background-size: 200% 200%;
  animation: gradientBG 15s ease infinite;
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.8;
  letter-spacing: 0.03em;
  /* 文字間を少し開けてモダンに */
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.4;
  color: #4b4b4b;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.2rem;
}

/* ========== Container ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Header ========== */
.header {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
  background: none;
  -webkit-text-fill-color: white;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.tagline {
  color: #666;
  font-size: 1.05rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.6);
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
}

/* ========== Diagnosis Cards Grid ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 20px 60px;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
}

/* ========== Diagnosis Card (Glassmorphism) ========== */
.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 35px 25px;
  text-align: center;
  box-shadow:
    0 10px 30px -5px rgba(0, 0, 0, 0.05),
    0 5px 15px -5px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 20px 40px -5px rgba(161, 140, 209, 0.2),
    0 10px 20px -5px rgba(0, 0, 0, 0.05);
  border-color: #fff;
}

.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.card-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.4s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #444;
  margin-bottom: 12px;
  background: linear-gradient(45deg, #444, #666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-description {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-tag.pink {
  background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
}

.card-tag.purple {
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.card-tag.blue {
  background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}

.card-tag.yellow {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.card-tag.mint {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.card-tag.new {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
  position: relative;
  overflow: hidden;
}

/* ========== NEW Badge ========== */
.new-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #FF6B6B;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
  z-index: 5;
}

/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  margin-top: 40px;
}

.footer p {
  color: #666;
  font-weight: 500;
}

.footer a {
  color: var(--color-pink-dark);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-pink);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: white;
  color: var(--color-pink-dark);
  border: 2px solid var(--color-pink);
}

.btn-secondary:hover {
  background: var(--color-pink-light);
}

/* ========== Animations ========== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

.animate-sparkle {
  animation: sparkle 1.5s ease-in-out infinite;
}

.animate-slideIn {
  animation: slideIn 0.5s ease-out forwards;
}

/* Card animation on load */
.card {
  animation: slideIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}

.cards-grid .card:nth-child(1) {
  animation-delay: 0.1s;
}

.cards-grid .card:nth-child(2) {
  animation-delay: 0.15s;
}

.cards-grid .card:nth-child(3) {
  animation-delay: 0.2s;
}

.cards-grid .card:nth-child(4) {
  animation-delay: 0.25s;
}

.cards-grid .card:nth-child(5) {
  animation-delay: 0.3s;
}

.cards-grid .card:nth-child(6) {
  animation-delay: 0.35s;
}

.cards-grid .card:nth-child(7) {
  animation-delay: 0.4s;
}

.cards-grid .card:nth-child(8) {
  animation-delay: 0.45s;
}

.cards-grid .card:nth-child(9) {
  animation-delay: 0.5s;
}

.cards-grid .card:nth-child(10) {
  animation-delay: 0.55s;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .logo {
    font-size: 2.2rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .card {
    padding: 25px;
  }

  .card-icon {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 30px 15px 20px;
  }

  .logo {
    font-size: 1.8rem;
  }

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

/* ========== Utility Classes ========== */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}

/* PCでは改行しない */
.mobile-br {
  display: none;
}

/* スマホでは改行する */
@media (max-width: 768px) {
  .mobile-br {
    display: inline;
  }
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

/* ========== Decorative Elements (Sparkles) ========== */
.sparkle-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.sparkle-bg::before,
.sparkle-bg::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s infinite ease-in-out;
}

.sparkle-bg::before {
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.sparkle-bg::after {
  bottom: 10%;
  right: -5%;
  animation-delay: -5s;
}

/* ========== Quiz Pages Modernization (Global Override) ========== */
.quiz-card {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.option-btn {
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
  backdrop-filter: blur(5px);
}

.option-btn:hover {
  transform: translateY(-3px) scale(1.01) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

/* フォーム要素もモダンに */
input,
select,
textarea {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.3);
}