
/*===============================================
●共通
===============================================*/

.cate01 {
  background-color: #779652;
}

.cate02 {
  background-color: #e89f42;
}

.cate03 {
  background-color: #6e8490;
}


/* ページネーション */
.pref_next {
  margin: 30px auto 0 auto;
  text-align: center;
  font-size: 14px;
}

.pref_next span {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0 3px;
  color: #FFF;
  padding: 7px 0 0 1px;
  background: #779652 !important;
  line-height: 100%;
  letter-spacing: 0;
}

.pref_next a {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0 3px;
  padding: 7px 0 0 1px;
  border: 1px solid #779652;
  color: #779652;
  text-decoration:none;
  line-height: 100%;
  letter-spacing: 0;
}


/*===============================================
●画面の横幅が813px以上(タブレット・PC)
===============================================*/
@media screen and (min-width: 813px) {

  /* メイン画像 */
  .main-img {
    width: 100%;
    margin: 0 auto;
  }

  .main-img img {
    width: 100%;
  }

  .news {
    width: 98%;
    max-width: 1400px;
    margin: 80px auto 250px auto;
  }

  .news ul {
    width: 100%;
    margin: 0 auto;
  }

  .news ul li {
    width: 23.5%;
    margin: 0 2% 70px 0;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;

    -webkit-filter: drop-shadow(0px 2px 3px rgba(0,0,0,.2));
    filter: drop-shadow(0px 0px 3px rgba(0,0,0,.2));
  }

  .news ul li:nth-of-type(4n) {
    margin: 0 0 70px 0;
  }

  .news ul li > a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 0 55px 0;
  }

  .news ul li > a > div {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-position: center center;
    background-size: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;


    transition: all 0.3s ease-out;
    transform: scale(1);
  }

  .news ul li > a > div:hover {
    transform: scale(1.1);
    transition: all 0.3s ease-out;
  }

  .news ul li > a > p:nth-of-type(1) {
    position: relative;
    z-index: 2;
    min-height: 55px;
    margin: 0 auto;
    background: #fff;
    padding: 20px 30px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 140%;
    text-align: left;
  }

  .news ul li > a > p:nth-of-type(2) {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    margin: 0 auto;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0.1em;
  }

  .news ul li > a > p:nth-of-type(2) > span {
    display: inline-block;
    min-width: 95px;
    height: 25px;
    margin: 0 10px 0 0;
    padding: 6px 7px 0 7px;
    color: #fff;
    letter-spacing: 0em;
    text-align: center;
  }


  /* 詳細 */
  .detail {
    width: 800px;
    min-height: 300px;
    margin: 80px auto 250px auto;
    text-align: left;
  }

  .detail > p:nth-of-type(1) {
    margin: 0;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0.1em;
  }

  .detail > p:nth-of-type(1) > span {
    display: inline-block;
    min-width: 95px;
    height: 25px;
    margin: 0 10px 0 0;
    padding: 5px 7px 0 7px;
    color: #ffffff;
    letter-spacing: 0em;
    text-align: center;
  }

  .detail > p:nth-of-type(2) {
    margin: 20px 0 0 0;
    padding: 0 0 20px 0;
    font-size: 25px;
    font-weight: 700;
    line-height: 140%;
    text-align: left;
    border-bottom: 1px solid #cccccc;
  }

  .detail > div {
    margin: 30px 0 0 0;
    font-size: 16px;
    line-height: 30px;
  }

  .detail > div img {
    max-width: 800px;
    margin: 10px auto;
  }


  .detail > div.btn {
    position: relative;
    width: 800px;
    margin: 150px auto 0 auto;
    text-align: center;
  }

  .detail > div.btn a.btn-next,
  .detail > div.btn a.btn-back,
  .detail > div.btn a.btn-prev {
    display: block;
    width: 160px;
    height: 44px;
    padding: 14px 0 0 0;
    font-size: 16px;
    font-weight: 700px;
    color: #fff;
    line-height: 100%;
    background-color: #779652;
    border-radius: 8px;
  }

  .detail > div.btn a.btn-back {
    width: 320px;
    margin: 0 auto;
  }

  .detail > div.btn a.btn-prev {
    position: absolute;
    top: 0;
    left: 0;
  }

  .detail > div.btn a.btn-next {
    position: absolute;
    top: 0;
    right: 0;
  }

}

