/* =============== style.css 上書き調整 =============== */

.page-content {
  margin-right: 0px;
  margin-left: 0px;
}
.card {
  border-radius: 0px;
}
.card img {
  border-radius: 0px;
  -webkit-box-shadow: 0px 0px hsla(0, 0%, 0%, 0.00);
  box-shadow: 0px 0px hsla(0, 0%, 0%, 0.00);
}

.title_cho{
	margin-top: 0px;	
}

.blog_cho{
	margin-top: -70px;	
}

/* =============== Category Slider (cnav-*) =============== */
.cnav{
	position: relative;
	background: #fff;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 7px;
}

/* 横スクロール領域 */
.cnav-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;          /* Firefox */
}
.cnav-wrap::-webkit-scrollbar{ display:none; } /* Chrome/Safari */

/* スクロールスナップで気持ちよく */
.cnav-track{
  display:flex;
  gap:0;
  padding:0;
  margin:0;
  list-style:none;
  scroll-snap-type:x proximity;
}

/* 各タブ */
.cnav-item{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  font-size: 12px;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  /* border-right: 1px solid #e5e7eb; ←削除 */
  scroll-snap-align: start;
  background: #fff;
  font-weight: 800;
}
.cnav-item:last-child{ /* 罫線を消したのでこの指定も不要だけど、残ってても害なし */
  border-right:none;
}

/* 「|」区切り：先頭以外のタブの左端に表示 */
.cnav-item + .cnav-item{      /* パイプぶん左に余白を作る */
  padding-left: 26px;
}
.cnav-item + .cnav-item::before{
	content: "|";
	position: absolute;
	left: 12px;                 /* ここでパイプの位置を微調整 */
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
	line-height: 1;
	color: #7B7B7B;             /* パイプの色 */
	pointer-events: none;
}


.cnav-ico{
  display:inline-flex;
  width:22px; height:22px;
  color:#6b7280;                /* アイコン色（currentColor） */
}
.cnav-item .cnav-label{ letter-spacing:.02em; }

