/**
Theme Name: astra child
Template: astra
*/

/* =========================================================
   共通：ACF 情報ブロック（親猫・子猫）
========================================================= */
.cat-info{
  background:#fff;
  border:2px solid rgba(0,0,0,.06);
  border-radius:16px;
  padding:18px;
  margin:18px 0 28px;
}
.cat-info__row{
  display:flex;
  align-items:center;
  gap:.6em;
  padding:10px 0;
  border-bottom:1px dashed rgba(0,0,0,.08);
}
.cat-info__row:last-child{border-bottom:none;}
.cat-info__label{
  min-width:6em;
  font-weight:700;
  white-space:nowrap;
  flex:0 0 auto;
}
.cat-info__value{
  flex:1;
  min-width:0;
}
@media(max-width:480px){
  .cat-info__label{min-width:5.5em;}
}

/* =========================================================
   一覧グリッド（親猫・子猫 共通）
========================================================= */
.cat-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}
@media(max-width:900px){
  .cat-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:600px){
  .cat-grid{grid-template-columns:1fr;}
}

/* =========================================================
   カード共通（サイズ統一・hover含む）
========================================================= */
.cat-card{
  display:flex;
  flex-direction:column;
  height:100%;
  background:#fff;
  border-radius:18px;
  border:2px solid rgba(0,0,0,.06);
  overflow:hidden;

  box-shadow:0 6px 18px rgba(0,0,0,.08);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}
.cat-card:hover{
  transform:translateY(-6px);
  border-color:rgba(255,140,0,.6);
  box-shadow:
    0 14px 36px rgba(255,140,0,.35),
    0 4px 12px rgba(0,0,0,.12);
}

/* リンク */
.cat-card__link{
  display:flex;
  flex-direction:column;
  height:100%;
  padding:14px;
  color:inherit;
  text-decoration:none;
  position:relative;
}

/* 画像 */
.cat-card__thumb{
  width:100%;
  aspect-ratio:4 / 3;
  overflow:hidden;
  border-radius:14px;
  background:#f5f5f5;
}
.cat-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .3s ease;
}
.cat-card:hover .cat-card__thumb img{
  transform:scale(1.08);
}

/* タイトル（2行固定） */
.cat-card__title{
  margin:12px 0 6px;
  font-size:18px;
  line-height:1.3;

  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  min-height:calc(1.3em * 2);
}
.cat-card:hover .cat-card__title{
  color:#ff8c00;
}

/* メタ（高さ統一の要） */
.cat-card__meta{
  font-size:14px;
  line-height:1.6;
  opacity:.9;
  min-height:calc(1.6em * 4);
}

/* 成約済みカードは hover 抑制 */
.cat-card.is-sold:hover{
  transform:none;
  border-color:rgba(0,0,0,.06);
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}
.cat-card.is-sold:hover .cat-card__thumb img{
  transform:none;
}

/* =========================================================
   成約済みバッジ（一覧カード）
========================================================= */
.cat-badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:10;

  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:10px 16px 10px 20px;
  font-size:16px;
  font-weight:900;
  line-height:1;

  background:#fff6eb;
  border:2px solid #ff8c00;
  color:#d35400;
  border-radius:999px;

  box-shadow:0 6px 16px rgba(0,0,0,.12);
}
.cat-badge::before{
  content:"";
  width:20px;
  height:20px;
  background:url("https://catbreeder-peko.com/wp-content/uploads/2025/12/paw-btn.png")
    no-repeat center/18px 18px;
  background-color:#ffe0bf;
  border-radius:8px;
}

/* =========================================================
   親猫詳細
========================================================= */
.parent-thumb img{
  width:100%;
  height:auto;
  border-radius:18px;
  margin:20px 0;
}
.parent-title{
  font-size:28px;
  margin-bottom:10px;
}
.parent-content{
  margin-top:30px;
}

/* =========================================================
   成約済みお知らせ（詳細ページ）
========================================================= */
.sold-notice{
  margin:18px 0 22px;
}
.sold-notice__inner{
  display:flex;
  gap:14px;
  align-items:center;
  padding:16px 18px;

  background:#fff6eb;
  border:2px solid #ff8c00;
  border-radius:18px;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.sold-notice__icon{
  width:44px;
  height:44px;
  background:url("https://catbreeder-peko.com/wp-content/uploads/2025/12/paw-btn.png")
    no-repeat center/28px 28px;
  background-color:#ffe0bf;
  border-radius:14px;
}
.sold-notice__title{
  margin:0;
  font-weight:800;
  line-height:1.5;
  color:#d35400;
}
.sold-notice__desc{
  margin:4px 0 0;
  font-size:15px;
  line-height:1.6;
  color:#7a3b00;
}

/* =========================================================
   猫種アンカー（一覧ページ）
========================================================= */
.breed-nav{
  margin:30px 0 50px;
  text-align:center;
}
.breed-nav__list{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px 18px;
  list-style:none;
  padding:0;
  margin:0;
}
.breed-nav__link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  border-radius:999px;
  border:2px solid rgba(255,140,0,.45);
  background:#fff6eb;
  color:#d35400;
  font-weight:800;
  text-decoration:none;
  transition:transform .2s ease, background .2s ease;
}
.breed-nav__link:hover{
  background:#ffe0bf;
  transform:translateY(-2px);
}
.breed-count{
  font-size:12px;
  opacity:.75;
}

/* =========================================================
   猫種セクション見出し
========================================================= */
.breed-section{
  margin:60px 0 80px;
}
.breed-title{
  font-size:26px;
  margin:0 0 24px;
  padding-left:12px;
  border-left:6px solid #ff8c00;
}

/* =========================================================
   トップ差し込み子猫カード：下線除去
========================================================= */
.top-kittens .cat-card__link,
.top-kittens .cat-card__link *{
  text-decoration:none !important;
}