body {
    font-family: "Noto Sans JP", "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    background-color: rgb(222, 222, 222);
    margin: 0;
    width: 100vw;
}
footer {
    margin: 20px 10%;
    width: 80%;
    font-weight: bold;
    text-align: center;
}
label,input,textarea,select,button {
    cursor: pointer;
}
h1 {
    margin: 0;
}
h2 {
    margin: 0;
}
a {
    text-decoration: none;
    color: black;
}

.header {
    top: 0;
    left: 0;
    display: flex;
    height: 100px;
    width: 100vw;
    align-items: center;
    font-weight: bold;
    background-color: rgb(172, 172, 172);
    z-index: 100;
}
.nav-title {
    margin: 0 auto 0 20px;
    font-size: 30px
}
nav {
    margin: 0 20px 0 auto;
}
.nav-items {
    margin: 0px 20px;
    display: flex;
    text-align: center;
    align-items: center;
}
.nav-item {
    margin-left: 15px;
}
.btn {
    display: inline-block;
    text-decoration: none;
    background: #838383;
    color: #000000;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    text-align: center;
    overflow: hidden;
    transition: .4s;
}
.btn:hover {
    background: #c0c0c0;
}
.elementTitle {
    padding: 5px 0 0 5px;
    font-weight: bold;
}
.description {
    font-weight: bold;
    font-size: 15px;
    margin: 10px 15vw 20px;
}
.description.ad {
    text-align: center;
}

/* section */
.main-section {
    width: 100vw;
    padding: 30px 0 0;
}
.kanrenzu-area {
    width: calc(100vw - 6px);
    height: calc(45vw - 2px);
    display: flex;
}
.kanrenzu {
    width: calc(63.63vw - 2px);
    height: calc(45vw - 2px);
    object-fit: contain;
    background-color: #ffffff;
    border: solid 1px #000000;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.leftside {
    width: 16.185vw;
    height: calc(45vw - 2px);
    margin: 0 calc(0.75vw - 1px) 0;
}
.rightside {
    width: 16.185vw;
    height: calc(45vw - 2px);
    margin: 0 calc(0.75vw - 1px) 0;
}
.backgroundFile {
    display: flex;
}
.file-area {
    display: inline-block;
    width: 20vw;
    margin: 10px 10px 20px calc(30vw - 5px);
    padding: 10px;
    text-align: center;
    background-color: #bbbaba;
}
.delFile {
    display: inline-block;
    width: 20vw;
    margin: 10px calc(30vw - 5px) 20px 10px;
    padding: 10px;
    text-align: center;
    background-color: #bbbaba;
}
.download-area {
    display: inline-block;
    width: 20vw;
    margin: 0px calc(40vw - 10px) 0px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    background-color: #bbbaba;
}
.shapes-area {
    width: 80vw;
    height: 25vh;
    margin: 0px 10vw 30px;
    display: block;
    margin-top: 30px;
    background-color: #f1f1f1;
}
.box2 {
    width: 80vw;
    height: 25vh;
    margin: 0px 10vw 0px;
    display: flex;
    background-color: #f1f1f1;
}
.color-area {
    width: 50%;
    height: 100%;
    border:#000000 solid 1px;
}
.size-area {
    width: 50%;
    height: 100%;
    border:#000000 solid 1px;
}
@media screen and (max-width: 1200px) {
    .kanrenzu-area {
        width: calc(100vw - 2px);
        height: calc(50vw - 2px);
        margin: 0 0 20px;
        display: flex;
    }
    .kanrenzu {
        width: calc(70.2vw - 2px);
        height: calc(50vw - 2px);
        margin: 0 14.4vw;
        object-fit: contain;
        background-color: #ffffff;
        border: solid 1px #000000;
        position: relative;
    }
}


/* kanrenzu */
.creShape {
    width: 100px;
    height: 100px;
    background-color: rgb(255, 255, 255);
    position: absolute;
    left: 40%;
    top: 150px;
    z-index: 10;
}
.creLine {
    width: 100px;
    height: 100px;
    background-color: transparent;
    position: absolute;
    left: 40%;
    top: 150px;
    z-index: 0;
}
.resizeButton {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: rgb(95, 95, 255);
    position: absolute;
    right: -6.5px;
    bottom: -6.5px;
    cursor: se-resize;
    display: flex;
}
.deleteButton {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgb(149, 149, 149);
    position: absolute;
    right: -8px;
    top: -8px;
    cursor: pointer;
    display: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}
.textarea { 
    width: calc(100% - 15px);
    height: calc(100% - 15px);
    padding: 7.5px;
    background-color: lightblue;
    position: absolute;
    border: none;
    outline: none;
    resize: none;
    overflow: hidden;
}


.togglebtn {
    width: 80vw;
    margin: 0 10vw 0px;
    height: 30px;
    margin-top: 40px;
    background-color: #c7c7c7;
    text-align: center;
    cursor: pointer;
}
.hidden {
    display: none;
}

.sizeElement {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}
.sizeInput {
    width: 20%;
    height: 30px;
    text-align: center;
}
.sizeBtn {
    width: 30%;
    height: 30px
}

