@import url('https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    background-color: #FFCB61;
}


/*--------------------------------------
main
--------------------------------------*/
main {
    min-height: 100vh;
    margin-top: 100px;
    max-width: 1400px;
    margin: 0 auto;
}

section {
    position: relative;
    width: 100%;
    margin-bottom: 50px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 0;
}

.section-title {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Zen Kurenaido';
    color: #FFFFFF;
    text-align: center;
}

.section-title span {
    font-size: 6rem;
}

.container p {
    margin: 10px 0;
    text-align: center;
    font-size: 2rem;
    font-family: 'Zen Kurenaido';
    color: #FFFFFF;
}

section.makeBG {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.create {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.canvas-container {
    flex: 3 1 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    overflow: hidden;
    background-color: #e9e9e9;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 市松模様のスタイル */
.canvas-container {
    background-image:
        linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(135deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(135deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 0, 10px -10px, 0px 10px;
}

#myCanvas {
    background-color: transparent;
    transform-origin: center center;
    border-radius: 2px;
}

.settings-panel,
.create-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.create-panel {
    flex: 1 1 320px;
    min-width: 320px;
}

.controls {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.controls.column {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.controls.column>div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.controls legend {
    font-weight: 600;
    padding: 0 0.5rem;
    font-size: 1em;
}

.controls label {
    width: 100px;
    font-size: 0.9em;
    white-space: nowrap;
    text-align: right;
}

.controls input,
.controls select,
.controls button {
    font-size: 0.9em;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.controls input[type="range"] {
    flex-grow: 1;
    padding: 0;
}

.controls input[type="color"] {
    padding: 0;
    min-width: 30px;
    height: 28px;
}

.controls button {
    background-color: #007bff;
    color: white;
    border-color: transparent;
    padding: 5px 12px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.controls button:active {
    background-color: #004494;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.range-value {
    min-width: 50px;
    white-space: nowrap;
}


/*--------------------------------------
スマートフォン向けスタイル
--------------------------------------*/
@media (max-width: 768px) {
    main {
        margin-top: 30px;
    }

    .container {
        padding: 20px 0;
    }

    .container h3 {
        margin-bottom: 20px;
        font-size: 2rem;
    }

    .container p {
        margin: 20px;
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title span {
        font-size: 3rem;
    }

    .wrap {
        margin: 50px 20px 0;
        padding: 20px;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .asset-card h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .asset-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}