body {
  color: #333;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans", Meiryo, sans-serif;
  font-weight: 400;
}

.logo {
  width: 1em;
  height: 1em;
  float: left;
}

.cl {
  font-size: 1.5em;
  font-weight: 500;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  text-align: center;
}

p {
  color: #006437;
  margin: 1.5em;
}

.p-sm {
  font-size: .8em;
  color: #333;
}


h1,h2,h3 {
  color: #006437;
  margin-top: 2.5em;
  font-weight: 500;
}

h1 {
  font-size: 1.5em;
}

h2 {
  font-size: 1.25em;
  font-weight: 500;
}

h4 {
  margin: 2.5em 0 1em 0;
  font-weight: 500;
}

.main {
  width: 90vw;
  margin: auto;
}

@media screen and (min-width:415px) {
  .main {
    width: 60vw;
    margin: auto;
  }
}

.countainer {
  display: flex;
}

.center {
  text-align: center;
}

.st {
  font-weight: 500;
  color: darkred;
}

.name {
  margin-top: 1.5em;
}

.name input {
  margin-left: 1em;
  width: 60%;
  padding: .6em .6em .5em .5em;
  border: 1px solid #999;
  background: #fff;
  border-radius: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 1em;
  color: #333;
}

.form-p {
  margin-top: 1.5em;
}

.form input {
  width: 100%;
  padding: .6em .6em .5em .5em;
  border: 1px solid #999;
  background: #fff;
  border-radius: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 1em;
  color: #333;
}

@media screen and (min-width:415px) {
  .form input {
    width: 80%;
  }
}


.q-col-r {
  width: calc(6/12 * 100%);
  margin-left: 1em;
}

.q-col-l {
  width: calc(6/12 * 100%);
  margin-right: 1em;
}

.f-01 p {
  position: relative;
  margin: .25em 0 1em 0;
}
.f-01 input,.f-01 label,
.f-02 input,.f-02 label,
.f-03 input,.f-03 label,
.f-04 input,.f-04 label,
.f-05 input,.f-05 label,
.f-06 input,.f-06 label,
.f-07 input,.f-07 label {
  -webkit-transition: all .2s;
  transition: all .2s;
  font-size: 15px;
}

.f-01 input {
  width: 100%;
  padding: .6em .6em .5em 2.5em;
  border: 1px solid #999;
  background: #fff;
  border-radius: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #333;
}

.f-01 label,
.f-02 label,
.f-03 label,
.f-04 label,
.f-05 label,
.f-06 label,
.f-07 label{
  position: absolute;
  top: .7em;
  left: .5em;
  color: #999;
  font-size: .75em;
  line-height: 1;
}
.f-01 input:focus,
.f-02 input:focus,
.f-03 input:focus,
.f-04 input:focus,
.f-05 input:focus,
.f-06 input:focus,
.f-07 input:focus {
  padding-left: .5em;
}
.f-01 input:focus + label,
.f-02 input:focus + label,
.f-03 input:focus + label,
.f-04 input:focus + label,
.f-05 input:focus + label,
.f-06 input:focus + label,
.f-07 input:focus + label {
  top: -2.5em;
  left: 0;
  padding: .4em .7em .45em;
  border-radius: .2em;
  background-color: #00AF65;
  color: #fff;
  font-size: 14px;
}
.f-01 input:focus + label::after,
.f-02 input:focus + label::after,
.f-03 input:focus + label::after,
.f-04 input:focus + label::after,
.f-05 input:focus + label::after,
.f-06 input:focus + label::after,
.f-07 input:focus + label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #3498db;
}

/* 生年月日 */
#year,#w-his1-y, #w-his2-y, #w-his3-y,
#his1-y,#his2-y,#his3-y,#his4-y,#his5-y {
  width:30%;
  height: 2.25em;
  font-size: 1em;
}

#month, #day,#last-meal,#meal4,#slp4,#smoke-hon, #smoke-kaisu,
#alcohol-kaisu, #alcohol-ryou
{
  width: 15%;
  height: 2.25em;
  margin-left: 1.55em;
  margin-right: .5em;
  font-size: 1em;
}


