@charset "utf-8";

body {
    background-image: url(../images/bg.png);
    font-size: 16px;
    font-family: 'arial', 'Hiragino', 'Meiryo', sans-serif;
    color: #333333;
}

header {
    width: 1240px;
    margin: 0 auto 44px;
}

h1 {
    text-align: center;
    padding: 20px 0px 16px;
}

header nav ul {
    display: flex;
    justify-content: center;
    border-top: 2px solid #7c5d48;
    border-bottom: 2px solid #7c5d48;
    background-color: rgba(255, 255, 255, 0.42);
    padding: 12px 0px 10px;
}

header nav ul li {
    margin: 0 20px;
}

header nav ul li a {
    font-size: 22px;
    font-weight: bold;
    color: #7c5d48;
}

header nav ul li a:hover {
    text-decoration: underline double;
}

div {
    width: 1240px;
    margin: 0 auto 50px;
    display: flex;
    justify-content: space-between;
}

main {
    flex-basis: 920px;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 62px 72px 32px 72px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.16);

}

aside {
    flex-basis: 284px;
}

aside nav {
    border-radius: 16px;
    background-color: #ffffff;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.16);
}

aside nav h2 {
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: bold;
    color: #7c5d48;
}

aside nav ul {
    font-size: 14px;
}

.category-nav ul li {
    list-style-type: square;
    color: #7c5d48;
    margin: 0 0 20px 20px;
}

.category-nav ul li a {
    color: #333333;
}

.recent-nav ul li {
    border-bottom: 1px solid #7c5d48;
    padding: 10px 0 10px 0;
}

.recent-nav ul {
    height: 240px;
    overflow: hidden scroll;
}

article h2 {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 8px;
}

time {
    background-color: #91c777;
    border-radius: 0px 22px 22px 22px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    padding: 13px 25px 12px 20px;
    display: inline-block;

}

.postdate {
    margin-bottom: 26px;
}

.eyecatch {
    margin-bottom: 26px;
}

article h3 {
    border-bottom: 2px solid #6ab547;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
    background-image: url(../images/h2_icon.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    padding: 20px 10px 10px 48px;
}

article section p {
    line-height: 1.6;
    margin-bottom: 24px;
}

article section {
    margin-bottom: 50px;
}

footer {
    background-color: #523f2e;
    color: #ffffff;
    text-align: center;
    padding: 14px 10px 20px;
}

@media screen and (max-width: 767px) {

  body {
    font-size: 14px;
  }

  header {
    width: auto;
    margin: 0 10px 24px;
  }

  header nav ul {
    flex-wrap: wrap;
  }

  header nav ul li {
    margin: 6px 12px;
  }

  div {
    width: auto;
    margin: 0 10px 30px;
    flex-direction: column;
  }

  main {
    flex-basis: auto;
    padding: 24px 20px;
    margin-bottom: 24px;
  }

  aside {
    flex-basis: auto;
  }

  aside nav {
    padding: 20px;
  }

  article h2 {
    font-size: 26px;
  }

  article h3 {
    font-size: 20px;
    padding: 16px 10px 8px 40px;
    background-size: 24px auto;
  }

  time {
    font-size: 14px;
    padding: 10px 18px;
  }

  img {
  max-width: 100%;
  height: auto;
}

  aside p {
    text-align: center;
  }

}
