@charset "utf-8";
/* 必ず1行目 */

/*
Theme Name: brtpath
Theme URI: https://brtpath.com/
Author: 株式会社BRIGHTPATH
Author URI: https://brtpath.com/
Description: 自社サイト用オリジナルテーマ
Version: 1.0
*/



/* main コンテンツ幅 */
.blog-container {
  width: 88.888%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: justify;
}

/* .blog-mg {
  margin-bottom: 8rem;
} */

.blog-content {
  margin-top: 2rem;
}


/* 見出し */
.guide-section h2,
.parent-section h2,
.article-list-section h2 {
  color: var(--main-color);
  border-left: 5px solid var(--accent-color);
  padding-left: 1rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
  text-align: left;
}

.guide-section,
.parent-section {
  margin-bottom: 10rem;
}

.section-lead {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin: 1rem 0 3rem;
}

.guide-section .section-lead {
  color: var(--accent-color);
  text-align: center;
  margin-bottom: -1.5rem;
  font-weight: 600;
}

/* 日付・タイトル・テキスト・カテゴリー */
.article-card-text-inner {
  padding: 1.5rem;
}

.blog-date {
  font-family: var(--font-en);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}

.blog-title {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
}

.blog-text {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: #656565;
  line-height: 1.5;
  margin: .5rem 0 1rem;
}

.blog-category {
  font-size: clamp(1.3rem, 1.8vw, 1.4rem);
  color: var(--accent-color);
  font-weight: 500;
}


@media screen and (max-width: 767px) {

  .blog-container {
    width: 85%;
  }

}



/* 大親記事　設定 */
.guide-bg {
  background-color: #eaf6fb;
  padding: 3rem;
  border-radius: 10px;
}

