
/*===========================
** みんなの有機農業大事典　CSS
===========================*/

.loading {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: #8BC34A;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: all 0.5s linear;
  z-index: 9999999999;
  letter-spacing: 0.4em;
}

.loading.loaded {
  opacity: 0;
  visibility: hidden;
}

.loading-text {
  color: #FFF;
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.wrapper {
	opacity: 0;
	visibility: hidden;
}
.wrapper.is-loading{
		opacity: 1;
		visibility: visible;
	}

/************************************
** common
************************************/
body{
  font-family: "Noto Sans JP", serif;
  font-optical-sizing: auto;
  font-style: normal;
}
body.is-active{
  overflow: hidden;
}
.main-wrap-inner{
  display: grid;
  grid-template-columns: 20% 80%;
    max-width: 1024px;
    margin: auto;
    justify-content: space-between;
    align-items: flex-start;
}
.wrapper{
    width: 100%;
    /* sticky対策 */
    /* overflow: hidden; */
}
.main-content{
  margin: 2em;
}
.p-link{
  margin: 1em auto;
}
.p-link a{
  text-decoration: underline;
  color: #146aae;
}
h2{
  font-size: 1.3em;
  letter-spacing: 0.1em;
  margin: 1em auto;
}
h3{
  position: relative;
  font-size: 1.1em;
  margin: 1em auto;
  letter-spacing: 0.1em;
}
hgroup{
  margin: 5em auto;
}
@media screen and (max-width:1024px) {
  .main-wrap-inner{
    grid-template-columns: 100%;
  }
  body.is-active{
    overflow: hidden;
  }
}
@media screen and (max-width:750px) {
  .wrapper{
    overflow: hidden;
}
  .main-content{
    margin: 1em;
  }
}
/************************************
** header
************************************/
.header{
  position: relative;
}
.header-bg{
  max-height: 200px;
  min-height: 200px;
  width: 100%;
  object-fit: cover;
  object-position: bottom;
}
.header .logo{
  position: absolute;
    top: 50%;
    left: 50%;
    margin: auto;
    transform: translate(-50%, -50%);
    text-align: center;
}
.header .logo img{
  width: 120px;
}
/************************************
** sidebar
************************************/
.sidebar_bg{
    height: 100vh;
    width: 100%;
    object-fit: cover;
    object-position: right;
}
.side-ttl{
  text-align: center;
}
.side-ttl img{
  width: 40%;
}
.p-nav__list{
  margin: 0.5em 2em;
  padding-top: 0.5em;
  border-top: 1px solid #ffffff;
}
.p-nav__list .p-nav__link{
  color: #ffffff;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.go-inaka{
  background-color: #F1D889;
  width: 50%;
  margin: 0.5em auto;
  color: #ffffff;
  text-align: center;
  border-radius: 30px;
  font-size: 0.8em;
  padding: 0.2em;
  letter-spacing: 0.1em;
}
.go-inaka a{
  color: #000000;
}
.go-gnnbkbooks{
  background-color: #4CAF50;
  width: 50%;
  margin: 0.5em auto;
  color: #ffffff;
  text-align: center;
  border-radius: 30px;
  font-size: 0.8em;
  padding: 0.2em;
  letter-spacing: 0.1em;
}
.go-gnnbkbooks a{
  color: #ffffff;
}
.noubunkyou{
  background-color: #000000;
  width: 50%;
  margin: 0.5em auto;
  color: #ffffff;
  text-align: center;
  border-radius: 30px;
  font-size: 0.8em;
  padding: 0.2em;
  letter-spacing: 0.1em;
}
.noubunkyou a{
  color: #ffffff;
}
@media (hover: hover) {
  .go-inaka:hover{
    background-color: #cda62d;
  }
  .go-gnnbkbooks:hover{
    background-color: #8BC34A;
  }
  .noubunkyou:hover{
    background-color: #a09e9e;
  }
}
@media screen and (max-width:1024px) {
  .p-nav__list .p-nav__link{
    font-size: 1.5em;
  }
  .side-ttl{
    display: none;
  }
  .p-nav__list:first-of-type{
    border-top: none;
  }
  .p-nav__list:last-of-type{
    margin-bottom:5em;
  }
  .p-nav__item{
    margin: 0.7em auto;
  }
  .side-menu{
    margin: 5em auto; 
    padding-top: 5em;
  }
  .noubunkyou,
  .go-inaka,
  .go-gnnbkbooks{
    margin: 1em auto;
    font-size: 1em;
    padding: 0.5em;
  }
}
@media screen and (max-width:480px) {
  .p-nav__list{
    margin: 1em;
    padding-top: 1em;
  }
  .p-nav__list .p-nav__link{
    font-size: 1.1em;
  }
  .side-menu{
    padding-top: 10em;
  }
}
/************************************
** slider
************************************/
  .arrow_box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 20px 0 0;
    position: relative;
}

.prev-arrow,
.next-arrow {
    display: block;
    width: 30px;
    height: 30px;
    background: #ffffff;
    border-radius: 50%;
    transition: all .3s ease;
    cursor: pointer;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: 9;
    border: 1px solid #000000;
}


.prev-arrow {
    transform: rotate(180deg);
    left: 0;
}
.next-arrow {
    right: 0;
}

