@charset "utf-8";

/* ==========================================================================
   カテゴリ一覧ページ(page-category.php) 2026リニューアル
   デザインカンプ: assets/_design/page-category.jpg
   配色変数・.sec_title・おすすめクーポン・CTA は home.css を共用
   ========================================================================== */

/* サブジャンルごとの色(home.css の配色変数を参照) */
#cat_list .cat-gourmet   { --cc: var(--c-orange); }
#cat_list .cat-shopping  { --cc: var(--c-pink); }
#cat_list .cat-childcare { --cc: var(--c-green); }
#cat_list .cat-beauty    { --cc: var(--c-blue); }
#cat_list .cat-leisure   { --cc: var(--c-purple); }
#cat_list .cat-sports    { --cc: var(--c-yellow); }
#cat_list .cat-study     { --cc: var(--c-teal); }
#cat_list .cat-other     { --cc: var(--c-gray); }
#cat_list .cat-pets      { --cc: var(--c-brown); }
#cat_list .cat-relax     { --cc: var(--c-mint); }
#cat_list .cat-nursing   { --cc: var(--c-indigo); }
#cat_list .cat-health    { --cc: var(--c-lime); }
#cat_list .cat-bridal    { --cc: var(--c-magenta); }
#cat_list .cat-trip      { --cc: var(--c-navy); }
#cat_list .cat-life      { --cc: var(--c-gold); }
#cat_list .cat-car       { --cc: var(--c-slate); }


/* ==========================================================================
   HERO → 下層ページ共通ヒーロー(page-hero.css / template-parts/page-hero.php)
   ========================================================================== */


/* ==========================================================================
   クーポンカテゴリ一覧
   ========================================================================== */
#cat_list {
  position: relative;
  background: var(--c-cream2);
  padding: 50px 0 40px;
}
/* 上端をゆるやかな弧にしてヒーローとつなげる(カンプ準拠) */
#cat_list::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 48px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--c-cream2);
  z-index: 0;
}

#cat_list .wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  padding: 0 10px;
  margin: auto;
}

.cat_cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cat_cards li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 20px 16px 24px;
  text-align: center;
  box-shadow: 0 8px 22px -14px rgba(0,0,0,.22);
  transition: transform .25s, box-shadow .25s;
}
.cat_cards li a:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px -14px rgba(0,0,0,.3);
}

.cat_cards .cat_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--cc);
  margin-bottom: 12px;
  transition: transform .25s;
}
.cat_cards li a:hover .cat_icon { transform: scale(1.06) rotate(-4deg); }
.cat_cards .cat_icon svg { width: 42px; height: 42px; color: #fff; }

.cat_cards .cat_name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--cc);
  margin-bottom: 10px;
}

.cat_cards .cat_text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text);
  margin-bottom: 16px;
}

.cat_cards .cat_btn {
  margin-top: auto;
  position: relative;
  display: block;
  width: 100%;
  max-width: 206px;
  padding: 6px 28px;
  border: 1px solid var(--cc);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cc);
  transition: background .2s, color .2s;
}
.cat_cards .cat_btn svg {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  color: var(--cc);
  transition: color .2s, right .2s;
}
.cat_cards li a:hover .cat_btn { background: var(--cc); color: #fff; }
.cat_cards li a:hover .cat_btn svg { color: #fff; right: 11px; }


/* 人気のカテゴリから探す */
.cat_popular { margin-top: 36px; }

.cat_popular_title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-text);
  margin-bottom: 20px;
}
.cat_popular_title .star { color: var(--c-yellow); font-size: 20px; }

.cat_pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}
.cat_pills li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 160px;
  height: 40px;
  padding: 0 20px;
  border-radius: 30px;
  background: var(--cc);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 14px -10px rgba(0,0,0,.35);
  transition: filter .2s, transform .2s;
}
.cat_pills li a:hover { filter: brightness(1.08); transform: translateY(-2px); }
.cat_pills li a svg { width: 18px; height: 18px; color: #fff; flex-shrink: 0; }

.cat_pills .cat_pills_all a {
  position: relative;
  min-width: 140px;
  background: #fff;
  color: var(--c-text);
  padding: 0 34px 0 20px;
}
.cat_pills .cat_pills_all a svg {
  position: absolute;
  right: 14px;
  width: 13px;
  height: 13px;
  color: var(--c-pink);
}


/* ==========================================================================
   おすすめクーポン(home.css を共用)のページ固有調整
   ========================================================================== */
.hs_cat_wrap #coupon { padding: 50px 0 10px; }


/* ==========================================================================
   レスポンシブ(タブレット) ※デザインはPC版のみ支給のため暫定調整
   ========================================================================== */

@media all and (max-width: 768px) {
  #cat_list { padding: 40px 0 36px; }
  .cat_cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}


/* ==========================================================================
   レスポンシブ(スマホ)
   ========================================================================== */
@media all and (max-width: 520px) {
  /* 文字と重なる小さな装飾はスマホでは省略 */

  #cat_list::before { top: -14px; height: 28px; }
  .cat_cards { gap: 10px; }
  .cat_cards li a { padding: 16px 8px 16px; }
  .cat_cards .cat_icon { width: 58px; height: 58px; margin-bottom: 8px; }
  .cat_cards .cat_icon svg { width: 30px; height: 30px; }
  .cat_cards .cat_name { font-size: 16px; margin-bottom: 6px; }
  .cat_cards .cat_text { font-size: 11.5px; line-height: 1.7; margin-bottom: 12px; }
  .cat_cards .cat_text br { display: none; }
  .cat_cards .cat_btn { font-size: 11px; padding: 6px 20px 6px 10px; }
  .cat_cards .cat_btn svg { right: 8px; width: 10px; height: 10px; }

  .cat_popular_title { font-size: 17px; gap: 10px; }
  .cat_pills { gap: 8px; }
  .cat_pills li { flex: 0 0 calc(50% - 4px); }
  .cat_pills li a { width: 100%; min-width: 0; height: 38px; padding: 0 10px; font-size: 12.5px; }
  .cat_pills .cat_pills_all a { padding: 0 28px 0 10px; }
}
