/* ここからカテゴリー */
.p-layout-container {
  box-sizing: border-box;
  max-width: 1240px;
  margin: 0 auto;
}

.cate-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.cate-list li {
  flex: 0 1 calc(25% - 20px);
  box-sizing: border-box;
  height: 100%;
}

@media screen and (max-width: 599px) {
  .cate-list li {
    flex: 0 1 calc(25% - 15px);
  }
}

@media screen and (max-width: 768px) {
  .cate-list li {
    flex: 0 1 calc(50% - 20px);
  }
}

@media screen and (max-width: 1024px) {
  .cate-list li {
    flex: 0 1 calc(33.333% - 20px);
  }
}

.cate-list a {
  display: flex;
  align-items: center;
  padding: 10px;
  text-decoration: none;
  color: #333;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 599px) {
  .cate-list a {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.cate-list img {
  max-width: 50px;
  height: auto;
  margin-right: 10px;
}

@media screen and (max-width: 599px) {
  .cate-list img {
    margin-bottom: 10px;
    margin-right: 0px;
  }
}
/* ここまでカテゴリー */

.p-top-logo {
  font-size: 20px;
  line-height: 1.4;
  max-width: 90%;
  margin: 30px auto;
  text-align: center;
}

.p-top-logo a {
  display: block;
  transition: opacity .2s;
  text-decoration: none;
  color: #333;
}

.p-top-logo a:hover {
  opacity: .66;
}

.p-top-logo a:active {
  opacity: 1;
}

#p-slider .bx-controls-direction a {
  z-index: 100;
}

#p-slider .bx-viewport {
  top: 0;
  left: 0;
  border: 0;
  background: #f8f8f8;
  box-shadow: none;
}

#p-slider .bx-wrapper img {
  margin: 0 auto;
}

#p-slider .bx-caption {
  top: 0;
  bottom: auto;
  background: rgba(0, 0, 0, .3);
}

#p-slider .bx-caption span {
  padding: 1.5em;
}

#p-slider .bx-pager {
  bottom: 10px;
  padding-top: 0;
}

#p-slider .bx-pager a {
  background: #fff;
}

#p-slider .bx-pager a:hover,
#p-slider .bx-pager a.active {
  background: #ff7373;
}

.p-news {
  line-height: 1.5;
  margin: 0;
}

.p-news::after {
  display: block;
  clear: both;
  content: '';
}

.p-news__label {
  font-size: 14px;
  font-weight: normal;
  line-height: 1.6;
  width: 180px;
  margin: 0;
  letter-spacing: 1px;
}

.p-news__content {
  line-height: 1.6;
  margin: 5px 0 20px 10px;
}

.p-news__content p:nth-child(1) {
  margin-top: 0;
}

.p-news__label {
  font-family: 'Montserrat', sans-serif;
}

.p-news__label::before {
  content: '-';
}

.p-info {
  line-height: 1.5em;
  font-size: 1.1em;
}

.p-contents {
  line-height: 1.5;
  margin-bottom: 150px;
  width: 90%;
}

.p-contents__list {
  margin: 0 0 20px;
  padding: 0;
  list-style-type: none;
}

.p-contents__list::after {
  display: block;
  clear: both;
  content: '';
}

.p-contents__list li {
  position: relative;
  box-sizing: border-box;
  padding: 0 2em 0 1em;
}

.p-contents__list li::before {
  position: absolute;
  top: .5em;
  left: 0;
  content: '-';
}

.p-contents__list a {
  display: block;
  max-width: 100%;
  padding: .5em 0;
  transition: opacity .2s;
  text-decoration: none;
  color: #333;
}

.p-contents__list a:hover {
  opacity: .66;
}

.p-contents__list a:active {
  opacity: 1;
}

.p-custom-banner {
  margin-top: 50px;
  text-align: center;
}

.p-custom-banner__unit {
  background: #f8f8f8;
}

.p-custom-banner__unit--text {
  font-family: 'Montserrat', sans-serif;
  padding: 30px 10px;
  color: #f8f8f8;
  background: #333;
}

.p-custom-banner__unit--text a {
  color: #f8f8f8;
}

.p-custom-banner__image {
  width: 100%;
}

.p-custom-banner__heading {
  font-size: 24px;
  padding: 10px 0;
}

.p-custom-banner__body {
  line-height: 1.5;
  padding: 10px 0;
}

