/*
カテゴリ検索結果表示用　初期化
*/
.blogsearch_category {
  display: block !important;
  font-style: normal;
  font-weight: 400;
  font-size: initial;
  line-height: initial;
  text-align: initial;
  color: initial;
  margin: initial;
  justify-content: initial;
  box-shadow: none;
}

.blogcard_box {
  filter: none;
  margin: 0;
  width: auto;
}

.blogcard_category {
  background: none;
  color: initial;
  -webkit-text-fill-color: initial;
  font-weight: initial;
}

/* --------------------------------
メインビジュアル
--------------------------------*/
.c-mv {
  width: 1400px;
  max-width: 100%;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.c-mv__content {
  width: 100%;
  padding-inline: 20px;
  padding-top: 30px;

  @media (min-width: 768px) {
    padding: 0;
    position: absolute;
    top: min(365px, calc(365 / 1400 * 100vw));
    left: min(117px, calc(117 / 1400 * 100vw));
    width: min(565px, calc(565 / 1400 * 100vw));
    max-width: 100%;
  }
}

.c-mv__content-text {
  font-size: 14px;
  line-height: 1.8;
  font-weight: medium;

  @media (min-width: 768px) {
    font-size: min(20px, calc(20 / 1400 * 100vw));
  }
}


/* --------------------------------
検索ボックス
--------------------------------*/

.blogtop_searchbox-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 92px;
  min-height: 33px;
  background: #7C93CF;
  border-radius: 50vh;
  color: #fff;
  font-size: 16px;
  font-weight: medium;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-50%);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out;

  &:hover {
    background-color: #fff;
    color: #7C93CF;
    border-color: #7C93CF;
  }
}


/* --------------------------------
共通ボックス
-------------------------------- */
.c-box {
  --grad: linear-gradient(to right, #FFAD43, #F08400);
  background: var(--grad);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  min-height: 192px;
  flex: 1 1 auto;

  .c-box__header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 17.5px 10px;

    .c-box__header-label {
      color: #fff;
      font-size: 24px;
      font-weight: bold;
      text-align: center;
    }
  }

  .c-box__content {
    position: relative;
    z-index: 1;
    padding: 20px 15px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    @media (min-width: 1024px) {
      padding: 30px;
    }

    &:before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 4px);
      height: calc(100% - 2px);
      background: #fff;
      border-radius: 0 0 15px 15px;
      z-index: -1;
    }
  }
}

.c-box--blue {
  --grad: linear-gradient(to right, #8EA6E6, #5A74B6);
}


/* --------------------------------
共通カテゴリ
-------------------------------- */
.c-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 0;
  list-style: none;

  @media (min-width: 768px) {
    justify-content: center;
    gap: 15px;
  }

  @media (min-width: 1024px) {
    gap: 20px;
  }
}

.c-cat {
  background-color: #FFFEE2;
  border-radius: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  padding: 10px 22px;
  border: 1px solid transparent;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;

  @media (min-width: 768px) {
    padding: 11.5px 22px;
  }

  &:hover {
    background-color: #fff;
    border-color: #FC9300;
  }

  .c-cat__icon {
    flex: none;
    aspect-ratio: 1 / 1;
    width: 16px;
    height: auto;

    @media (min-width: 768px) {
      width: 18px;
    }

    .c-cat__icon-bg {
      fill: #FC9300;
    }

    .c-cat__icon-path {
      fill: #fff;
    }
  }

  .c-cat__text {
    font-size: 14px;
    font-weight: medium;
    color: #FC9300;

    @media (min-width: 768px) {
      font-size: 16px;
    }
  }

  &.is-active {
    background-color: #FC9300;
    cursor: default;

    .c-cat__icon {
      .c-cat__icon-bg {
        fill: #fff;
      }

      .c-cat__icon-path {
        fill: #FC9300;
      }
    }

    .c-cat__text {
      color: #fff;
    }
  }
}

/* --------------------------------
共通タグ
--------------------------------*/
.c-tag {
  background-color: #fff;
  border-radius: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5px 15px;
  font-size: 14px;
  line-height: 1.8;
  color: #4C6ECC !important;
  text-align: center;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;

  &:hover {
    background-color: #4C6ECC;
    color: #fff !important;
  }
}


/* --------------------------------
新着記事
--------------------------------*/
.c-post {
  display: flex;
  flex-direction: column;
  border: 1px solid #333;
  border-radius: 15px;
  overflow: hidden;
  flex: 1 1 auto;
}

.c-post__thumb {
  width: 100%;
  aspect-ratio: 370 / 250;
  position: relative;
  z-index: 1;

  .c-post__thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.c-post__content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 20px 14px;
  column-gap: 11px;

  @media (min-width: 768px) {
    padding: 20px;
  }
}

