@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){
  /*必要ならばここにコードを書く*/
}
<style>
/* ▼▼▼ ここからデザインの定義（CSS） ▼▼▼ */
.subcat-nav-container {
    background-color: #f8f9fa; /* 背景色（薄いグレー） */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5em 1em;
    margin-bottom: 2.5em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.subcat-nav-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.2em;
}

.subcat-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* スマホでは2列表示 */
    gap: 12px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* PCやタブレット（画面幅768px以上）では3列表示にする */
@media (min-width: 768px) {
    .subcat-nav-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.subcat-nav-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.subcat-nav-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #333333;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    padding: 12px 8px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.3;
}

/* マウスカーソルを乗せた時の動き（ホバーエフェクト） */
.subcat-nav-list a:hover {
    background-color: #3498db; /* ホバー時の背景色（ブルー） */
    color: #ffffff; /* ホバー時の文字色（白） */
    border-color: #3498db;
    transform: translateY(-2px); /* 少し上に浮くアニメーション */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* ▲▲▲ ここまでデザインの定義（CSS） ▲▲▲ */