/* 占いモーダルのスタイル */
.fortune-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fortune-modal {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.5s ease;
}

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

.fortune-header {
    background: linear-gradient(135deg, #f8bbd0 0%, #d81b60 100%);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.fortune-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.fortune-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.fortune-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.fortune-body {
    padding: 30px;
}

.fortune-stars {
    text-align: center;
    margin-bottom: 25px;
}

.fortune-stars-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.stars {
    font-size: 32px;
    color: #ffd700;
}

.fortune-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid #d81b60;
}

.fortune-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #d81b60;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fortune-section-icon {
    font-size: 20px;
}

.fortune-section-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.fortune-lucky {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.lucky-item {
    padding: 15px;
    background: white;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #f8bbd0;
}

.lucky-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.lucky-value {
    font-size: 16px;
    font-weight: 700;
    color: #d81b60;
}

.fortune-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.btn-close {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f8bbd0 0%, #d81b60 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(216, 27, 96, 0.4);
}

/* マイページ用カード */
.fortune-card {
    background: linear-gradient(135deg, #fff5f8 0%, #ffe0ec 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 0 0 20px 0;
    border: 2px solid #f8bbd0;
}

.fortune-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.fortune-card-icon {
    font-size: 32px;
}

.fortune-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #d81b60;
    margin-bottom: 5px;
}

.fortune-card-stars {
    font-size: 20px;
    color: #ffd700;
}

.fortune-card-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.fortune-card-more {
    text-align: right;
}

.btn-more {
    padding: 8px 20px;
    background: white;
    color: #d81b60;
    border: 2px solid #d81b60;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-more:hover {
    background: #d81b60;
    color: white;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .fortune-modal {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .fortune-header {
        border-radius: 0;
        padding: 20px;
    }

    .fortune-icon {
        font-size: 36px;
    }

    .fortune-title {
        font-size: 20px;
    }

    .fortune-subtitle {
        font-size: 16px;
    }

    .fortune-body {
        padding: 20px;
    }

    .fortune-lucky {
        grid-template-columns: 1fr;
    }

    .fortune-card {
        padding: 20px;
    }

    .fortune-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* スライドイン占い通知（トースト） */
.fortune-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.5s ease;
    border: 2px solid #f8bbd0;
}

.fortune-toast.show {
    transform: translateX(0);
}

.fortune-toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fortune-toast-icon {
    font-size: 28px;
}

.fortune-toast-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: #d81b60;
}

.fortune-toast-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.fortune-toast-close:hover {
    color: #d81b60;
}

.fortune-toast-stars {
    font-size: 20px;
    color: #ffd700;
    margin-bottom: 10px;
    text-align: center;
}

.fortune-toast-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.fortune-toast-button {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #f8bbd0 0%, #d81b60 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.fortune-toast-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(216, 27, 96, 0.4);
}

/* コンパクト占いカード */
.fortune-compact {
    margin: 20px 0;
    border: 2px solid #f8bbd0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.fortune-compact-toggle {
    padding: 12px 20px;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #d81b60;
    transition: all 0.3s;
}

.fortune-compact-toggle:hover {
    background: linear-gradient(135deg, #f8bbd0 0%, #e91e63 100%);
    color: white;
}

.fortune-compact-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.fortune-compact.open .fortune-compact-arrow {
    transform: rotate(180deg);
}

.fortune-compact-content {
    padding: 20px;
    background: white;
}

.fortune-compact-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.btn-more-compact {
    display: block;
    width: 100%;
    padding: 10px;
    background: white;
    color: #d81b60;
    border: 2px solid #d81b60;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-more-compact:hover {
    background: #d81b60;
    color: white;
}

/* 閉じるボタン */
.fortune-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s;
}

.fortune-modal-close:hover {
    background: #d81b60;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .fortune-modal-close {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .fortune-toast {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}