.prev-arrow::before,
.next-arrow::before{
    position:absolute;
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1px solid #000000;
    border-top: 1px solid #000000;
    top:0;
    bottom:0;
    margin:auto;
    transform:rotate(45deg);
}
@media (hover: hover) {
  .prev-arrow:hover{
    background:#000000;
  }
  .next-arrow:hover {
      background: #000000;
  }
.prev-arrow:hover::before{
    border-right: 1px solid #ffffff;
    border-top: 1px solid #ffffff;
}
.next-arrow:hover::before{
    border-right: 1px solid #ffffff;
    border-top: 1px solid #ffffff;
}
}

.prev-arrow::before{
  left: 9px;
}
.next-arrow::before{
  right: 12px;
}

  .thumbnail .slick-track {
    transform: unset !important;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  .thumbnail-img {
    opacity: 0.3;
    transition: opacity .3s linear;
    display: flex;
    align-items: center;
  }
  .thumbnail .slick-current {
    opacity: 1;
  }

/************************************
** モーダルウィンドウ
************************************/
body.is-scrollLock{
    overflow: hidden;
}
.md-btn{
    position: relative;
    display: block;
}
.md-overlay{
    display: none;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0);
    z-index: 99;
    position: fixed;
    top: 0px;
    left: 0px;
    opacity: 0.3;
  }
   
  .md-contents{
    display: none;
    width: 70%;
    max-width: 1000px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
  }
   
   
  .md-xmark{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 22px;
    z-index: 9999;
    cursor: pointer;
    background-color: #ffffff;
  }
   
  .md-xmark span {
    height: auto;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 4px;
  }
   
  .md-xmark span:nth-of-type(1) {
    top: 0;
    transform: translateY(10px) rotate(-45deg);
  }
   
   
  .md-xmark span:nth-of-type(2) {
    bottom: 0;
    transform: translateY(-10px) rotate(45deg);
  }
  @media screen and (max-width: 820px) {
    .md-contents{
        width: 80%;
    }
    .md-btn::after{
        font-size: 1em;
    }
}


/************************************
** ハンバーガー
************************************/
.c-hamburger {
  position: relative;
  width: inherit;
  height: inherit;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  top: -5px;
}
.c-hamburger span {
  display: block;
  position: relative;
  left: 50%;
  width: 30px;
  height: 2px;
  transform: translateX(-50%);
  transition: all 0.4s;
  background-color: #ffffff;
}
.c-hamburger span:nth-of-type(1) {
  top: -4px;
}
.c-hamburger span:nth-of-type(2) {
  top: 1px;
}
.c-hamburger span:nth-of-type(3) {
  top: 6px;
}
.c-hamburger .c-hamburger__text {
  display: block;
  top: 12px;
  background: transparent;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
}
.c-hamburger.is-active span:nth-of-type(1) {
  top: 0;
  transform: translateX(-50%) rotate(225deg);
}
.c-hamburger.is-active span:nth-of-type(2) {
  opacity: 0;
}
.c-hamburger.is-active span:nth-of-type(3) {
  top: -4px;
  transform: translateX(-50%) rotate(-225deg);
}
.p-nav__inner{
  position: absolute;
  top: 0;
  left: 0;
  margin: auto;
}
.p-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: inherit;
  padding: 13px 20px;
}
.p-header__hamburger {
  display: none;
}
.p-header__nav {
  position: sticky;
  top: 0;
}
/* .p-nav__block::before{
  content: "";
  background: url(img/sidebar/sidebar_bg.jpg) 100% 100% / cover;
  max-height: 300px;
  min-height: 300px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
} */
@media screen and (max-width:1024px) {
  .p-header__hamburger {
    background-color: #000000;
    display: block;
    z-index: 100;
    position: fixed;
    top: 1%;
    right: 2%;
    height: 60px;
    width: 60px;
  }
.p-header__nav{
  display: none;
}
.p-header__nav.is-active{
  display: block;
  bottom: 0;
  right: 0;
  margin: auto;
  z-index: 99;
  position: fixed;
  top: 0;
  left: 0;
  overflow: auto;
}
.is-active .sidebar_bg{
  height: 100vh;
  object-fit: cover;
  object-position: bottom;
  position: fixed;
}
.is-active .p-nav__inner{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: auto;
  /* display: flex; */
  width: 80%;
  /* justify-content: flex-start; */
}
}
/************************************
** footer
************************************/
.footer{
  margin-top: 10em;
  position: relative;
}
.footer::before{
  content: "";
  display: inline-block;
  background: url(img/fv/top_fv.jpg) 100% 100% / cover;
  max-height: 300px;
  min-height: 300px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.footer-block{
  position: relative;
}
.footer .footer-logo{
  text-align: center;
  padding: 2em 0;
}
.footer .footer-logo img{
  width: 120px;
}
.footer .copyright{
  text-align: center;
  color: #ffffff;
  font-size: 0.8em;
}
@media screen and (max-width:480px) {
  .footer::before{
    max-height: 160px;
    min-height: 160px;
  }
  .footer .footer-logo{
    padding: 1em 0;
  }
  .footer .footer-logo img{
    width: 20vw;
  }
  .footer .copyright{
    font-size: 0.6em;
  }
}

/************************************
** ページトップ
************************************/
.pagetop {
  z-index: 98;
  position: fixed;
  bottom: 1%;
  right: 2%;
  line-height: 1;
}
.pagetop a {
  background: #b26840;
  text-decoration: none;
  color: #fff;
  padding: 0.6em;
  text-align: center;
  display: block;
  border-radius: 90px;
  opacity: 0.9;
  transition: all .3s ease;
  font-size: 1.4em;
}
@media (hover: hover) {
  .pagetop a:hover {
    text-decoration: none;
    opacity: .5;
  }
}

