/* 前世診断アプリ - スタイルシート */

/* メインコンテナ */
.zensei-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333;
}

/* ヘッダー */
.zensei-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.zensei-header h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.zensei-description {
    font-size: 1.1em;
    opacity: 0.9;
    line-height: 1.6;
}

/* フォームステップ */
.form-step {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in;
}

.form-step h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.4em;
    text-align: center;
}

.form-step p {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1em;
}

/* 日付入力 */
.date-input-group {
    text-align: center;
    margin-bottom: 25px;
}

.date-input-group input[type="date"] {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.1em;
    width: 200px;
    transition: border-color 0.3s ease;
}

.date-input-group input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 質問オプション */
.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.question-options label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.question-options label:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.question-options input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.question-options label:has(input:checked) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ボタン */
.zensei-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    min-width: 150px;
}

.zensei-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.zensei-btn.retry {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    margin-top: 20px;
}

/* 結果表示 */
.zensei-result {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

.result-header {
    text-align: center;
    margin-bottom: 25px;
}

.result-header h3 {
    font-size: 1.8em;
    color: #4a5568;
    margin-bottom: 10px;
}

.result-character {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 10px;
}

.result-character h4 {
    font-size: 2em;
    color: #2d3748;
    margin-bottom: 15px;
}

.character-image {
    font-size: 4em;
    margin-bottom: 10px;
}

.result-story,
.result-personality,
.result-advice {
    margin-bottom: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.result-story h5,
.result-personality h5,
.result-advice h5 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.result-story p,
.result-personality p,
.result-advice p {
    line-height: 1.7;
    color: #2d3748;
    margin: 0;
}

/* シェアボタン */
.result-share {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: #edf2f7;
    border-radius: 10px;
}

.result-share h5 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

.share-btn.line {
    background: #00c300;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

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

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

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .zensei-container {
        margin: 10px;
        padding: 15px;
    }

    .form-step {
        padding: 20px;
    }

    .zensei-header h2 {
        font-size: 1.8em;
    }

    .question-options {
        gap: 8px;
    }

    .question-options label {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .share-btn {
        width: 120px;
    }

    .date-input-group input[type="date"] {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .zensei-container {
        margin: 5px;
        padding: 10px;
    }

    .result-character h4 {
        font-size: 1.6em;
    }

    .character-image {
        font-size: 3em;
    }
}