@import url(reset.css);
* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 16px * 62.5% = 10px */
  width: 100%;
  min-width: 1200px;
}

body {
  font-size: 1.5em;
  line-height: 1.0;
  color: #333;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  opacity: .8;
}

img {
  max-width: 100%;
  vertical-align: bottom;
  align-self: baseline;
}

header {
  width: 100%;
  position: fixed;
  z-index: 11;
  top: 0;
  background: #ff5252;
  padding: 2rem 0;
  text-align: center;
}

header .logo {
  display: inline-block;
  margin: auto;
  text-align: center;
  font-size: 4rem;
  font-family: 'Monoton', cursive;
}

header .logo img {
  width: 4rem;
  margin-right: 2rem;
}

header .logo span {
  color: white;
  text-shadow: 1px 1px black;
}

main {
  display: flex;
  width: 1200px;
  margin: 12rem auto 0;
}

#sidebar {
  background: #69f0ad;
  width: 264px;
  /* width: 22%; */
  padding: 24rem 2rem 2rem;
  position: relative;
}

#sidebar .sidebar-head {
  position: absolute;
  top: 0;
  left: 0;
}

#sidebar .account {
  position: absolute;
  right: 0;
  bottom: -4rem;
  left: 0;
  margin: auto;
  width: 8rem;
  height: 8rem;
}

#sidebar .account img {
  border-radius: 50%;
  border: 4px solid white;
}

#sidebar .account figcaption {
  margin-top: 1em;
  font-weight: bold;
  text-align: center;
}

#sidebar h2 {
  font-size: 20px;
  margin-top: 2em;
}

#sidebar ul {
  padding-left: 2em;
}

#sidebar ul li {
  list-style-type: disc;
}

#sidebar ul  + li {
  margin-top: 1em;
}

#sidebar ul li a {
  color: #609;
  text-decoration: underline;
}

#sidebar .sns {
  display: flex;
  justify-content: space-between;
  width: 70%;
  margin: 4rem auto 0;
}

#sidebar .sns img {
  width: 4rem;
  border-radius: 50%;
}

#content {
  background: #ffab40;
  /* width: 900px; */
  width: 75%;
  margin-left: auto;
  padding: 4rem;
}

#content section + section {
  margin-top: 4rem;
}

h2 {
  font-size: 3rem;
  text-align: center;
  padding: 0.5em 0;
  border-top: 2px solid;
  border-bottom: 2px solid;
  margin-bottom: 1em;
}

h3 {
  font-size: 2rem;
  padding: 0.25em 0 0.25em 1em;
  border-left: 8px solid;
  margin-bottom: 1em;
}

#content .box-area {
  display: flex;
  flex-wrap: wrap;
  margin-top: 4rem;
}

#content .box {
  display: block;
  border: 2px solid;
}

#content .box:nth-of-type(n + 2) {
  margin-left: 5%;
}

#content .box:nth-of-type(3n + 4) {
  margin-left: 0;
}

#content .box:nth-of-type(n + 4) {
  margin-top: 5%;
}

footer  {
  margin-top: 4rem;
  width: 100%;
  background: #40c4ff;
}

.copyright {
  text-align: center;
  line-height: 3;
  margin: 0;
  font-size: 1.2rem;
}