/**
 * top.css
 * TOPページのカスタムスタイル
 */

@font-face {
  font-family: "HonokaMaru";
  src: url("/wp-content/themes/swell_child/custom/fonts/Honoka-Shin-Maru-Gothic_R.woff")
    format("truetype");
  font-weight: normal;
  font-style: normal;
}

/**
 * ----------------------
 * ファーストビュー
 * ----------------------
 */

/* アイキャッチ */
.p-mainVisual__slideTitle {
  font-size: clamp(1.9rem, 5vw, 2.3rem) !important;
  line-height: 1.3;
  font-family: "HonokaMaru" !important;
  font-weight: 500 !important;
  text-shadow: 0.5px 0.5px 0 #fff, /* 上の光 */ -0.5px -0.5px 0 #ccc,
    /* 下の影 */ 1px 1px 1px rgba(0, 0, 0, 0.2); /* ぼかし影 */
}

/**
 * ----------------------
 * 記事スライダー
 * ----------------------
 */

/* 記事タイトル */
.swiper-slide h2.p-postList__title {
  font-family: "HonokaMaru" !important;
}

/**
 * ----------------------
 * カテゴリ別記事一覧
 * ----------------------
 */

/* MOREリンク */
.more-link {
  font-weight: bold;
  @media (max-width: 768px) {
    font-weight: normal;
  }
}

/**
 * ----------------------
 * 書庫をあさる？
 * ----------------------
 */
/* 全体 */
.shelf-box {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
/* カード：枠 */
.shelf-card {
  flex: 1 1 250px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 1.5rem !important;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shelf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}
/* カード：各パーツ */
.shelf-card img {
  width: 55px !important;
  height: 55px !important;
  margin: 40px auto 8px;
  @media (max-width: 768px) {
    width: 40px !important;
    height: 40px !important;
    margin: 20px auto 4px;
  }
}
.shelf-card h3 {
  margin-bottom: 10px;
}
.shelf-card p {
  font-size: 16px;
  margin-top: 8px;
  @media (max-width: 768px) {
    font-size: 16px;
  }
}