.guide-card {
  background-color: #fff;
  border-radius: 5px;
  padding: 2rem 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.guide-card:hover {
  transform: translateY(-6px);
  opacity: 0.7;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.guide-card-link {
  display: block;
  height: 100%;
}

.guide-section .up-down {
  display: inline-block;
  animation: float 1.5s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

.guide-card-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.guide-thumbnail {
  width: 40%
}

.guide-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  border: 1px solid var(--main-color);
}

.guide-text {
  width: 60%;
}


@media screen and (max-width: 767px) {

  .guide-section,
  .parent-section {
    margin-bottom: 5rem;
  }

  .guide-section .section-lead {
    line-height: 1.5;
    margin-bottom: -0.5rem;
  }

  .guide-bg {
    padding: 1rem;
    border-radius: 5px;
  }

  .guide-card {
    border-radius: 3px;
    padding: 1rem 2rem;
  }

  .guide-card-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .guide-thumbnail,
  .guide-text {
    width: 100%;
  }
}




/* 親記事 一覧スライド設定*/
.parent-slider {
  display: flex;
  gap: 20px;
  overflow: visible;
  transition: transform 0.4s ease;
}

.parent-viewport {
  overflow: hidden;
  padding-top: 10px;
}

.parent-container {
  position: relative;
}

.parent-card {
  flex: 0 0 calc(25% - 15px);
  position: relative;
  padding: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.parent-card:hover {
  transform: translateY(-6px);
  opacity: 0.7;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.parent-card-link {
  display: block;
  height: 100%;
}

.slider-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
  font-size: 0;
}

.slider-btn::before {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  border-top: 1px solid var(--main-color);
  border-right: 1px solid var(--main-color);
  margin: auto;
}

.prev::before {
  transform: rotate(-135deg);
}

.next::before {
  transform: rotate(45deg);
}

.prev {
  left: -50px;
}

.next {
  right: -50px;
}

.blog-date-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

@media screen and (max-width: 767px) {
  .section-lead {
    margin-bottom: 1rem;
  }

  .parent-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    transform: none !important;
  }

  .parent-card {
    flex: 0 0 calc(50% - 10px);
  }

  .parent-viewport {
    overflow: visible;
  }

  .slider-btn {
    display: none;
  }

  .blog-date-flex {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
  }

  .blog-date-sp-flex {
    flex-direction: row;
    align-items: flex-end;
  }

  .article-card-text-inner {
    padding: 1rem;
  }

  .blog-text {
    margin: .5rem 0;
  }

}


/* 子記事 一覧の設定*/
.article-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6rem 4rem;
  justify-content: flex-start;
  margin-top: 3rem;
}

.article-card-link {
  display: block;
  height: 100%;
}

.article-card {
  position: relative;
  padding: 0;
  flex: 0 0 31%;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  opacity: 0.7;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


@media screen and (max-width: 767px) {
  .article-container {
    gap: 1rem;
    justify-content: space-between;
  }

  .article-card {
    flex: 0 0 calc(50% - 10px);
  }

  .blog-category {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 400;
  }
}




/*====================================
ブログ記事ページの設定
===================================*/
/* ブログ左・右全体のコンテンツ幅 */
.single-container {
  width: 88.888%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  text-align: justify;
}

/* 左サイド　コンテンツ幅 */
.main-content {
  width: 100%;
}

/* 右サイド　コンテンツ幅 */
.sidebar {
  width: 40%;
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 1rem;
}


/* ブログ 左サイド */
.blog-article-container h2 {
  color: var(--main-color);
  font-family: var(--font-ja);
  font-weight: 600;
  margin: 2rem 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.3;
  text-align: left;
}

.blog-article-container h4 {
  background-color: var(--accent-color);
  color: #fff;
  font-size: clamp(1.4rem, 2vw, 2rem);
  padding: 1.5rem 2.5rem;
  margin-bottom: 3rem;
  font-weight: 500;
}

.blog-article-container h5 {
  border-left: 5px solid var(--accent-color);
  padding-left: 1rem;
  margin-bottom: 2rem;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  color: var(--accent-color);
}


.blog-article-container .blog-date {
  font-size: var(--font-base-size);
}

/* 目次全体のスタイル */
nav.article-index {
  background-color: #EBEBEB;
  padding: 3rem 4rem;
  margin: 4rem 0;
  border-left: 5px solid var(--accent-color);
}

/* 「目次」タイトル */
nav.article-index h3 {
  font-size: clamp(1.5rem, 1.8vw, 1.8rem);
}

hr {
  margin: 1rem 0;
}

/* トップレベルのリスト */
nav.article-index ul {
  counter-reset: toc-counter;
  padding-left: 0;
  margin: 0;
}

.article-index>ul>li {
  counter-increment: toc-counter;
  position: relative;
  padding-left: 4rem;
  margin-bottom: 1.5rem;
}

.article-index>ul>li:last-child {
  margin-bottom: 0;
}

.article-index>ul>li::before {
  content: counter(toc-counter, decimal-leading-zero) ". ";
  position: absolute;
  left: 0;
  font-weight: 600;
  font-family: var(--font-en);
  font-size: clamp(1.5rem, 2vw, 1.7rem);
}

nav.article-index a {
  transition: color 0.2s;
}

nav.article-index a:hover {
  color: var(--accent-color);
  font-weight: 600;
}

nav.article-index ul ul {
  counter-reset: none;
  line-height: 2;
}

.article-index ul ul li::before {
  content: "";
  position: static;
}

.contents-title {
  font-family: var(--font-ja);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 500;
}


/* 目次 開閉ボタン */
.read-more-index {
  position: relative;
}

.read-more-index ul::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #EBEBEB);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* リスト */
.read-more-index ul {
  max-height: 70px;
  overflow: hidden;
  position: relative;
  padding-left: 1rem;
  transition: max-height 0.6s ease;
}

/* 展開時 */
.read-more-index:has(#toc-toggle:checked) ul {
  max-height: 3000px;
}

/* 展開時は消す */
.read-more-index:has(#toc-toggle:checked) ul::after {
  opacity: 0;
  pointer-events: none;
}

/* ボタン共通 */
.toc-button {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  padding: 4px 35px;
  border-radius: 100vh;
  background: var(--main-color);
  color: #fff;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--main-color);
}

/* ホバー */
.toc-button:hover {
  background: #fff;
  color: var(--main-color);
  border: 1px solid var(--main-color);
}

/* チェックボックス非表示 */
#toc-toggle {
  display: none;
}

.toc-button.close {
  display: none;
}

.read-more-index:has(#toc-toggle:checked) .toc-button.open {
  display: none;
}

.read-more-index:has(#toc-toggle:checked) .toc-button.close {
  display: block;
  width: fit-content;
}

/* サイドバーは制限なし */
.sidebar-toc .read-more-index ul {
  max-height: none;
  overflow: visible;
}

.sidebar-toc .read-more-index ul::after {
  display: none;
}

.sidebar-toc .toc-button {
  display: none;
}

.sidebar-toc,
.sidebar-category,
.sidebar-recommend {
  margin-bottom: 7rem;
}



@media screen and (max-width: 767px) {
  .blog-article-container h2 {
    margin: 1rem 0;
  }

  .blog-article-container h4 {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .blog-article-container h5 {
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  nav.article-index {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .article-index>ul>li {
    padding-left: 3rem;
    margin-bottom: .5rem;
    line-height: 1.5;
  }

  .read-more-index ul {
    max-height: 70px;
  }
}



/* ブログ記事　右サイド */
.sidebar-guide .guide-card-inner {
  display: block;
}

.sidebar-guide {
  margin-bottom: 3rem;
}

.sidebar-guide .section-lead {
  font-size: var(--font-base-size);
  color: var(--title-txt-color);
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  margin-bottom: -1rem;
}

.sidebar-guide .guide-thumbnail,
.sidebar-guide .guide-text {
  width: 100%;
}

.sidebar-guide .guide-bg {
  padding: 1.5rem;
}

.sidebar-guide .guide-card {
  padding: 2rem;
}

.sidebar-guide .guide-text {
  margin-top: 1rem;
}

.sidebar h5 {
  border-left: 5px solid var(--accent-color);
  padding-left: 1rem;
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 2vw, 1.7rem);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.sidebar .article-index {
  padding: 2rem;
  margin: 0 auto;
}

.sidebar .article-index h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.sidebar hr {
  margin: 1rem 0;
}

.sidebar .article-index>ul>li {
  padding-left: 3rem;
  margin-bottom: .5rem;
  line-height: 1.2;
}

.sidebar .contents-title {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-family: var(--font-ja);
  font-weight: 400;
}

.sidebar .article-index>ul>li::before {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  top: .3em;
}


/* カテゴリ */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.cat-btn {
  display: block;
  text-align: center;
  padding: .3rem .5rem;
  border: 1px solid var(--accent-color);
  border-radius: 100vh;
  color: var(--accent-color);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  transition: 0.3s;
}

.cat-btn:hover {
  background-color: var(--accent-color);
  color: #fff;
}


/* おすすめ記事カード */
.recommend-card {
  display: block;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: 0.3s;
}

.recommend-card:hover {
  transform: translateY(-3px);
  opacity: .8;
}

.recommend-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.recommend-content {
  padding: 12px;
}

.recommend-category span {
  display: inline-block;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  background: var(--accent-color);
  color: #fff;
  padding: .2rem 2rem;
  border-radius: 100vh;
  align-items: center;
}

.recommend-title {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 5px;
}


@media screen and (max-width: 767px) {
  .single-container {
    width: 85%;
  }

  .sidebar {
    display: none;
  }

  .recommend-category span {
    padding: .1rem 1rem;
    font-weight: 300;
  }

}




/*====================================
カテゴリー一覧ページの設定
===================================*/
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 7rem;
  flex-wrap: wrap;
}

.category-tabs .tab {
  padding: .5rem 5rem;
  background: #fff;
  border: 1px solid var(--accent-color);
  border-radius: 100vh;
  color: var(--accent-color);
  font-weight: 500;
  transition: 0.3s;
}

.category-tabs .tab:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.category-tabs .tab.active {
  background: var(--accent-color);
  border: 1px solid var(--accent-color);
  color: #fff;
  cursor: unset;
}

@media screen and (max-width: 768px) {
  .category-tabs {
    justify-content: unset;
    gap: 1rem 2rem;
    margin-bottom: 4rem;
  }

  .category-tabs .tab {
    padding: .5rem 3rem;
  }

}



/* =========================
    CTA設定
========================= */
/* 記事中間に配置 */
.contact-cta-box {
  background-color: #F5F4F4;
  padding: 4rem 6rem;
  text-align: center;
  color: var(--main-color);
}

.contact-cta-title {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-cta-text {
  text-align: left;
}

.contact-cta-btn {
  display: inline-block;
  padding: 1rem 5rem;
  background-color: var(--strong-color);
  color: #fff;
  font-weight: 600;
  border-radius: 100vh;
  transition: 0.3s;
  margin-top: 2rem;
}

.contact-cta-btn:hover {
  background-color: var(--main-color);
  color: #fff;
}


/* 記事末に配置 */
.contact-cta-sub-box {
  background: #F5F4F4;
  padding: 2rem 5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.contact-cta-sub-content {
  flex: 1;
}

.contact-cta-sub-text {
  color: var(--main-color);
  font-weight: 600;
  line-height: 1.7;
}

.contact-cta-sub-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 5rem;
  background-color: var(--strong-color);
  color: #fff;
  font-weight: 600;
  border-radius: 100vh;
  transition: 0.3s;
}

.contact-cta-sub-btn:hover {
  background-color: var(--main-color);
  color: #fff;
}

.contact-cta-sub-img {
  width: 100px;
  flex-shrink: 0;
}

.contact-cta-sub-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   SP
========================= */
@media screen and (max-width: 768px) {
  .contact-cta-box {
    padding: 2rem;
  }

  .contact-cta-title {
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .contact-cta-btn {
    margin-top: 1rem;
    padding: .5rem 2rem;
    line-height: 1.4;
    font-weight: 500;
  }

  .contact-cta-sub-box {
    display: block;
    padding: 2rem 1.5rem;
  }

  .contact-cta-sub-img {
    display: none;
  }

  .contact-cta-sub-text {
    line-height: 1.5;
  }

  .contact-cta-sub-btn {
    padding: .5rem 5rem;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
  }
}


/* 中間・記事末のボタン動き */
.contact-cta-btn,
.contact-cta-sub-btn {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-cta-btn:hover,
.contact-cta-sub-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}


/* シェアCTA */
.blog-share {
  position: relative;
  background-image: url('/wp-content/themes/brtpath/img/blog/blog-share-bg.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.blog-share::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(76, 76, 76, 0.8);
}

.blog-share-inner {
  position: relative;
  z-index: 1;
  padding: 5rem;
  text-align: center;
}

.blog-share-title {
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.blog-share-btns {
  display: flex;
  justify-content: center;
  gap: 5rem;
}

.blog-share-btn {
  display: inline-block;
  min-width: 160px;
  padding: 1rem 5rem;
  border: 1px solid #fff;
  color: #fff;
  letter-spacing: 1.5px;
  transition: 0.3s;
}

.blog-share-btn:hover {
  background: #fff;
  font-weight: 500;
  color: var(--main-color);
  opacity: .8;
}

/* =========================
   SP
========================= */
@media screen and (max-width: 768px) {
  .blog-share-btns {
    flex-direction: column;
    gap: 2rem;
    width: 70%;
    margin: 0 auto;
  }

  .blog-share-btn {
    padding: 1rem 3rem;
  }

  .blog-share-inner {
    padding: 2rem;
  }
}



/* =========================
   内部リンク
========================= */
.blog-card {
  background: #fff;
  max-width: 100%;
  margin: 1rem auto;
  box-shadow: 0px 0px 5px 0px rgb(0 0 0 / 20%);
  transition: 0.3s ease-in-out;
  border: 1px solid var(--sub-color);
}

.blog-card a {
  display: flex;
  align-items: center;
  padding: 2rem;
  gap: 3rem;
}

.blog-card:hover {
  transform: translateY(-2px);
  opacity: .8;
}

.blog-card-thumbnail {
  width: 40%;
}

.blog-card-content {
  width: 60%;
}

.blog-card-title {
  font-size: clamp(1.3rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  color: #656565;
}

.blog-card-cta {
  font-size: clamp(1.2rem, 1.8vw, 1.3rem);
  color: var(--accent-color);
  text-align: right;

}

@media screen and (max-width: 767px) {
  .blog-card a {
    display: block;
    margin: 0 auto;
    padding: 1.5rem;
  }

  .blog-card-thumbnail,
  .blog-card-content {
    width: 100%;
  }

  .blog-card-thumbnail {
    margin-bottom: 1rem;
  }
}


/* 親記事の記事末 article-guide内部リンク */
.guide-link {
  color: var(--title-txt-color);
  font-weight: 600;
  line-height: 1.7;
}


/* 近日公開 */
.parent-card,
.article-card {
  position: relative;
}

/* 黒透過 */
.parent-card.is-coming::after,
.article-card.is-coming::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* テキスト */
.coming-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: clamp(1.2rem, 1.8vw, 2rem);
  font-family: var(--font-en);
  opacity: 1;
  z-index: 2;
  transition: 0.3s;
}

/* ホバーで表示 */
.parent-card.is-coming:hover .coming-overlay,
.article-card.is-coming:hover .coming-overlay {
  opacity: 1;
}

.parent-card.is-coming a,
.article-card.is-coming a {
  pointer-events: none;
}

/* カテゴリ―色 */