@font-face {
    font-family: "Noto Sans JP";
    font-style: normal;
    font-weight: 400;
    src: url("../../font/NotoSansJP-Regular.woff") format("woff");
}

@font-face {
    font-family: "Noto Sans JP";
    font-style: normal;
    font-weight: 700;
    src: url("../../font/NotoSansJP-Bold.woff") format("woff");
}

* {
    box-sizing: border-box;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

html[lang="ja"] {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    line-height: inherit;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    vertical-align: baseline;
    text-align: justify;
}
/* リセットCSS（Reset CSS） */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

input, select, button,textarea{
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-weight: 600;
}

body {

    margin: 0 auto;
    padding:0;
    letter-spacing: 0.03em;
    background-color: #e2f0d9;
    background-image: url("../../img/bg.png") ;
    box-sizing: border-box;
    word-break: break-all;
    line-height:180%;
    width: 100%;
    color: #212121;
}

main, article{
    width: 95%;
    margin: 0 auto;
    max-width: 1600px;
}

h1{
    font-size: 2rem;
    text-align: center;
    padding: 32px;
    margin: 0 0 16px;
    background-color: #347CB3;
    width: 100%;
    font-weight: bold;
    color: #fff;
    width: 100%;
    background-image: url("../../img/nav.png");
}

h2{
    font-size: 1.5rem;
    margin: 0;
}

button {
    background-color: #1565C0;
    font-size: 1.2em;
    color: #fff;
	border-radius: 15px;
	padding: 4px 20px;
	font-weight: 500;
    cursor: pointer;
    border:none;
    transition: 0.5s;
    margin: 8px 0;
    line-height:1.5em;
}

button:hover{
    opacity: 0.8;
}

button.small-margin {
    margin: 0 4px 6px 4px !important;
}
button:hover{
    cursor: pointer;
    background-color: #396b9b;
    box-shadow: none;
}

.button {   /* 使い方ページで使用しているボタン見本 */
    font-size: 1.5rem;
    color: #fff;
    background-color: #498fcf;
    margin: 0.5rem;
    padding: 0.3rem;
}
.center {   /* 使い方ページ説明文 */
    width: fit-content;
    margin: 0 auto;
}

.flex, .flex_center, .flex_between, .flex_around, .flex_start {
    display: flex;
}

.flex_center{
    justify-content: center;
}
.flex_between{
    justify-content: space-between;
}
.flex_around{
    justify-content: space-around;
}
.flex_start{
    justify-content: flex-start;
}

img {
    user-select: none;
}

div.exit-button {
    margin: 8px auto;
    width:98%;
    align-items: center;
}
div.exit-button h2 {
    padding: 4px 1rem;
    background-color: #ffffff;
}
div.exit-button p {
    margin: auto;
}

div.start_area {
    width: 100%;
    margin: auto auto 1rem auto;
    padding: 1rem 0 2rem 0;
    display: flex;
    justify-content: space-between;
    align-content: flex-start;
    background-color: #ffffff;
}
div.start_area .video-area,
div.start_area .explanation {
    width: 50%;
    padding: 2rem 1rem;
    text-align: left;
}
div.start_area .video-area .video {
    border: solid 2px #333333;
    max-width: 100%;
}
div.start_area .explanation p {
    margin: 0 auto .5rem auto;
    padding: 0;
    font-size: 1.25rem;
}


article {
    width:100%;
    max-width: 1700px;
    margin: auto;
    height: auto;
}

div.edit_area {
    position: relative;
    margin: auto;
    width: 100%;
    height: auto;
}

div.edit_area img {
    width:100%;
    height: fit-content;
}
div.edit_area canvas.edit_canvas,
div.edit_area canvas.option_canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* background-color: #333300; */
}
div.edit_area p.explanation,
div.edit_area p.step17 {
    position: absolute;
    left: 5%;
    width: 90%;
    font-size: 1.2rem;
    border: solid 2px darkgreen;
    border-radius: 1rem;
    padding: .5rem 1rem;
    background-color: #fff;
    min-height: 4rem;
}
div.edit_area p.explanation {
    left: 5%;
    width: 90%;
}
div.edit_area p.step17 {
    left: 15%;
    width: 75%;
}

div.edit_area p.explanation span,
div.edit_area p.step17 span {
    margin: 1rem auto;
    font-size: 1.5rem;
}

video {
    margin: 0;
    aspect-ratio: 16 / 9;
}


.invisible {
    display: none;
}

@media screen and (max-width: 960px) {
    * {
        font-size: 80%;
    }

    h1{
        font-size: 1.2em;
    }

    main{
        padding: 0 8px;
    }

    div.game_area>p {
        margin: 0;
        font-size: 1rem;
    }

    div.start_area {
       display: block;
    }
    div.start_area .video-area,
    div.start_area .explanation {
        width: 100%;
        padding: 8px;
    }


}