/* body {
  font-family:
    YakuHanJPs,
    "Times New Roman",
    "Noto Sans JP",
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif !important;
}
 */













/* ============================================================
 * トピックス一覧ページ(アーカイブ)
 * ============================================================ */

/* --------------------------------
 * MV背景 + タイトル
 * -------------------------------- */
.mv--topix {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -80px;
  margin-bottom: 0;
  padding: 0;
  height: 270px;
  background-image: url('http://kindergarten-hokkaido.com/wp-content/uploads/2025/12/mv.pc_.jpg');
  background-size: cover;
  background-position: center;
  overflow: visible;
}

.mv--topix .mv__container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 180px 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.mv--topix .mv__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fefefe;
  text-align: center;
  font-weight: 600;
  line-height: 1.5;
  width: 100%;
  margin: 15px 0 2px 0;
}

@media (min-width: 768px) {
  .mv--topix {
    height: 450px;
    margin-top: -90px;
  }
  .mv--topix .mv__container {
    padding: 240px 5% 3rem;
  }
}

@media (min-width: 1200px) {
  .mv--topix {
    height: 400px;
  }
  .mv--topix .mv__container {
    padding-top: 230px;
  }
}

/* --------------------------------
 * カテゴリータブ
 * -------------------------------- */
.archive-topix .topix__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0 auto 3rem;
  max-width: 1100px;
}

.archive-topix .topix__tab a {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background-color: #fff;
  color: #493d35;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: 0.3s;
}

@media (min-width: 768px) {
.archive-topix .topix__tab a {
  padding: 0.6rem 1.5rem;
 }
}


.archive-topix .topix__tab a:hover,
.archive-topix .topix__tab.active a {
  background-color: #dc8452;
  color: #fefefe;
  border-color: #dc8452;
}

/* ============================================================
 * Topixセクション
 * ============================================================ */

/* --------------------------------
 * セクション全体
 * -------------------------------- */
.topix {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  background-color: #56483e;
  max-width: none !important;
  overflow: hidden;
}

/* --------------------------------
 * コンテナ
 * -------------------------------- */
.topix__container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

@media (min-width: 768px) {
  .topix__container {
    padding: 2rem 5% 6rem;
  }
}

@media (min-width: 1200px) {
  .topix__container {
    padding: 1rem 5% 8rem;
  }
}

/* --------------------------------
 * ヘッダー（タイトル・サブタイトル）
 * -------------------------------- */
.topix__header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .topix__header {
    margin-bottom: 4rem;
  }
}

.topix__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fefefe;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.topix__subtitle {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #fefefe;
  font-weight: 400;
  letter-spacing: 0.05em;
}


/* --------------------------------
 * クエリループ（グリッド）
 * -------------------------------- */
.topix__query {
  margin-bottom: 3rem;
}

.topix__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* SP: 2列 */
.topix__grid > li {
  margin: 0 !important;
  padding: 0;
  display: flex;
  align-items: stretch;
  width: calc((100% - 16px) / 2);
}

/* PC(1024px〜): 3列 */
@media (min-width: 1024px) {
  .topix__grid {
    gap: 60px 16px;
  }

  .topix__grid > li {
    width: calc((100% - 32px) / 3);
  }
}

/* PC(1200px〜): 4列 */
@media (min-width: 1200px) {
  .topix__grid {
    gap: 60px 16px;
  }

  .topix__grid > li {
    width: calc((100% - 48px) / 4);
  }
}


/* --------------------------------
 * カード
 * -------------------------------- */
.topix__card {
  border-radius: 4px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.topix__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* PC反転時は上移動を無効化 */
@media (min-width: 768px) {
  .topix__card:hover {
    transform: translateY(0);
  }
}

/* --------------------------------
 * サムネイル + カテゴリ
 * -------------------------------- */
.topix__media {
  position: relative;
}

.topix__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  margin: 0;
}

.topix__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  border-radius: 0;
}

.topix__card:hover .topix__thumb img {
  transform: scale(1.05);
}

/* --------------------------------
 * カテゴリータグ（サムネイル左上）
 * -------------------------------- */
.topix__cat {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 !important;
}

.topix__cat a {
  display: inline-flex;
  align-items: center;
  background: #dc8452;
  color: #fefefe;
  padding: 5px 9px 5px 7px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.topix__cat a::before {
  font-family: 'icomoon';
  content: "\e935";
  font-size: 1em;
  margin-right: 4px;
}

/* --------------------------------
 * 本文エリア
 * -------------------------------- */
.topix__body {
  margin: 0;
  padding: 12px;
  background: #fefefe;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* タイトル */
.topix__ttl {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: #3a302c;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 8px;
  text-align: left;
}

.topix__ttl a {
  text-decoration: none;
  color: inherit;
}


/* 抜粋（ディスクリプション） */
.topix__excerpt {
  font-family: "YakuHanMPs", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 8px;
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* スマホでは抜粋を非表示 */
@media (max-width: 767.98px) {
  .topix__excerpt {
    display: none;
  }
}


/* 日付 */
.topix__date {
  font-size: 12px;
  color: #7e746d;
  margin: auto 0 0;
  text-align: left;
}

.topix__date::before {
  font-family: 'icomoon';
  content: "\e900";
  margin-right: 5px;
  font-size: 1em;
  display: inline-block;
}

/* --------------------------------
 * ボタン
 * -------------------------------- */
.topix__btn {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.topix__btn-link {
  display: inline-block;
  background: transparent;
  color: #fefefe;
  border: 1px solid #fefefe;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.topix__btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}


/* --------------------------------
 * 3D反転用（PC のみ）
 * -------------------------------- */
@media (min-width: 768px) {
  .topix__card {
    perspective: 1000px;
    background: transparent;
    overflow: visible;
  }
  
  .topix__card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 4px;
  }
  
  .topix__card:hover .topix__card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  /* 表面 */
  .topix__card-front {
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    box-shadow: none;
  }
  
  /* 裏面（リンク化） */
  .topix__card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    display: block;
    text-decoration: none;
  }
	
  /* 黒い半透明オーバーレイ */
  .topix__card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }
  
  /* タイトル */
  .topix__card-back-title {
    padding: 0 15px;
    color: #fefefe;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
  }
}




/* --------------------------------
 * ページネーション
 * -------------------------------- */
.archive-topix__pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 3rem;
  padding: 0;
}

.archive-topix__pager a,
.archive-topix__pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background-color: #fff;
  color: #493d35;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.archive-topix__pager a:hover {
  background-color: #dc8452;
  color: #fefefe;
  border-color: #dc8452;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 132, 82, 0.2);
}

.archive-topix__pager .page-numbers.current {
  background-color: #dc8452;
  color: #fefefe;
  border-color: #dc8452;
  font-weight: 600;
}

.archive-topix__pager .page-numbers.dots {
  border: none;
  background: transparent;
  color: #999;
}
