/**
 * top-page.css
 * サブディレクトリ TOP ページ専用スタイル
 * SWELL の既存クラスに乗っかりつつブランドカラーで整える
 */

/* ============================================================
   ページ導入セクション（JS で挿入）
   ============================================================ */
.kashiwa-media-intro {
  background: #ffffff;
  border-bottom: 3px solid rgb(123, 183, 146);
  padding: 36px 0 28px;
  text-align: center;
}

.kashiwa-media-intro__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.kashiwa-media-intro__title {
  font-size: 28px;
  font-weight: 700;
  color: #333333;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  line-height: 1.3;
  position: relative;
  display: inline-block;
}

/* タイトル下のグリーンアンダーライン */
.kashiwa-media-intro__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: rgb(123, 183, 146);
  margin: 10px auto 0;
  border-radius: 2px;
}

.kashiwa-media-intro__desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.8;
  margin: 16px 0 0;
}

/* ============================================================
   ホームコンテンツエリア全体の余白調整
   ============================================================ */
.p-homeContent {
  padding-top: 40px;
}

/* ============================================================
   カテゴリタブ（SWELLの .c-tabList）
   ============================================================ */
.c-tabList__item {
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.c-tabList__item.is-active,
.c-tabList__item[aria-selected="true"] {
  border-bottom-color: rgb(123, 183, 146) !important;
  color: rgb(123, 183, 146) !important;
}

.c-tabList__item:hover {
  color: rgb(123, 183, 146);
}

/* ============================================================
   記事カード（.p-postList.-type-card）
   ============================================================ */
.p-postList.-type-card .p-postList__item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s, transform 0.2s;
  background: #ffffff;
}

.p-postList.-type-card .p-postList__item:hover {
  box-shadow: 0 6px 18px rgba(123, 183, 146, 0.25);
  transform: translateY(-2px);
}

/* カード内タイトル */
.p-postList.-type-card .p-postList__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
}

/* カテゴリラベル */
.p-postList .c-cat-label {
  background: rgb(123, 183, 146) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 3px;
  font-size: 11px;
  padding: 2px 8px;
}

/* ============================================================
   サムネイルなし記事のデフォルト背景色
   ============================================================ */
.c-postThumb.noimg_ {
  background: linear-gradient(135deg, rgb(123, 183, 146) 0%, rgb(90, 155, 120) 100%);
}

/* ============================================================
   「もっと見る」ボタン
   ============================================================ */
.c-btn.-more,
.p-postList__more a {
  border: 2px solid rgb(123, 183, 146) !important;
  color: rgb(123, 183, 146) !important;
  background: transparent;
  border-radius: 24px;
  padding: 10px 36px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.c-btn.-more:hover,
.p-postList__more a:hover {
  background: rgb(123, 183, 146) !important;
  color: #ffffff !important;
}

/* ============================================================
   レスポンシブ SP
   ============================================================ */
@media screen and (max-width: 768px) {
  .kashiwa-media-intro {
    padding: 24px 0 20px;
  }

  .kashiwa-media-intro__title {
    font-size: 22px;
  }

  .kashiwa-media-intro__desc {
    font-size: 13px;
  }
}
