/* 公園検索（公園検索_1/_2/_3）っぽい雰囲気を“シンプルに”再現するCSS
   ※あとで色やサイズを調整しやすいように、変数っぽくまとめています。 */

:root{
  --blue:#2f6db3;
  --blue2:#1f4f86;
  --line:#d9d9d9;
  --soft:#f3f6fb;
  --text:#123;
  --muted:#6c7a89;
  --red:#d53a3a;
  --radius:14px;
}

*{
	box-sizing:border-box;
}
html,body{
	margin:0; padding:0; font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",sans-serif; color:var(--text); background:#fff;
}
a{
	color:inherit; text-decoration:none;
}
img{
	max-width:100%; display:block;
}

.topbar{
  background:linear-gradient(0deg,var(--blue2),var(--blue));
  color:#fff;
  position:sticky; top:0;
  z-index:10;
}
.topbar-inner{
  max-width:1100px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px;
  gap:10px;
}
.brand{
	display:flex; align-items:center; gap:10px; font-weight:700;
}
.brand-name{
	letter-spacing:.06em;
}
.brand-mark{
	font-size:20px;
}
.topbar-spacer{
	width:60px;
}

.backlink{
  display:flex; align-items:center; gap:8px;
  font-weight:600;
  padding:6px 10px;
  background:rgba(255,255,255,.14);
  border-radius:999px;
}
.back-ico{
	width:18px; height:18px;
}

.hero{
  height:220px;
  background:
    linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.35)),
    url("https://images.unsplash.com/photo-1520975693415-35a148eaf78a?auto=format&fit=crop&w=1600&q=60") center/cover no-repeat;
}
.hero-overlay{
  height:100%;
  display:flex; align-items:flex-end;
  max-width:1100px; margin:0 auto;
  padding:18px 14px;
}
.hero-sub{
  color:#fff;
  background:rgba(0,0,0,.35);
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:16px 14px 26px;
}

.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  margin:14px 0;
  box-shadow:0 1px 0 rgba(0,0,0,.03);
}
.panel-center{
	text-align:center;
}
/* ========================================================
  【エリアから探す】【遊具から探す】【設備から探す】
  セクションタイトルの文字サイズと下線の設定
  ・font-size → 文字の大きさ（例: 16px を 20px にすると大きくなる）
  ・font-weight: bold; を追加すると太字になる
  ・border-bottom → 見出し下の青い線の太さ（6px）と色（#e7edf7）
======================================================== */
.panel-title{
  margin:0 0 12px;
  font-size:16px;          /* ← セクションタイトルの文字サイズ */
  border-bottom:6px solid #e7edf7;
  padding-bottom:8px;
}
.panel-subtitle{
  margin:10px 0 10px;
  font-size:14px;
  color:var(--blue2);
}

/* ========================================================
  【エリアから探す】ボタンの列数・配置
  ・repeat(6, ...) → パソコンで6列並ぶ（数字を変えると列数が変わる）
  ・gap:10px → ボタン同士の間隔（大きくすると隙間が広がる）
  ＜スマホ・タブレット対応＞
  ・max-width: 900px → タブレット以下で3列に変わる
  ・max-width: 520px → スマホで3列（font-sizeで文字サイズも調整）
======================================================== */
.chip-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr)); /* ← パソコンの列数 */
  gap:8px;                                       /* ← ボタン間の余白 */
}
@media (max-width: 900px){
  .chip-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } /* ← タブレットの列数 */
}
@media (max-width: 520px){
  .chip-grid{ grid-template-columns:repeat(3,minmax(0,1fr)) !important; } /* ← スマホの列数 */
  .chip-grid .chip{
    font-size:16px !important;   /* ← --------------------------------------------------------スマホ時のエリアボタンの文字サイズ */
    padding:8px 2px !important; /* ←スマホ時のボタンの上下・左右の余白 */
    white-space:nowrap !important;
  }
}

