@charset "UTF-8";

/* =========================================================
   トップページのコラムセクション（#top-column）
   - 左：見出し＋ナビ矢印（固定幅）
   - 右：最新5件を横スクロール、画面右端まで（3件目が切れて見える）
   - 既存サイトのスタイルを壊さないため top_column_* で隔離
   ========================================================= */

#top-column {
  padding-block: 6rem;
}
@media screen and (min-width: 768px) {
  #top-column {
    padding-block: 10rem;
  }
}

/* -----------------------------
   SP：見出しは従来のsec_innerと同じ左右余白、
         カードは左余白のみ、右は画面端まで
------------------------------ */
.top_column {
  position: relative;
}
.top_column_aside {
  margin-inline: 3rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.top_column_aside .sec_ttl {
  margin-bottom: 0;
}

/* ナビゲーション矢印（緑の四角ボタン） */
.top_column_nav {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
.top_column_nav_btn {
  width: 4.4rem;
  height: 4.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-green);
  color: #fff;
  border: 0;
  border-radius: 0.2rem;
  cursor: pointer;
  transition: opacity 0.3s;
}
.top_column_nav_btn:hover {
  opacity: 0.8;
}
.top_column_nav_btn .material-symbols-outlined {
  font-size: 2rem;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
}

/* 横スクロール領域 */
.top_column_scroll {
  padding-left: 3rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.top_column_scroll::-webkit-scrollbar {
  display: none;
}

.top_column_list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.top_column_item {
  list-style: none;
  flex: 0 0 auto;
  width: 26rem; /* SPカード幅 */
}

/* -----------------------------
   PC：左右2カラムレイアウト
   - 左：sec_innerの左端～コンテナ中央付近（約250px）に見出し＋ナビ
   - 右：カードを横スクロール、画面右端まで
------------------------------ */
@media screen and (min-width: 768px) {
  .top_column {
    display: grid;
    grid-template-columns: minmax(auto, calc((100vw - 104rem) / 2 + 24rem)) 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: 4rem;
  }
  .top_column_aside {
    grid-column: 1;
    grid-row: 1;
    margin-inline: 0;
    margin-bottom: 0;
    padding-left: max(2rem, calc((100vw - 104rem) / 2 + 2rem));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5rem;
  }
  .top_column_nav {
    gap: 1.2rem;
  }
  .top_column_nav_btn {
    width: 5rem;
    height: 5rem;
  }
  .top_column_scroll {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
  }
  .top_column_list {
    gap: 3rem;
  }
  .top_column_item {
    width: 32rem; /* PCカード幅 */
  }
}

/* -----------------------------
   カード本体
------------------------------ */
.top_column_card {
  display: block;
  transition: opacity 0.3s;
}
.top_column_card:active { opacity: 0.7; }
@media (hover) {
  .top_column_card:hover { opacity: 0.8; }
  .top_column_card:hover .top_column_card_thumb img { transform: scale(1.04); }
}

.top_column_card_thumb {
  position: relative;
  margin: 0;
  aspect-ratio: 320 / 220;
  border-radius: 0.2rem;
  overflow: hidden;
}
.top_column_card_thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.2rem;
  transition: transform 0.5s ease;
}
.top_column_card_thumb_empty {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #F3F2D5;
  border-radius: 0.2rem;
}

/* メタ行（日付の下にカテゴリー） */
.top_column_card_meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.top_column_card_date {
  font-family: var(--font-min);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: #222;
  line-height: 1;
}
.top_column_card_cats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.top_column_card_cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.8rem;
  height: 1.9rem;
  padding: 0 0.8rem;
  background-color: #F3F2D5;
  font-family: var(--font-min);
  font-size: 1.3rem;
  line-height: 1;
  color: #222;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* カードタイトル */
.top_column_card_ttl {
  margin-top: 1rem;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.05em;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -----------------------------
   「コラム一覧を見る」リンク
------------------------------ */
.top_column_more {
  margin-top: 4rem;
  display: flex;
  justify-content: flex-start;
  padding-inline: 3rem;
}
@media screen and (min-width: 768px) {
  /* PC：左カラムの矢印ナビの下に配置 */
  .top_column_more {
    grid-column: 1;
    grid-row: 2;
    margin-top: 4rem;
    padding-inline: 0;
    padding-left: max(2rem, calc((100vw - 104rem) / 2 + 2rem));
  }
}
