@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: PEPE
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

:root {
  --blue: #008CDC;
  --white: #fff;
  --font-color: #222;
}

/************************************
** component
************************************/
.c-title {
  background: var(--font-color);
  color: var(--white);
  border-left: var(--blue) 4px solid;
  padding-left: 10px;
  line-height: 1.5;
  margin-bottom: 40px;
  margin-top: 0;

  span {
    display: none;
  }
}

.archive-title {
  font-size: 28px;
  padding-bottom: 10px;
  border-bottom: 3px solid #333333;
  margin-top: 0;

  span {
    display: none;
  }
}

@media screen and (max-width:750px) {
  .archive-title {
    font-size: 22px;
    padding-bottom: 5px;
  }
}

.c-btn {
  max-width: 480px;
  text-align: center;
  margin-inline: auto;

  a {
    position: relative;
    display: inline-flex;
    width: 100%;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
    background-color: #222;
    background: linear-gradient(to right,#333333,#111111);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.45s;

    &::before {
      position: absolute;
      content: "";
      top: 50%;
      width: 10px;
      height: 10px;
      right: 15px;
      background-color: var(--white);
      clip-path: polygon(0 0, 0% 100%, 100% 50%);
      transform: translateY(-50%);
    }

    &:hover {
      background: linear-gradient(to right,#124880,#063060);
      opacity: 1;
    }
  }
}

.breadcrumb {
  font-size: 14px;

  a {
    color: #7D7D7D;
  }

  > div:last-child a,
  > div:last-child span {
    color: #222;
  }
}

#admin-panel {
  display: none;
}

/************************************
** header
************************************/

/* header */
#header {
  position: relative;
}

#header::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url(./img/common/bg_header.png) center center / cover no-repeat;
  opacity: 0.3;
}

#header-container .navi, #navi .navi-in>.menu-header .sub-menu {
  background: #EBEBEB;
}

#header-container .navi {
  border-bottom: 2px solid #fff;
}

.navi-in > ul li {
  width: 150px;
}

#navi .navi-in > ul .caption-wrap {
  position: relative;
}

#navi .navi-in > ul > li > a > .caption-wrap::before {
  position: absolute;
  content: "";
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  width: 2px;
  height: calc(100% - 20px);
  left: -1px;
}

#navi .navi-in > ul > li:last-child::after {
  position: absolute;
  content: "";
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  width: 2px;
  height: calc(100% - 20px);
  right: 0;
}

#navi .navi-in ul.sub-menu li + li .caption-wrap::before {
  display: none;
}

#navi .navi-in ul.sub-menu li a {
  background: #EBEBEB;
  display: flex;
  align-items: center;
  gap: 10px;

  &::before {
    display: block;
    content: "";
    width: 10px;
    height: 14px;
    background-color: #222;
    mask: url(./img/icon/arrow.svg) center center / contain no-repeat;
  }
}

#navi .navi-in ul.sub-menu li:not(:last-child) a {
  border-bottom: 2px solid #fff;
}

#navi .navi-in ul.sub-menu li a:hover {
  background-color: #222;
  color: #fff;

  &::before {
    background-color: #fff;
  }
}

#navi .navi-in > ul li .item-label {
  font-weight: bold;
}

#navi .navi-in a:hover {
  background: #FFFFFF;
  color: #FF5200;
}
#navi .navi-in > ul li.current-menu-item a {
  background: #FFFFFF;
  color: #FF5200;
}

/************************************
** footer
************************************/
.footer {
  padding-top: 0 !important;
  overflow: hidden;
  margin-top: 160px;
}
@media screen and (max-width:1023px) {
  .footer {
    margin-top: 80px;
  }
}
.footer-bottom {
  margin-top: 0 !important;
  padding-top: 0 !important;
  &.fdt-left-and-right .footer-bottom-logo {
    a {
      text-decoration: none;
    }
  }
  .copyright {
    margin-top: 14px;
  }
  .footer-bottom-logo .site-name-text {
    font-size: 16px;
  }
}
.footer-bottom.fdt-left-and-right .footer-bottom-content {
    display: contents;

    .navi-footer {
      width: 100vw;
      margin-left: calc(50% - 50vw);
      background: #222;
      padding-block: 20px;

      .menu-footer {
        gap: 40px;
        justify-content: center;

        li {
          border: none;
        }
      }
    }
}
.footer-bottom-logo {
  max-width: 181px;

  img {
    height: auto;
  }
}
#footer a:not(.sns-button):hover {
  background: none;
  opacity: 0.8;
}

/************************************
** sidebar
************************************/
.sidebar {
  background: none;
  padding-top: 0;

  aside:not(#search-2,.widget_common_ad) {
    background: #FCFCFC;
    padding-inline: 10px;
    padding-bottom: 20px;
  }
  aside.widget_popular_entries {
    padding-bottom: 0 !important;
  }

  h2,h3 {
    width: calc(100% + 20px);
    background: var(--font-color);
    color: var(--white);
    border-left: var(--blue) 4px solid;
    padding-left: 10px;
    padding-block: 4px;
    margin-left: -10px;
    margin-bottom: 0;
  }
}