.c-post__date {
  color: #A6A6A6;
  line-height: 1.2;
  font-size: 18px;
  font-weight: medium;
}

.c-post__new {
  background: linear-gradient(to right, #FF8E9F, #EA3A55);
  border-radius: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 11px;
  line-height: 1;
  font-size: 14px;
  font-weight: medium;
  color: #fff;
}

.c-post__title {
  width: 100%;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.75;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
}

.c-post__text {
  margin-top: 13px;
  width: 100%;
  font-size: 14px;
  line-height: 1.7;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.c-post__tags {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.c-post__tag {
  border: 1px solid #4C6ECC;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: #4C6ECC !important;
  text-align: center;
  padding: 4px 13.5px;
  border-radius: 50vh;
}

/* 新着記事 jPages */
.customBtns {
  --circleSize: 40px;
  --mainColor: #7C93CF;
  --bgColor: #F4F7FF;
  --gap: 15px;
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap);

  .arrowPrev,
  .arrowNext {
    position: relative;
    top: auto;
    left: auto;
    border: 1px solid var(--mainColor);
    cursor: pointer;
    width: var(--circleSize);
    height: var(--circleSize);
    border-radius: 50%;
    text-align: center;
    color: var(--mainColor);
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease-in-out;

    &.jp-disabled {
      background-color: var(--bgColor);
      border: none;
      opacity: 0.7;
      cursor: default;
    }

    &:not(.jp-disabled):hover {
      background-color: var(--mainColor);

      &::before {
        border-top-color: #fff;
        border-left-color: #fff;
      }
    }
  }

  .arrowPrev::before,
  .arrowNext::before {
    content: '';
    width: 9px;
    height: 9px;
    border-top: solid 2px var(--mainColor);
    border-left: solid 2px var(--mainColor);
    transition: border-color 0.3s ease-in-out;
  }

  .arrowPrev::before {
    transform: rotate(-45deg) translateX(1px);
    transform-origin: center;
  }

  .arrowNext::before {
    transform: rotate(135deg) translate(1px, 1px);
    transform-origin: center;
  }

  .holder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap);

    span,
    a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: var(--circleSize);
      height: var(--circleSize);
      padding: 5px;
      background-color: var(--bgColor);
      border-radius: 50%;
      color: var(--mainColor);
      text-decoration: none;
      font-size: 14px;
      box-sizing: border-box;
      cursor: pointer;
      transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;

      &:hover {
        background-color: var(--mainColor);
        color: #fff;
      }
    }

    .jp-current {
      background-color: var(--mainColor);
      color: #fff;

      &:hover {
        background-color: var(--mainColor);
        color: #fff;
      }
    }
  }
}


/*
記事詳細
*/
.blogtop_top_box--phase2{
  width: 1400px;
  max-width: 100%;
  margin-inline: auto;
  margin-block: 0;

  .blogtop_top_search_row{
    width: 100%;
    margin: 0;
  }

  .blogtop_link_guide{
    width: 970px;
    max-width: calc(100% - 30px);
    margin-inline: auto;
  }
}

.blog_detail_body--pahase2 {
  --gradient: linear-gradient(to right, #8EA6E6, #5A74B6);
  --theme-color: #4C6ECC;

  width: 970px;
  max-width: calc(100% - 30px);
  margin: 0px auto;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 185%;
  color: #4F4F4F;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  @media (min-width: 768px) {
    font-size: 16px;
  }

  @media (min-width: 1024px) {
    font-size: 18px;
  }
}

.blog_detail_body--pahase2 .blog_detail_title {
  border-bottom: 2px dotted #4C6ECC;
  padding-bottom: 17px;
  margin-bottom: 30px;

  p {
    font-weight: 700;
    font-size: 26px;
    line-height: 1.45;
    color: #557EE3;
    margin:  0;

    @media (min-width: 768px) {
      font-size: 28px;
    }

    @media (min-width: 1024px) {
      font-size: 30px;
    }
  }
}


.blog_detail_thumbnail {
  width: 970px;
  max-width: calc(100% - 30px);
  margin-inline: auto;

  .blog_detail_img {
    width: 100%;
  }
}

.blog_detail_body--pahase2 .blog_detail_category {
  padding: 5px 20px;
  background: #fff;
  border-radius: 50vh;
  font-weight: medium;
  font-size: 16px;
  line-height: initial;
  height: auto;
  color: #FFFFFF;
  color: #4C6ECC;
  border: 1px solid #4C6ECC !important;
}

