/* 
Theme name: Word Press 双海工業株式会社
*/

@charset "utf-8";

.page-title::before {
    left: 54px;
  }

  @media screen and (max-width: 767px) {
    .page-title::before {
      left: 45px;
    }
}

.news-container {
    display: flex;
  }

  @media screen and (max-width: 767px) {
    .news-container {
        flex-direction: column;
      }
}

#main-news {
    max-width: 640px;
    margin-right: 60px;
}

#main-news .main-news-visual {
    max-width: 100%;
    margin-bottom: 40px;
}

#main-news .main-news-visual img {
    margin-bottom: 16px;
}

#main-news .main-news-visual .title {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 17px;
    text-align: justify;
}

#main-news .category {
    background-color: #f5f5f5;
    display: inline-block;
    font-size: 12px;
    padding: 6px 6px;
    margin-bottom: 16px;
}

#main-news time {
    display: block;
    font-size: 12px;
}

#main-news .list {
    display: flex;
    flex-wrap: wrap;
}

#main-news .list li {
    max-width: 300px;
    margin-bottom: 40px;
}

#main-news .list li:nth-child(odd) {
    margin-right: 40px;
}

#main-news .list li .title {
    margin-bottom: 18px;
    text-align: justify;
    line-height: 1.5;
}

#main-news .list li .category {
    background-color: #f5f5f5;
    display: inline-block;
    font-size: 12px;
    padding: 2px 6px;
    margin-bottom: 18px;
}

#main-news .list li time {
    display: block;
    font-size: 12px;
}

#main-news .list li img {
    margin-bottom: 16px;
}

@media screen and (max-width: 767px) {

    #main-news  {
        max-width: 100%;
        margin: 0 0 80px 0;;
      }

      #main-news  .list li:nth-child(odd) {
        margin-right: 0;
      }

      #main-news .list li {
        max-width: 100%;
      }

      #main-news .main-news-visual .title {
        font-size: 14px;
        font-weight: normal;
      }

      #main-news  .list li .title {
        font-size: 14px;
      }



}

  #main-news .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #main-news .pagination ul {
    display: flex;
  }

  #main-news .pagination li {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: solid 1px #ccc;
    margin: 0 8px;
  }

  #main-news .pagination li a {
    width: 100%;
    display: block;
    text-align: center;
  }

  #main-news .pagination li.active {
    background-color: #2a2a2a;
    color: #fff;
  }

  #main-news .pagination li.active a {
    color: #fff;
  }

  #main-news .pagination .prev {
    width: 18px;
    height: 18px;
    border-top: 1px solid #2a2a2a;
    border-left: 1px solid #2a2a2a;
  }

  #main-news .pagination .next {
    width: 18px;
    height: 18px;
    border-top: 1px solid #2a2a2a;
    border-left: 1px solid #2a2a2a;
  }

  #main-news .pagination .prev a {
    width: 18px;
    height: 18px;
    display: block;
  }
  #main-news .pagination .next a {
    width: 18px;
    height: 18px;
    display: block;
  }

  #main-news .pagination .prev {
    margin-right: 24px;
    transform: rotate(-45deg);
  }

  #main-news .pagination .next {
    margin-left: 24px;
    transform: rotate(135deg);
  }

  /* sidebar */

  #sidebar {
    width: 100%;
    max-width: 300px;
    min-width: 200px;
  }

  #sidebar .side-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 28px;
  }

  #sidebar .menu {
    margin-bottom: 56px;
  }

  #sidebar .menu li a {
    display: flex;
    align-items: center;
    border-bottom: solid 1px #ccc;
    padding: 24px 0;
  }

  #sidebar .menu li img {
    margin-right: 16px;
  }

  #sidebar .menu li p {
    font-size: 14px;
    line-height: 1.5;
  }

  #sidebar .cat-tag-list {
    margin-bottom: 40px;
  }

  #sidebar .cat-tag-list li {
    background-color: #f5f5f5;
    display: inline-block;
    font-size: 12px;
    padding: 4px 6px;
    margin: 0 4px 11px 0;
  }

  #searchform {
    position: relative;
  }
  #searchform input {
    width: 100%;
    border-bottom: solid 1px #ccc;
    padding: 10px 8px;
  }
  #searchform img {
    width: 24px;
    position: absolute;
    top: 9px;
    right: 8px;
  }

  @media screen and (max-width: 767px) {

    #sidebar {
        max-width: 100%;
      }

      #sidebar .side-title {
        margin-bottom: 22px;
      }

      #sidebar .cat-tag-list {
        margin-bottom: 30px;
      }

      #sidebar .menu {
        margin-bottom: 48px;
      }

  }

#main-news-detail {
    max-width: 640px;
    margin-right: 60px;
}

#main-news-detail .main-news-visual-detail {
    margin-bottom: 16px;
}

.mv {
    width: 100%;
    height: 320px;   /* 親に高さ */
    overflow: hidden;
    margin-bottom: 16px;
}

.mv img {
    width: 100%;
    height: unset;
    object-fit: cover;
}

#main-news-detail .detail-title {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 17px;
    text-align: justify;
}

#main-news-detail .category {
    background-color: #f5f5f5;
    display: inline-block;
    font-size: 12px;
    padding: 2px 6px;
    margin-bottom: 16px;
  }

  #main-news-detail time {
    display: block;
    font-size: 12px;
    margin-bottom: 40px;
  }

  #main-news-detail .index {
    max-width: 560px;
    border: solid 1px #2a2a2a;
    padding: 6% 8%;
    margin: 0 auto 80px auto;
    line-height: 1.5;
  }

  #main-news-detail .index .index-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 24px;
    text-align: center;
  }

  #main-news-detail .index .content-title-h2 {
    margin-left: 20px;
  }

  #main-news-detail .index .content-title-h2 > li {
    font-weight: bold;
    list-style-type: decimal;
    margin-top: 8px;
  }

  #main-news-detail .index .content-title-h3 {
    margin-left: 20px;
  }

  #main-news-detail .index .content-title-h3 > li {
    font-size: 15px;
    font-weight: normal;
    list-style-type: disc;
    margin-top: 4px;
  }

  #main-news-detail .content h2 {
    border-top: solid 1px #e60012;
    border-bottom: solid 1px #e60012;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.6;
    padding: 16px 0;
    margin: 80px 0 40px 0;
  }

  #main-news-detail .content h3 {
    border-left: solid 4px #e60012;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
    padding-left: 16px;
    margin: 64px 0 24px 0;
  }

  #main-news-detail .content p {
    line-height: 1.8;
    margin-bottom: 32px;
    text-align: justify;
  }

  #main-news-detail .content ul {
    margin: 0 0 32px 22px;
    line-height: 1.5;
  }

  #main-news-detail .content ul li {
    list-style-type: disc;
  }
  #main-news-detail .content ol {
    margin: 0 0 32px 22px;
    line-height: 1.5;
  }
  #main-news-detail .content ol li {
    list-style-type: decimal;
  }
  
  @media screen and (max-width: 767px) {

    #main-news-detail {
        max-width: 100%;
        margin: 0 0 40px 0;
      }

      .mv {
        height: unset;
      }

      #main-news-detail .detail-title {
        font-size: 22px;
      }

      #main-news-detail .content h2 {
        font-size: 18px;
      }

      #main-news-detail .content h3 {
        font-size: 16px;
      }

      #main-news-detail .content p,
      #main-news-detail .content ul,
      #main-news-detail .content ol {
        font-size: 14px;
      }

  }
