@charset "utf-8";
/* CSS Document */

form {
    display: flex;
    flex-direction: column;
   /* max-width: 600px;*/
    margin: 0px auto;
	font-size: 90%;
}

label.q {
    font-size: 1em;
    margin: 1em 0px 0.5em;
	background-color: var(--green);
	padding:  0.5em;
	color: var(--white);
	display: block;
}

span.must:before{
	content: "必須";
	padding: 0 0.5em;
	background-color: var(--orange);
	margin-right: 0.5em;
	color: #fff;
}

span.free:before{
	content: "自由回答";
	padding: 0 0.5em;
	background-color:var(--blue);
	margin-right: 0.5em;
	color: #fff;
}

.note{
	padding: 0.5em;
	background-color:#81a068;
	margin-bottom: 1em;
	color: #fff;
	font-size: 90%;
}

input,textarea {
    padding: 0.5em;
    margin-bottom: 1em;
    font-size: 1em;
    border: solid 1px #ccc;
    border-radius: 4px;
    outline: none;
	display: block;
}

input[type="text"] {
   display: block;
	width: 100%;
}

textarea {
    height: 100px;
    resize: none;
	display: block;
	width: 100%;
}

input[type="submit"] {
    width: 50%;
	padding: 1em;
    margin: 2em auto 1em;
    border: none;
    background-color: var(--orange);
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: var(--blue);
}

input[type=checkbox] {
	transform: scale(1.5);
	margin: 0 0.8em 0;
	vertical-align: middle;
	display: inline-block;
}



input[type=radio] {
        opacity: 0;
        position: absolute;
    }

/*クリック範囲を指定している*/
input[type="radio"]+span {
        display: block;/*縦表記するにはblock、横表記するにはinline-block*/
        position: relative;
        padding: 0.3em 0.3em 0.3em 2em;/*左から40pxの位置にラベルを置くため*/
        line-height: 1;
        cursor: pointer;
        margin-bottom: 1em;
        border:1px dotted #fff;
} 

/*ラジオボタンの枠を描く*/
   input[type=radio] + span::before {
        content: "";
        position: absolute;
        width: 1.5em;
        height: 1.5em;
        border-radius: 50%;
        border:1px solid #ccc;
        background-color: #eee;
        box-sizing: border-box;
        top: 2px;
        left: 0px;
	   z-index: 1;
}
	input[type=radio]:checked + span::after {
        display:block;
        content:"";
        position: absolute;
        width: 1em;
        height: 1em;
        border-radius: 50%;
        top: calc(0.25em + 2px);
        left: 0.25em;
        background-color: var(--pink);
        box-sizing: border-box;
		z-index: 5;
    }

 /*input[type=radio]:checked + span::after {
        content: "";
        position: absolute;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 9px solid #339999;
        top: 2px;
        left: 0px;
        box-sizing: border-box;
	display: block;
	z-index: 5;
        }*/
select{
	 display: block;
  height: 40px;
  margin: 0 0 10px;
  padding: 0.5em;
/*  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;*/
  border: 1px solid #ccc;
  border-radius:  4px;
  font-size: 1em;
  background-color: #fff;
  box-shadow: none;
  cursor: pointer;
	
}

.openBtn{
	 font-size: 1em;
    margin: 1em 0px 0.5em;
	background-color: var(--green);
	padding:  0.5em;
	color: var(--white);
	display: block;
	cursor: pointer;
}

.qSet{
	display: none;
	border: solid 1px var(--green);
	padding: 1em 2em;
	background-color: var(--white30);
	margin-bottom: 1em;
}

/*/////////////////////////////////////////////////////////////*/
