@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kosugi&display=swap');

/* 全体 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1d3251;
}

/* 入力部分 */
.container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 2.5%;
    background-color: #fdf0e8;
    border-radius: 10px;
}
/* 縦線 */
.grid {
    display: flex;
    position: absolute;
    height: 100%;
    width: 90.5%;
}
.grid span {
    position: relative;
    border-right: 1px solid #1d3251;
    height: 100%;
    width: 100%;
    margin-top: 7%;
}
.tateMaru {
    position: absolute;
    width: 0.6em;
    height: 0.6em;
    margin-left: calc(100% - 0.27em);
    border-radius: 0.6em;
    background: #1d3251;
}

@media screen and (min-width: 481px) {
	.container {
        max-width: 70%;
    }
}
@media screen and (min-width: 960px) {
    .container {
        max-width: 40%;
    }

    /* 縦線 */
    .grid {
        width: 84.5%;
    }
}

/* 横線 */
.border{
    margin-top: 5%;
    margin-bottom: 5%;
    margin-left: -5%;
    margin-right: 5%;
    border-top: 1px solid #1d3251;
}

/* タイトル */
.title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5%;
    margin-right: 15%;
    font-family: 'Roboto Mono', monospace;
}

.title::before,
.title::after {
    content: "";
    background-color: #1d3251;
    height: 1px;
    width: 35%;
}
.title::before {
    margin-left: 4%;
    margin-right: 3%;
}
.title::after {
    margin-left: 3%;
}

/* 説明文 */
.details { 
    position:relative;
    margin-left: 2%;
}
.openclose {
    font-size: 12px;
}
.details[open] .open {
    display: none;
}
.details:not([open]) .close {
    display: none;
}
.description {
    position: relative;
    list-style-type: none;
    border-top: 1px solid #1d3251;
    border-bottom: 1px solid #1d3251;
    border-right: 1px solid #1d3251;
    border-left: 5px solid #1d3251;
    border-radius: 0.5em;
    margin-right: 13%;
    margin-left: 0%;
    padding-top: 1.5%;
    padding-bottom: 2%;
    padding-left: 3%;
    font-size: 12px;
    font-family: 'Kosugi', sans-serif;
    line-height: 25px;
}

/* 入力フォーム */
.input_id {
    width: 87%;
    margin-top: 3%;
    margin-left: 2%;
    padding-left: 2%;
    height: 1.5rem;
    background-color: transparent;
    border: 1.5px solid #1d3251;
    border-radius: 0.5em;
}
.input_id:-webkit-autofill {
    box-shadow: 0 0 0 1000px #fdf0e8 inset;
}
.input_data {
    width: 87%;
    margin-top: 2.6%;
    margin-bottom: 3%;
    margin-left: 2%;
    padding-top: 3.5%;
    padding-left: 2%;
    height: 15em;
    background-color: #fdf0e8;
    border: 1.5px solid #1d3251;
    border-radius: 0.5em;
}
.input_data:-webkit-autofill {
    box-shadow: 0 0 0 1000px #fdf0e8 inset;
}

/* 入力フォームスタイトル */
.box{
    position: relative;
    margin-right: 5%;
}
.formMoji{
    position: absolute;
    font-size: 11px;
    background-color: #fdf0e8;
    color: #1d3251;
    top: -7px;
    left: -2px;
    font-family: 'Roboto Mono', monospace;
}

/* トグルスイッチ */
.toggleParent{
    overflow: hidden;
}
.toggle {
    float: left;
    position: relative;
    text-align: left;
    width: 6em;
    margin-left: 2.2%;
    line-height: 5px;
    letter-spacing: 0;
    font-size: 5px;
    background: #e6d5b5;
    border-radius: 2.6em;
}
/* チェックボックス */
.toggle input[type="checkbox"] {
    display: none;
}
.toggle label {
    display: block;
    box-sizing: border-box;
    height: 3em;
    border-radius: 3em;
}
.toggle input[type="checkbox"]:checked +label {
    border-color: #1d3251;
}
.toggle #toggleMaru {
    position: absolute;
    width: 2.6em;
    height: 2.6em;
    top: 0.2em;
    left: 0px;
    transition: 0.2s;
    transform: translateX(0.3em);
    border-radius: 2.6em;
    background: #fdf0e8;
}
.toggle input[type="checkbox"]:checked ~ #toggleMaru {
    transform: translateX(3em);
    background: #1d3251;
}
.toggleLabel{
    float: left;
    margin-top: 0.3%;
    margin-left: 1%;
    font-size: 12px;
    font-family: 'Kosugi', sans-serif;
}

/* 色選択 */
.radio{
    position: relative;
    float: left;
    margin-top: 1%;
    margin-bottom:2%;
    margin-left: 2%;
    font-size: 12px;
    font-family: 'Roboto Mono', monospace;
}
.colorLavel{
    margin-left: -2%;
}
#color1{
    accent-color: #f4511e;
    inline-size: 0.7rem;
    block-size: 0.7rem;
}
#color2{
    accent-color: #039be5;
    inline-size: 0.7rem;
    block-size: 0.7rem;
}
#color3{
    accent-color: #33b679;
    inline-size: 0.7rem;
    block-size: 0.7rem;
}

/* 決定ボタン */
.submit_button {
    position: relative;
    width: 86%;
    padding: 1.5%;
    margin-top: 1.5%;
    margin-bottom: 2%;
    margin-left: 2%;
    border: none;
    border-radius: 0.5em;
    background-color: #1d3251;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    cursor: pointer;
}

/* 決定ボタンホバー時 */
.submit_button:hover {
    background-color: #32568C;
}

/* フッター */
.p3{
    font-size: 12px;
    text-align: center;
    color: #ffffff;
}