@charset "UTF-8";

/* WordPress only Code */
  .category-list {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    margin: 0 auto 60px;
    max-width: 1100px;
    width: 95vw;
  }
  .category-list .cat-item {
    flex: 0 1 46%;
    max-width: 200px;
    margin: 5px;
    display: block;
    color: #000;
    line-height: 40px;
    border: 1px solid #000;
  }
  .category-list .cat-item a {
    display: block;
    text-align: center;
    font-family: YuMincho, 'Yu Mincho', serif;
  }
  
  .breadcrumb > li {
    display: inline-block;
  }
  .library-header p {
    margin-bottom: 50px;
    font-family: YuMincho, 'Yu Mincho', serif;
  }

  a.read-more {
    display: none;
  }

  .shopping {
    background-color: #646464;
    position: relative;
  }
  .shopping a::before {
    content: url('https://akariya-jishichi.mom/apps/note/wp-content/themes/ozeki/img/icon-cart.png');
    position: relative;
    top: 2px;
    left: -10px;
  }


/*------top_library-----*/

.top_blog {
    width: 95vw;
    max-width: 1100px;
    margin: 0 auto 180px;
    text-align: center;
    justify-content: center;
    position: relative;
  }
  
.blog-contents {
    display: flex;
    flex-flow: row wrap;
    justify-content: left;
    margin-bottom: 50px;
  }
  
.blog-contents .contents_box,
.related .contents_box {
    width: 345px;
    margin-right: 32px;
    margin-bottom: 60px;
  }
  
.blog-contents .contents_box:nth-of-type(3n),
.related .contents_box:nth-of-type(3n) {
    margin-right: 0;
  }
  
.blog-contents .contents_box dt,
.related .contents_box dt {
    margin-bottom: 20px;
  }
  
.blog-contents .contents_box dd,
.related .contents_box dd {
    text-align: left;
    line-height: 2.8rem;
  }


.post-main .blog-date {
  margin-bottom: 30px;
}
.blog-img {
  max-width: 345px;
  max-height: 230px;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

@media screen and (min-width: 760px) and (max-width: 768px) {
  .blog-contents .contents_box dt {
    height: 242px;
  }
}
@media screen and (max-width: 959px) {
    .cat-item {
        margin-bottom: 15px;
    }
    .post-contents figure img {
      max-width: 100%;
      height: auto;
      width: auto;
    }
        /*------top_blog-----*/
    .top_blog {
        width: 90%;
    }
    .blog-contents {
      justify-content: space-between;
    }
    .blog-contents .contents_box {
      width: 49%;
      margin: 0;
    }
    .related .contents_box {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .blog-contents .contents_box a{
      display: flex;
      flex-flow: row wrap
    }
    .related .contents_box a {
        display: flex;
    }
    .blog-contents .contents_box dt {
      width: 100%;
      height: 118px;
    }
    .related .contents_box dt {
        width: 30%;
        margin-right: 5%;
        margin-bottom: 20px;
    }
    .blog-img {
        width: 100%;
    }
    .blog-contents .contents_box dd {
      width: 100%;
    }
    .related .contents_box dd {
        width: 65%;
    }
    h3 span.cat {
      display: block;
    }
    .open-menu-wrap #head_nv ul {
      flex-flow: row wrap;  
    }
    .open-menu-wrap #head_nv ul li {
      flex: 1 0 100%;
      max-width: 80vw;
      margin: 2px;
    }
  }


  /* Posts */
  .post-main.fourohfour {
    text-align: center;
  }
  .tags li {
    display: inline-block;
  }
  .post-main {
    max-width: 1030px;
    width: 95vw;
    margin: 0 auto 100px;
}
  .post-main h1 {
      font-size: 28px;
      font-family: ten-mincho, serif;
      margin-bottom: 50px;
      text-align: center;
  }
  .post-main h2 {
      font-size: 22px;
      font-weight: 600;
      font-family: YuMincho, 'Yu Mincho', serif;
      margin-bottom: 20px;
      color: #A49006;
	 }  
