.textcontents h2 {
  color: #5e4c3e;
  font-size: 30px;
  margin-bottom: 1em;
}

@media screen and (max-width: 767px) {
  .textcontents h2 {
    font-size: 26px;
  }
}

.textcontents .container {
  padding: 46px 0;
}

@media screen and (max-width: 868px) {
  .textcontents .container {
    padding: 2em 1em;
  }
}

.textcontents .item-textcontents {
  background-color: #fff;
  max-width: 800px;
  margin: 0 auto 60px auto;
  border-radius: 10px;
  box-shadow: 1px 1px 1px 0 rgba(0, 0, 0, 0.5);
  padding: .1em;
  font-size: 80%;
}

@media screen and (max-width: 767px) {
  .textcontents .item-textcontents {
    margin-bottom: 40px;
  }
}

.textcontents .item-textcontents figure {
  text-align: center;
  margin-top: -100px;
}

@media screen and (max-width: 767px) {
  .textcontents .item-textcontents figure {
    margin-top: -40px;
    padding-left: 1em;
    padding-right: 1em;
  }
}

.textcontents .item-textcontents h3 {
  font-size: 16px;
  font-weight: 600;
  background-color: lightgray;
  color: #fff;
  padding: 12px 1em 12px 20px;
  border-radius: 5px;
  text-align: left;
  background-position: 50% 50%;
  margin:20px;
}

@media screen and (max-width: 767px) {
  .textcontents .item-textcontents h3 {
    font-size: 14px;
    padding-left: 1em;
    padding-bottom: 0.8em;
    margin:15px;
  }
}

.textcontents .item-textcontents p {
  color: #373737;
  margin: 2em;
}

@media screen and (max-width: 767px) {
  .textcontents .item-textcontents p {
    margin: 1em;
  }
}

.textcontents .item-textcontents.case-a h3 {
background-color: #5b5021;}

.logo{
height: 50px;
padding: 6px 15px;
display: block;
}


@media screen and (max-width: 767px) {
.logo{
margin: 0 auto;
}
}