/* カスタムスタイル - ピンクを基調とした可愛いデザイン */

/* グローバルスタイル */
body {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, 'メイリオ', Osaka, 'MS PGothic', arial, helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* カスタムアニメーション */
@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-pink {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* アニメーションクラス */
.animate-bounce-soft {
    animation: bounce-soft 2s ease-in-out infinite;
}

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

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

/* カスタムグラデーション */
.bg-gradient-cute {
    background: linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 50%, #F8BBD9 100%);
}

.bg-gradient-soft {
    background: linear-gradient(135deg, #FFF0F5 0%, #FFE4E6 50%, #F8F0FF 100%);
}

/* ボタンホバー効果 */
.btn-cute:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 182, 193, 0.4);
}

/* 選択肢のホバー効果 */
.choice-item label:hover {
    transform: translateX(5px);
    transition: all 0.2s ease;
}

/* ラジオボタンのカスタムスタイル */
input[type="radio"]:checked {
    background-color: #F472B6;
    border-color: #F472B6;
}

input[type="radio"]:focus {
    outline: none;
    ring: 2px;
    ring-color: #F472B6;
    ring-opacity: 0.5;
}

/* カードシャドウ効果 */
.card-cute {
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.15);
    transition: all 0.3s ease;
}

.card-cute:hover {
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.25);
    transform: translateY(-2px);
}

/* 統計表示のアニメーション */
.stats-number {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ローディングスピナー */
.loading-spinner {
    border: 4px solid #FFC0CB;
    border-top: 4px solid #F472B6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 成功・エラーメッセージ */
.message-success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    margin: 10px 0;
    text-align: center;
    font-weight: 500;
}

.message-error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    margin: 10px 0;
    text-align: center;
    font-weight: 500;
}

/* レスポンシブ調整 */
@media (max-width: 640px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .btn-text {
        font-size: 0.875rem;
    }
}

/* タッチフィードバック */
.touch-feedback:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #FFF0F5;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #F472B6;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #EC4899;
}

/* フォーカス表示の改善 */
button:focus,
input:focus {
    outline: 2px solid #F472B6;
    outline-offset: 2px;
}

/* カード内テキストの行間調整 */
.text-content {
    line-height: 1.7;
    letter-spacing: 0.025em;
}

/* アイコンの基本スタイル */
.icon-cute {
    color: #F472B6;
    text-shadow: 0 1px 3px rgba(244, 114, 182, 0.3);
}

/* 問題番号バッジ */
.question-badge {
    background: linear-gradient(135deg, #F472B6, #EC4899);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

/* 統計カードのホバー効果 */
.stats-card:hover .stats-number {
    transform: scale(1.1);
}

/* 可愛いボーダー */
.border-cute {
    border: 2px solid transparent;
    background: linear-gradient(white, white), linear-gradient(135deg, #F472B6, #EC4899, #BE185D);
    background-clip: padding-box, border-box;
}

/* ハート形のデコレーション */
.heart-decoration::before {
    content: "💖";
    margin-right: 8px;
    animation: pulse-pink 2s ease-in-out infinite;
}

/* ふわふわエフェクト */
.float-effect {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* グラデーションテキスト */
.gradient-text {
    background: linear-gradient(135deg, #F472B6, #EC4899, #BE185D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}