body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}

.title-bar {
    position: relative;
    padding: 0.1rem .5rem;
}

.title-bar:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    content: "";
    border-radius: 3px;
    background-image: -webkit-gradient(linear, right top, left top, from(#2af598), to(#009efd));
    background-image: -webkit-linear-gradient(right, #2af598 0%, #009efd 100%);
    background-image: linear-gradient(to left, #2af598 0%, #009efd 100%);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    width: 100%;


    text-align: center;
    padding: 1rem 0;
}

main {
    flex-direction: column;
    align-items: center;
    padding: 0rem;
}

.toolbar {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.5rem 1rem;
}

.toolbar label {
    margin-right: 0rem;
}

#paintCanvas {
    border: 1px solid #ddd;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: crosshair;
}

.file-controls {
    margin-top: 1rem;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

input[type="color"],
input[type="range"],
input[type="number"] {
    margin-left: 0.5rem;
}

a {
    padding: 0 10px;
    color: #333;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 50%, rgb(49, 170, 226) 50%);
    background-position: 0 0;
    background-size: 200% auto;
    transition: .3s;
}

a:hover {
    background-position: -100% 0;
    color: #fff;
}

.switch-container {
    display: flex;
    align-items: center;
}

.switch-label {
    margin-right: 10px;
    font-size: 1rem;
    color: #333;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.radio-button-container {
    color: #404040;
    font-size: 16px;
    font-weight: bold;

    .radio-button-label {
        margin-bottom: 9px;
    }

    .radio-label {
        font-size: 16px;
    }

    .contents {
        display: flex;
        align-items: center;

        span {
            font-size: 14px;
            padding-right: 6px;
        }

        .radio-buttons {
            display: inline-flex;
            justify-content: space-between;
            height: 25.5px;
            margin: 0;
            padding: 0;

            label {
                padding: 0 3px;
                margin: 0 6px;
                cursor: pointer;
            }

            input[type=radio] {
                display: none;

                &:checked+label {
                    border-bottom: 3px solid #2196F3;
                }
            }
        }
    }
}

.text {
    border: none;
    border-radius: 5px;
    border: 1px solid #969da3;
    background: #f7f7f7;
    color: #333;
    font-size: 1em;
    line-height: 1.5;
}

.text::placeholder {
    color: #cccccc;
}

/* 言語選択のスタイル */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-selector label {
    font-weight: bold;
    color: #333;
}

.language-selector select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #969da3;
    border-radius: 5px;
    background: #f7f7f7;
    color: #333;
    font-size: 0.9em;
    cursor: pointer;
}

.language-selector select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}