@charset "UTF-8";
/* 投稿用 */
.post {
  position: relative;
}
.post-block {
  max-width: 950px;
  margin-inline: auto;
}
.post-block_header {
  margin-bottom: 40px;
}
.post-block_header time {
  font-weight: normal;
  color: #747474;
  font-size: 18px;
}
.post-name {
  font-size: 4rem;
  color: var(--accent_color);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.7;
  margin-bottom: 5px;
}
.post-block .pager {
  border-top: 1px solid #000;
  padding: 10px 20px 0;
  text-align: center;
  margin-top: 60px;
}
.post-block .pager_list {
  display: inline-block;
  margin: 0;
}
.post-block .pager a {
  color: #888;
  transition: 0.5s;
}

.post-block_body {
  font-weight: normal;
  & h2 {
    font-size: 3rem;
    font-weight: normal;
    margin: 30px 0 20px;
    text-align: left;
    line-height: 1.5;
    color: var(--accent_color);
  }
  & h3 {
    background: var(--accent_color);
    border-radius: 5px;
    font-weight: normal;
    color: #fff;
    font-size: 2.4rem;
    margin: 30px 0 20px;
    padding: 0.3em 0.5em;
    line-height: 1.5;
  }
  & h4 {
    border-bottom: var(--accent_color) 4px double;
    color: var(--accent_color);
    font-weight: normal;
    font-size: 2.2rem;
    margin: 30px 0 20px;
    padding: 0.35em 0.5em;
    line-height: 1.5;
  }
  & h5 {
    color: var(--accent_color);
    font-size: 20px;
    position: relative;
    margin: 20px 0;
    line-height: 1.5;
  }
  /* 段落ブロック */
  & p {
    line-height: 1.8;
    margin-bottom: 20px;
  }
  & p:last-child{
    margin-bottom: 0;
  }
  /* 順不同リストブロック */
  & ul {
    margin-bottom: 30px;
    line-height: 2;
  }
  & ul li {
    list-style-type: disc;
    margin-left: 2em;
  }
  /* 順序リストブロック */
  & ol {
    margin-bottom: 30px;
    line-height: 2;
  }
  & ol li {
    margin-left: 2em;
  }
  /* 引用ブロック */
  & blockquote{
    position:relative;
    border-left: 4px solid var(--accent_color);
    padding: 30px 30px 30px 20px;
    margin-bottom: 30px;
    width: fit-content;
    background-color: #fff;
  }
  & blockquote:before{
    content:'';
    background: url('../img/common/icon_blockquote.svg') 0 0 no-repeat;
    background-size: 100% auto;
    width: 30px;
    height: 30px;
    position:absolute;
    top: 10px;
    left: 10px;
    color:#DA8596;
    transform: rotate(180deg);
  }
  & blockquote p{
    position:relative;
    padding-left:30px;
    margin-bottom: 0;
  }
  & blockquote cite{
    display: block;
    font-size: 16px;
    color: #888;
    text-align:right;
  }
  /* 画像ブロック */
  & .wp-block-image {
    margin-bottom: 30px;
  }
  /* ギャラリーブロック */
  .wp-block-gallery {
    margin-bottom: 30px;
  }
  /* テーブルブロック */
  & .wp-block-table {
    margin-bottom: 30px;
  }
  & .wp-block-table table {
    margin-bottom: 10px;
    width: 100%;
  }
  & .wp-block-table table th, & .wp-block-table table td {
    padding: 20px;
  }
  & .wp-block-table .wp-element-caption {
    font-size: 15px;
  }
}

@media (hover: hover) {
  .post-block .pager a:hover {
    text-decoration: none;
    color: var(--accent_color);
  }
}

@media screen and (max-width: 600px) {
  .page-ttl--h2::before {
    background-size: 100% auto;
    height: 11px;
    width: 80%;
  }
  .post-name {
    font-size: 3.2rem;
  }
  .post-block_header {
    margin-bottom: 20px;
  }
  .post-block_body blockquote{
    padding: 20px 20px 20px 10px;
  }
  .post-block_body blockquote:before {
    background-size: 20px;
    width: 20px;
    height: 20px;
  }
  .post-block_body p,
  .post-block_body ul,
  .post-block_body ol,
  .post-block_body .wp-block-image,
  .post-block_body .wp-block-table {
    margin-bottom: 20px;
  }
  .post-block_body .wp-block-table {
    overflow-x: auto;
  }
  .post-block_body .wp-block-table table {
    width: 600px;
  }
}
