@charset "utf-8";

/*------------------------------------------------------------------------------------------------------------*/
/* Header */
.header{
  width: 100%;
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  border-bottom: solid 1px #cccccc;
  background: #ffffff;

  & .header-logo{
    display: block;
    max-height: 70px;
    padding: 5px 10px;
    & img{
      max-height: 60px;
      width: auto;
    }
  }
}
  main{
    margin-top: 70px;
    min-height: calc(100vh - 184px);
  }
/* Grobal Navigation */
nav{
  display: flex;
  align-items: center;
  justify-content: flex-end;

  & a{
    text-decoration: none;
    font-size: 14px;
  }

  @media (min-width: 769px){ 
    & ul.first_menu {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        > li{
            padding: 10px;

            a {
              color: #000000;
            }
        }
    }   
  }
}

/* Pagenation */
.pagenation {
  li.prev:hover, li.next:hover{
      background: #666666;
  }
}

/* 背景固定パララックス */
.parallax01{
  background-image: url(../../images/image01.jpg);
}

/*------------------------------------------------------------------------------------------------------------*/
/* Footer */
footer{
  height: 44px;
  background: #000000;    
  color: #ffffff;
  padding: 10px;
  text-align: center;
}

/*------------------------------------------------------------------------------------------------------------*/
/* Toppage */
/* Main */
.title-header{
  width: 100%;
  height: 150px;
  background-image: url(../../images/headertitle_cover.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  overflow: hidden;
  position: relative;
  z-index: 1;

  &::after{
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;

  }
  & h2{
    font-size: 40px;
    line-height: 150px;
    text-align: center;
    color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    z-index: 20;  

    @media (max-width: 768px){
      font-size: 24px;
      line-height: 1.4;      
    }   
  }
}

.book-container{
  width: calc(100% - 40px);
  max-width: 1280px;
  margin: 20px auto;
  display: flex; 
  flex-flow:row-reverse; 
  gap: 20px;

  &.column-1{
    & .main-colum{
      width: calc(100%);
    }    
  }
  &.column-2{
    & .main-colum{
      width: calc(100% - 220px);
    } 

    @media (max-width: 768px){
      flex-flow: column;
        & .main-colum{
          width: 100%;
        }       
    }     
  }
}

.main-colum{ 
  & section{
    margin-bottom: 50px;
  }

  & h3{
    font-size: 20px;
    border-bottom: solid 2px #696969;
    padding: 10px 0;
    margin-bottom: 10px;
  }
  & .book-list{
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px 40px;
  }
  & .item{
    width: calc((100% - 200px) / 6);

    @media (max-width:950px) {
        width: calc((100% - 160px) / 5);
    }
    @media (max-width:768px) {
        width: calc((100% - 120px) / 4);
    }
    @media (max-width:680px) {
        width: calc((100% - 80px) / 3);
    }
    @media (max-width:480px) {
        width: calc((100% - 40px) / 2);
    }
  }
  & .book-thum{
    width: 100%;
    max-width: 170px;
    height: auto;
    border: solid 1px #cccccc;
    margin-bottom: 10pxl\;
  }
  & .book-title{
    font-weight: bold;
    font-size: 16px;
    line-height: 1.4;
  }
  & .book-btn{
    display: block;
    width: 150px;
    font-size: 14px;
    line-height: 30px;
    font-weight: bold;
    letter-spacing: 0.1rem;;
    background: #000000;
    border: solid 1px #000000;
    color: #ffffff;
    border-radius:15px;
    text-decoration: none;
    text-align: center;
    margin: 10px auto;
    transition: all 0.3s linear;

    &:hover{
      background: #ffffff;
      color: #000000;

    }
  }
}
.side-colum{
  width: 200px;

  & .book_index_heading{
    background: #000000;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    padding: 10px;
  }
  & .book_index{
    list-style: none;
    border: solid 1px #696969;
    margin-bottom: 20px;

    > li{
      border-bottom: solid 1px #696969;
      > a{
        color: #292929;
        display: block;
        font-size: 14px;
        text-decoration: none;
        padding: 10px;
      }
    }
  }
  @media (max-width: 768px) {
    width: 100%;    
  }  
}



/*------------------------------------------------------------------------------------------------------------*/
/* Search */
/* main */
body.search{
  & main{
    width: calc(100% - 40px);
    max-width: 1280px;
    margin: 90px auto 50px;
  }
  & h2{
    font-size: 20px;
    margin-bottom: 10px;
  }
  & .search_box{
    padding-bottom: 20px;
    border-bottom: solid 1px #cccccc;
    & form{
      width: 100%;
      max-width: 600px;
      display: flex;

      & input[type="text"]{
        border-radius: 4px 0 0 4px;
        width: 300px;
      }

      & .search_btn{
        background: #000000;
        color: #ffffff;
        font-weight: bold;
        font-size: 14px;
        letter-spacing: 0.5rem;
        padding-left: 1.0rem;
        padding-right: 0.5rem;        
        border-radius:  0 4px 4px 0;
      }
    }
  }
  & .serch_result{
    padding: 20px 0;

    & .result_list{
      & .hit_data{
        padding: 20px;
        font-size: 14px;
        line-height: 1.6;

        & .book_title{
          font-size: 16px;
          display: inline-block;
          margin-bottom: 10px;
        }
      }
    }
  }

}

/*------------------------------------------------------------------------------------------------------------*/
/* Form */
body.form{
  & .form-container{
    width: calc(100% - 20px);
    max-width: 1280px;
    margin: 0 auto;

    & .form-row{
      width: 100%;
      display: flex;
      align-items: center;
      flex-wrap: wrap;

      & .label{
        width: 200px;

        & label{
          white-space: nowrap;
          &::after{
            content:none;
          }
        }
      }

      & .input-area{
        width: calc(100% - 200px);
      }
    }
  }
}