@charset "utf-8";

:root {
  font-size: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  min-height: 100%;
}

body {
  color: #000;
  font: 400 1em/1.3 Arial, sans-serif;
}

#wrapper {
  position: relative;
  max-width: 790px;
  margin: 1rem auto;
  border: solid 1px #000;
  background-color: #fff;
  overflow: hidden;
  padding: 3rem 2rem;
}

p {
  padding-bottom: 0.8rem;
}

h3 {
  margin: 0 0 0.8rem;
  font-size: 1.16em;
  line-height: 1.1em;
  text-align: center;
}

h2 {
  font-size: 1.15em;
  line-height: 1.3em;
  margin-bottom: 1.5rem;
  background: #558ED5;
  padding: 0.2rem 0.5rem;
  text-align: center;
}

a {
  color: #000;
  text-decoration: none;
}

a ins {
  color: #558ED5;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

ul {
  padding: 0;
  list-style: none;
}

li {
  padding-left: 1.15rem;
}

ul li:before {
  content: "▪";
  display: inline-block;
  font-size: 1.4em;
  position: relative;
  float: left;
  margin-top: -3px;
  margin-left: -1.15rem;
  color: #558ED5;
}

header section {
  padding: 0 1.6rem 0.2rem 0;
  display: flex;
  justify-content: flex-end;
}

article > p:first-of-type {
  width: 341px;
  position: absolute;
  top: 119px;
  left: 42px;
  text-align: justify;
  line-height: 1.7;
}

article > p:nth-of-type(2) {
  color: #7F7F7F;
  text-align: center;
  font-size: 1.167em;
  line-height: 1.3;
  padding-top: 0.4rem;
}

article section:first-of-type p {
  padding: 8px 0 0 77px;
  background: url(../images/icon1.jpg) top left no-repeat;
  height: 53px;
  margin-bottom: 1.2rem;
}

article section:first-of-type p:nth-of-type(2) {
  background: url(../images/icon2.jpg) top left no-repeat;
}

article section:first-of-type p:nth-of-type(3) {
  background: url(../images/icon3.jpg) top left no-repeat;
}

article section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

article section aside {
  width: 331px;
}

article section aside:last-of-type {
  width: 362px;
}

footer p {
  text-align: center;
}

@media only screen and (max-width:789px) {
  #wrapper {
    border: none;
    margin: 0 auto;
    padding: 1rem;
  }

  article > p:first-of-type {
    width: auto;
    position: static;
    text-align: left;
    line-height: 1.4;
    margin: 0.5rem 0 -0.5rem;
  }
  
  ul {
    padding-bottom: 1rem;
  }

  article section {
    display: block;
  }
  
  article section aside {
    width: auto !important;
  }
  
  p a {
    display: inline-block;
  }

  :is(footer, article > p:nth-of-type(2), ul) br {
    display: none;
  }

}

