/* ===== nikoand風レイアウト ===== */

/* ----------------------------------------------------------------
   HEADER上書き（page-template-page-niko-layout-test のみ適用）
---------------------------------------------------------------- */
.page-template-page-niko-layout-test .tsl-topbar {
  display: none;
}
.page-template-page-niko-layout-test .tsl-header {
  background: #5b8a2e;
  border-bottom: none;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.page-template-page-niko-layout-test .tsl-header__logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  letter-spacing: 0.1em;
}
.page-template-page-niko-layout-test .tsl-header__logo-main {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}
.page-template-page-niko-layout-test .tsl-header__logo-text {
  color: #fff;
}
.page-template-page-niko-layout-test .tsl-header__logo-icon img {
  width: 28px;
  height: 28px;
}
/* ヘッダー内部をロゴ＋ナビ横並びに */
.page-template-page-niko-layout-test .tsl-header__inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
}
.page-template-page-niko-layout-test .tsl-header__logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.page-template-page-niko-layout-test .tsl-header__logo-sub {
  display: none;
}
.page-template-page-niko-layout-test .tsl-header__logo-icon img {
  width: 32px;
  height: 32px;
}

/* ナビをピルボタン（白背景）に */
.page-template-page-niko-layout-test .tsl-header__nav {
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-shrink: 1;
}
.page-template-page-niko-layout-test .tsl-header__nav a {
  display: inline-block;
  padding: 5px 12px;
  background: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  color: #3a5c1a;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.page-template-page-niko-layout-test .tsl-header__nav a:hover {
  background: #1a1a1a;
  color: #fff;
}
.page-template-page-niko-layout-test .mc-hamburger__line {
  background: #fff;
}

/* ----------------------------------------------------------------
   FOOTER上書き
---------------------------------------------------------------- */
.page-template-page-niko-layout-test .tsl-footer {
  background: #5b8a2e;
  color: #fff;
  padding: 48px 0 0;
}
.page-template-page-niko-layout-test .tsl-footer__heading {
  color: rgba(255,255,255,0.6);
}
.page-template-page-niko-layout-test .tsl-footer__heading--pixel {
  display: flex;
}
.page-template-page-niko-layout-test .tsl-footer__pixel-char {
  filter: brightness(0) invert(1);
}
.page-template-page-niko-layout-test .tsl-footer__logo-text {
  color: #fff;
}
.page-template-page-niko-layout-test .tsl-footer__desc {
  color: rgba(255,255,255,0.75);
}
.page-template-page-niko-layout-test .tsl-footer__btn {
  background: #fff;
  border: none;
  color: #3a5c1a;
  border-radius: 999px;
}
.page-template-page-niko-layout-test .tsl-footer__btn:hover {
  background: #1a1a1a;
  color: #fff;
}
.page-template-page-niko-layout-test .tsl-footer__cat-grid a {
  color: rgba(255,255,255,0.85);
}
.page-template-page-niko-layout-test .tsl-footer__cat-grid a:hover {
  color: #fff;
}
.page-template-page-niko-layout-test .tsl-footer__bottom {
  background: #3a5c1a;
  color: rgba(255,255,255,0.6);
}
.page-template-page-niko-layout-test .tsl-footer__copy {
  color: rgba(255,255,255,0.5);
}


* { box-sizing: border-box; }

.nlt-page {
  background: #fff;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
  color: #1a1a1a;
}
.nlt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== キーワードタグ ===== */
.nlt-keywords {
  border-bottom: 1px solid #e0e0e0;
  padding: 14px 0;
  background: #fff;
}
.nlt-keywords__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.nlt-keywords__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 16px;
  border: 1.5px solid #bbb;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #333;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nlt-keywords__tag:hover {
  border-color: #5b8a2e;
  color: #5b8a2e;
}
.nlt-keywords__count {
  font-size: 0.7rem;
  color: #aaa;
}

