/* Life in Weeks アプリ専用CSS */

.life-weeks-input {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.life-weeks-input h2 {
    font-size: 1.0em;
    font-weight: normal;
    margin-bottom: 1px;
    font-family: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

.life-weeks-input .catchphrase {
    font-size: 0.7em;
    color: #555;
    margin-bottom: 5px;
    font-family: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

.life-weeks-input label {
    display: block;
    font-size: 0.65em;
    margin-bottom: 4px;
    color: #777;
    font-family: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

.life-weeks-input input {
    padding: 5px;
    border: 1px solid #ccc;
    background: white;
    font-family: inherit;
    font-size: 0.9em;
    margin-bottom: 5px;
    border-radius: 4px;
    width: 150px;
    text-align: center;
}

.life-weeks-input button {
    padding: 5px 30px;
    background: white;
    border: 1px solid #999;
    border-radius: 8px;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.7em;
}

.life-weeks-input button:hover {
    background: #f0f0f0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: #f5f5dc;
    padding: 60px 40px 40px;
    width: 90%;
    max-width: 1000px;
    max-height: 90%;
    overflow-y: auto;
    border-radius: 8px;
    font-family: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

.close-btn {
    position: fixed;
    top: calc(5% + 20px);
    right: calc((100% - min(90%, 1000px)) / 2 + 20px);
    background: white;
    border: 1px solid #999;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    z-index: 1001;
    font-size: 1.2em;
}

.close-btn:hover {
    background: #f0f0f0;
}

.result-title {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-align: center;
}

.stats-section {
    margin-bottom: 40px;
}

.stats-section h3 {
    font-size: 1.1em;
    font-weight: normal;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ccc;
}

.stats-section p {
    font-size: 0.9em;
    line-height: 1.8;
    margin-bottom: 8px;
}

.grid-container {
    margin: 40px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(52, 10px);
    gap: 3px;
    margin-top: 20px;
    justify-content: center;
}

.week {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.week.lived {
    background: #666;
}

.week.current {
    background: #4a90e2;
}

.week:hover {
    transform: scale(1.3);
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.tooltip {
    display: none;
    position: fixed;
    background: white;
    border: 1px solid #999;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    z-index: 1002;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 80px 20px 20px;
    }
    
    .grid {
        grid-template-columns: repeat(26, 8px);
        gap: 2px;
    }
    
    .week {
        width: 8px;
        height: 8px;
    }
    
    .close-btn {
        right: 5%;
    }
}