@charset "utf-8";
/* blog-common.css - ブログ関連の共通スタイル */

/* =============================
   共通レイアウト
   ============================= */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 30rem;
  gap: 7rem;
  max-width: 120rem;
  margin: 0 auto;
  padding-top: 8rem;
}

.blog-layout--no-sidebar {
  grid-template-columns: 1fr;
  max-width: 80rem;
}

.blog-main {
  min-width: 0; /* グリッドアイテムのオーバーフロー防止 */
}

.blog-sidebar {
  background: #111;
  border-radius: 1rem;
  height: fit-content;
  margin-bottom: 4rem;
}

/* =============================
   SWELLウィジェット対応
   ============================= */
.blog-sidebar .widget {
  margin-bottom: 4rem;
  color: #fff;
}

.blog-sidebar .widget:last-child {
  margin-bottom: 0;
}

/* ウィジェットタイトルの統一スタイル（重複削除済み） */

/* 検索ウィジェット */
.blog-sidebar .widget_search input[type="search"] {
  width: 100%;
  /* padding: 1rem; */
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
}

/* 検索フォームのプレースホルダーを白色に */
.blog-sidebar .widget_search input[type="search"]::placeholder,
.blog-sidebar .c-searchForm__s::placeholder,
.blog-sidebar input[name="s"]::placeholder {
  color: #fff;
  opacity: 0.7; /* 少し透明にして見やすく */
}
.c-searchForm__submit{
    border: 1px solid #fff;
}

/* ブラウザ別のプレースホルダー対応 */
.blog-sidebar .widget_search input[type="search"]::-webkit-input-placeholder,
.blog-sidebar .c-searchForm__s::-webkit-input-placeholder,
.blog-sidebar input[name="s"]::-webkit-input-placeholder {
  color: #fff;
  opacity: 0.7;
}

.blog-sidebar .widget_search input[type="search"]::-moz-placeholder,
.blog-sidebar .c-searchForm__s::-moz-placeholder,
.blog-sidebar input[name="s"]::-moz-placeholder {
  color: #fff;
  opacity: 0.7;
}

.blog-sidebar .widget_search input[type="search"]:-ms-input-placeholder,
.blog-sidebar .c-searchForm__s:-ms-input-placeholder,
.blog-sidebar input[name="s"]:-ms-input-placeholder {
  color: #fff;
  opacity: 0.7;
}

.blog-sidebar .widget_search input[type="submit"] {
  background: linear-gradient(45deg, #1992CB 0%, #662D91 100%);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  margin-top: 1rem;
  cursor: pointer;
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
  transition: opacity 0.3s ease;
}

.blog-sidebar .widget_search input[type="submit"]:hover {
  opacity: 0.8;
}

/* カテゴリーウィジェット */
.blog-sidebar .widget_categories ul,
.blog-sidebar .widget_archive ul {
  list-style: none;
  padding: 0;
}

.blog-sidebar .widget_categories li,
.blog-sidebar .widget_archive li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}

.blog-sidebar .widget_categories li:last-child,
.blog-sidebar .widget_archive li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.blog-sidebar .widget_categories a,
.blog-sidebar .widget_archive a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
  transition: color 0.3s ease;
}

.blog-sidebar .widget_categories a:hover,
.blog-sidebar .widget_archive a:hover {
  color: #1992CB;
}

/* 最新記事ウィジェット */
.blog-sidebar .widget_recent_entries ul {
  list-style: none;
  padding: 0;
}

.blog-sidebar .widget_recent_entries li {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333;
}

.blog-sidebar .widget_recent_entries li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.blog-sidebar .widget_recent_entries a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.4;
  display: block;
  transition: color 0.3s ease;
}

.blog-sidebar .widget_recent_entries a:hover {
  color: #1992CB;
}

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

