* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #000;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            overflow-x: hidden;
        }

        #newToDoApp {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }

        /* メインコンテナ */
        .AddToDo-field {
            position: relative;
            background-color: #f0f0f0;
            width: 100%;
            max-width: 400px;
            height: 600px;
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .first-container {
            background-color: #c9c9c9;
            width: 100%;
            height: 100%;
            border-radius: 20px;
            position: relative;
            overflow: hidden;
        }

        /* ハンバーガーメニュー */
        .humburger-container {
            position: relative;
            display: flex;
            align-items: center;
            padding: 20px 0;
            justify-content: center;
            margin-left: 0.3rem;
        }

        .humburger-menu {
            position: absolute;
            left: 30px;
            cursor: pointer;
            z-index: 1000;
            margin-left: 0.3rem;
        }

        .humburger-menu span {
            display: block;
            width: 20px;
            height: 2px;
            background-color: #000;
            margin-bottom: 4px;
            transition: transform 0.3s ease;
        }

        .humburger-menu.active span:nth-child(1) {
            transform: rotate(45deg) translate(3px, 2px);
            background-color: white;
        }

        .humburger-menu.active span:nth-child(2) {
            opacity: 0;
        }

        .humburger-menu.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
            background-color: white;
        }

        .title {
            font-weight: bold;
            font-size: 24px;
            color: #000;
        }

        /* タスク入力エリア */
        .todo-info {
            padding: 0 30px;
            margin-bottom: 20px;
        }

        #Tasktxt {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            font-size: 14px;
            margin-bottom: 15px;
            outline: none;
            transition: box-shadow 0.3s ease;
        }

        #Tasktxt:focus {
            box-shadow: 0 2px 8px rgba(132, 0, 255, 0.4);
        }

        .task-detail {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        #deadline {
            flex: 1;
            min-width: 120px;
            padding: 10px;
            border: none;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            font-size: 12px;
            outline: none;
        }

        #addButton, #addListButton {
            padding: 10px 15px;
            border: none;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            background-color: #fff;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        #addButton:hover, #addListButton:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            transform: translateY(-1px);
        }

        /* ToDoリストコンテナ */
        #ToDo-container {
            margin: 0 20px;
            height: 350px;
            overflow-y: auto;
            background: #e1e1e1;
            border-radius: 20px;
            padding: 20px;
        }

        .ToDoInfo {
            display: flex;
            align-items: center;
            background: #fff;
            margin-bottom: 10px;
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .TaskBox {
            flex: 1;
            font-size: 14px;
            word-wrap: break-word;
        }

        .DeadLineBox {
            flex: 0 0 auto;
            font-size: 12px;
            color: #666;
            margin: 0 10px;
        }

        .CompletedBox {
            flex: 0 0 auto;
        }

        .delete-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 8px;
            background-color: #ff4444;
            color: white;
            font-size: 12px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .delete-btn:hover {
            background-color: #cc0000;
        }

        /* サイドパネル */
        .second-container {
            position: fixed;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100vh;
            background-color: rgba(0, 0, 0, 0.8);
            transition: left 0.3s ease;
            z-index: 999;
        }

        .second-container.active {
            left: 0;
        }

        .side-panel {
            position: absolute;
            right: 0;
            width: 300px;
            height: 100%;
            background-color: #f2f2f2;
            padding: 20px;
            overflow-y: auto;
        }

        .CreateNewList {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
        }

        .createList {
            padding: 15px 30px;
            border: none;
            border-radius: 20px;
            background-color: #fff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
        }

        .createList:hover {
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
            transform: translateY(-2px);
        }

        /* モーダル */
        #CreateForm {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .white {
            background-color: #fff;
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            min-width: 300px;
        }

        .TitleInput {
            text-align: center;
            margin-bottom: 30px;
        }

        .TitleInput label {
            display: block;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .TitleInput input {
            width: 100%;
            padding: 10px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            outline: none;
        }

        .TitleInput input:focus {
            border-color: #8400ff;
        }

        .put-right-bottom {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .decolate {
            padding: 8px 16px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .decolate:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        /* リストアイテム */
        .Addfield {
            max-height: 400px;
            overflow-y: auto;
        }

        .buttonContainer {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            padding: 10px;
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .createdname {
            flex: 1;
            padding: 10px;
            border: none;
            border-radius: 8px;
            background-color: #f0f0f0;
            font-size: 14px;
            cursor: pointer;
        }

        .displaybutton, .addlistbutton {
            padding: 8px 12px;
            border: none;
            border-radius: 8px;
            background-color: #8400ff;
            color: white;
            font-size: 12px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .displaybutton:hover, .addlistbutton:hover {
            background-color: #6600cc;
        }

        /* 第3画面 */
        .third-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: #f0f0f0;
            display: none;
            z-index: 1001;
            overflow-y: auto;
        }

        .BackButton {
            position: absolute;
            top: 20px;
            left: 20px;
            padding: 10px 20px;
            border: none;
            border-radius: 20px;
            background-color: #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .BackButton:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            transform: translateY(-1px);
        }

        .third-container .ToDoInfo {
            margin: 80px 20px 10px;
        }

        /* スマホ対応 */
        @media (max-width: 768px) {
            #newToDoApp {
                padding: 10px;
            }

            .AddToDo-field {
                max-width: 100%;
                height: 100vh;
                border-radius: 0;
            }

            .first-container {
                border-radius: 0;
            }

            .title {
                font-size: 20px;
            }

            .todo-info {
                padding: 0 20px;
            }

            .task-detail {
                flex-direction: column;
            }

            #deadline {
                min-width: auto;
            }

            #addButton, #addListButton {
                width: 100%;
                padding: 12px;
            }

            .side-panel {
                width: 100%;
                padding: 15px;
            }

            .second-container {
                background-color: rgba(0, 0, 0, 0.9);
            }

            .white {
                margin: 20px;
                min-width: auto;
            }

            .third-container .ToDoInfo {
                margin: 80px 15px 10px;
            }
        }

        /* PC用の追加スタイル */
        @media (min-width: 769px) {
            .side-panel {
                width: 350px;
            }

            .second-container {
                background-color: rgba(0, 0, 0, 0.6);
            }

            .CreateNewList {
                bottom: 30px;
            }

            .task-detail {
                align-items: center;
            }

            #addButton {
                flex: 0 0 auto;
                min-width: 80px;
            }

            #addListButton {
                flex: 0 0 auto;
                min-width: 100px;
            }
        }