.c-section__heading--sub-title {
  position: relative;
  /* border-bottom : 2px solid #444; */
  font-weight: bold;
  margin-bottom: 20px;
}

.c-section__heading--sub-title span {
  line-height: 1.3;
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 1em;
  background: #fff;
}

.c-section__heading--sub-title::after {
  position: absolute;
  top: 50%;
  display: block;
  width: 100%;
  height: 1px;
  content: '';
  background: #333;
}

.bn { text-align: center;} 

ul.contents_area { box-sizing: border-box; display: flex; flex-wrap: wrap; justify-content: space-between; padding-inline-start: 0px; list-style-type: none;}
ul.contents_area li a { text-decoration: none;  } 
ul.contents_area li:last-child { margin-right:0px }
ul.contents_area li:nth-child(3n) { margin-right: 0; }
ul .contents_txt { margin-bottom: 30px; padding-top: 15px; line-height: 1.5em; font-size: 1.4em;  }
.contents_area li { width: calc(95% / 3); margin-right: 10px }

@media screen and (min-width: 375px) {/*375px以上用*/
  ul.contents_area { display: block; }
  .contents_area li { width: 100%; margin-right: 0px; } 
  
  .bn_img_area { width: 100% }
  .bn_txt_area { width: 100%; display: block; background-color: #5a5a5a; align-items: center; justify-content: center; padding: 40px 0 30px; color: #fff; }
  .bn_txt_area .txt_wrap { text-align: center }
  .bn_txt_area .bn_ttl { font-size: 3em; font-weight: 300; font-family: 'Josefin Sans', sans-serif; margin-bottom: 20px; text-align:center }
  .bn_txt_area p { text-align: center; line-height: 1.5em;  font-size: 1.4em; }
  .bn_txt_area a { color: #fff }  
}

@media screen and (min-width: 600px) {
  
  .p-top-logo {
    display: none;
  }

  #p-slider .bx-pager {
    bottom: 30px;
  }

  .p-contents__list li::before {
    top: 0;
  }

  .p-contents__list li {
    float: left;
    width: 50%;
    margin-bottom: 20px;
  }

  .p-contents__list li:nth-child(2n + 1) {
    clear: left;
  }

  .p-contents__list a {
    display: inline-block;
    padding: 0;
  }

  .p-custom-banner {
    display: table;
    width: 100%;
    margin-top: 100px;
    table-layout: fixed;
  }

  .p-custom-banner__unit {
    display: table-cell;
    box-sizing: border-box;
    width: 50%;
    max-width: 50%;
    vertical-align: middle;
    word-break: break-all;
  }

  .p-custom-banner__unit--text {
    padding: 10px 20px;
  }
  
  .custom_bn { margin: 0 auto; display:flex; flex-wrap:wrap }
  .bn_img_area { width: 50% }
  .bn_txt_area { width: 50%; background-color: #5a5a5a; display: flex; align-items: center; justify-content: center; padding: 0; color: #fff; }
  .bn_txt_area .txt_wrap { text-align: center  }
  .bn_txt_area .bn_ttl { font-size: 3em; font-weight: 300; font-family: 'Josefin Sans', sans-serif; margin-bottom: 20px; text-align:center  }
  .bn_txt_area p { text-align: center; line-height: 1.4em;  font-size: 1.3em; }
  .bn_txt_area a { color: #fff }  

  
}

@media screen and (min-width: 960px) {
  .p-news__label {
    float: left;
    clear: left;
    margin-right: 20px;
  }

  .p-news__content {
    overflow: hidden;
    margin: 0 0 20px;
  }

  .p-custom-banner__heading {
    font-size: 30px;
  }
  
  /* ここからスライダー */
  #slider {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .p-slider {
    overflow: hidden; 
  }

  .bx-wrapper {
    max-width: 800px !important;
    margin-left: auto;
    margin-right: auto;
  }

  #p-slider .bx-viewport {
    overflow: visible !important; /* 前後を見せる */
  }

  .bx-wrapper .bx-slide {
    flex: 0 0 auto;
    width: 800px;
    margin: 0 25px;
  }

  .bx-wrapper .bx-slide:not(.bx-active) {
    opacity: 0.5;
    transform: scale(0.9);
  }

  .bx-wrapper .bx-prev,
  .bx-wrapper .bx-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .bx-wrapper .bx-pager {
    bottom: -20px;
    padding-top: 10px;
  }
  
}
