「お好み焼き・もんじゃ」の版間の差分
提供: 川西図鑑
その他の操作
編集の要約なし |
編集の要約なし |
||
| 3行目: | 3行目: | ||
<a href="/">ホーム</a> | <a href="/">ホーム</a> | ||
› <a href="/wiki/飲食店検索">飲食店検索</a> | › <a href="/wiki/飲食店検索">飲食店検索</a> | ||
<span id='navText'></span> | <span id='navText'> › お好み焼き・もんじゃ</span> | ||
</nav> | </nav> | ||
<style> | <style> | ||
.breadcrumb { | .breadcrumb { | ||
font-size: 14px; | |||
color: #555; | |||
margin-bottom: 12px; | |||
} | } | ||
.breadcrumb a { | .breadcrumb a { | ||
color: #3366cc; | |||
text-decoration: none; | |||
} | } | ||
.breadcrumb span { | .breadcrumb span { | ||
color: #333; | |||
font-weight: bold; | |||
} | } | ||
.search-intro p { | .search-intro p { | ||
margin: 4px 0; | |||
} | } | ||
/* --- 検索説明文(ライトテーマ) --- */ | /* --- 検索説明文(ライトテーマ) --- */ | ||
html.skin-theme-clientpref-day .search-intro { | html.skin-theme-clientpref-day .search-intro { | ||
background: #f7f9fc; | |||
padding: 12px 16px; | |||
border-radius: 8px; | |||
margin-bottom: 20px; | |||
font-size: 0.95rem; | |||
line-height: 1.6; | |||
} | } | ||
/* --- 検索説明文(ダークテーマ) --- */ | /* --- 検索説明文(ダークテーマ) --- */ | ||
html.skin-theme-clientpref-night .search-intro { | html.skin-theme-clientpref-night .search-intro { | ||
background: #1f2430; | |||
color: #e5e7eb; | |||
padding: 12px 16px; | |||
border-radius: 8px; | |||
margin-bottom: 20px; | |||
font-size: 0.95rem; | |||
line-height: 1.6; | |||
} | } | ||
</style> | </style> | ||
</html> | </html> | ||
| 189行目: | 189行目: | ||
<style> | <style> | ||
.clear-btn { | .clear-btn { | ||
margin-left: auto; | |||
padding: 8px 16px; | |||
background: #ccc; | |||
border-radius: 6px; | |||
cursor: pointer; | |||
user-select: none; | |||
font-size: 14px; | |||
color: black; | |||
} | } | ||
.clear-btn:active { | .clear-btn:active { | ||
opacity: 0.7; | |||
} | } | ||
.search-btn { | .search-btn { | ||
margin-left: 10px; | |||
display: block; | |||
width: 75px; | |||
padding: 14px 0; | |||
background: #0078ff; | |||
color: #fff; | |||
font-size: 18px; | |||
font-weight: 600; | |||
text-align: center; | |||
border: none; | |||
border-radius: 8px; | |||
cursor: pointer; | |||
transition: all 0.25s ease; | |||
} | } | ||
#searchText, | #searchText, | ||
#searchForm select{ | #searchForm select{ | ||
height: 35px; | |||
font-size: 1em; | |||
background-color: Canvas; | |||
color: CanvasText; | |||
} | } | ||
.inputbox { | .inputbox { | ||
width: 100%; | |||
max-width: 450px; | |||
} | } | ||
#searchForm input[type="radio"], | #searchForm input[type="radio"], | ||
#searchForm input[type="checkbox"] { | #searchForm input[type="checkbox"] { | ||
transform: scale(1.5); | |||
transform-origin: left center; | |||
margin-right: 15px; | |||
} | } | ||
#searchForm fieldset label { | #searchForm fieldset label { | ||
display: flex; | |||
align-items: center; | |||
width: 50%; | |||
box-sizing: border-box; | |||
margin-bottom: 8px; | |||
} | } | ||
#searchForm fieldset { | #searchForm fieldset { | ||
display: flex; | |||
flex-wrap: wrap; | |||
} | } | ||
.search-form { | .search-form { | ||
max-width: 700px; | |||
margin: 1em auto; | |||
font-size: 14px; | |||
} | } | ||
.form-row { | .form-row { | ||
display: flex; | |||
align-items: center; | |||
margin: 0.5em 0; | |||
gap: 1em; | |||
} | } | ||
/* トグルスイッチ */ | /* トグルスイッチ */ | ||
.toggle { | .toggle { | ||
position: relative; | |||
width: 40px; | |||
height: 22px; | |||
display: inline-block; | |||
} | } | ||
.toggle input { | .toggle input { | ||
display: none; | |||
} | } | ||
.slider { | .slider { | ||
position: absolute; | |||
cursor: pointer; | |||
inset: 0; | |||
background: #ccc; | |||
border-radius: 22px; | |||
} | } | ||
.slider::before { | .slider::before { | ||
content: ""; | |||
position: absolute; | |||
height: 18px; | |||
width: 18px; | |||
left: 2px; | |||
top: 2px; | |||
background: white; | |||
border-radius: 50%; | |||
transition: .3s; | |||
} | } | ||
.toggle input:checked+.slider { | .toggle input:checked+.slider { | ||
background: #4caf50; | |||
} | } | ||
.toggle input:checked+.slider::before { | .toggle input:checked+.slider::before { | ||
transform: translateX(18px); | |||
} | } | ||
/* アコーディオン */ | /* アコーディオン */ | ||
html.skin-theme-clientpref-day .accordion { | html.skin-theme-clientpref-day .accordion { | ||
margin-top: 1em; | |||
border: 1px solid #ccc; | |||
padding: 1em; | |||
border-radius: 6px; | |||
background-color: #f7f9fc; | |||
} | } | ||
html.skin-theme-clientpref-night .accordion { | html.skin-theme-clientpref-night .accordion { | ||
margin-top: 1em; | |||
border: 1px solid #ccc; | |||
padding: 1em; | |||
border-radius: 6px; | |||
background: #1f2430; | |||
color: #e5e7eb; | |||
} | } | ||
.accordion summary { | .accordion summary { | ||
cursor: pointer; | |||
font-weight: bold; | |||
} | } | ||
fieldset { | fieldset { | ||
border: none; | |||
margin: 1em 0; | |||
} | } | ||
legend { | legend { | ||
font-weight: bold; | |||
} | } | ||
.search-card { | .search-card { | ||
border: 1px solid #ddd; | |||
border-radius: 8px; | |||
padding: 10px; | |||
margin-bottom: 12px; | |||
max-width: 600px; | |||
transition: box-shadow 0.2s; | |||
max-height: 332px; | |||
} | } | ||
.search-card:hover { | .search-card:hover { | ||
box-shadow: 0 2px 8px rgba(0,0,0,0.2); | |||
} | } | ||
.card-header { | .card-header { | ||
margin-bottom: 5px; | |||
} | } | ||
.card-title { | .card-title { | ||
margin: 0; | |||
} | } | ||
.card-genre { | .card-genre { | ||
margin: 0; | |||
font-size: calc(1em - 3px); | |||
} | } | ||
.img-crop { | .img-crop { | ||
height: 200px; | |||
overflow-x: auto; | |||
overflow-y: hidden; | |||
white-space: nowrap; | |||
} | } | ||
.img-crop p, | .img-crop p, | ||
.img-crop > div { | .img-crop > div { | ||
height: 100%; | |||
margin: 0; | |||
display: flex; | |||
flex-direction: row; | |||
width: max-content; | |||
} | } | ||
.crop-img img { | .crop-img img { | ||
width: 200px; | |||
height: 200px; | |||
object-fit: cover; | |||
border-radius: 4px; | |||
display: inline-block; | |||
margin-right: 2px; | |||
} | } | ||
.card-info { | .card-info { | ||
margin-top: 10px; | |||
} | } | ||
.card-cost, .card-address { | .card-cost, .card-address { | ||
margin: 0; | |||
font-size: calc(1em - 3px); | |||
} | } | ||
</style> | </style> | ||
<script> | <script> | ||
| 411行目: | 411行目: | ||
document.addEventListener('DOMContentLoaded', function () { | document.addEventListener('DOMContentLoaded', function () { | ||
// タイトル生成 | |||
let title = "川西市でおすすめのおいしいお好み焼き・もんじゃをご紹介! | 川西図鑑"; | |||
// タイトル更新 | |||
document.title = title; | |||
var count = document.getElementById("count"); | var count = document.getElementById("count"); | ||
count = count.dataset.total.toString(); | count = count.dataset.total.toString(); | ||
if (category) { | if (category) { | ||
| 494行目: | 431行目: | ||
count = ""; | count = ""; | ||
} | } | ||
// description生成 | // description生成 | ||
let desc = ` | let desc = `「川西図鑑」では、兵庫県川西市で人気のお好み焼き・もんじゃのお店を ${count}掲載中。営業時間、アクセス、写真、地図などの詳細情報をまとめています。ランチやディナー、テイクアウトなど条件で絞り込みができ、地元でおすすめのお店が見つかります。`; | ||
let meta = document.querySelector("meta[name='description']"); | let meta = document.querySelector("meta[name='description']"); | ||
| 667行目: | 531行目: | ||
|fields=COUNT(*) | |fields=COUNT(*) | ||
|where=( | |where=( | ||
飲食店情報.ジャンル LIKE CONCAT('%お好み焼き・もんじゃ%') | 飲食店情報.ジャンル LIKE CONCAT('%お好み焼き・もんじゃ%') | ||
) | ) | ||
}} | }} | ||
| 709行目: | 554行目: | ||
|fields=飲食店情報._pageName,飲食店情報.店名,飲食店情報.画像,飲食店情報.ジャンル,飲食店情報.郵便番号,飲食店情報.住所,飲食店情報.最寄り,飲食店情報.営業時間月,飲食店情報.定休日,飲食店情報.電話番号,飲食店情報.予算昼下限,飲食店情報.予算昼上限,飲食店情報.予算夜下限,飲食店情報.予算夜上限,飲食店情報.ストリートビューURL,飲食店情報.座標 | |fields=飲食店情報._pageName,飲食店情報.店名,飲食店情報.画像,飲食店情報.ジャンル,飲食店情報.郵便番号,飲食店情報.住所,飲食店情報.最寄り,飲食店情報.営業時間月,飲食店情報.定休日,飲食店情報.電話番号,飲食店情報.予算昼下限,飲食店情報.予算昼上限,飲食店情報.予算夜下限,飲食店情報.予算夜上限,飲食店情報.ストリートビューURL,飲食店情報.座標 | ||
|where=( | |where=( | ||
飲食店情報.ジャンル LIKE CONCAT('%お好み焼き・もんじゃ%') | 飲食店情報.ジャンル LIKE CONCAT('%お好み焼き・もんじゃ%') | ||
) | ) | ||
|format=template | |format=template | ||
| 835行目: | 661行目: | ||
border-color: #f9fafb; | border-color: #f9fafb; | ||
} | } | ||
</style> | </style> | ||
</html> | </html> | ||
__目次非表示__ | __目次非表示__ | ||