/* タグクラウドウィジェット */
.blog-sidebar .widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-sidebar .widget_tag_cloud .tagcloud a {
  background: linear-gradient(45deg, #1992CB 0%, #662D91 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: clamp(1rem, 0.941rem + 0.3vw, 1.2rem) !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.blog-sidebar .widget_tag_cloud .tagcloud a:hover {
  opacity: 0.8;
}

/* カスタムHTMLウィジェット */
.blog-sidebar .widget_custom_html {
  color: #fff;
}

.blog-sidebar .widget_custom_html p {
  color: #fff;
  line-height: 1.6;
}

.blog-sidebar .widget_custom_html a {
  color: #1992CB;
  text-decoration: none;
}

.blog-sidebar .widget_custom_html a:hover {
  text-decoration: underline;
}

/* SWELLの人気記事ウィジェット対応 */
.blog-sidebar .widget_swell_popular_posts .p-popularPosts {
  color: #fff;
}

.blog-sidebar .widget_swell_popular_posts .p-popularPosts__item {
  border-bottom: 1px solid #333;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.blog-sidebar .widget_swell_popular_posts .p-popularPosts__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.blog-sidebar .widget_swell_popular_posts .p-popularPosts__title {
  color: #fff;
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
  line-height: 1.4;
}

.blog-sidebar .widget_swell_popular_posts .p-popularPosts__title:hover {
  color: #1992CB;
}

/* SWELLのblog_partsショートコード対応 */
.blog-sidebar .wp-block-swell-blocks-blog-parts,
.blog-sidebar .swell-block-blogParts {
  margin-bottom: 3rem;
  color: #fff;
}

.blog-sidebar .wp-block-swell-blocks-blog-parts:last-child,
.blog-sidebar .swell-block-blogParts:last-child {
  margin-bottom: 0;
}

/* blog_partsで表示される記事一覧のスタイル */
.blog-sidebar .p-blogParts {
  color: #fff;
}

.blog-sidebar .p-blogParts__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;
}

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

.blog-sidebar .p-blogParts__list {
  list-style: none;
  padding: 0;
}

.blog-sidebar .p-blogParts__item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333;
}

.blog-sidebar .p-blogParts__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

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

.blog-sidebar .p-blogParts__link:hover {
  opacity: 0.8;
}

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

.blog-sidebar .p-blogParts__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-sidebar .p-blogParts__content {
  flex: 1;
  min-width: 0;
}

.blog-sidebar .p-blogParts__postTitle {
  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;
}

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

.blog-sidebar .p-blogParts__cat {
  background: linear-gradient(45deg, #1992CB 0%, #662D91 100%);
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 1rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  display: inline-block;
}

/* =============================
   カテゴリー・タグ共通
   ============================= */
.blog-category-list,
.blog-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.blog-category-item,
.blog-tag-item {
  background: linear-gradient(45deg, #1992CB 0%, #662D91 100%);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.blog-category-item:hover,
.blog-tag-item:hover {
  opacity: 0.8;
}

/* =============================
   記事メタ情報
   ============================= */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
  color: #999;
}

.blog-meta__date {
  color: #fff;
}

.blog-meta__category {
  background: linear-gradient(45deg, #1992CB 0%, #662D91 100%);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 1rem;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
}

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

.p-postList__body{
    color: #fff;
}
/* SWELLの記事タイトルスタイル調整 */
.blog-sidebar .p-postList__title,
.blog-sidebar .-type-card .p-postList__title,
.blog-sidebar .-type-thumb .p-postList__title,
.blog-sidebar .-related .p-postList__title {
    font-size: clamp(1rem, 0.941rem + 0.3vw, 1.2rem) !important;
    color: #fff !important;
    line-height: 1.4 !important;
}

.c-searchForm__s{
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
    padding: 0.5rem 1rem;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
    width: 100%;
}
.u-bg-main{
    background-color: #000 !important;
}


.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-item .count,
.blog-tag-item .count {
  opacity: 0.7;
  font-size: 0.9em;
}

/* 全てのサイドバータイトルを統一スタイルに */
.blog-sidebar .sidebar-section__title,
.blog-sidebar .widget_title,
.blog-sidebar .widgettitle,
.blog-sidebar .p-blogParts__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;
}

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

/* SWELLの検索フォーム全体のスタイル調整 */
.blog-sidebar .c-searchForm__s {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
} 


.c-widget__title.-side{
    color: #fff;
}




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

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

@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .blog-sidebar {
    position: static;
    margin-top: 5rem;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .blog-layout {
    padding: 1rem 0 0;
  }
  
  .blog-sidebar {
    padding: 2rem;
  }
  
  .blog-category-list,
  .blog-tag-list {
    gap: 0.5rem;
  }
  
  .blog-category-item,
  .blog-tag-item {
    font-size: 1.1rem;
    padding: 0.4rem 1rem;
  }
}

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