/* ===== セクション共通ヘッダー ===== */
.nlt-section-head {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1a1a1a;
}
.nlt-section-head__en {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  line-height: 1;
}
.nlt-section-head__jp {
  font-size: 0.78rem;
  color: #888;
  padding-bottom: 2px;
}
.nlt-section-head__more {
  margin-left: auto;
  font-size: 0.78rem;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 1px;
  white-space: nowrap;
}
.nlt-section-head__more:hover { color: #5b8a2e; border-color: #5b8a2e; }

/* ===== カード共通 ===== */
.nlt-card {
  display: block;
  text-decoration: none;
  color: #1a1a1a;
}
.nlt-card__img-wrap {
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 2px;
  position: relative;
}
.nlt-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.nlt-card:hover .nlt-card__img { transform: scale(1.04); }
.nlt-card__noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 160px;
  font-size: 2.5rem;
  color: #ccc;
  background: #f0f7ea;
}
.nlt-card__body { padding: 12px 0 0; }
.nlt-card__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.nlt-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 6px;
  color: #1a1a1a;
}
.nlt-card__excerpt {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.65;
  margin: 0 0 8px;
}
.nlt-card__date {
  font-size: 0.72rem;
  color: #aaa;
  letter-spacing: 0.04em;
}

/* ===== ピックアップ ===== */
.nlt-pickup {
  padding: 40px 0 48px;
  border-bottom: 1px solid #e5e5e5;
}
.nlt-pickup__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 760px) {
  .nlt-pickup__grid { grid-template-columns: 1fr; }
}
.nlt-card--main .nlt-card__img-wrap { aspect-ratio: 4/3; }
.nlt-card--main .nlt-card__title {
  font-size: 1.1rem;
  line-height: 1.55;
}
.nlt-pickup__sub {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nlt-card--sub .nlt-card__img-wrap { aspect-ratio: 16/9; }

/* ===== INFORMATION ===== */
.nlt-info {
  padding: 48px 0;
  border-bottom: 1px solid #e5e5e5;
}
.nlt-info__inner {
  background: #e8f5d8;
  border-radius: 4px;
  padding: 28px 32px;
}
.nlt-info__head {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #5b8a2e;
}
.nlt-info__en {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #1a1a1a;
}
.nlt-info__jp { font-size: 0.78rem; color: #5b8a2e; }
.nlt-info__more {
  margin-left: auto;
  font-size: 0.78rem;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 1px;
}
.nlt-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nlt-info__item { border-bottom: 1px solid rgba(91,138,46,0.2); }
.nlt-info__item:last-child { border-bottom: none; }
.nlt-info__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
  color: #1a1a1a;
  flex-wrap: wrap;
}
.nlt-info__link:hover .nlt-info__title { color: #5b8a2e; }
.nlt-info__date { font-size: 0.78rem; color: #888; white-space: nowrap; min-width: 70px; }
.nlt-info__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #5b8a2e;
  border: 1.5px solid #5b8a2e;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}
.nlt-info__title { font-size: 0.88rem; font-weight: 600; line-height: 1.55; }

/* ===== カテゴリグリッド ===== */
.nlt-category {
  padding: 48px 0;
  border-bottom: 1px solid #e5e5e5;
}
.nlt-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.nlt-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .nlt-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .nlt-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .nlt-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nlt-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.nlt-card--grid .nlt-card__img-wrap { aspect-ratio: 3/2; }
.nlt-card--grid .nlt-card__title { font-size: 0.85rem; }

/* ===== ランキング ===== */
.nlt-ranking-section {
  padding: 48px 0;
  border-bottom: 1px solid #e5e5e5;
}
.nlt-ranking__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .nlt-ranking__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .nlt-ranking__list { grid-template-columns: 1fr; } }
.nlt-ranking__item { position: relative; }
.nlt-ranking__num {
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
  width: 28px; height: 28px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.nlt-ranking__item:nth-child(1) .nlt-ranking__num { background: #c8a227; }
.nlt-ranking__item:nth-child(2) .nlt-ranking__num { background: #9aa0a6; }
.nlt-ranking__item:nth-child(3) .nlt-ranking__num { background: #a0673a; }
.nlt-ranking__card {
  display: block;
  text-decoration: none;
  color: #1a1a1a;
}
.nlt-ranking__card:hover .nlt-ranking__title { color: #5b8a2e; }
.nlt-ranking__thumb {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #f0f7ea;
  border-radius: 2px;
  margin-bottom: 10px;
}
.nlt-ranking__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.nlt-ranking__card:hover .nlt-ranking__img { transform: scale(1.04); }
.nlt-ranking__noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #ccc;
}
.nlt-ranking__cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
  border-radius: 999px;
  padding: 1px 8px;
  margin-bottom: 6px;
}
.nlt-ranking__title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ===== COLUMN ===== */
.nlt-column-section {
  padding: 0 0 48px;
  border-bottom: 1px solid #e5e5e5;
}
.nlt-column__head-bar {
  background: #c8b8d8;
  padding: 14px 0;
  margin-bottom: 0;
}
.nlt-column__head-bar .nlt-container {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.nlt-column__head-en {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #1a1a1a;
}
.nlt-column__head-sub {
  font-size: 0.82rem;
  color: #1a1a1a;
}
.nlt-column__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  width: 100%;
}
@media (max-width: 680px) {
  .nlt-column__grid { grid-template-columns: 1fr; }
}

/* カード内コンテンツの幅制限 */
.nlt-col-item__num {
  padding-left: max(24px, calc((100vw - 1200px) / 2 + 12px));
}
.nlt-col-card {
  padding-right: max(20px, calc((100vw - 1200px) / 2 + 20px));
}

/* セル（数字 + カード） */
.nlt-col-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
}
.nlt-col-item:nth-child(odd) {
  border-left: 1px solid #ccc;
}
.nlt-col-item:nth-last-child(-n+2) {
  border-bottom: 1px solid #ccc;
}

/* 番号（カードの外側・白背景） */
.nlt-col-item__num {
  display: flex;
  align-items: flex-start;
  padding: 18px 10px 0 12px;
  font-size: 0.75rem;
  font-weight: 900;
  color: #aaa;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  background: #fff;
  min-width: 34px;
}

/* カード本体（色付き背景） */
.nlt-col-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 20px 16px;
  text-decoration: none;
  color: #1a1a1a;
  border-left: 1px solid #ccc;
  transition: opacity 0.2s;
}
.nlt-col-card:hover { opacity: 0.82; }

.nlt-col-card__body { flex: 1; }
.nlt-col-card__title {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.nlt-col-card__desc {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}
.nlt-col-card__img-wrap {
  flex-shrink: 0;
  width: 110px;
  height: 90px;
  overflow: hidden;
  border-radius: 2px;
}
.nlt-col-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* カラーバリエーション */
.nlt-col-card--gray   { background: #f0eeeb; }
.nlt-col-card--pink   { background: #fce8ed; }
.nlt-col-card--yellow { background: #fdf3c0; }
.nlt-col-card--navy   { background: #1a1a2e; color: #fff; border-color: #333; }
.nlt-col-card--navy .nlt-col-card__title { color: #fff; }
.nlt-col-card--navy .nlt-col-card__desc  { color: rgba(255,255,255,0.7); }
.nlt-col-card--dot {
  background-color: #eef7ff;
  background-image: radial-gradient(circle, #a8cce8 1px, transparent 1px);
  background-size: 12px 12px;
}

/* ===== 記事一覧ボタン ===== */
.nlt-more-wrap {
  text-align: center;
  padding: 32px 0 48px;
}
.nlt-more-btn {
  display: inline-block;
  padding: 12px 40px;
  border: 2px solid #1a1a1a;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
}
.nlt-more-btn:hover { background: #1a1a1a; color: #fff; }
