/* styles.css */
/*input, textarea {*/
/*    -webkit-appearance: none;*/
/*}*/

body {
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    touch-action: pan-x pan-y;
}

header {
    background-color: #2196F3;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

h1 {
    margin: 0;
}

.input-field {
    margin: 1rem;
}

.input-field label {
    display: block;
    color: #666;
}

.input-field input {
    width: 100%;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #888;
    border-radius: 5px;
    font-size: 1.3rem;
}

.input-field textarea {
    resize: vertical;
    width: 100%;
    height: 5rem;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #888;
    border-radius: 5px;
    font-size: 1.3rem;
}

#checklist-section {
    margin: 1rem;
}

.toggle_all, .submit_checklist, .reconfirmation, #close {
    background-color: #2196F3;
    color: white;
    border: 0;
    border-radius: 5px;
    padding: 1rem;
    width: 100%;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
    margin: 1rem 0;
    cursor: pointer;
    font-size: 1.3rem;
}

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

#check_list li {
    background-color: white;
    border-bottom: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    text-indent: -1.2rem;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

#check_list li:last-child {
    border-bottom: none;
}

footer {
    background-color: #757575;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

footer address {
    margin: 0;
    font-style: normal;
}

/* レスポンシブデザイン用のメディアクエリ */
/*@media (max-width: 600px) {*/
/*    .input-field input, .toggle-all, .submit-checklist, .reconfirmation {*/
/*        padding: 1rem;*/
/*    }*/
/*}*/

/* ブラウザの互換性を考慮したベンダープレフィックス */
/*input[type="text"],*/
/*input[type="tel"] {*/
/*    -webkit-appearance: none; !* SafariとChromeでのスタイルのリセット *!*/
/*    -moz-appearance: none; !* Firefoxでのスタイルのリセット *!*/
/*    appearance: none; !* 標準的なスタイルのリセット *!*/
/*}*/

/* マテリアルデザインのシャドウとアニメーション等を適用 */
.button {
    display: inline-block;
    position: relative;
    background-color: #2196F3;
    color: white;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    border: none;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent; /* タップ時のハイライトを消す */
}

#loader {
    transform-origin: center;
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 10% calc(50% - 30px - 16px);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.last_confirmation {
    text-align: right;
    padding: 0 1rem;
}

.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}