　  .post-main h3 {
      font-size: 14px;
      font-weight: 600;
      font-family: YuMincho, 'Yu Mincho', serif;
      margin-bottom: 20px;
  }

  .post-contents > p {
      margin: 0 auto 60px;
      max-width: 600px;
      width: 95vw;
      display: block;
  }
  .post-main figure,
  .post-main .wp-block-image {
    text-align: center;
    display: block;
    margin: 0 auto 60px;
  }

  .kanren {
      width: 95vw;
      max-width: 1100px;
      margin: 0 auto 100px;
  }
  .related {
      display: flex;
      justify-content: flex-start;
      flex-flow: row wrap;
  }

  /* Pagination */
  h2.screen-reader-text {
    display: none;
  }
  .nav-links {
    display: inline-block;
    margin: 0 auto;
  }
  .page-numbers {
    box-sizing: border-box;
    width: 44px;
    height: 40px;
    background-color: #BEB9AF;
    display: inline-block;
    color: #fff;
    line-height: 40px;
  }
  .page-numbers.current {
    background-color: #A49006;
    font-size: 16px;
  }
  .next.page-numbers,
  .prev.page-numbers {
    width: 84px;
    vertical-align: top;
  }
  .next.page-numbers img,
  .prev.page-numbers img {
    position: relative;
    top: 37%;
  }
  .pagination {
    width: 95vw;
    max-width: 1100px;
    margin: 0 auto 115px;
    display: flex;
    justify-content: space-between;
  }
  .navigation.pagination {
    margin: 0 auto 0;
    text-align: center;
  }
  section.pagination > div {
    flex: 0 1 100%;
    max-width: 256px;
    display: block;
    line-height: 57px;
    position: relative;
    box-sizing: border-box;
    background-color: #BEB9AF;
    color: #fff;
  }
  .pagination a {
    font-size: 16px;
  }
  .prev-post {
    text-align: right;
    padding: 0 37px 0 31px;
  }
  .prev-post h5 a::before {
    content: url('https://akariya-jishichi.mom/apps/note/wp-content/themes/ozeki/img/arw-bfr.png');
    position: relative;
    right: 35px;
    top: -2px;
  }
  .next-post {
    text-align: left;
    padding: 0 26px 0 37px;
    margin-left: auto;
  }
  .next-post h5 a::after {
    content: url('https://akariya-jishichi.mom/apps/note/wp-content/themes/ozeki/img/arw-after.png');
    position: relative;
    left: 35px;
    top: -2px;
  }
  .pagination.sp {
    display: none;
  }
  @media screen and (max-width: 959px) {
    .navigation.pagination {
      margin: 0 auto 0;
      display: block;
      width: 100%;
    }
    .next.page-numbers,
    .prev.page-numbers {
      width: 44px;
    }
    .next.page-numbers img, 
    .prev.page-numbers img {
      top: 43%;
      width: 80%;
    }
    .pagination.sp {
      display: flex;
    }
    .pagination.pc {
      display: none;
    }
    section.pagination > div {
      text-align: center;
      line-height: 37px;
      flex: 0 1 47%;
    }
    .next-post,
    .prev-post {
      padding: 0;
    }
    .prev-post h5 a::before {
      content: '';
    }
    .next-post h5 a::after {
      content: '';
    }
  }

 
  /* お問合せ */
  .inquiry-txt {
    margin-bottom: 100px;
  }
  #inquiry table {
    width: 100%;
    margin: 0 auto;
  }
  #inquiry .wpcf7 {
    max-width: 900px;
    width: 95vw;
    margin: 0 auto;
  }
  #inquiry tr {
    height: 80px;
  }
  #inquiry th {
    width: 360px;
    vertical-align: top;
    font-weight: 800;
    font-size: 16px;
  }
  #inquiry td {
    text-align: left;
    vertical-align: top;
    padding-top: 6px;
    max-width: 340px;
  }
  #inquiry td.left {
    text-align: left;
  }
  #inquiry .wpcf7-form th>div,
  #inquiry .wpcf7-form th>p {
    display: inline-block;
  }
  #inquiry .wpcf7-form th>div.wpcf7cf-hidden {
    display: none;
  }
  #inquiry .needed {
    padding: 2px 8px;
    font-size: 12px;
    background: #BBA35A;
    color: #fff;
    font-weight: 700;
  }
  #inquiry .aside {
    display: block;
    font-size: 13px;
    font-weight: 400;
    position: relative;
    top: -10px;
    left: 10px;
  }
  #inquiry input[type=text],
  #inquiry input[type=email],
  #inquiry input[type=tel],
  #inquiry input[type=submit],
  #inquiry textarea,
  #inquiry select {
    padding: 10px;
    width: 100%;
    border: 1px solid #b7b7b7;
    outline: none;
    font-size: 16px;
  }
  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
  }
  #inquiry input[type=submit] {
    border: none;
    font-family: ten-mincho, serif;
    margin: 30px auto;
    max-width: 200px;
    display: block;
    line-height: 40px;
    font-size: 16px;
    font-weight: 400;
    background: #BBA35A;
    color: #fff;
  }
  #inquiry input[type=submit]:hover {
    filter: alpha(opacity=70);
    -moz-opacity: 0.7;
    opacity: 0.7;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    will-change: transform;
    cursor: pointer;
  }
  .wpcf7-not-valid-tip,
  .screen-reader-response {
    color: red;
  }
  .wpcf7-not-valid-tip {
    float: left
  }
  .wpcf7-list-item {
    display: block;
  }
  .wpcf7-list-item-label {
    margin-left: 10px;
  }
  @media screen and (max-width: 800px) {
    #inquiry .wpcf7 {
      width: auto;
    }
    #inquiry th,
    #inquiry td {
      display: block;
      width: 100%;
    }
    #inquiry td {
      margin-bottom: 30px;
      max-width: none;
    }
    #inquiry .sp-adjust {
      position: relative;
      top: 15px;
    }
  }

  @media screen and (max-width: 380px) {
    #inquiry th {
      font-size: 15px;
    }
  }
  div.wpcf7-mail-sent-ok {
    border: 2px solid #BBA35A!important;
  }
.grecaptcha-badge { 
    opacity: 0;
  }

/* Helper Classes */
div.w600,
p.w600,
img.w600,
figure.w600 {
  max-width: 600px;
  width: 95vw;
  margin: 0 auto;
}