/* 元の Rails の版は html, body を height: 100% にしていたが、JS が html の
   height を auto に書き換えてページ全体をスクロールさせていた。JS を外したので height は書かない */
html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* 元の Rails の版と同じ並び。元は Noto Sans Japanese を http の @import で読もうとして
     mixed content でブロックされ、serif で出ていた。その見た目に合わせるため、Web フォントは読まない */
  font-family: "Noto Sans Japanese", serif;
}

header h1 {
  text-align: center;
  margin: 16px 0;
}

header h1 img {
  width: 200px;
}

a.button {
  background-color: #20b5b4;
  border-radius: 16px;
  color: white;
  padding: 8px 32px;
  font-size: 14px;
  text-decoration: none;
  font-weight: normal;
}

section .header-block {
  margin-top: 16px;
  text-align: center;
}

section .header-block h2 {
  display: inline-block;
  font-size: 24px;
  border-bottom: 4px solid #20b5b4;
  padding: 0 8px;
}

section p.message {
  text-align: center;
  font-weight: bold;
  font-size: 24px;
}

section#top {
  background-image: url("../images/top.png");
  background-size: cover;
  height: 400px;
  position: relative;
}

section#top #mission {
  height: 220px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  margin: auto;
  color: white;
  font-size: 30px;
  text-align: center;
  font-weight: bold;
}

section#top #mission p {
  margin: 60px 0;
}

section#products .content {
  text-align: center;
  margin-top: 48px;
}

section#products .content .service-image {
  display: inline-block;
  min-width: 320px;
}

section#products .content .service-image img {
  display: block;
  margin: 0 auto;
}

section#products .content .service-image img.logo {
  width: 200px;
}

section#products .content .service-description {
  display: inline-block;
  vertical-align: top;
  font-weight: bold;
  font-size: 14px;
}

section#about .content {
  margin: 0 auto;
  max-width: 700px;
}

section#about .content .box {
  display: inline-block;
  padding: 0 16px;
  vertical-align: top;
}

section#about .content .box.left-box {
  width: 230px;
  max-width: 100%;
}

section#about .content .box.right-box {
  width: 400px;
  max-width: 100%;
}

section#about .content h3 {
  margin-bottom: 0;
}

section#about .content p {
  margin-top: 8px;
  font-size: 14px;
}

footer {
  margin-top: 32px;
  padding: 4px 0;
  background-color: #666666;
  color: white;
  text-align: center;
}
