@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){
  /*必要ならばここにコードを書く*/
}





.catelist-section {
  margin-bottom: 60px;
}

.catelist-entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.catelist-section h2.page-title {
  font-size: 1.4em;
  margin-bottom: 1em;
  border-left: 4px solid #ff008c;
  padding-left: 8px;
}

.catelist-more .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ff008c;
  color: #fff;
  border-radius: 25px;
  transition: 0.3s;
}

.catelist-more .btn:hover {
  background: #e6007e;
}

/* 全国都道府県リスト */
.prefecture-list {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
}
.prefecture-list h2,
.child-area-list h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}
.prefecture-list ul,
.child-area-list ul {
    list-style: none;
    padding: 0;
    display: grid; /* グリッド表示 */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* 120px以上で自動調整 */
    gap: 10px; /* アイテム間の隙間 */
}
.prefecture-list li,
.child-area-list li {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    text-align: center;
}
.prefecture-list li a,
.child-area-list li a {
    display: block;
    padding: 10px 5px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}
.prefecture-list li a:hover,
.child-area-list li a:hover {
    background-color: #ff008c;
    color: #fff;
}

/* 店舗リスト (詳細表示用) */
.shop-list-details { /* クラス名を変更 */
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
}
.shop-list-details h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}
.shop-list-details ul {
    list-style: none;
    padding: 0;
}
.shop-list-details li {
    margin-bottom: 20px; /* 各店舗間の余白 */
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e0e0; /* 区切り線 */
}
.shop-list-details li:last-child {
    border-bottom: none;
}
.shop-item h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
}
.shop-item h3 a {
    color: #007bff;
    text-decoration: none;
}
.shop-item h3 a:hover {
    text-decoration: underline;
}
.shop-item p {
    margin-bottom: 5px;
    line-height: 1.5;
}
.shop-item p strong {
    min-width: 80px; /* ラベルの幅を揃える */
    display: inline-block;
}
.shop-item .map-link a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #4285f4; /* Googleマップの青色 */
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 10px;
    transition: background-color 0.3s;
}
.shop-item .map-link a:hover {
    background-color: #357ae8;
}

/* 都道府県への戻るリンク */
p.back-to-prefecture {
    margin-top: 20px;
    font-size: 0.9em;
}
p.back-to-prefecture a {
    color: #007bff;
    text-decoration: none;
}
p.back-to-prefecture a:hover {
    text-decoration: underline;
}

/* ←全国の店舗一覧に戻る リンク */
p.back-to-all-shops {
    margin-top: 10px; /* 上のヘッダーとの余白 */
    margin-bottom: 20px; /* 下の要素との余白 */
    font-size: 0.95em;
}
p.back-to-all-shops a {
    color: #007bff; /* 通常時の色 */
    text-decoration: none;
    transition: color 0.3s ease-in-out; /* ホバー時のアニメーション */
}
p.back-to-all-shops a:hover {
    text-decoration: underline;
}