/* ========================================================
  【全セクション共通】ボタンの基本スタイル
  ・border-radius:999px → 楕円形の丸み（小さくすると角が立つ）
  ・padding:10px 40px → ボタンの縦の余白 横の余白
    （上下を大きくするとボタンが縦に、左右を大きくすると横に広がる）
  ・font-size:14px → ボタン内の文字サイズ
  ・font-weight: bold; を追加すると文字が太字になる
======================================================== */
.chip{
  border:1px solid var(--line);
  background : none 0% 0% / auto auto repeat scroll padding-box border-box #ffffff;
  border-radius:999px;  /* ← 角の丸み */
  padding:10px 40px;    /* ← ボタンの縦余白 横余白 */
  font-size:14px;       /* ← ボタン内の文字サイズ */
  cursor:pointer;
  transition:.12s;
}
.chip.is-active{
  color:var(--red);
  border-color:rgba(213,58,58,.35);
  background:#fff7f7;
  font-weight:700;
}

.icon-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
}
@media (max-width: 900px){
  .icon-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.icon-chip{
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:10px;
  cursor:pointer;
  transition:.12s;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.icon-chip.is-active{
  border-color:rgba(213,58,58,.35);
  background:#fff7f7;
}
.icon-img{
  width:58px; height:58px;
  object-fit:contain;
}
.icon-label{
  font-size:13px;
}
.icon-chip.is-active .icon-label{
  color:var(--red);
  font-weight:700;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:0; cursor:pointer;
  border-radius:999px;
  padding:12px 18px;
  font-weight:700;
  letter-spacing:.12em;
}
.btn-ico{
	width:18px; height:18px;
}
.btn-primary{
	background:linear-gradient(0deg,#2a6fb8,#3d85d6); color:#fff;
}
.btn-secondary{
	background:linear-gradient(0deg,#2f8b6b,#35a57d); color:#fff; margin-left:10px;
}
.btn-mini{
	font-size:13px; padding:10px 14px; letter-spacing:.02em;
}

.note{
	margin:12px 0 0; font-size:12px; color:var(--muted); line-height:1.5;
}
.note-warn{
	margin:0; font-size:13px; color:#a02020; background:#fff4f4; border:1px solid rgba(213,58,58,.3); padding:10px 12px; border-radius:12px;
}

.footer{
  margin-top:18px;
  border-top:6px solid #e7edf7;
  background:linear-gradient(0deg,var(--blue2),var(--blue));
  color:#fff;
}
.footer-inner{
  max-width:1100px; margin:0 auto;
  padding:16px 14px 22px;
  display:flex; flex-wrap:wrap; gap:14px;
  align-items:center;
}
.footer-link{
	opacity:.92; font-size:13px;
}
.footer-link:hover{
	opacity:1; text-decoration:underline;
}
.copyright{
	width:100%; opacity:.9; font-size:12px; margin-top:8px;
}

.result-summary{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; flex-wrap:wrap; }
.result-count{
	font-weight:800; color:#b21616;
}
.badge{
	display:inline-block; background:var(--soft); border:1px solid #dfe8f7; border-radius:999px; padding:6px 10px; font-size:12px; color:var(--blue2); margin-right:8px;
}

.card-list{
	display:flex; flex-direction:column; gap:14px; margin-top:12px;
}
.park-card{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
}
@media (max-width: 900px){
  .park-card{ grid-template-columns:1fr; }
}
.park-thumb{
	display:block; background:#eee;
}
.park-thumb img{
	width:100%; height:180px; object-fit:cover;
}
.thumb-placeholder{
	height:180px; display:flex; align-items:center; justify-content:center; color:var(--muted); background:#f0f0f0;
}
.thumb-placeholder.big{
	height:340px; border-radius:0;
}

.park-info{
	padding:12px 12px 14px;
}
.park-name{
	font-size:18px; font-weight:900; color:var(--blue2);
}
.park-meta{
	margin-top:6px; font-size:13px; color:var(--muted); display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
.park-address{
	margin-top:8px; font-size:13px;
}
.tag-row{
	margin-top:10px; display:flex; gap:6px; flex-wrap:wrap;
}
.tag{
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid #dfe8f7;
  background:var(--soft);
  color:var(--blue2);
}
.mini-link{
  display:inline-flex; align-items:center; gap:6px;
  margin-top:10px;
  font-size:12px;
  color:var(--blue2);
}
.mini-ico{
	width:16px; height:16px;
}

.pager-hint{
  margin-top:16px;
  text-align:center;
  color:var(--muted);
}
.pager{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px;
  border-radius:999px;
  border:1px solid var(--line);
  margin:0 4px;
  font-size:12px;
}
.pager.is-active{
	background:var(--blue); border-color:var(--blue); color:#fff;
}
.pager.next{
	width:32px;
}

.detail-head{
	margin-bottom:12px;
}
.detail-area{
	color:var(--muted); font-size:13px;
}
.detail-title{
	margin:6px 0 6px; font-size:22px;
}
.detail-rating{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.stars{
	font-size:14px; letter-spacing:1px;
}
.meta-muted{
	color:var(--muted); font-size:12px;
}

.detail-main{
  display:grid;
  grid-template-columns: 1fr 180px;
  gap:12px;
  align-items:start;
}
@media (max-width: 900px){
  .detail-main{ grid-template-columns:1fr; }
}
.detail-photo img{
	width:100%; height:340px; object-fit:cover; border-radius:0; background:#eee;
}
.detail-thumbs{ display:flex; flex-direction:column; gap:10px; }
.thumb-btn{
	border:1px solid var(--line); background:#fff; padding:0; border-radius:0; overflow:hidden; cursor:pointer;
}
.thumb-btn img{
	width:100%; height:76px; object-fit:cover;
}

.detail-lines{
	margin-top:12px; border-top:1px solid var(--line); padding-top:12px;
}
.line{
	display:flex; gap:10px; padding:8px 0; align-items:flex-start;
}
.line-ico{
	width:22px;
}
.line-label{
	width:70px; color:var(--muted); font-size:13px;
}
.line-val{
	flex:1; font-size:13px;
}

.pill-sections{
	display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px;
}
@media (max-width: 900px){
  .pill-sections{ grid-template-columns:1fr; }
}
.pill-box{
	border:1px solid var(--line); border-radius:var(--radius); padding:12px; background:#fff;
}
.pill-title{
	margin:0 0 10px; font-size:14px; color:var(--blue2);
}
.pill-row{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.pill{
  display:inline-flex;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #dfe8f7;
  background:var(--soft);
  font-size:12px;
  color:var(--blue2);
}
.pill-ghost{
	background:#fff;
}
.other-tags{
	margin-top:10px; border-top:1px dashed var(--line); padding-top:10px;
}

.detail-actions{
	margin-top:14px; display:flex; gap:10px; flex-wrap:wrap;
}

.review-list{ display:flex; flex-direction:column; gap:12px; }
.review{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:12px;
  background:#fff;
}
.review-head{ display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; align-items:center; }
.review-name{
	font-weight:900;
}
.review-stars{
	font-size:13px;
}
.review-body{
	margin-top:8px; font-size:13px; line-height:1.6;
}

.review-form{
	margin-top:14px; border-top:1px solid var(--line); padding-top:14px;
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
@media (max-width: 900px){
  .form-grid{ grid-template-columns:1fr; }
}
label{
	font-size:12px; color:var(--muted); display:flex; flex-direction:column; gap:6px;
}
input,select,textarea{
  font-size:14px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  outline:none;
}
input:focus,select:focus,textarea:focus{
	border-color:#93b7e6; box-shadow:0 0 0 3px rgba(61,133,214,.15);
}


/* --- 追加：静的版で使う最小スタイル --- */
.actions{
	display:flex; gap:12px; flex-wrap:wrap; margin:14px 0 6px;
}
.cta{
  display:inline-flex; align-items:center; gap:10px;
  justify-content:center; text-align:center;
  border:none; cursor:pointer;
  background: var(--blue); color:#fff;
  padding:12px 16px; border-radius:12px;
  font-weight:700;
}
.cta.ghost{
	background:#fff; color:var(--blue2); border:1px solid var(--line);
}
.cta-icon{
	width:22px; height:22px; object-fit:contain;
}
.hicon{
	width:22px; height:22px; vertical-align:middle; margin-right:6px;
}

.backlink{
  display:inline-flex; align-items:center; gap:8px;
  color:#fff; text-decoration:none; font-weight:700;
}
.backlink img{
	width:18px; height:18px;
}

.result-meta{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.card-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:12px; margin-top:12px;
}
.park-card{
  display:block; text-decoration:none; color:inherit;
  border:1px solid var(--line); border-radius:14px; overflow:hidden;
  background:#fff;
}
.park-card img{
	width:100%; height:150px; object-fit:cover; display:block;
}
.park-card h3{
	margin:10px 10px 4px; font-size:16px;
}
.park-card p{
	margin:0 10px 12px; font-size:13px;
}
.park-card .meta{
	margin:10px 10px 0; font-size:12px; color:var(--muted);
}

.gallery{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:10px; margin-top:10px;
}
.gallery img{
	width:100%; height:110px; object-fit:cover; border-radius:0; border:1px solid var(--line);
}

.pager{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.pagebtn{
  display:inline-block; padding:6px 10px; border-radius:10px;
  border:1px solid var(--line); text-decoration:none; color:var(--text);
  background:#fff; font-size:13px;
}
.pagebtn.is-current{
	background:var(--blue); color:#fff; border-color:transparent;
}
.pagebtn.is-disabled{ opacity:.4; pointer-events:none; }
.dots{
	color:var(--muted); padding:0 4px;
}

.empty{
	color:var(--muted); padding:12px;
}

.review-item{
	border-top:1px solid var(--line); padding:10px 0;
}
.review-head{
	display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:12px;
}
.review-body{
	margin-top:6px; white-space:pre-wrap;
}

.hint{
	color:var(--muted); font-size:12px;
}


.result-actions{
	margin-top:8px;
}
.btn.small{
	padding:6px 10px; border-radius:10px; background:var(--soft); border:1px solid var(--line); font-size:13px; display:inline-block;
}

/* =========================================================
  互換レイヤー：このサイトのHTML（.result-grid/.card/.thumb等）を
  222デザインに寄せるための追加CSS
========================================================= */

/* index の検索ボタン2つを中央へ（PC：横/スマホ：縦） */
.actions{
  justify-content:center !important;
}
.actions .cta{
  width:auto !important;
  min-width:240px;
}
@media (max-width:520px){
  .actions{ flex-direction:column; align-items:stretch; }
  .actions .cta{
	width:100% !important; min-width:0;
}
}

/* 検索結果/管理一覧：グリッド（222っぽい間隔） */
.result-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:12px;
}
@media (min-width: 900px){
  .result-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}

/* カード：222の枠/角/影に寄せる */
.card{
  border:1px solid var(--line);
  border-radius:0;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
}

/* 一覧カードの画像：寸法を統一（横長にならない） */
.thumb{
  width:100% !important;
  height:auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit:cover !important;
  display:block !important;
}

/* カード本文の文字：222のトーンに寄せる */
.card-body{
	padding:12px 12px 14px;
}
.card-title{
	margin:0; font-size:18px; font-weight:900; color:var(--blue2);
}
.card-sub{
	margin:6px 0 0; font-size:13px; color:var(--muted); display:flex; align-items:center; gap:10px;
}

/* バッジ：222の.tagに寄せる（既存 .badge を上書き） */
.badges{
	display:flex; flex-wrap:wrap; gap:8px; margin-top:10px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(47,109,179,.10);
  border:1px solid rgba(47,109,179,.18);
  color: var(--blue2);
  font-size:12px;
  font-weight:800;
}

/* 詳細メイン画像：比率統一 */
.detail-image{
  width:100% !important;
  height:auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit:cover !important;
  display:block !important;
}

/* ギャラリー：2枚目以降も“同じ見た目”に統一（伸びない/角丸統一） */
.gallery{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin-top:10px !important;
}
.gallery > *{ flex:0 0 auto !important; }
.gallery-thumb{
  width:92px !important;
  height:72px !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:0 !important;
  border:1px solid var(--line) !important;
  background:#eee;
}

/* ===== 編集モーダル（222の雰囲気に合わせる） ===== */
.modal{
	position:fixed; inset:0; z-index:50;
}
.modal[hidden]{
	display:none;
}
.modal-bg{
	position:absolute; inset:0; background:rgba(0,0,0,.55);
}

.modal-card{
  position:relative;
  margin:6vh auto;
  max-width:560px;
  background:#fff;
  border-radius:var(--radius);
  border:1px solid var(--line);
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  padding:12px;
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:6px 6px 10px;
  border-bottom:1px solid var(--line);
  margin-bottom:10px;
}
.modal-title{
	font-weight:900; color:var(--blue2);
}
.modal-x{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  width:36px; height:36px;
  cursor:pointer;
  font-size:18px;
  font-weight:900;
  color:var(--blue2);
}
.modal-x:hover{
	box-shadow:0 0 0 3px rgba(61,133,214,.15);
}

/* 画像削除（×） */
.imgwrap{
	position:relative; display:inline-block;
}
.imgdel{
  position:absolute; top:6px; right:6px;
  width:28px; height:28px;
  border-radius:999px;
  border:0;
  background:rgba(0,0,0,.55);
  color:#fff;
  cursor:pointer;
  font-weight:900;
}
.imgdel:hover{
	background:rgba(0,0,0,.75);
}


/* 管理画面：大きさラジオ */
.radio-row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.radio-row .radio{ display:flex; gap:6px; align-items:center; }


/* ===== スマホ時だけ：ギャラリーのサムネイルサイズを強制（キャッシュ対策で末尾に置く） ===== */
@media (max-width: 520px){
  /* JSがclassを付けない場合もあるので両方指定 */
  #gallery img,
  .gallery-thumb{
    width:106px !important;
    height:72px !important;
  }
}


/* 現在地取得の注意表示（デザインは崩さないように最小限） */
.notice{
	margin:8px 0 0 0; font-size:12px; line-height:1.4; color:#ffffff; opacity:0.9;
}

/* 追加：遊具一覧・設備一覧の文字を太字にする */
#equipPills,
#facilityPills{
  font-weight: bold;
}


/* =========================================================
  【遊具から探す】【設備から探す】ボタンの列数・配置
  ・grid-template-columns: 1fr 1fr → 固定2列（「1fr 1fr 1fr」にすると3列になる）
  ・gap:10px → ボタン同士の間隔
========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* ← 列数（1fr の数が列数） */
  gap: 10px;                      /* ← ボタン間の余白 */
}

/* chip-cell：アイコン（枠外左）＋ボタンの横並びラッパー */
.chip-cell {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* ========================================================
  【遊具から探す】【設備から探す】ボタン左のアイコンサイズ（パソコン）
  ・width / height → アイコンの横幅・縦幅
    （数字を大きくするとアイコンが大きくなる）
======================================================== */
.chip-icon {
  width: 30px !important;  /* ← アイコンの横幅 */
  height: 30px !important; /* ← アイコンの縦幅 */
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* ========================================================
  【遊具から探す】【設備から探す】ボタンのサイズ・文字（パソコン）
  ・padding:14px 4px → ボタンの縦余白 横余白
    （14px を大きくするとボタンが縦に広がる）
  ・font-size:13px → ボタン内の文字サイズ
  ・font-weight: bold; を追加すると文字が太字になる
======================================================== */
.chip-cell .chip {
  flex: 1 !important;
  min-width: 0 !important;
  padding: 14px 4px !important;  /* ← ボタンの縦余白 横余白 */
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
  box-sizing: border-box !important;
  font-size: 13px !important;    /* ← ボタン内の文字サイズ */
}

/* ========================================================
  【遊具から探す】【設備から探す】スマホ時のアイコン・ボタン設定
  ・width / height → スマホ時のアイコンサイズ
  ・font-size → スマホ時のボタン内文字サイズ
  ・padding → スマホ時のボタンの縦余白 横余白
======================================================== */
@media (max-width: 520px) {
  .chip-icon {
    width: 24px !important;  /* ← スマホ時のアイコン横幅 */
    height: 24px !important; /* ← スマホ時のアイコン縦幅 */
  }
  .chip-cell {
    gap: 4px !important;     /* ← アイコンとボタンの間隔 */
  }
  .chip-cell .chip {
    font-size: 15px !important;  /* ←----------------------------------------------------- スマホ時のボタン文字サイズ */
    padding: 8px 2px !important; /* ← スマホ時のボタンの縦余白 横余白 */
  }
}

/* エリアから探す：元のスタイルを維持（変更なし） */

/* ===== ピル：アイコンを枠の外に出すラッパー ===== */
.pill-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
}
.pill-outer-icon {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
  margin-right: 6px !important;
}
