/* 和風ウェルカムポップアップ - 静かで高級感のあるデザイン */

/* オーバーレイ - カラフルなグラデーション背景 */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.4) 0%, 
        rgba(118, 75, 162, 0.5) 50%, 
        rgba(240, 147, 251, 0.4) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

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

/* メインコンテナ - 美しい半透明デザイン */
.welcome-container {
    position: relative;
    max-width: 600px;
    width: 90%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(240, 248, 255, 0.30) 50%,
        rgba(255, 255, 255, 0.25) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(0.8);
    opacity: 0;
    animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

@keyframes popIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* カラフル装飾 - 上部 */
.welcome-decoration-top {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 50% 50% 0 0;
    opacity: 0.25;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.welcome-decoration-top::before,
.welcome-decoration-top::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f093fb 0%, #667eea 100%);
    border-radius: 50%;
    opacity: 0.4;
    box-shadow: 0 3px 15px rgba(240, 147, 251, 0.4);
}

.welcome-decoration-top::before {
    left: -35px;
    top: 15px;
}

.welcome-decoration-top::after {
    right: -35px;
    top: 15px;
}

/* タイトル - カラフルなグラデーション */
.welcome-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    opacity: 0;
    animation: titleFadeIn 1s ease-out 0.8s forwards;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    filter: drop-shadow(0 2px 10px rgba(102, 126, 234, 0.3));
}

@keyframes titleFadeIn {
    to {
        opacity: 1;
    }
}

/* メッセージコンテナ - カラフルな文字 */
.welcome-message {
    font-size: 19px;
    line-height: 2.2;
    color: #1a202c;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* メッセージの各行 - カラフルなグラデーション */
.welcome-message-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    margin: 12px 0;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* 順番にアニメーション */
.welcome-message-line:nth-child(1) {
    animation: inkAppear 1.2s ease-out 1.2s forwards;
}

.welcome-message-line:nth-child(2) {
    animation: inkAppear 1.2s ease-out 1.6s forwards;
}

.welcome-message-line:nth-child(3) {
    animation: inkAppear 1.2s ease-out 2.0s forwards;
}

.welcome-message-line:nth-child(4) {
    animation: inkAppear 1.2s ease-out 2.4s forwards;
}

.welcome-message-line:nth-child(5) {
    animation: inkAppear 1.2s ease-out 2.8s forwards;
}

.welcome-message-line:nth-child(6) {
    animation: inkAppear 1.2s ease-out 3.2s forwards;
}

@keyframes inkAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    50% {
        opacity: 0.5;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 閉じるボタン - カラフルなグラデーション */
.welcome-close-btn {
    display: block;
    margin: 0 auto;
    padding: 16px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
    opacity: 0;
    animation: buttonFadeIn 0.8s ease-out 3.6s forwards;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes buttonFadeIn {
    to {
        opacity: 1;
    }
}

.welcome-close-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.7);
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 50%, #667eea 100%);
}

.welcome-close-btn:active {
    transform: translateY(-1px);
}

/* カラフルパターン背景 */
.welcome-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(102, 126, 234, 0.4) 35px, rgba(102, 126, 234, 0.4) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(240, 147, 251, 0.4) 35px, rgba(240, 147, 251, 0.4) 70px);
    border-radius: 24px;
}

/* カラフルな輝き */
.welcome-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(240, 147, 251, 0.2) 45%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(102, 126, 234, 0.2) 55%,
        transparent 70%
    );
    animation: shine 8s ease-in-out infinite;
    pointer-events: none;
    border-radius: 24px;
}

@keyframes shine {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .welcome-container {
        padding: 40px 30px;
        max-width: 95%;
    }
    
    .welcome-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .welcome-message {
        font-size: 16px;
        line-height: 2;
    }
    
    .welcome-close-btn {
        padding: 14px 36px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .welcome-container {
        padding: 30px 20px;
    }
    
    .welcome-title {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .welcome-message {
        font-size: 14px;
        line-height: 1.9;
    }
    
    .welcome-message-line {
        margin: 8px 0;
    }
    
    .welcome-close-btn {
        padding: 12px 32px;
        font-size: 14px;
    }
}


/* ========================================
   毎日のログインメッセージ用スタイル
   ======================================== */

/* 毎日のメッセージコンテナ */
.daily-message-container {
    max-width: 700px;
}

/* 挨拶 - カラフル */
.daily-greeting {
    font-size: 30px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* 学習サマリー */
.study-summary {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(240, 147, 251, 0.15) 100%);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.summary-item i {
    font-size: 18px;
}

/* 励ましメッセージ（毎日版） - カラフル */
.daily-encouragement {
    font-size: 17px;
    line-height: 2;
    margin-bottom: 30px;
    font-weight: 600;
}

/* 今日のタスク */
.daily-tasks {
    margin-bottom: 30px;
}

.tasks-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tasks-title i {
    color: #667eea;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* タスクアイテム */
.task-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
    cursor: pointer;
}

.task-item:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(240, 147, 251, 0.08) 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.task-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 10px;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2d3748;
}

.task-description {
    font-size: 13px;
    color: #718096;
}

.task-arrow {
    color: #cbd5e0;
    font-size: 18px;
    transition: all 0.3s ease;
}

.task-item:hover .task-arrow {
    color: #667eea;
    transform: translateX(3px);
}

/* 優先度別スタイル */
.task-high {
    border-color: #f56565;
}

.task-high:hover {
    border-color: #f56565;
    background: rgba(245, 101, 101, 0.05);
}

.task-high .task-icon {
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
}

.task-medium {
    border-color: #ed8936;
}

.task-medium:hover {
    border-color: #ed8936;
    background: rgba(237, 137, 54, 0.05);
}

.task-medium .task-icon {
    background: linear-gradient(135deg, #ed8936 0%, #c05621 100%);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .daily-message-container {
        max-width: 95%;
    }
    
    .daily-greeting {
        font-size: 22px;
    }
    
    .study-summary {
        gap: 10px;
    }
    
    .summary-item {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .daily-encouragement {
        font-size: 15px;
    }
    
    .tasks-title {
        font-size: 18px;
    }
    
    .task-item {
        padding: 12px 15px;
    }
    
    .task-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .task-title {
        font-size: 15px;
    }
    
    .task-description {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .study-summary {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .summary-item {
        width: 100%;
        justify-content: center;
    }
    
    .task-item {
        gap: 10px;
    }
    
    .task-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}