.blogcard_datearea--phase2 {
  max-width: 100%;
  width: 970px;
  display: flex;
  gap: 10px;
  margin: 0;
  margin-bottom: 10px;
  justify-content: start;

  .blogcard_date {
      font-style: normal;
      font-weight: 400;
      font-size: 18px;
      line-height: initial;
      gap: 5px;
      display: flex;
      align-items: center;
      color: #828282;

      img{
        width: 16px;
      }
    }
}

.blog_detail_body--pahase2 .blog_detail_body {
  max-width: 100%;
}

.blog_detail_body--pahase2 .blog00084_body {
  max-width: 100%;
}

/* 目次 */
.blog_detail_body--pahase2 {
  .no_bullets {
    width: 100%;
    background: none;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #DCE6FF;
    margin-block: 30px;

    @media (min-width: 768px) {
      margin-block: 60px;
    }
  }

  .toc_title {
    height: auto;
    background: #DCE6FF;
    border-radius: 0;
    font-weight: 700;
    font-size: 24px;
    line-height: initial;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #4C6ECC;
    margin-block-end: 0em;
    margin-top: 0;
    padding-block: 17px;
    padding-inline: 15px;
  }

  .toc_list {
    list-style: none;
    text-indent: 0;
    padding-inline: 15px;
    padding-block: 5px 15px;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-left: 0;

    @media (min-width: 768px) {
      padding: 20px 30px;
    }

    ul {
      padding-left: 27px;
    }
  }

  .toc_list li {
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    font-weight: initial;
    font-size: initial;
    color: initial;
    line-height: initial;
  }

  .toc_list a {
    display: block;
    position: relative;
    z-index: 1;
    line-height: 1.8;
    padding-left: 1.5em;
    font-weight: medium;
    font-size: 14px;
    color: #557EE3;
    border-bottom: none;
    padding-block: 4px;

    @media (min-width: 768px) {
      font-size: 16px;
    }

    &::after {
      content: '';
      position: absolute;
      left: 5px;
      top: 12px;
      transform: rotate(45deg);
      display: block;
      width: 8px;
      height: 8px;
      border-top: 2px solid #557EE3;
      border-right: 2px solid #557EE3;
    }
  }

  .toc_list>li:not(:last-child) {
    border-bottom: 1px dashed #A6A6A6 !important;
  }

  .toc_list>li>a {
    font-size: 16px;
    padding-block: 12px;

    @media (min-width: 768px) {
      font-size: 18px;
    }

    &::before {
      content: '';
      width: 18px;
      height: 18px;
      background-color: #4C6ECC;
      border-radius: 50%;
      position: absolute;
      left: 0;
      top: 28px;
      transform: translateY(-50%);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    &::after {
      content: '';
      position: absolute;
      left: 5px;
      top: 25px;
      transform: rotate(45deg);
      display: block;
      width: 6px;
      height: 6px;
      border-top: 2px solid #fff;
      border-right: 2px solid #fff;
    }
  }

  .toc_list li {
    border: none;
  }

  .toc_list li li {
    display: block;
    font-weight: 400;
    font-size: 16px;
    line-height: initial;
    text-indent: 0px;
    color: #557EE3;
    background: none;
    height: initial;
  }
}


.blog_detail_body--pahase2 h2 {
  background: var(--gradient);
  border-radius: 10px;
  font-weight: 700;
  font-size: 18px;
  line-height: auto;
  display: flex;
  align-items: center;
  justify-content: start;
  text-indent: initial;
  color: #FFFFFF;
  margin: 20px 0;
  height: auto;
  padding: 13px 20px;

  @media (min-width: 768px) {
    font-size: 20px;
    padding: 16.5px 20px;
  }

  @media (min-width: 1024px) {
    font-size: 24px;
  }
}

.blog_detail_body--pahase2 h3 {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: var(--theme-color);
  margin: 20px 0;
  padding-bottom: 11px;
  height: auto;
  border-bottom: none;
  position: relative;
  z-index: 1;

  @media (min-width: 768px) {
    font-size: 18px;
  }

  @media (min-width: 1024px) {
    font-size: 22px;
  }

  &::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient);
  }
}

.blog_detail_body--pahase2 h4 {
  color: var(--theme-color);
  font-size: 14px;
  line-height: 1.75;
  margin: 20px 0;

  @media (min-width: 768px) {
    font-size: 18px;
  }

  @media (min-width: 1024px) {
    font-size: 20px;
  }
}

.blog_detail_body--pahase2 h4.writer {
  background: linear-gradient(113.02deg, rgba(186, 209, 255, 0.3) 5.36%, rgba(155, 236, 247, 0.3) 70.55%);
  border-radius: 10px;
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  display: flex;
  align-items: center;
  color: #557EE3;
  margin: 25px 0;
  height: 55px;
  padding-left: 20px;
}

