@charset "utf-8";

body {
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 2%;
}

a:hover {
  opacity: 0.6;
}
h1 {
  margin: 16px 0;
  font-weight: normal;
  font-size: 30px;
  color: #ffff;
}
h2 {
  text-align: center;
  margin: 16px 0 0;
  font-weight: bold;
  font-size: 24x;
  color: #ffff;
}
.borderline  {
  margin: 0;
  background-image: url(./image/icon/borderline.png);
  background-repeat: repeat-x;
}
h3 {
  text-align: center;
  margin-top: 30px;
  font-weight: normal;
  font-size: 24px;
}

h4 {
  text-align: center;
  margin: 16px 0 0;
  font-weight: normal;
  font-size: 24px;
}

p {
  margin: 0;
  font-size: 20px;
  color: #ffff;  
}

header {
  background-color: #3125dfd6;
  text-align: center;
  padding: 32px 0;
}
header > img {
  border-radius: 50%;
}

section {
  width: 100%;
  height: 100%;
  max-width: 400px;
  margin: 64px auto 0;
  text-align: center;
}

section p {
  margin-top: 16px;
  line-height: 1.8;
  color: black;
}
section > a {
  width: 300px;
  height: 260px;
}

article {
  max-width: 1000px;
  margin: 0 auto 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between
}

div > h4 {
  margin-top: 80px;
}

footer {
  border-top: 1px solid #ccc;
  text-align: center;
  padding: 20px 0;
  background-color: #3125dfd6;
}

small {
  font-size: 14px;
  color: #c7c6c6;
}

address {
  margin-top: 16px;
}

address > * + * {
  margin-left: 10px;
}

#back-btn {
  display: none;
  padding: 40px 10px;
  text-decoration: none;
  border-radius: 50%;
  position: fixed;
  bottom: 10px;
  right: 10px;
}

#back-btn > img {
  width: 100px;
  height: 100px;
}

#back-btn:hover {
  opacity: .9;
}

/* article のflexレイアウトをスマホ時は縦並びにする */
article {
  max-width: 1000px;
  margin: 0 auto 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

@media (max-width: 600px) {

  header > p {
    font-size: 18px;
  }

  main {
  padding: 0 4%;
}

  article {
    flex-direction: column;
    align-items: center;
  }
  section {
    max-width: 100%;
    margin: 32px auto 0;
  }

#back-btn {
  padding: 10px;
  /* ボタンの大きさを小さくして目立ちすぎないように */
  bottom: 20px;
  right: 20px;
  }
#back-btn > img {
  width: 30px;
  height: 30px;
  }

}