.add {
  margin-top: 2em;
  margin-left:  2em;
  font-size: 0.8em;
  color: #333;
}


.f-02 p {
  position: relative;
  margin: .5em 0 .5em 0;

}

.f-02 input {
  width: 100%;
  padding: .6em .6em .5em .5em;
  border: 1px solid #999;
  background: #fff;
  border-radius: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #333;
}



.f-03 p {
  position: relative;
  margin: .5em 0 1.5em 0;
}

.f-03 input {
  width: 80%;
  padding: .6em .6em .5em 5.5em;
  border: 1px solid #999;
  background: #fff;
  border-radius: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #333;
}


.f-04 p {
  position: relative;
  margin: .5em 0 .5em 0;
}

.f-04 input {
  width: 100%;
  padding: .6em .6em .5em 3.5em;
  border: 1px solid #999;
  background: #fff;
  border-radius: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #333;
}


.f-05 p {
  position: relative;
  margin: .5em -5em .5em 0;
}

.f-05 input {
  width: 60%;
  padding: .6em .6em .5em .5em;
  border: 1px solid #999;
  background: #fff;
  border-radius: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #333;
}

.f-06 p {
  position: relative;
  margin: .5em 0 .5em 0;
}

.f-06 input {
  width: 30%;
  padding: .6em .6em .5em .5em;
  border: 1px solid #999;
  background: #fff;
  border-radius: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #333;
  text-align: center;
}

.f-07 p {
  position: relative;
  margin:0 -6em 0 .5em;
}

.f-07 input {
  width: 80%;
  height: inherit;
  padding: .6em .6em .5em .5em;
  border: 1px solid #999;
  background: #fff;
  border-radius: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #333;
}


.w-his-2 {
  width: calc(2/12 * 100%);
  text-align: center;
  padding: .75em 0;
}

.w-his-3 {
  width: calc(3/12 * 100%);
}

.w-his-4 {
  width: calc(4/12 * 100%);
}

.w-his-7 {
  width: calc(7/12 * 100%);
}

.w-his-8 {
  width: calc(8/12 * 100%);
}

.w-his-9 {
  width: calc(9/12 * 100%);
}


/* radio button*/

.radio-wrap {
  font-size: 1.08em;
  margin: 1em 0 .5em 1.5em;
}

.radio {
  display: none;
}

.radio + .radio-icon:before {
  margin-left: .75em;
  content: "\f3a6";
  font-family: "Ionicons";
  color: #ccc;
  font-size: 1.25em;
  vertical-align: middle;
}
.radio:checked + .radio-icon:before {
  content: "\f3a7";
  color: #00AF65;
}

.radio-wrap input[type=radio]:checked + span {
  color: #006437;
  font-size: 1.25em;
}


/* 質問 */
.question {
  width: 100%;
  margin-bottom: 3em;
}

.question p {
  color: #333;
}

.q-wrap {
  background: #E2F4EA;
  border-radius: 8px;
  padding: 1em;
}

.q-wrap-preg {
  background: #FFEBEB;
  border-radius: 8px;
  padding: 1em;
  margin-bottom: 2em;
}

.center {
  text-align: center;
}

.mt1 {
  margin-top: .5em;
}

.ml1 {
  margin-left: .5em;
}

.mr2 {
  margin-right: 1.5rm;
}

.uri-no {
  color: red;
  font-weight: 500;
  font-size: .8em;
}

.woman {
  content: "\f25d";
  font-family: "Ionicons";
  color: darkred;
  vertical-align: middle;
}

.red {
  color: darkred;
  font-size: .8em;
}


#yes1,#yes2,#yes3,#yes4,#yes5,#yes6,#yes7,#yes8 {
  display: none;
}



/* selModal（セレクトボックス） */

body.selModalBody{
  overflow: hidden;
}

.selModal{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999999;
  display: none;
}

