

:root {
  --key: #0f2c4b;
  --caution: #9D9D9D;
  --bg: #F4F4F4;
}

.container {
  width: calc( 100% - 40px);
  max-width: 1260px;
  margin: auto;
}
.b-content {
  background: var(--bg);
  img {
    width: 100%;
  }
  
  .b-caution {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: var(--caution);
  }
}
@media screen and (max-width: 768px) {
  .b-content {
    padding: 50px 0;
  }
}
@media screen and (min-width: 769px) {
  .b-content {
    padding: 100px 0;
  }
}

/* sub
---------------------------------------*/

.b-sub {
  display: inline-flex;
  position: relative;
  padding-bottom: 14px;
  padding-right: .8em;
  &::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #000;
    position: absolute;
    bottom: 0;
    right: 0;
  }
  li {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    &+li {
      border-left: 1px solid;
      padding-left: .5em;
      margin-left: .5em;
    }
  }
}

/* tag
---------------------------------------*/

.b-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 30px;
  li {
    display: inline-block;
    border-radius: 100px;
    padding: .4em 1em .45em;
    font-size: 13px;
    font-weight: 500;
    background: #000;
    color: #fff;
    &::before {
      content: "#";
    }
  }
}


/* post
---------------------------------------*/
.b-post {
  background: #fff;
  .e-postTtl {
    color: #000;
  }
}
@media screen and (max-width: 768px) {
  .b-post {
    .e-postTtl {
      font-size: 26px;
      line-height: 1.5;
      letter-spacing: 0;
    }
  }
}
@media screen and (min-width: 769px) {
  .b-post {
    .e-postTtl {
      font-size: 34px;
      line-height: 1.8;
      white-space: normal;
      word-break: keep-all;
      overflow-wrap: anywhere; 
    }
  }
}


/* postList
---------------------------------------*/
.b-postList {
  .container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 50px;
  }
  .b-post {
    .b-sub {
      margin-bottom: 30px;
      &::after {
        width: calc(100% + 30px);
      }
    }
    figcaption {
      padding: 30px;
    }
  }
}
@media screen and (max-width: 768px) {
  .b-postList {
    .e-postTtl {
      font-size: 18px;
    }
  }
}
@media screen and (min-width: 769px) {
  .b-postList {
    .b-post {
      width: calc( ( 100% - 50px) / 2 );
    }
    .e-postTtl {
      font-size: 20px;
    }
  }
}


/* single
---------------------------------------*/
.b-post.m-single {
  .b-postHeader {
    margin-top: 50px;
    .e-postTtl {
      line-height: 1.8;
      margin-bottom: 30px;
    }
    .e-txt {
      font-size: 16px;
      line-height: 1.6;
    }
  }
  .b-postSection {
    line-height: 1.8;
    .border {
      font-size: 28px;
      margin-bottom: 0;
    }
    .b-box {
      margin-top: 50px;
      &:not(:first-child) {
        margin-top: 40px;
      }
      .e-img {
        display: block;
      }
      p {
        font-size: 18px;
        text-align: justify;
        letter-spacing: 0;
      }
    }
  }
}
@media screen and (max-width: 768px) {
  .b-post.m-single {
    padding: 50px 10px 100px;
    .b-postHeader {
      .e-postTtl {
        font-size: 26px;
        line-height: 1.5;
      }
    }
    .b-sub {
      margin-left: 10px;
      &::after {
        width: calc(100% + 20px);
      }
    }
    .b-postSection {
      margin-top: 100px;
      .b-box {
        .b-img + .b-img {
          margin-top: 100px;
        }
        .e-img + .e-img,
        p {
          margin-top: 40px;
        }
      }
    }
  }
}
@media screen and (min-width: 769px) {
  .b-post.m-single {
    padding: 50px 90px 100px;
    .b-postHeader {
      .e-postTtl {
        font-size: 34px;
        line-height: 1.8;
      }
    }
    .b-sub {
      margin-left: -10px;
      &::after {
        width: calc(100% + 80px);
      }
    }
    .b-postSection {
      margin-top: 150px;
      .m-half {
        display: flex;
        gap: 40px;
        .b-img,
        .e-img,p {
          width: calc( (100% - 40px) / 2 );
        }
        figure {
          p {
            width: 100%;
            margin-top: 40px;
          }
        }
      }
    }
  }
}

/* 04-04 */
.b-postSection.m-04-04 {
  .e-img {
    margin-top: 50px;
  }
}
@media screen and (min-width: 769px) {
  .b-postSection.m-04-04 {
    .e-img,p {
      width: 100% !important;
    }
  }
}


/* pagenation
---------------------------------------*/
.b-pagenation {
  margin-top: 50px;
  .b-arrow {
    text-align: right;
    a {
      display: inline-block;
      aspect-ratio: 1/1;
      width: 50px;
      border: 1px solid var(--key);
      border-radius: 50%;
      position: relative;
      &::before {
        content: "";
        display: block;
        aspect-ratio: 11/9;
        width: 11px;
        background: var(--key);
        clip-path: polygon(0 50%, 100% 0, 100% 100%);
        position: absolute;
        left: 50%;
        top: 50%;
      }
      &[rel="prev"] {
        &::before {
          transform: translate(-50%,-50%);
        }
      }
      &[rel="next"] {
        margin-left: 7px;
        &::before {
          transform: translate(-50%,-50%) rotate(180deg);
        }
      }
      .e-txt {
        clip: rect(1px, 1px, 1px, 1px);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
      }
    }
  }
  .b-all {
    text-align: center;
    margin: 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--key);
    &::before {
      content: "";
      display: inline-block;
      aspect-ratio: 11/9;
      width: 11px;
      background: var(--key);
      margin-right: 15px;
      clip-path: polygon(0 50%, 100% 0, 100% 100%);
      transform: translateY(-.15em);
    }
  }
}