/*===============================================
●画面の横幅が812px以下(スマホのみ)
===============================================*/
@media screen and (max-width: 812px) {

  /* メイン画像 */
  .main-img {
    width: 100%;
    margin: 0 auto;
  }

  .main-img img {
    width: 100%;
  }


  /* テーブル */
  .news {
    width: 100%;
    margin: 60px auto 100px auto;
  }

  .news ul {
    width: 90%;
    margin: 0 auto;
  }

  .news ul li {
    width: 100%;
    margin: 0 auto 10px auto;
    background-color: #fff;
    border-radius: 10px;

    -webkit-filter: drop-shadow(0px 2px 3px rgba(0,0,0,.2));
    filter: drop-shadow(0px 0px 3px rgba(0,0,0,.2));
  }

  .news ul li > a {
    position: relative;
    display: flex;
    width: 100%;
  }

  .news ul li > a > div {
    flex-shrink: 0;
    width: 40%;
    aspect-ratio: 1 / 1;
    background-position: center center;
    background-size: cover;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }

  .news ul li > a > p:nth-of-type(1) {
    margin: 0;
    padding: 20px 20px 0 20px;
    font-size: 16px;
    font-weight: 700;
    line-height: 30px;
    text-align: left;
  }

  .news ul li > a > p:nth-of-type(2) {
    position: absolute;
    bottom: 20px;
    left: 45%;
    font-size: 11px;
    line-height: 20px;
    letter-spacing: 0em;
  }

  .news ul li > a > p:nth-of-type(2) > span {
    display: inline-block;
    min-width: 95px;
    height: 25px;
    margin: 0 8px 0 0;
    padding: 2px 5px 0 5px;
    color: #fff;
    letter-spacing: 0em;
    text-align: center;
  }


  /* 詳細 */
  .detail {
    width: 100%;
    margin: 60px auto 100px auto;
  }

  .detail > p:nth-of-type(1) {
    width: 90%;
    margin: 0 auto;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0.1em;
    text-align: left;
  }

  .detail > p:nth-of-type(1) > span {
    display: inline-block;
    min-width: 95px;
    height: 25px;
    margin: 0 10px 0 0;
    padding: 5px 7px 0 7px;
    color: #ffffff;
    letter-spacing: 0em;
    text-align: center;
  }

  .detail > p:nth-of-type(2) {
    width: 90%;
    margin: 15px auto 0 auto;
    padding: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 140%;
    text-align: left;
    border-bottom: 1px solid #cccccc;
  }

  .detail > div {
    width: 90%;
    margin: 25px auto 0 auto;
    font-size: 14px;
    line-height: 180%;
    text-align: left;
  }

  .detail > div img {
    max-width: 100%;
    margin: 10px auto;
  }


  .detail > div.btn {
    position: relative;
    width: 90%;
    margin: 100px auto 0 auto;
    text-align: center;
  }

  .detail > div.btn a.btn-next,
  .detail > div.btn a.btn-back,
  .detail > div.btn a.btn-prev {
    display: block;
    width: 80px;
    height: 40px;
    padding: 13px 0 0 0;
    font-size: 14px;
    font-weight: 700px;
    color: #fff;
    line-height: 100%;
    background-color: #779652;
    border-radius: 8px;
  }

  .detail > div.btn a.btn-back {
    width: 120px;
    margin: 0 auto;
  }

  .detail > div.btn a.btn-prev {
    position: absolute;
    top: 0;
    left: 0;
  }

  .detail > div.btn a.btn-next {
    position: absolute;
    top: 0;
    right: 0;
  }

}


.detail a {
  color: #e89f42;
  text-decoration: underline;
}