@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* ==========================================
   カテゴリー画像スライダー
========================================== */

.category-scroll {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 16px;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.category-scroll a {
  display: inline-block;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.category-scroll img {
  width: 260px;
  height: auto;
  border-radius: 16px;
}

@media screen and (max-width: 600px) {
  .category-scroll img {
    width: 88vw;
    max-width: 380px;
  }
}

/* ==========================================
   おすすめ記事カード
========================================== */

.miiiko-featured-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
}

.miiiko-featured-card a {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.miiiko-featured-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.miiiko-featured-card img {
  width: 100%;
  height: auto;
  display: block;
}

.miiiko-featured-title {
  display: block;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

@media screen and (max-width: 600px) {
  .miiiko-featured-title {
    font-size: 14px;
  }
}

