
#wrapper {
  background-color: #F9F7F3;
}

/* pagenation */
#pagenation {
  width: 960px;
  margin: 40px auto 0;
}
#pagenation > a.link,
#pagenation > span {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 0 10px;
  padding-top: 13px;
  font-size: 12px;
  background-color: #ffffff;
  border: 1px solid #333333;
  border-radius: 5px;
  vertical-align: top;
}
#pagenation > a.link:hover,
#pagenation > span {
  color: #ffffff;
  background-color: #468876;
  border: 1px solid #468876;
  border-radius: 5px;
}
#pagenation > a.first,
#pagenation > a.last {
  display: inline-block;
  width: 11px;
  margin-top: 9px;
  vertical-align: top;
}

/* btn_link */
#btn_link {
  width: 960px;
  margin: 80px auto 0;
}
#btn_link > a {
  display: inline-block;
}
#btn_link > a > span {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #C3BFB7;
}
#btn_link > a > img {
  display: inline-block;
  width: 80px;
  margin-left: 15px;
}

/*===============================================
●画面の横幅が769px以上(タブレット・PC)
===============================================*/
@media screen and (min-width: 769px) {

  /* メニューの下線 */
  header nav > ul > li:nth-of-type(6) > a {
    border-bottom: 1px solid #468876;
  }

  /* cate */
  #cate {
    width: 700px;
    margin: 100px auto 0;
  }
  #cate > img {
    width: 366px;
    margin: 0 auto;
  }
  #cate > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin: 30px auto 0;
  }
  #cate > ul > li {
    width: 160px;
  }
  #cate > ul > li > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    font-size: 14px;
    border: 1px solid #333333;
    border-radius: 100vh;
    background-color: #ffffff;
  }
  #cate > ul > li > a.active,
  #cate > ul > li > a:hover {
    border: 1px solid #FEC47D;
    background-color: #FEC47D;
  }
  #cate > ul > li > a::before,
  #cate > ul > li > a::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    margin: auto;
    width: 2px;
    height: 8px;
    border-radius: 9999px;
    background-color: #000000;
    transform-origin: 50% calc(100% - 1px);
  }
  #cate > ul > li > a::before {
    transform: rotate(45deg);
  }
  #cate > ul > li > a::after {
    transform: rotate(-45deg);
  }

  /* list */
  #list {
    width: 960px;
    min-height: 600px;
    margin: 40px auto 0;
  }
  #list > div {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
  }
  #list > div > div {
    width: 300px;
    background-color: #ffffff;
    border-radius: 10px;
  }
  #list > div > div > a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px 20px 60px 20px;
  }
  #list > div > div > a > span {
    position: absolute;
    top: 30px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background-color: #468876;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
  }
  #list > div > div > a > div {
    height: 170px;
    border-radius: 10px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  #list > div > div > a > p.title {
    margin-top: 15px;
    text-align: left;
    line-height: 1.6;
  }
  #list > div > div > a > p.date {
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin-top: 14px;
    text-align: left;
  }


   /* detail */
  #detail {
    width: 960px;
    margin: 80px auto 0;
  }
  #detail > p.date {
    position: relative;
    margin: 0 auto;
    text-align: left;
  }
  #detail > p.date > span {
    display: inline-block;
    width: 60px;
    height: 20px;
    margin-left: 20px;
    padding-top: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    background-color: #468876;
    border-radius: 100vh;
  }
  #detail > p.title {
    margin: 15px auto 0;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    line-height: 1.5;
  }
  #detail > div {
    margin: 20px auto 0;
    padding-top: 25px;
    font-size: 14px;
    text-align: left;
    line-height: 1.8;
    border-top: 1px solid #CCCCCC;
  }
  #detail > div img {
    width: 450px !important;
    height: auto !important;
    margin: 10px 0 0 0;
  }
  #detail > div iframe {
    width: 450px;
    margin: 10px 0 0 0;
  }

  /* btn_link */
  #btn_link {
    width: 960px;
    margin: 80px auto 0;
  }
  #btn_link > a {
    display: inline-block;
  }
  #btn_link > a > span {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #C3BFB7;
  }
  #btn_link > a > img {
    display: inline-block;
    width: 80px;
    margin-left: 15px;
  }

}


/*===============================================
●画面の横幅が768px以下(スマホのみ)
===============================================*/
@media screen and (max-width: 768px) {

  /* cate */
  #cate {
    width: 100%;
    margin: 40px auto 0;
  }
  #cate > img {
    width: 210px;
    margin: 0 auto;
  }
  #cate > ul {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px auto 0;
  }
  #cate > ul > li {
    width: 48%;
  }
  #cate > ul > li:nth-of-type(3),
  #cate > ul > li:nth-of-type(4) {
    margin-top: 10px;
  }
  #cate > ul > li > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    font-size: 14px;
    border: 1px solid #333333;
    border-radius: 100vh;
    background-color: #ffffff;
  }
  #cate > ul > li > a.active {
    border: 1px solid #FEC47D;
    background-color: #FEC47D;
  }
  #cate > ul > li > a::before,
  #cate > ul > li > a::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    margin: auto;
    width: 2px;
    height: 8px;
    border-radius: 9999px;
    background-color: #000000;
    transform-origin: 50% calc(100% - 1px);
  }
  #cate > ul > li > a::before {
    transform: rotate(45deg);
  }
  #cate > ul > li > a::after {
    transform: rotate(-45deg);
  }

  /* list */
  #list {
    width: 90%;
    margin: 0 auto;
  }
  #list > div > div {
    width: 100%;
    margin: 20px auto 0;
    background-color: #ffffff;
    border-radius: 10px;
  }
  #list > div > div > a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px 20px 60px 20px;
  }
  #list > div > div > a > span {
    position: absolute;
    top: 30px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background-color: #468876;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
  }
  #list > div > div > a > div {
    height: 150px;
    border-radius: 10px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  #list > div > div > a > p.title {
    margin-top: 15px;
    text-align: left;
    line-height: 1.6;
  }
  #list > div > div > a > p.date {
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin-top: 14px;
    text-align: left;
  }

  /* pagenation */
  #pagenation {
    width: 90%;
    margin: 30px auto 0;
  }
  #pagenation > a.link,
  #pagenation > span {
    margin: 0 3px;
  }


   /* detail */
   .news_pankuzu {
    text-align: left !important;
   }

  #detail {
    width: 90%;
    margin: 60px auto 0;
  }
  #detail > p.date {
    position: relative;
    margin: 0 auto;
    text-align: left;
  }
  #detail > p.date > span {
    display: inline-block;
    width: 60px;
    height: 20px;
    margin-left: 20px;
    padding-top: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    background-color: #468876;
    border-radius: 100vh;
  }
  #detail > p.title {
    margin: 15px auto 0;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    line-height: 1.5;
  }
  #detail > div {
    margin: 20px auto 0;
    padding-top: 25px;
    font-size: 14px;
    text-align: left;
    line-height: 1.8;
    border-top: 1px solid #CCCCCC;
  }
  #detail > div img {
    width: 100% !important;
    height: auto !important;
    margin: 10px 0 0 0;
  }
  #detail > div iframe {
    width: 100%;
    margin: 10px 0 0 0;
  }

  /* btn_link */
  #btn_link {
    width: 90%;
    margin: 60px auto 0;
  }

}
