/* 歯科衛生士キャラ診断 - メインスタイル */

/* ===== リセット & 基本設定 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット - パステルブルー系 */
    --primary-blue: #80BFFF;
    --light-blue: #B3D9FF;
    --pale-blue: #E6F3FF;
    --white: #FFFFFF;
    
    /* グラデーション */
    --gradient-bg: linear-gradient(180deg, #E6F3FF 0%, #B3D9FF 50%, #80BFFF 100%);
    
    /* テキストカラー */
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    
    /* ボタンカラー */
    --btn-primary: #80BFFF;
    --btn-secondary: #FFB3D9;
    --btn-hover: #66A3E0;
    
    /* シャドウ */
    --shadow-sm: 0 2px 8px rgba(128, 191, 255, 0.2);
    --shadow-md: 0 4px 16px rgba(128, 191, 255, 0.3);
    --shadow-lg: 0 8px 24px rgba(128, 191, 255, 0.4);
}

body {
    font-family: 'Rounded Mplus 1c', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Meiryo', 'メイリオ', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--gradient-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Google Fonts - Rounded Mplus */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@300;400;500;700;800&display=swap');

/* ===== 共通レイアウト ===== */
.container {
    max-width: 768px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== ボタンスタイル ===== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #80BFFF 0%, #66A3E0 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #66A3E0 0%, #4D8FCC 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #FFB3D9 0%, #FF99C8 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #FF99C8 0%, #FF80B8 100%);
}

.btn-outline {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--pale-blue);
    transform: translateY(-2px);
}

/* ===== カードスタイル ===== */
.card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-clickable {
    cursor: pointer;
}

/* ===== タイトル・見出し ===== */
h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 24px;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

p {
    margin-bottom: 16px;
    line-height: 1.8;
}

/* ===== アニメーション ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* ===== キラキラエフェクト ===== */
.sparkle {
    position: relative;
}

.sparkle::before,
.sparkle::after {
    content: '✨';
    position: absolute;
    font-size: 20px;
    animation: float 3s ease-in-out infinite;
}

.sparkle::before {
    top: -10px;
    left: -10px;
}

.sparkle::after {
    bottom: -10px;
    right: -10px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 1;
    }
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ===== ローディング ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== ユーティリティクラス ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
    display: none;
}
