

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.product-selector {
    margin-bottom: 20px;
    text-align: center;
}

.product-selector select {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.palette-block {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.palette-title {
    margin-top: 0;
    color: #333;
}

.color-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.color-button {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.color-button:hover {
    transform: scale(1.1);
    border-color: #999;
}

.color-button.selected {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0,123,255,0.5);
}

.palette-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.palette-row label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    color: #555;
}

.palette-row select {
    margin-top: 5px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/*狭い画面*/
@media (width<600px) {
    h1{
        font-size: 24px;
        margin-bottom: 10px;
    }
    .main-area {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        height: fit-content;
        overflow: hidden;
    }

    .image-area{
        margin: 0 auto;
        position: relative;
        width: fit-content;
        height: fit-content;
        margin-bottom: 20px;
    }

    .picker-area{
        margin: 0 auto;
        width: 100%;
        height: 100%;
    }

}

/* 広い画面 */
@media (600px <= width) {
    .container {
        display: flex;
        align-items: stretch;
        gap: 30px;
    }
    .main-area {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .image-area {
        position: relative;
        flex: 2 0 calc(50% - 20px);
        max-width: 400px;

    }

    .picker-area {
        flex: 1 0 calc(50% - 20px);
        flex-direction: column;
    }

    .color-button {
        width: 50px;
        height: 50px;
    }
}

.preview-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
