:root {
    --primary-color: #4285F4; /* Google Blue */
    --secondary-color: #FBBC05; /* Google Yellow */
    --background-color: #FFFFFF;
    --text-color: #3C4043;
    --light-gray: #E8EAED;
    --border-radius: 8px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
}

header p {
    font-size: 1em;
    color: #5F6368;
    margin-top: 5px;
}

.input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

#greatDeedInput {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1em;
    transition: border-color 0.3s;
}

#greatDeedInput:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

#addDeedBtn {
    background-color: var(--primary-color);
}

#addDeedBtn:hover {
    background-color: #3672d6;
}

.list-area h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
}

#deedList {
    list-style: none;
    padding: 0;
}

#deedList li {
    background-color: #F8F9FA;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#deedList li span {
    font-weight: 400;
    color: var(--text-color);
}

.delete-btn {
    background-color: transparent;
    color: #9AA0A6;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.delete-btn:hover {
    color: #EA4335;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 25px;
}

.actions button {
    background-color: var(--light-gray);
    color: var(--text-color);
    font-size: 0.9em;
}

.actions button:hover {
    background-color: #D2D5DA;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #9AA0A6;
    font-size: 0.8em;
}

/* レスポンシブデザイン (スマートフォン対応) */
@media (max-width: 600px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.8em;
    }

    .input-area {
        flex-direction: column;
    }

    #addDeedBtn {
        width: 100%;
    }
}