.color-palette {
    width: 80%;
    margin: 40px 10% 0;
    display: flex;
}
.textColor {
    width: 15%;
    height: 40px;
    margin: 0 2.5% 0;
    font-weight: bold;
    cursor: pointer;
}
.shapeFrameColor {
    width: 15%;
    height: 40px;
    margin: 0 2.5% 0;
    font-weight: bold;
    cursor: pointer;
}
.shapeBackgroundColor {
    width: 15%;
    height: 40px;
    margin: 0 2.5% 0;
    font-weight: bold;
    cursor: pointer;
}
.backgroundColor {
    width: 15%;
    height: 40px;
    margin: 0 2.5% 0;
    font-weight: bold;
    cursor: pointer;
}
.color {
    width: 15px;
    height: 15px;
}
.color.black {
    background-color: black;
}
.color.white {
    background-color: white;
}
.color.red {
    background-color: red;
}
.color.blue {
    background-color: blue;
}
.color.yellow {
    background-color: yellow;
}
.color.gray {
    background-color: rgb(224, 224, 224);
}
.color.lightred {
    background-color: rgb(255, 224, 224);
}
.color.lightblue {
    background-color: rgb(218, 218, 255);
}
.color.lightyellow {
    background-color: rgb(255, 255, 222);
}
.aroundSize {
    width: 80vw;
    height: 10vh;
    margin: 30px 10vw 0;
    border: solid 1px #000000;
    display: block;
    background-color: #f1f1f1;
}


/* shapes */
.shapes { 
    display: flex; 
    height: 33%; 
    cursor: pointer; 
    border: 1px solid #333; 
}
.shapes div { 
    width: 25%; 
    text-align: center; 
}
.lines { 
    display: flex; 
    height: 33%; 
    cursor: pointer; 
    border: 1px solid #333; 
}
.lines div { 
    width: 25%; 
    text-align: center; 
}
.sikaku { width: 100px; height: 100px; }
.kadomaru { width: 100px; height: 100px; border-radius: 10px; }
.kadomaru textarea{ 
    border-radius: 10px; 
}
.daen { width: 120px; height: 60px; border-radius: 50%; }
.daen textarea{ 
    border-radius: 50%; 
    width: calc(100% - 40px); 
    height: calc(100% - 40px); 
    padding: 20px; 
}
.tensen { width: 100px; height: 100px; border: dashed 2px #000000; }
.kakko, .marukakko, .kakukakko{
    position: absolute;
    box-sizing: border-box;
}
.kakko textarea{
    width: calc(100% - 15px);
    height: calc(100% - 15px);
    padding: 0;
}
.kakko {
    padding: 7.5px 7.5px;
}
.kakko:before,.kakko:after{ 
    content:'';
    width: 20%;
    height: 20%;
    min-width: 15px;
    min-height: 15px;
    position: absolute;
    display: inline-block;
}
.kakko:before{
    border-left: solid 2px var(--kakko-color, #000000);;
    border-top: solid 2px var(--kakko-color, #000000);;
    top:0;
    left: 0;
}
.kakko:after{
    border-right: solid 2px var(--kakko-color, #000000);;
    border-bottom: solid 2px var(--kakko-color, #000000);;
    bottom:0;
    right: 0;
}
.marukakko textarea{
    width: calc(100% - 30px);
    height: calc(100% - 10px);
    padding: 0;
}
.marukakko {
    padding: 5px 15px;
}
.marukakko::before,
.marukakko::after {
	content: '';
	width: 30px;
	height: 100%;
	position: absolute;
	top: 0;
	box-sizing: border-box;
	border-radius: 50%;
}
.marukakko::before {
	border-left: solid 4px var(--kakko-color, #000000);;
	left: 0;
}
.marukakko::after {
	border-right: solid 4px var(--kakko-color, #000000);;
	right: 0;
}
.kakukakko textarea {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    padding: 0;
}
.kakukakko {
    padding: 5px 5px;
}
.kakukakko::before,
.kakukakko::after {
	content: '';
	width: 20px;
	height: 100%;
	position: absolute;
	box-sizing: border-box;
	border-top: solid 3px var(--kakko-color, #000000);;
	border-bottom: solid 3px var(--kakko-color, #000000);;
	top: 0;  
}
.kakukakko::before {
	border-left: solid 3px var(--kakko-color, #000000);;
	left: 0;
}
.kakukakko::after {
	border-right: solid 3px var(--kakko-color, #000000);;
	right: 0;
}

.lines.side-area{
    width: calc(16.185vw - 2px);
    height: calc(20vw - 2px);
    background-color: #f1f1f1;
    border: solid 1px #000000;
    display: block;
}
.lines.side-area div {
    width: 100%;
    text-align: center;
    margin: 7px 0;
    padding: 0;
}
.text.side-area {
    width: calc(16.185vw - 2px);
    height: calc(20vw - 2px);
    background-color: #f1f1f1;
    border: solid 1px #000000;
    display: block;
}
.aroundSize.side-area {
    width: calc(16.185vw - 2px);
    height: calc(5vw - 2px);
    background-color: #f1f1f1;
    border: solid 1px #000000;
    display: block;
    margin: 0;
}
.sizes {
    display: flex;
}
.size {
    margin: 0 3px;
}
.shapes.side-area{
    width: calc(16.185vw - 2px);
    height: calc(18vw - 2px);
    background-color: #f1f1f1;
    border: solid 1px #000000;
    display: block;
}
.shapes.side-area div {
    width: 100%;
    text-align: center;
    padding: 0;
}
.colors.side-area{
    width: calc(16.185vw - 2px);
    height: calc(27vw - 2px);
    background-color: #f1f1f1;
    border: solid 1px #000000;
    display: block;
}
.color-palette.side-area {
    width: (16.185vw - 2px);
    margin: 0.5vw 0 0.5vw;
    display: flex;
}
@media screen and (max-width: 1200px) {
    .leftside {
        display: none;
    }
    .rightside {
        display: none;
    }
}

.btnNew {
    width: 100%;
    text-align: center;
    align-items: center;
}
.nameInput {
    padding: 10px;
}