@charset "UTF-8";
:root{
  --blog1: #8DC63F;
  --blog2: #2B39D1;
  --blog3: #D9D5C9;
  --blog4: #4A4F66;
  --blog5: #C9C5B9;
  --blogBak: #F7F5F0;
}

/*-----------------------------------------------------------------------Unique*/

/*===============================================
blog（投稿一覧 home.php / 投稿詳細 single.php）
===============================================*/

/*--------page--------*/
.blogPage{
  position: relative;
  color: #161B33;
  background-image: url(../img/background_mark.svg);
  background-repeat: no-repeat;
  background-position: center 60px;
  background-size: 300px auto;
  & .sectionInner{
    padding-top: 90px;
  }
}

/*--------head（ロゴ・ページタイトル）--------*/
.blogLogo{
  position: absolute;
  top: 14px;
  left: 15px;
  width: 44px;
  line-height: 0;
}
.blogHead{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 30px;
}
.blogPageTitle{
  display: flex;
  align-items: flex-end;
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: bold;
  & ruby{
    font-size: 26px;
    line-height: 1;
    letter-spacing: .08em;
    color: var(--blog1);
  }
  & rt{
    font-size: 10px;
    font-weight: normal;
    letter-spacing: .1em;
    color: #161B33;
  }
  & .blogTitleJ{
    color: var(--blog2);
  }
  & .blogTitleSub{
    margin-left: 12px;
    padding-left: 12px;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: .1em;
    border-left: 2px solid var(--blog3);
  }
}
a.blogBackLink{
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: bold;
  font-size: 14px;
  color: var(--blog1);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/*--------list--------*/
.blogList{
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blogCard{
  position: relative;
  display: block;
  padding: 20px 52px 20px 18px;
  border: 2px solid var(--blog3);
  border-radius: 10px;
  background: var(--blogBak);
  & .blogCardHead{
    margin-bottom: 10px;
  }
  & .blogDate{
    display: block;
    margin-bottom: 4px;
  }
  & .blogCardTitle{
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.6em;
    letter-spacing: .05em;
  }
  & .blogCardText{
    font-size: 13px;
    line-height: 1.8em;
    color: var(--blog4);
  }
  & .blogCardArrow{
    position: absolute;
    top: 50%;
    right: 16px;
    width: 24px;
    transform: translateY(-50%);
  }
}
.blogDate{
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: bold;
  font-size: 15px;
  color: var(--blog1);
}
.blogEmpty{
  padding: 40px 0;
  text-align: center;
}

/*--------pager--------*/
.blogPager{
  margin-top: 50px;
  & ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 8px;
  }
  & .pagerBtn,
  & .page-numbers{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 15px;
    color: #161B33;
    background-color: #FFFFFF;
    border: 2px solid var(--blog3);
    border-radius: 8px;
    box-shadow: 0 4px 0 var(--blog3);
  }
  & .pagerBtn{
    padding: 0 14px;
    font-weight: bold;
  }
  /* 現在のページ・押せない「前へ」「次へ」は影と枠を消して薄く表示 */
  & .current,
  & .isDisabled{
    color: var(--blog5);
    border-color: #FFFFFF;
    box-shadow: none;
  }
  & .dots{
    min-width: 0;
    padding: 0 4px;
    font-size: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
    &::before{
      content: "\2022\2022\2022";
      font-size: 14px;
      letter-spacing: .2em;
      color: var(--blog3);
    }
  }
}

/*--------detail--------*/
.blogArticle{
  padding: 24px 18px;
  border: 2px solid var(--blog3);
  border-radius: 10px;
  background: var(--blogBak);
}
.blogArticleHead{
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--blog3);
}
.blogArticleTitle{
  margin: 6px 0 0 0;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.6em;
  letter-spacing: .05em;
}
/* 本文（ブロックエディタの出力） */
.blogArticleBody{
  font-size: 15px;
  line-height: 1.9em;
  overflow-wrap: anywhere;
  & > * + *{
    margin-top: 1.5em;
  }
  & p{
    margin-bottom: 0;
  }
  & h2,
  & h3,
  & h4{
    margin: 2.5em 0 0 0;
    font-weight: bold;
    line-height: 1.6em;
    & + *{
      margin-top: 1em;
    }
  }
  & h2{ font-size: 18px; }
  & h3{ font-size: 16px; }
  & h4{ font-size: 15px; }
  & ul,
  & ol{
    padding-left: 1.5em;
  }
  & ul{ list-style: disc; }
  & ol{ list-style: decimal; }
  & a{
    color: var(--blog2);
    text-decoration: underline;
  }
  & figure{
    margin-left: 0;
    margin-right: 0;
  }
  & img{
    height: auto;
  }
  & figcaption{
    font-size: 13px;
    color: var(--blog4);
  }
}
.blogShare{
  margin-top: 30px;
  text-align: right;
  line-height: 0;
  & iframe{
    border: none;
    overflow: hidden;
  }
}
.blogFoot{
  margin-top: 30px;
  text-align: right;
}

/*--------------------------Responsive*/
@media (min-width: 1024px) { /*--for PC--*/
  .blogPage{
    background-position: center 80px;
    background-size: 550px auto;
    & .sectionInner{
      padding-top: 120px;
    }
  }
  .blogLogo{
    top: 30px;
    left: 30px;
    width: 64px;
  }
  .blogHead{
    margin-bottom: 45px;
  }
  .blogPageTitle{
    & ruby{
      font-size: 32px;
    }
    & .blogTitleSub{
      font-size: 20px;
    }
  }
  a.blogBackLink{
    font-size: 17px;
  }

  .blogList{
    gap: 40px;
  }
  .blogCard{
    padding: 28px 70px 28px 28px;
    & .blogCardHead{
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 16px;
    }
    & .blogDate{
      flex-shrink: 0;
      margin-bottom: 0;
    }
    /* PCではタイトルを1行に収め、長い場合は「…」で省略 */
    & .blogCardTitle{
      min-width: 0;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-size: 18px;
    }
    & .blogCardText{
      font-size: 15px;
    }
    & .blogCardArrow{
      right: 20px;
      width: 32px;
    }
  }
  .blogDate{
    font-size: 18px;
  }

  .blogPager{
    margin-top: 70px;
    & ul{
      gap: 20px;
    }
    & .pagerBtn,
    & .page-numbers{
      min-width: 54px;
      height: 52px;
      font-size: 18px;
    }
    & .pagerBtn{
      padding: 0 20px;
    }
  }

  .blogArticle{
    padding: 36px 30px 30px 30px;
  }
  .blogArticleHead{
    margin-bottom: 34px;
  }
  .blogArticleTitle{
    font-size: 20px;
  }
  .blogArticleBody{
    font-size: 16px;
    & h2{ font-size: 20px; }
    & h3{ font-size: 18px; }
    & h4{ font-size: 16px; }
  }
}