.selModalOverlay{
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
}

.selModal .selModalInner{
  position: absolute;
  box-sizing: border-box;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 100%;
  max-width: 600px;
  max-height: 95%;
  border-radius: 0 0 5px 5px;
  overflow-y: hidden;
}

.selModal .selModalInner .selModalHeader{
  background-color: #EFEFEF;
  text-align: right;
  padding: 10px;
  border-radius: 5px 5px 0 0;
}

.selModal .selModalInner .selModalHeader::after{
  content: "";
  display: block;
  clear: both;
}

.selModalCloseIcon{
  display: block;
  width: 25px;
  height: 25px;
  position: relative;
  cursor: pointer;
  float: right;
}
.selModalCloseIcon span::before,
.selModalCloseIcon span::after{
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84%;
  height: 10%;
  margin: -8% 0 0 -42%;
  background: #555555;
}
.selModalCloseIcon span::before{
  transform: rotate(-45deg);
}
.selModalCloseIcon span::after{
  transform: rotate(45deg);
}

.selModal .selModalInner .selModalList{
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
  overflow-y: auto;
}

.selModal .selModalInner ul{
  margin: 0;
  padding: 0;
  color: #333;
  background-color :#FFF;
  padding-bottom: 1px;
  box-sizing: border-box;
}

.selModal .selModalInner ul li{
  display: block;
  position: relative;
  margin: 0 0 -1px 0;
  padding: 10px 25px 10px 15px;
  border: 1px solid #DDD;
  cursor: pointer;
  box-sizing: border-box;
}

.selModal .selModalInner ul li img{
  height: auto;
  vertical-align: middle;
  margin-right: 5px;
  max-width: 40px;
}

.selModal .selModalInner ul li.selected{
  background-color: #dddddd;
}

.selModal .selModalInner ul li.selected::before{
  position: absolute;
  content: '';
  display: block;
  height: 100%;
  top: 0;
  left: 0;
  width: 4px;
  background-color: #383838;
}

.selModal .selModalInner ul li::after{
  position: absolute;
  top: 50%;
  right: 15px;
  display: block;
  content: '';
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-top: 1px solid #888;
  border-right: 1px solid #888;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.selModalButton{
  display: inline-block;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 6px 22px 6px 12px;
  border: 1px solid #777;
  border-radius: 3px;
  background: #fff;
  color: #333;
  text-decoration: none;
  line-height: normal;
  cursor: pointer;
  text-align: left;
  font-size: inherit;
}

.selModalButton::before, .selModalButton::after{
  content: '';
  position: absolute;
  z-index: 2;
  right: 7px;
  width: 0;
  height: 0;
  border: 4px dashed;
  border-color: #333 transparent;
  pointer-events: none;
}

.selModalButton::before{
  border-bottom-style: solid;
  border-top: none;
  top: 30%;
}

.selModalButton::after{
  border-top-style: solid;
  border-bottom: none;
  bottom: 30%;
}

.selModal .selModalInner ul li.totch{
  background-color: #EFEFEF;
}



/* チェックボックス */

.cb span {
  margin-right: 1.5em;
}

input[type="checkbox"] {
  opacity:0;
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
}

input[type="checkbox"] + span::before {
  display: inline-block;
  content: '';
  width: 1rem;
  height: 1rem;
  border: 2px solid #999;
  border-radius: 5px;
  margin-right: .5rem;
  vertical-align: middle;
}

input[type="checkbox"]:checked + span::before {
  content: "\f383";
  font-family: "Ionicons";
  font-weight: 600;
  color: #006437;
}

input[type="checkbox"]:focus + span::before {
  border-color: #00AF65;
}


/* button */
.btn {
  box-sizing: content-box; 
  background: #00af65;
  color: #fff;
  width: 200px;
  margin: 3em auto;
  padding: .75em 1.25em;
  border-radius: 6px;
  font-size: 1.25em;
}

/* footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3em;
  border-top: 1px solid #ccc;
  font-size: .75em;
}