/* blog-post.css - 個別記事ページ用スタイル */

/* =============================
   記事ヘッダー
   ============================= */
.blog-post-header {
  margin-bottom: 4rem;
}

.blog-post-header .blog-meta {
  margin-bottom: 2rem;
}

/* 記事タイトル */
.p-entry__title {
  font-size: clamp(1.7rem, 1.2rem + 0.625vw, 2.4rem);
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #fff;
}

/* =============================
   アイキャッチ画像
   ============================= */
.blog-post-thumbnail {
  margin: 3rem 0 4rem 0;
  border-radius: 1rem;
  overflow: hidden;
}

.blog-post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================
   記事本文
   ============================= */
.post_content {
  font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
  line-height: 1.8;
  color: #fff;
}

/* 見出し */
.post_content h2 {
  font-size: clamp(1.8rem, 1.72rem + 0.4vw, 2.2rem);
  font-weight: 700;
  margin: 4rem 0 2rem;
  padding: 2rem 1rem;
  border-bottom: 2px solid #333;
  color: #fff;
  position: relative;
  background: transparent;
}

.post_content h2::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 6rem;
  height: 5px;
  background: linear-gradient(45deg, #1992CB 0%, #662D91 100%);
  border: 0;
}

.post_content h2::after {
  content: "";
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #662D91, #1992CB);
  bottom: 0;
  display: block;
  left: 0;
  position: absolute;
  z-index: 0;
}


.post_content h3 {
  font-size: clamp(1.6rem, 1.52rem + 0.4vw, 2rem);
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  padding-left: 2.5rem;
  color: #fff;
  position: relative;
}

.post_content h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 10px;
  height: 100%;
  background: linear-gradient(to bottom, #1992CB, #662D91);
}

.post_content h4 {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
  font-weight: 700;
  margin: 2.5rem 0 1.2rem;
  color: #fff;
}

.post_content h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
  background: linear-gradient(to right, #662D91, #1992CB);
  height: 1px;
}

.is-style-small_ttl .cap_box_ttl {
  color: #000;

}

.mark_yellow {
  background: linear-gradient(transparent 64%, #34408c 0%) !important;
  color: #fff;
}

[class*=is-style-btn_] a {
  background: #e01f1f;
}

.is-style-btn_solid a {
  box-shadow: 0 4px 0 rgb(136 17 17);
}

/* リスト */
.post_content ul,
.post_content ol {
  margin: 2rem 0;
  padding-left: 2rem;
}

.post_content li {
  margin-bottom: 0.8rem;
  color: #fff;
}

/* 引用 */
.post_content blockquote {
  background: #111;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid;
  border-image: linear-gradient(45deg, #1992CB 0%, #662D91 100%) 1;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* 画像 */
.post_content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 0.5rem;
}

/* テーブル */
.post_content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #111;
  border-radius: 0.5rem;
  overflow: hidden;
}

.post_content th,
.post_content td {
  padding: 1rem;
  border: 1px solid #333;
  color: #fff;
}

.post_content th {
  background: linear-gradient(45deg, #1992CB 0%, #662D91 100%);
  font-weight: 700;
}

/* =============================
   サイドバー
   ============================= */
.sidebar-section {
  margin-bottom: 4rem;
}

.sidebar-section__title {
  font-family: futura-pt, sans-serif;
  font-size: clamp(1.5rem, 1.44rem + 0.3vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #333;
  position: relative;
}

.sidebar-section__title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 3rem;
  height: 2px;
  background: linear-gradient(45deg, #1992CB 0%, #662D91 100%);
}

/* サイドバー記事一覧 */
.sidebar-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-post-item {
  border-bottom: 1px solid #333;
  padding-bottom: 2rem;
}

.sidebar-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-post-link {
  display: flex;
  gap: 1.5rem;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s ease;
}

.sidebar-post-link:hover {
  opacity: 0.8;
}

.sidebar-post-thumb {
  flex-shrink: 0;
  width: 8rem;
  height: 6rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post-content {
  flex: 1;
  min-width: 0;
}

.sidebar-post-title {
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-post-date {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
  color: #999;
}

/* カテゴリーリスト */
.blog-category-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 0.5rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-category-item:hover {
  background: #222;
  border-color: #1992CB;
  opacity: 1;
}

.blog-category-item .count {
  opacity: 0.7;
  font-size: 0.9em;
  background: #333;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  min-width: 2rem;
  text-align: center;
}

.blog-category-item:hover .count {
  background: #1992CB;
  color: #fff;
  opacity: 1;
}

/* =============================
   記事下部
   ============================= */
.l-articleBottom {
  margin-top: 5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid #333;
  color: #fff;
}

/* 関連記事 */
.p-related {
  margin-top: 5rem;
}

.p-related__title {
  font-size: clamp(1.7rem, 1.56rem + 0.7vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
}


.c-categoryList__link {
  background: transparent;
}


.p-toc.-double {
  background: var(--color_gray);
  background: linear-gradient(45deg, #1992CB 0%, #662D91 100%);
  background-clip: unset;
  background-size: unset;
  border: 0;
  padding: 1.5em 0;
}

.cap_box_ttl {
  background: linear-gradient(45deg, #1992CB 0%, #662D91 100%);
}

.cap_box_content {
  background: rgba(51, 51, 51, 0.3);
  border: 1px solid #353535;
}

.post_content li {
  color: #ffffff;
}

.blog-layout a {
  color: #ffffff;
}

.blog-layout .swell-block-postLink a {
  color: rgb(51, 51, 51);
}

.is-style-icon_announce {
  background: transparent;
  border: 1px solid #353535;
}

.post_content thead th {
  color: #FFF;
}

[class*="is-style-icon_"] {
  color: #ffffff;
}

.is-style-icon_announce:before {
  color: #ffffff;
}

.p-pnLinks .-prev .p-pnLinks__link {
  border: 0;
  padding-left: 20px;
}

.p-pnLinks .-next .p-pnLinks__link {
  border: 0;
  padding-right: 20px;
}

.has-swl-deep-01-color {
  color: #fff784 !important;
}

.widget_categories select {
  font-size: 1.2rem;
}

.has-swl-pale-02-background-color {
  background-color: rgba(51, 51, 51, 0.3) !important;
  color: #fff;
}

.has-black-color {
  color: #ffffff !important;
}

.is-style-small_ttl .cap_box_ttl {
  color: #ffffff;
}

.is-style-icon_pen {
  background: transparent;
  border: 1px solid #353535;
}

.post_content th,
.post_content td {
  border: 1px solid #666;
}

.post_content table {
  border-radius: 0;
}

.swl-cell-bg:before {
  background: linear-gradient(45deg, #1992CB 0%, #662D91 100%);
}

[class*=is-style-big_icon_]:before {
  background: linear-gradient(45deg, #1992CB 0%, #662D91 100%);
}

.is-style-big_icon_check,
.is-style-big_icon_good {
  border: 1px solid #2e77bc;
}

.is-style-good_list li:before {
  color: #1992CB;
}

/* PC */
@media (max-width: 1440px) {}

@media (max-width: 1280px) {}

@media (max-width: 1024px) {
  .blog-post-header {
    margin-bottom: 3rem;
  }

  .blog-post-thumbnail {
    margin: 2rem 0 3rem 0;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .post_content h2 {
    margin: 3rem 0 1.5rem;
  }

  .sidebar-post-link {
    flex-direction: column;
    gap: 1rem;
  }

  .sidebar-post-thumb {
    width: 100%;
    height: 12rem;
  }
}

/* Smartphone */
@media (max-width: 480px) {}