@charset "UTF-8";

html {
  font-size: 100%;
}

body {
  color: #333;
  font-size: 0.875rem;
}

img {
  max-width: 100%;
}

ul {
  list-style: none;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.inner {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

#header {
  margin-top: 60px;
}

#header .site-title {
  width: 180px;
  /*小さい値を指定することで上下の余白が消える*/
  line-height: 1px;
  margin-bottom: 15px;
}

#header .site-title a {
  display: block;
}

#mainvisual {
  margin-bottom: 60px;
}

#index .index-inner .index-list {
  /*下記２行によって最長のテキストに合わせた長さのリストができる*/
  /*テキストの長さに応じて可変で中央配置*/
  display: table;
  margin: 0 auto;
}
#index .index-inner .index-list li {
  margin-bottom: 20px;
}

/*最後のliタグには margin-bottom を設定しない*/
#index .index-inner .index-list li:last-child {
  margin-bottom: 0;
}

.list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 30px 0 45px 0;
}

.list li {
  width: 49%;
  margin-bottom: 15px;
}

.list li img {
  /*要素と子孫要素の下端を行全体の下端に揃えることで画像の下にできる隙間を消す*/
  /*vertical-alignは縦方向の揃え位置でtext-alignは横方向の揃え位置*/
  vertical-align: bottom;
} 

#detail {
  background-color: #f5f5f5;
  padding: 60px;
  margin-bottom: 60px;
}

#detail .flex {
  display: flex;
}

#detail dl {
  width: 35%;
  border-right: solid 1px #333;
  padding-right: 40px;
}

#detail dt {
  font-weight: bold;
}

#detail dd {
  margin-bottom: 10px;
}

#detail dd:last-child {
  margin-bottom: 0;
}

#detail .text {
  width: 65%;
  padding-left: 40px;
}

#detail .text .link {
  color: #333;
}

#detail .text .link:hover {
  opacity: 0.8;
}

#footer {
  font-size: 0.625rem;
  padding: 15px 0;
  text-align: center;
}

@media screen and (max-width: 1024px) {
  .inner {
    padding: 0 20px;
  }

  #header {
    padding: 0 10px;
  }

  #index {
    padding: 40px 20px;
  }

  .list {
    flex-direction: column;
  }

  .list li {
    width: 100%;
    text-align: center;
  }

  #detail {
    padding: 40px 20px;
  }

  #detail .flex {
    flex-direction: column;
  }

  #detail dl {
    width: 100%;
    border-right: none;
    border-bottom: solid 1px #333;
    padding: 0 0 40px 0;
  }

  #detail .text {
    width: 100%;
    padding: 40px 0 0 0;
  }
}