/* アクティブ */
.cnav-item.is-active{
  color:#111827;
  font-weight:800;
}
.cnav-item.is-active .cnav-ico{ color:#10b981; }          /* アイコンだけ色替え */
.cnav-item.is-active::after{
  content:"";
  position:absolute;
  left:8px; right:8px; bottom:-1px;
  height:3px; border-radius:999px;
  background:#10b981;                                     /* 下線インジケータ */
}

/* 端のフェード（スクロールできる感を出す） */
.cnav::before,
.cnav::after{
  content:"";
  position:absolute; top:0; bottom:0; width:24px; pointer-events:none;
  z-index:2;
}
.cnav::before{
  left:0;
  background:linear-gradient(90deg,#fff 20%, rgba(255,255,255,0));
}
.cnav::after{
  right:0;
  background:linear-gradient(270deg,#fff 20%, rgba(255,255,255,0));
}

/* せまい画面でもタップしやすいよう最小幅を保証（任意） */
@media (max-width:360px){
  .cnav-item{ padding:12px 16px; font-size:14px; }
}

/* ===============================
   News List (nlx-*)  — NEW STYLES
   =============================== */
.nlx-news {
  padding: 0 0px 8px;
}
.nlx-empty {
  padding: 0px;
  opacity: .7;
}
/* 共通 */
.nlx-card, .nlx-row {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border-radius: 0px;
}

/* 画像 */
.nlx-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f3f4f6;
}
.nlx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0px;
}
.nlx-body {
  padding: 10px 0px 0px;
}
.nlx-title {
  font-size: 20px;
  line-height: 1.35;
  margin: 6px 0 6px;
  font-weight: 800;
  letter-spacing: .01em;
}
@media (min-width: 768px) {
  .nlx-title {
    font-size: 22px;
  }
}
.nlx-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .8;
  font-size: 11px;
  color: hsla(0, 0%, 56%, 1.00);
  text-align: right;
}
.nlx-date {
  white-space: nowrap;
  text-align: right;
}
.nlx-row {
  align-items: stretch; /* Gridの子要素を同じ高さに（明示） */
}
.nlx-row-body {
  display: flex;
  flex-direction: column;
}
.nlx-row .nlx-meta {
  margin-top: auto; /* ← ここがミソ：最下段へ押し下げ */
  align-self: flex-end; /* 横位置を右寄せ */
  text-align: right; /* テキストも右寄せ */
  padding-top: 6px; /* タイトルとの間に少し余白 */
}
/* ====== 同じ見え方をカード型にも適用したい場合（任意） ====== */
.nlx-card .nlx-body {
  display: flex;
  flex-direction: column;
}
.nlx-card .nlx-meta {
  margin-top: auto;
  align-self: flex-end;
  text-align: right;
  padding-top: 6px;
}
/* カテゴリチップ（getMainCategories で出る .cate をこの範囲だけ上書き） */
.nlx-cats .cate {}
/* --- ① 1ブロック（ヒーロー） --- */
.nlx-card--hero {
  border-bottom: 1px solid hsla(0, 0%, 89%, 1.00);
  padding-top: 10px;
  padding-bottom: 10px;
}
.nlx-card--hero .nlx-title {
  font-size: 20px;
  line-height: 1.2em;
}
/* NEWバッジ */
.nlx-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding-top: 4px;
  padding-right: 8px;
  padding-left: 20px;
  padding-bottom: 4px;
  border-radius: 0px 2px 2px 0px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  background-color: hsla(0, 84%, 60%, 0.61);
  box-shadow: 0 4px 12px rgba(239, 68, 68, .35);
}
.nlx-badge--pin {
  left: -10px;
  top: 15px;
} /* リスト用の小位置調整 */
.nlx-badge--new::before {
  content: " ";
}
/* --- ② 2ブロック（左右2カラム）常時2列版 --- */
.nlx-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 16px;
}
/* 320pxクラスの極小端末だけ1列に落とすなら（任意） */
@media (max-width: 359px) {
  .nlx-grid2 {
    grid-template-columns: 1fr;
  }
}
/* 2カラムカードの中身を少しコンパクトに */
.nlx-grid2 {
  border-bottom: 1px solid hsla(0, 0%, 89%, 1.00);
}
.nlx-grid2 .nlx-thumb {
  aspect-ratio: 4/3;
  border-radius: 0px;
}
.nlx-grid2 .nlx-thumb img {
  border-radius: 0px;
}
.nlx-grid2 .nlx-body {
  padding: 8px 8px 10px;
}
.nlx-grid2 .nlx-title {
  font-size: 18px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.nlx-grid2 .nlx-meta {
  font-size: 11px;
  opacity: .75;
}
@media screen and (max-width:1024px) {
  .nlx-grid2 .nlx-title {
    font-size: 15px;
  }
}
/* --- ③ 1行（左サムネ） --- */
.nlx-list {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.nlx-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  padding-top: 8px;
  padding-right: 0px;
  padding-left: 0px;
  padding-bottom: 8px;
  border-radius: 0px;
  border-bottom: 1px solid hsla(0, 0%, 89%, 1.00);
}
.nlx-row-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 0px;
  overflow: hidden;
}
.nlx-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nlx-row-body {}
.nlx-row .nlx-title {
  font-size: 17px;
  margin-top: 5px;
  font-weight: 800;
  line-height: 1.2em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
@media (max-width: 360px) {
  .nlx-row {
    grid-template-columns: 116px 1fr;
  }
  .nlx-row .nlx-title {
    font-size: 18px;
  }
}
.user_blog_name {
  border: 1px solid hsla(0, 0%, 89%, 1.00);
  padding-top: 3px;
  padding-right: 5px;
  padding-bottom: 3px;
  padding-left: 5px;
  margin-right: 2px;
  font-size: 0.7em;
  font-weight: 600;
}
/* ダークモード配慮 */

.dark .nlx-card, .dark .nlx-row {
	background-color: hsla(0,0%,100%,0.00);
}
.dark .nlx-card--hero {
	border-bottom: 1px solid hsla(0,0%,89%,0.28);
}
.dark .nlx-grid2 {
  border-bottom: 1px solid hsla(0,0%,89%,0.28);
}
.dark .nlx-row {
	border-bottom: 1px solid hsla(0,0%,89%,0.28);
}
