/*
Theme Name: 宝塚市総合ガイド
Theme URI: https://example.com/
Description: 宝塚市の店舗・教室・企業を紹介する検索型データベースサイト用テーマ。親テーマ不要の独立テーマです。プラグイン「宝塚市総合ガイド ― 店舗データベース」と一緒に使ってください。
Author: Takarazuka Guide
Version: 1.2.1
Text Domain: takarazuka-guide
*/

/* ============ カラー変数（ここを変えると全体の色が変わります） ============ */
:root{
  --bg:        #f7f6f3;
  --surface:   #ffffff;
  --text:      #1f2328;
  --muted:     #6b7280;
  --border:    #e5e3dd;
  --accent:    #c0392b;   /* 宝塚らしい赤系。好みで変更可 */
  --accent-2:  #8e44ad;
  --chip:      #f0eee8;
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --radius:    14px;
  --maxw:      1080px;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#15171a; --surface:#1e2126; --text:#e7e9ec; --muted:#9aa1a9;
    --border:#2b2f36; --chip:#262a30; --shadow:0 1px 3px rgba(0,0,0,.4);
  }
}

*{box-sizing:border-box}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Noto Sans JP","Yu Gothic UI",sans-serif;
  line-height:1.7; -webkit-font-smoothing:antialiased;
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; height:auto; display:block}
.container{max-width:var(--maxw); margin:0 auto; padding:0 16px}

/* ============ ヘッダー ============ */
.site-header{
  background:var(--surface); border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:50;
}
.site-header .container{display:flex; align-items:center; gap:16px; padding-top:14px; padding-bottom:14px; flex-wrap:wrap}
.site-title{font-size:1.25rem; font-weight:800; color:var(--text); white-space:nowrap}
.site-title a{color:inherit}
.site-title small{display:block; font-size:.7rem; font-weight:500; color:var(--muted)}
.header-search{margin-left:auto; display:flex; gap:6px}
.header-search input[type=search]{
  border:1px solid var(--border); background:var(--bg); color:var(--text);
  border-radius:999px; padding:8px 14px; min-width:180px;
}
.header-search button{
  border:0; background:var(--accent); color:#fff; border-radius:999px;
  padding:8px 16px; cursor:pointer; font-weight:700;
}

/* ============ ヒーロー / 見出し ============ */
.page-hero{padding:28px 0 8px}
.page-hero h1{margin:0 0 6px; font-size:1.7rem}
.page-hero p{margin:0; color:var(--muted)}
.breadcrumb{font-size:.85rem; color:var(--muted); padding:16px 0 0}
.breadcrumb a{color:var(--muted)}

/* ============ ハブ（駅で探す/業態で探す） ============ */
.hub-section{margin:26px 0}
.hub-section h2{font-size:1.1rem; margin:0 0 12px; display:flex; align-items:center; gap:8px}
.hub-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px}
.hub-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:18px 16px; text-align:center; color:var(--text); font-weight:700;
  box-shadow:var(--shadow); transition:transform .12s ease;
}
.hub-card:hover{transform:translateY(-2px); text-decoration:none}
.hub-card .count{display:block; font-size:.78rem; color:var(--muted); font-weight:500; margin-top:4px}

/* ============ レイアウト（絞り込み＋一覧） ============ */
.layout{display:grid; grid-template-columns:240px 1fr; gap:24px; margin:24px 0 48px; align-items:start}
@media (max-width:820px){ .layout{grid-template-columns:1fr} }

/* ---- 絞り込みフォーム ---- */
.filter{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:16px; box-shadow:var(--shadow); position:sticky; top:80px;
}
.filter h3{margin:0 0 6px; font-size:.8rem; letter-spacing:.04em; color:var(--muted); text-transform:uppercase}
.filter fieldset{border:0; padding:0; margin:0 0 18px}
.filter label{display:flex; align-items:center; gap:8px; padding:4px 0; cursor:pointer; font-size:.95rem}
.filter select,.filter input[type=search]{
  width:100%; border:1px solid var(--border); background:var(--bg); color:var(--text);
  border-radius:8px; padding:8px 10px;
}
.filter .btn-row{display:flex; gap:8px}
.filter button{
  flex:1; border:0; background:var(--accent); color:#fff; border-radius:8px;
  padding:10px; cursor:pointer; font-weight:700;
}
.filter .clear{background:var(--chip); color:var(--text); text-align:center; line-height:1; padding:10px}
@media (max-width:820px){ .filter{position:static} }