.blog_detail_body--pahase2 h4.writer img {
  margin-right: 5px;
}

.blog_detail_body--pahase2 h5 {
  font-size: 14px;
  line-height: 1.75;
  margin: 20px 0;

  @media (min-width: 768px) {
    font-size: 16px;
  }

  @media (min-width: 1024px) {
    font-size: 18px;
  }
}

.blog_detail_body--pahase2 p {
  margin-block: 20px;
}

.blog_detail_body--pahase2 a {
  border-bottom: solid;
  border-color: #2E64ED;
  border-width: 1px;
}

/* テーブル */
.blog_detail_body--pahase2 table {
  border: none;
  margin-block: 30px;
}

.blog_detail_body--pahase2 table :is(th, td) {
  padding: 1rem 2rem;
  font-weight: 500;
  border: none;
}

.blog_detail_body--pahase2 table tr th {
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-left: 1px solid #ddd;
  text-align: center;
  background-color: #f5f5f5;
}

.blog_detail_body--pahase2 table tr td {
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-left: none;
}

.blog_detail_body--pahase2 table tr:first-child th,
.blog_detail_body--pahase2 table tr:first-child td {
  border-top: 1px solid #ddd;
}


/* --------------------------------
会員限定記事ログインエリア
--------------------------------*/

.blog_detail_login{
  width: 970px;
  max-width: calc(100% - 30px);
  margin-inline: auto;
  background: #fff;
  border-radius: 15px;
  border: 1px solid #7C93CF;
  padding: 30px 20px;
  margin-top: 30px;
  
  @media (min-width: 768px) {
    margin-block: 30px;
  }

  .iroha_login_txt{
    font-size: 16px;
    color: #4C6ECC;
    font-weight: bold;
    letter-spacing: -0.005em;
    line-height: 1.45;
    margin-bottom: 29px;

    @media (min-width: 768px) {
      font-size: 18px;
    }
  }

  .blog_detail_login__btn{
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #7C93CF;
    border-radius: 50vh;
    min-height: 58px;
    background: #F2F9FF;
    color: #4C6ECC;
    padding-inline: 20px 40px;
    box-shadow: transparent;
    transition: box-shadow 0.3s ease-in-out;

    &:hover{
      box-shadow: 0 0 10px 0 rgba(124, 147, 207, 0.5);
    }

    .blog_detail_login__btn-text{
      font-size: 18px;
      font-weight: bold;
      text-align: center;
      line-height: 1.4;
    }

    .blog_detail_login__btn-icon{
      position: absolute;
      right: 23px;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      height: 18px;
      background-color: #4C6ECC;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;

      .blog_detail_login__btn-icon-svg{
        fill: #fff;
      }
    }

    &.blog_detail_login__btn--grad{
      background: linear-gradient(to right, #5A74B6, #8EA6E6);
      color: #fff;
      border: none;

      .blog_detail_login__btn-icon{
        background-color: #fff;
        .blog_detail_login__btn-icon-svg{
          fill: #5A74B6;
        }
      }
    }
  }

}



/* --------------------------------
記事詳細ページャー
--------------------------------*/
.blog_detail_pager {
  width: 656px;
  max-width: calc(100% - 30px);
  margin-inline: auto;
}

.blog_detail_pager__inner {
  row-gap: 10px;
  column-gap: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  @media (min-width: 768px) {
    flex-wrap: nowrap;
    column-gap: 20px;
  }

  @media (min-width: 1024px) {
    column-gap: 40px;
  }
}

.blog_detail_pager-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 12px;
  padding: 12px 10px;
  background-color: #fff;
  border-radius: 50vh;
  border: 1px solid #7C93CF;
  transition: box-shadow 0.3s ease-in-out;

  &:hover {
    box-shadow: 0 0 10px 0 rgba(124, 147, 207, 0.5);
  }
}

.blog_detail_pager__home {
  order: 1;
  max-width: 100%;
  width: 100%;

  @media (min-width: 768px) {
    order: 2;
    width: 240px;
  }

  .blog_detail_pager-btn {
    color: #fff;
    background-color: #7C93CF;
  }
}

.blog_detail_pager__zengo {
  max-width: 100%;
  width: calc(50% - 5px);

  @media (min-width: 768px) {
    width: 168px;
  }

  .blog_detail_pager-btn {
    max-width: 100%;
    color: #4C6ECC;
  }
}

.blog_detail_pager__zengo--prev {
  order: 2;

  @media (min-width: 768px) {
    order: 1;
  }
}

.blog_detail_pager__zengo--next {
  order: 3;
}

.blog_detail_pager-btn__label {
  font-size: 16px;
  text-align: center;
  font-weight: bold;
}
