* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        "Hiragino Mincho ProN",
        "Yu Mincho",
        "YuMincho",
        "メイリオ",
        Meiryo,
        sans-serif;

    color: #333;

    background: #f5f4f0;
}


/*
 * メインエリア
 */
.scratch-container {

    width: calc(100% - 30px);

    max-width: 750px;

    margin: 50px auto;

    padding: 45px 30px 50px;

    text-align: center;

    background: #ffffff;

    border-top: 3px solid #b52229;

    border-bottom: 1px solid #d8b56a;

    box-shadow:
        0 2px 15px rgba(0, 0, 0, 0.08);

}


/*
 * タイトル
 */
.scratch-container h1 {

    margin: 0 0 15px;

    font-size: 34px;

    font-weight: normal;

    letter-spacing: 5px;

    color: #b52229;

}


/*
 * 説明文
 */
.description {

    margin: 0 0 35px;

    font-size: 16px;

    color: #777;

}


/*
 * スクラッチエリア
 */
.scratch-area {

    position: relative;

    width: 100%;

    max-width: 420px;

    aspect-ratio: 420 / 180;

    margin: 0 auto;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #d8b56a;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.12);

}


/*
 * 結果表示
 */
#result {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    text-align: center;

    background:

        linear-gradient(
            135deg,
            #fffdf8,
            #f8f3e8
        );

    color: #b52229;

    font-size: 21px;

    font-weight: bold;

    line-height: 1.8;
white-space: nowrap;
font-size: 21px;

}


/*
 * スクラッチキャンバス
 */
#scratchCanvas {

    position: absolute;

    top: 0;

    left: 0;

    z-index: 2;

    width: 100%;

    height: 100%;

    cursor: pointer;

    touch-action: none;

}


/*
 * 説明
 */
.notice {

    margin: 25px 0 0;

    font-size: 14px;

    color: #777;

}


/*
 * スマートフォン対応
 */
@media screen and (max-width: 480px) {

    .scratch-container {

        width: calc(100% - 20px);

        margin: 25px auto;

        padding: 35px 15px 40px;

    }


    .scratch-container h1 {

        font-size: 27px;

        letter-spacing: 3px;

    }


    .description {

        font-size: 15px;

        line-height: 1.8;

    }


    .notice {

        font-size: 13px;

    }

}