.search-box {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 0;
  
  input {
    width: calc(100% - 80px);
    border: 1px solid #CCCCCC;
    padding-left: 35px;

    &::placeholder {
      color: #CCCCCC;
    }
  }
  > span.fas {
    position: absolute;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    left: 1em;
    color: #CCCCCC;
  }
  button {
    background: #222;
    width: 72px;
    height: 100%;
    color: var(--white);
    top: 0;
    right: 0;
    border-radius: 4px;
  }
}

.new-entry-cards,
.popular-entry-cards {
  padding-block: 10px;
  margin-bottom: 0 !important;

  figure {
    max-width: 100%;
    margin: 0;
  }

  a + a {
    border-top: 1px solid #CCCCCC;
  }

  .a-wrap {
    padding-block: 10px !important;
    margin-bottom: 0 !important;
  }

  .widget-entry-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0 10px;
    align-items: flex-start;
  }

  .widget-entry-card-content {
    margin-left: 0;

    .card-title {
      font-size: 14px;
      font-weight: bold;
      line-height: 1.25;
      -webkit-line-clamp:3;
    }
  }
}

.widget_block {
  .wp-block-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 5px;
    margin-top: 10px;

    li.cat-item a {
      display: inline-flex;
      align-items: center;
      background: #fff;
      color: #666;
      padding: 3px 10px;
      gap: 2px;
      border-radius: 2px;
      line-height: 1;
      font-size: 12px;
      border: 1px solid #ccc;

      &::before {
        content: "";
        width: 12px;
        height: 12px;
        background: url(./img/icon/tag.svg) center center / contain no-repeat;
      }
    }
  }
}

.sidebar-scroll {
  .wp-block-group {
    margin-bottom: 0 !important;
  }
}

/************************************
** main
************************************/
.main {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}

.no-scrollable-main .main {
  background: none;
}

/************************************
** single
************************************/
.entry-title {
  font-size: 28px;
}

/************************************
** entry-card
************************************/
.ect-3-columns .entry-card-wrap {
  padding: 0;
}

.related-entry-card,
.entry-card {
    background: #fff;
    border: 1px solid #CCCCCC;
}

.related-entry-card-title,
.entry-card-title {
    font-size: 16px;
    line-height: 1.25;
    margin-top: 5px;
}

.ect-vertical-card {
    .entry-card-wrap {
        .entry-card-content {
            padding: 10px;
        }

        .entry-card-thumb {
            margin: 0;

            .cat-label {
              display: none;
            }
        }

        .entry-card-meta {
            display: contents;
            text-align: left;
            margin-top: 0;

            .e-card-info {
              order: -1;
              justify-content: flex-start;

                .post-date .far {
                  display: none;
                }
            }

            .e-card-categorys {
              display: flex;
              flex-wrap: wrap;
              gap: 5px;
              order: 1;

              .entry-category {
                display: inline-flex;
                align-items: center;
                background: #FFFFFF;
                color: #666666;
                padding: 3px 10px;
                gap: 2px;
                border-radius: 2px;
                border: 1px solid #CCCCCC;

                &::before {
                  content: "";
                  width: 12px;
                  height: 12px;
                  background: url(./img/icon/tag.svg) center center / contain no-repeat;
                }
              }
            }
        }
    }
}
.eye-catch .cat-label {
  display: none;
}

.pagination-next {
  display: none;
}
.pagination {
  span,a {
    border: 1px solid #ccc;
    background: #fff;
    font-weight: bold;
    height: 28px;
    line-height: 28px;
    width: 24px;
    transition: all 0.45s;
    border-radius: 0;
    font-size: 14px;
  }
  .current {
    background: #222;
    border-color: #222;
    color: #fff;
  }
  .page-numbers.dots {
    background: #fff;
    opacity: 1;
  }
  a.prev,
  a.next {
    width: fit-content;
    padding-inline: 8px;
    background-color: #222;
    color: #fff;
    border-color: #222;
  }
  a:hover {
    opacity: 0.8;
  }
}

/************************************
** その他
************************************/
.logo-image {
  position: relative;
  z-index: 1;
}
.list {
  row-gap: 40px;
}
.content {
  margin-top: 80px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .logo-footer {
    margin-top: 16px !important;
  }
  .logo-image {
    width: 80%;
    margin-inline: auto;
  }
}

@media screen and (max-width:1023px) {
  .footer-bottom-logo .logo-image {
    position: relative;
    left: 50%;
  }
}

.tagline {
	display:none;
}

.sns-share.ss-col-6 a {
    width: 36px;
    height: 36px;
}
.sns-share.ss-high-and-low-cl a .button-caption.button-caption, .sns-share.ss-high-and-low-lc a .button-caption.button-caption {
  display: none;
}