/* ---- 一覧 ---- */
.result-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:14px; flex-wrap:wrap; gap:8px}
.result-head .count{color:var(--muted); font-size:.9rem}
.card-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:18px}

/* ---- 店舗カード ---- */
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column;
  transition:transform .12s ease;
}
.card:hover{transform:translateY(-3px)}
.card a.card-link{color:inherit}
.card .thumb{aspect-ratio:4/3; background:var(--chip); overflow:hidden}
.card .thumb img{width:100%; height:100%; object-fit:cover}
.card .thumb.noimg{display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:2rem}
.card .body{padding:14px 16px 16px}
.card .chips{display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px}
.chip{
  font-size:.72rem; background:var(--chip); color:var(--muted);
  border-radius:999px; padding:3px 10px; white-space:nowrap;
}
.chip.station{background:color-mix(in srgb, var(--accent) 14%, transparent); color:var(--accent)}
.card h3{margin:0 0 6px; font-size:1.05rem; line-height:1.4}
.card h3 a{color:var(--text)}
.card .summary{margin:0 0 10px; color:var(--muted); font-size:.9rem;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.card .body{padding:14px 16px 16px; display:flex; flex-direction:column; flex:1}
.card .actions{display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; padding-top:10px; border-top:1px solid var(--border)}
.card .actions a{display:inline-flex; align-items:center; gap:4px; font-size:.78rem; font-weight:700;
  border:1px solid var(--border); border-radius:999px; padding:5px 11px; color:var(--text); background:var(--bg); white-space:nowrap}
.card .actions a:hover{border-color:var(--accent); color:var(--accent); text-decoration:none}
.card .actions a.tel{background:color-mix(in srgb, var(--accent) 10%, transparent); border-color:transparent; color:var(--accent)}
.badge-featured{
  display:inline-block; background:var(--accent-2); color:#fff; font-size:.68rem;
  padding:2px 8px; border-radius:999px; margin-left:6px; vertical-align:middle;
}

/* ============ 詳細ページ ============ */
.single-shop{margin:24px 0 56px}
.single-shop .hero-img{border-radius:var(--radius); overflow:hidden; margin-bottom:20px; box-shadow:var(--shadow); background:var(--chip)}
.single-shop .hero-img img{width:100%; max-height:420px; object-fit:cover}
.shop-title{font-size:1.8rem; margin:0 0 4px}
.shop-kana{color:var(--muted); font-size:.9rem; margin:0 0 12px}
.single-layout{display:grid; grid-template-columns:1fr 320px; gap:28px; align-items:start}
@media (max-width:820px){ .single-layout{grid-template-columns:1fr} }
.shop-body{font-size:1rem}
.shop-gallery{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0}
.shop-gallery img{border-radius:10px}
.info-box{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:18px 20px; box-shadow:var(--shadow); position:sticky; top:80px;
}
.info-box dl{margin:0; display:grid; grid-template-columns:auto 1fr; gap:10px 14px; font-size:.92rem}
.info-box dt{color:var(--muted); white-space:nowrap}
.info-box dd{margin:0}
.info-box .sns{display:flex; gap:10px; margin-top:14px; flex-wrap:wrap}
.info-box .sns a{
  border:1px solid var(--border); border-radius:8px; padding:6px 12px; font-size:.85rem;
  color:var(--text);
}
.map-embed{margin-top:14px; border-radius:10px; overflow:hidden; aspect-ratio:16/10}
.map-embed iframe{width:100%; height:100%; border:0}

/* ============ ページ送り・空状態・フッター ============ */
.pagination{display:flex; gap:8px; justify-content:center; margin:32px 0; flex-wrap:wrap}
.pagination .page-numbers{
  border:1px solid var(--border); background:var(--surface); border-radius:8px;
  padding:8px 14px; color:var(--text);
}
.pagination .current{background:var(--accent); color:#fff; border-color:var(--accent)}
.empty{background:var(--surface); border:1px dashed var(--border); border-radius:var(--radius);
  padding:40px; text-align:center; color:var(--muted)}
.site-footer{border-top:1px solid var(--border); background:var(--surface); padding:28px 0; margin-top:40px; color:var(--muted); font-size:.9rem}
.site-footer .container{display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px}
