/* 小見出しの頭の数字に0をセット */
body {
  counter-reset: number 0;
}

/* 上部余白なくす */
.form-box {
    padding-top: 0px !important;
}

/* ヘッダー下の余白調整 */
.form-bottom{
padding:20px 0 !important;
}

/* テキストの行間と余白 */
.text-break{
line-height: 1.8em;
padding:0 20px;
}

/* 見出しを初期化 */
.description-md-title{
display: flex;
justify-content: center;
background-color: initial;
color: initial;
padding: initial;
margin: initial;
box-shadow: initial;
text-align:center;
}

/* 中見出し */
 h4 {
  position: relative;
  padding: 0.5em 0.5em !important;
  background: -webkit-linear-gradient(to right,#4cac62, #8ade9e);
  background: linear-gradient(to right, #4cac62, #8ade9e);
  color: #fff !important;
  width: 100%;
  font-weight: lighter;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.56);
margin:0 auto;
}

/* 小見出し */
h5 {
  position: relative;
  padding: 1rem 0.5rem;
font-size: 110% !important;
line-height:1.6em;
}

h5:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: '';
  background-image: -webkit-gradient(linear, left top, right top, from(#8ade9e), to(#4cac62));
  background-image: -webkit-linear-gradient(left, #8ade9e 0%, #f4cac62 100%);
  background-image: linear-gradient(to right, #8ade9e 0%, #f4cac62 100%);
}

h5:before {
  counter-increment: number 1; 
  content: "0" counter(number) " "; 
color:#8ade9e;
}

/* 赤字 */
.form-editor div:nth-child(5) .col-sm-12 p{
color: red;
}

/* 送信ボタン */
.btn {
  text-align: center;
  box-sizing: border-box;
  display: block;
  max-width: 200px;
  width: 100%;
  margin: 0 auto;
  background: #8ade9e; /* 色変更可能 */
  color: #fff;
  font-weight: bold;
  padding: 13px 10px 10px;
  border-color:#8ade9e;
  border-radius: 5px;
  border-bottom: 5px solid rgba(0,0,0,0.3);
}
.btn:hover {
  animation: 1s flash;
  border-color:#8ade9e;
}
.btn:active, .btn:focus {
  border-bottom-width: 0;
  margin-top: 5px;
  background: #4cac62; /* 色変更可能 */
  border-color:#8ade9e;
}

@keyframes flash {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

 
/* チェックボックスを真ん中に（スマホ） */
div.checkbox{
text-align:left;
margin:20px 0;
}

@media screen and (max-width:767px){

/* スマホ用小見出し調整 */
h5{
padding: 1rem 2rem;
max-width: inherit;
width: 100vw;
}


/* スマホ用ヘッダー画像サイズ調整 */
.form-top{
height:47vw;
max-width:100%;
background-size: cover;
background-position:center center !important;
background-repeat: no-repeat;
}

.col-sm-12 {
padding: 0 0 15px; }

/* スマホ用画像サイズ調整（横幅いっぱい） */
.description-image {
max-width: inherit;
width: 100vw;
}
}

@media screen and (min-width:768px){
/* パソコン用ヘッダー画像サイズ調整 */
.form-top{
height:22vw;
max-width:100%;
background-size: cover;
background-position:center center !important;
background-repeat: no-repeat;
}
}