/* 資料一覧 */
.materials{
  max-width: 1035px;
  width: 92.5%;
  margin: 0 auto;
  padding: 120px 0 0;
  & .list01{
    display: flex;
    justify-content: start;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem 3.5rem;
    margin-bottom: 7rem;
  }
  & .item01{
    width: calc((100% - 2 * 3.5rem) / 3);
    box-shadow: 4.6px 6px 3.3px rgba(0,0,0,0.09);
  }
  & .wrap01{
    width: 100%;
    height: auto;
    aspect-ratio: 1.7 / 1;
    & img{
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  & .wrap02{
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid rgba(98, 82, 0, 0.3);
  }
  & .texts01{
    padding: 20px;
  }
  & .heading01,
  & .text01{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.4;
    letter-spacing: 0.1em;
  }
  & .heading01{
    color: #635200;
    font-size: 18px;
    font-weight: bold;
  }
  & .text01{
    font-size: 17px;
    margin-bottom: 1.25rem;
  }
  & .link01{
    background: #635200;
    position: relative;
    display: block;
    width: 100%;
    color: white;
    font-size: 16px;
    font-family: 'Noto Serif JP',  sans-serif;
    text-align: center;
    font-weight: 700;
    padding: 10px 0;
  }
  & .img02{
    position: absolute;
    width: 12px;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
  }
}
@media (max-width: 768px) {
  .materials {
    width: 100%;
    padding: 30px 20px 0;

    & .list01 {
      gap: 3rem;
      margin-bottom: 30px;
    }

    & .item01 {
      width: 100%;
    }

    & .wrap02 {
      padding-bottom: 10px;
      margin-bottom: 10px;
    }

    & .texts01 {
      padding: 15px;
    }

    & .heading01 {
      font-size: 16px;
    }

    & .text01 {
      font-size: 14px;
      margin-bottom: 10px;
    }

    & .link01 {
      font-size: 14px;
    }
  }
}

/* ページネーション */
.pagination{
  font-family: 'Noto Serif JP', sans-serif;
}
.pagination ul.page-numbers{
  display: flex;
  justify-content: center;
  align-items: center;
}
.pagination ul.page-numbers li a {
  font-size: 17px;
  border: 2px solid rgba(98, 82, 0, 0.5) !important;
  display: block;
  width: 30px;
  height: 30px;
  line-height: 28px;
  text-align: center;
  margin: 0;
  transition: opacity 0.5s ease-out;
  font-weight: 600;
  &:hover {
    opacity: 0.7;
  }
}
ul.page-numbers li span.page-numbers {
  border: none;
}
.pagination ul.page-numbers li span.page-numbers.current {
  background: #635200;
  color: #fff;
  width: 30px;
  height: 30px;
  line-height: 28px;
  text-align: center;
  padding: 0;
  margin: 0;
  font-weight: 600;
  display: block;
}
.pagination ul.page-numbers li {
  overflow: visible;
  margin: 0 7.5px;
}
.prev.page-numbers,
.next.page-numbers {
  display: none !important;
}
@media (max-width: 768px){
  .pagination ul.page-numbers li a {
    font-size: 15px;
    width: 28px;
    height: 28px;
    line-height: 24px;
  }
  .pagination ul.page-numbers li span.page-numbers.current {
    width: 28px;
    height: 28px;
    line-height: 24px;
  }
  .pagination ul.page-numbers li {
    margin: 0 5px;
  }
}

/* 資料詳細 */
.material{
  max-width: 1020px;
  width: 92.5%;
  margin: 0 auto;
  padding: 120px 0 0;
  & .block01{
    display: flex;
    justify-content: space-between;
    align-items: start;
  }
  & .left{
    width: 46%;
  }
  & .right{
    width: 46%;
  }
  & .content{
    padding: 0 !important;
    & h2{
      font-family: 'Noto Serif JP', sans-serif;
      font-size: 23px;
      color: white;
      background: #856A02;
      line-height: 1.4;
      border-left: 6px solid #5E4800;
      position: relative;
      padding: 7.5px;
      margin-bottom: 27.5px;
      &::after{
        content: "";
        display: block;
        position: absolute;
        background: #856A02;
        height: 1px;
        left: -6px;
        right: 0;
        bottom: -10px;
      }
    }
    & p{
      font-size: 12px;
      line-height: 2.5;
      margin-bottom: 30px;
    }
  }
  & .title{
    font-family: 'Noto Serif JP', sans-serif;
    font-size: 33px;
    line-height: 1.4;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 55px;
    &::before{
      content: "";
      position: absolute;
      width: 106px;
      height: 2.6px;
      background: #8C7228;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
    }
  }
  & .heading01{
    font-family: 'Noto Serif JP', sans-serif;
    font-size: 23px;
    color: white;
    background: #8C7228;
    text-align: center;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    padding: 7.5px 0 3px;
  }
  & .materials_swiper{
    margin-bottom: 27.5px;
    & .swiper-slide{
      width: 100%;
      height: auto;
      aspect-ratio: 1.7 / 1;
      & img{
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }
  & .materials_thumbnail_swiper{
    margin-bottom: 32.5px;
    & .swiper-slide{
      opacity: .4;
      transition: opacity .5s;
      width: 32%;
      height: auto;
      aspect-ratio: 1.7 / 1;
      & img{
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      &.swiper-slide-thumb-active{
        opacity: 1;
      }
    }
  }
}
@media(max-width: 1200px){
  .material{
    & .left{
      width: 48%;
    }
    & .right{
      width: 48%;
    }
  }
}
@media (max-width: 768px) {
  .material {
    width: 100%;
    padding: 30px 20px 0;
    & .block01 {
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
    & .left {
      width: 100%;
    }
    & .right {
      width: 100%;
    }
    & .content {
      padding: 0;
      & h2 {
        font-size: 18px;
        padding: 5px 7.5px;
        margin-bottom: 17.5px;
        &::after {
          left: -5px;
          bottom: -7.5px;
        }
      }
      & p{
        margin-bottom: 20px;
      }
    }
  
    & .title {
      font-size: 23px;
      margin-bottom: 40px;
      &::before {
        width: 45px;
        height: 2px;
      }
    }
    & .heading01 {
      font-size: 20px;
    }
    & .materials_swiper {
      margin-bottom: 15px;
    }
    & .materials_thumbnail_swiper {
      margin-bottom: 25px;
      & .swiper-slide {
        width: 32%;
      }
    }
  }
}

/* フォーム */
.p-form{
  & .p-block01{
    border: 2px solid #8C7228;
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 2px;
    padding: 22px 22px 15px;
    margin-bottom: 30px;
  }
  & .p-wrap01{
    &:not(:last-child){
      margin-bottom: 17.5px;
    }
  }
  & .p-texts01{
    margin-bottom: 5px;
  }
  & .p-text01{
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
  }
  & .p-input,
  & .p-textarea{
    width: 100%;
    border-radius: 3px!important;
    border: 1px solid #b3b3b3;
    font-size: 13px;
    line-height: 1.4;
    padding: 8px 10px 5px;
    font-weight: bold;
    letter-spacing: 0.08em;
    &::placeholder{
      color: rbga(0,0,0,0.37);
    }
  }
  & .p-textarea{
    height: 112px;
  }
  & .p-select{
    position: relative;
    &::before{
      position: absolute;
      content: "";
      position: absolute;
      top: 1.5rem;
      right: 9px;
      width: 13px;
      height: 9px;
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      background: rgba(0,0,0,0.64);
    }
    & select{
      width: 100%;
      border-radius: 3px !important;
      border: 1px solid #b3b3b3;
      font-size: 13px;
      line-height: 1.4;
      padding: 8px 10px 5px;
      font-weight: bold;
      &::placeholder{
        color: rbga(0,0,0,0.37);
      }
    }
  }
  & .p-btn{
    background-image: url(../img/new/materials-btn.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    max-width: 403px;
    aspect-ratio: 7.085/1;
    width: 100%;
    border: none;
    margin: 0 auto;
    display: block;
    position: relative;
    & input{
      position: absolute;
      inset: 0;
      text-align: center;
      background: none;
      border: none;
      color: white;
      font-size: 21px;
      font-weight: bold;
    }
  }
  & .p-hidden{
    display: none;
  }
}
.wpcf7-spinner,
.wpcf7-response-output,
.screen-reader-response {
  display: none !important;
}
.wpcf7-not-valid-tip{
  color: red !important;
  font-size: 12px !important;
}
.wpcf7-form-control-wrap{
	width: 100% !important;
  display: block;
}
@media(max-width: 768px) {
  .p-form {
    & .p-block01 {
      padding: 18px 15px 13px;
      margin-bottom: 20px;
    }
    & .p-wrap01 {
      &:not(:last-child) {
        margin-bottom: 20px;
      }
    }
    & .p-text01 {
      font-size: 15px;
    }
    & .p-input,
    & .p-textarea {
      font-size: 16px;
      padding: 7px 8px 4px;
      letter-spacing: 0;
    }
    & .p-textarea {
      height: 100px;
    }
    & .p-select {
      &::before {
        right: 8px;
        width: 12px;
        height: 8px;
      }
      & select {
        font-size: 16px;
        padding: 7px 8px 4px;
      }
    }
    & .p-btn {
      width: 90%;
      & input {
        font-size: 18px;
      }
    }
  }
}