@charset "UTF-8";

/* 共通部分
------------------------------- */

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

  

/* NEWS
------------------------------- */
.main{
	border-top: 1px rgb(219, 219, 219) solid;
}
.main-contents {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.first-view {
  background-size: cover;
	margin: 3em 2em;
/*  margin-top: 30px;
  margin-left: 35px;
  margin-right: 35px;*/
  border: 3px solid #f0f0f0;
  box-shadow: 0 0 3px #ebe2da;
  padding: 0.05em 0.1em;
  }

/* 記事部分 */
article {
  width: 82%;
  order: 2;
}

.title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #5f5f5f;
  margin-top: 50px;
  margin-left: 35px;
  margin-right: 35px;
  margin-bottom: 5px;
  height: 135px;
  }

.title h2 {
  font-family: 'Lobster', cursive;
  font-size: 60px;
  font-weight: normal;
  color: #ffffff;
  text-shadow: 3px 3px 5px rgb(0, 77, 139);
  margin-top: 50px;
  margin-bottom: 5px;
  padding: 20px 50px;
  line-height: 60px;
  text-align: center;
}

.title p {
  font-size: 20px;
  font-weight: bold;
  color: rgb(0, 77, 139);
  margin-bottom: 70px;
}

.sub-t {
  font-size: 28px;
  font-family: 'Ysabeau SC', sans-serif;
  font-weight: bold;
  margin-top: 85px;
  color: #747474;
  text-align: center;
}

.item-list {
  width: 1400px;
  max-width: 90%;
  margin-top: 100px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px);
  column-gap: 120px;
  row-gap: 120px;
  justify-content: center;
}

.item-list dl {
    line-height: 1.7;
    margin-top: 5px;
}

.item-list dd {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 5px;
}

.item-list .painted {
  font-weight: normal;
  font-size: 12px;
}

.item-list li {
  position: relative;
}

.item-list .item-label {
  position: absolute;
  top: 0;
  left: calc(100% + 18px);
  font-size: 10px;
  white-space: nowrap;
  transform-origin: top left;
  transform: rotate(90deg);
}

.link-button-area {
  margin-top: 40px;
}

.link-button {
  background-color: #12816f;
  display: flex;
  justify-content: center;
  min-width: 30px;
  line-height: 36px;
  border-radius: 24px;
  font-family: 'Ysabeau SC', sans-serif;
  font-size: 18px;
  text-align: center;
  color: white;
  margin-top: 15px;
}

.link-button:hover {
  background-color: rgb(203, 226, 177);
}

.cat {
  display: none;
}

.copyright2 {
  display: none;
}

/* サイドバー */
aside {
  width: 16%;
  margin-top: 275px;
  order: 1;
}
  
.sub-title {
  font-size: 17px;
  padding: 0 8px 8px;
  font-weight: bold;
  font-family: 'Ysabeau SC', sans-serif;
  line-height: 20px;
  margin-bottom: 10px;
}

.sub-menu {
  margin-bottom: 20px;
  padding-left: 15px; 
  list-style: none;
}

.sub-menu li {
  line-height: 11px;
  font-size: 12px;
  font-weight: normal;
}

.sub-menu a {
  color: rgb(65, 65, 65);
  padding: 10px;
  display: block;
}

.sub-menu a:hover {
  color: #0bd;
}

aside p {
  padding: 12px 10px;
  font-size: 13px;
  line-height: 24px;
}

/* モバイル版
------------------------------- */
@media (max-width: 800px) {

  .first-view {
    background-size: cover;
    margin-left: 0;
    margin-right: 0;
	 
    }
  
  .title {
    height: 6em;
	padding-top: 3em;
  }

    .title h2 {
      font-size: 20px;
      font-weight: bold;
      padding: 0;
      margin-top: 3em;
    }
  
    .title p {
      font-size: 12px;
      font-weight: bold;
      color: rgb(0, 77, 139);
      /*padding-bottom: 2em;*/
      line-height: 5px;
    }

    .sub-t {
      font-size: 20px;
		margin-top: 5em;
      color: #747474;
    }
  
    .item-list {
      row-gap: 80px;
      grid-template-columns: repeat(auto-fit, 260px);
      margin-top: 35px;
      margin-left: auto;
      margin-right: auto;
    }
  
    .item-list dt {
      font-size: 14px;
      font-weight: bold;
    }
  .item-list dd {
    font-size: 11px;
    margin-top: 5px;
  }

  .item-list .painted {
    font-weight: normal;
    font-size: 12px;
  }

  .item-list li {
    position: relative;
  }

  .item-list .item-label {
    font-size: 12px;
    color: black;
  }

  .link-button-area {
    margin-top: 15px;
  }

  .link-button {
    font-size: 18px;
    margin-top: 12px;
  }

    .cat {
      display: flex;
      justify-content: space-around;
      font-size: 0.655rem;
      font-weight: bold;
      color: #4d4d4d;
      margin-top: 55px;
      padding-top: 15px;
      padding-bottom: 10px;
      border-top: 3px solid #f0f0f0;
    }
  
    .copyright2 {
      display: block;
      flex-direction: column;
      line-height: 15px;
      font-size: 11px;
      font-weight: bold;
      text-align: center;
      color: #666565;
    }
  
    article,
    aside {
      width: 100%;
      order: 1;
    }
  
    aside {
      display: none;
    }
  
  }