「メインページ」の版間の差分
提供: 川西図鑑
その他の操作
編集の要約なし タグ: 差し戻し済み |
タグ: 取り消し 差し戻し済み |
||
| 166行目: | 166行目: | ||
</div> | </div> | ||
<style> | <style> | ||
.kawanishi-top { | .kawanishi-top { | ||
max-width: 1100px; | max-width: 1100px; | ||
margin: calc(-1 * (var(--space-md) + var(--space-xl))) auto 0; | margin: calc(-1 * (var(--space-md) + var(--space-xl))) auto 0; | ||
padding: 0px 16px | padding: 0px 16px 24px; | ||
font-family: inherit; | font-family: inherit; | ||
} | |||
/* ---------- Hero ---------- */ | |||
/* ========================= | |||
Hero 背景切り替え | |||
========================= */ | |||
/* デフォルト(ライト想定) */ | |||
.kawanishi-top { | |||
--hero-bg-image: url('/images/thumb/1/1b/2704135_l.jpg/2560px-2704135_l.jpg'); | --hero-bg-image: url('/images/thumb/1/1b/2704135_l.jpg/2560px-2704135_l.jpg'); | ||
} | } | ||
/* | /* 強制ダークモード */ | ||
.skin-theme-clientpref-night .kawanishi-top { | |||
--hero-bg-image: url('/images/8/8a/3704109_m.jpg'); | |||
. | |||
} | } | ||
.hero-bg { | /* 実際に背景画像を適用する要素 */ | ||
.kawanishi-top .hero-bg { | |||
background-image: var(--hero-bg-image); | |||
position: absolute; | position: absolute; | ||
inset: 0; | inset: 0; | ||
background-size: cover; | background-size: cover; | ||
background-position: center; | background-position: center; | ||
| 203行目: | 199行目: | ||
} | } | ||
.hero | .hero { | ||
text-align: center; | |||
padding: 72px 16px 64px; | |||
position: relative; | position: relative; | ||
min-height: 72vh; | |||
display: flex; | |||
align-items: center; | |||
overflow: hidden; | |||
color: #fff; | |||
width: 100vw; | |||
margin-left: calc(50% - 50vw); | |||
margin-right: calc(50% - 50vw); | |||
} | } | ||
| 231行目: | 223行目: | ||
sans-serif; | sans-serif; | ||
font-weight: 700; | font-weight: 700; | ||
letter-spacing: 0.12em; | letter-spacing: 0.12em; | ||
font-size: 56px; | |||
margin-bottom: 50px; | |||
} | } | ||
.hero- | /* 文字レイヤー */ | ||
.kawanishi-top .hero-inner { | |||
position: relative; | |||
z-index: 1; | |||
max-width: 960px; | |||
padding: | padding: 48px 24px; | ||
margin: 0 auto; | |||
text-align: center; | |||
} | |||
.hero .catch, | |||
.hero .lead { | |||
text-shadow: 0 2px 6px rgba(0,0,0,0.6); | |||
} | } | ||
.hero .catch { | .hero .catch { | ||
font-size: clamp(16px, | font-size: clamp(16px, 4vw, 22px); | ||
font-weight: 600; | font-weight: 600; | ||
margin-bottom: 8px; | |||
} | } | ||
.hero .lead { | .hero .lead { | ||
font-size: clamp( | font-size: clamp(10px, 3.5vw, 18px); | ||
color: #f9fafb; | color: #f9fafb; | ||
margin-bottom: 28px; | |||
line-height: 1.8; | line-height: 1.8; | ||
margin-bottom: | opacity: 0.95; | ||
} | |||
/* 読みにくいテキストだけ守る */ | |||
.hero-text-bg { | |||
background: rgba(0, 0, 0, 0.38); | |||
color: #fff; | |||
padding: 8px 14px; | |||
border-radius: 8px; | |||
margin-bottom: 12px; | |||
line-height: 1.6; | |||
line-height: 1.6; | |||
white-space: nowrap; | |||
} | |||
.hero-text-bg br { | |||
content: ""; | |||
} | } | ||
.hero-actions { | .hero-actions { | ||
display: flex; | display: flex; | ||
gap: | gap: 12px; | ||
justify-content: center; | justify-content: center; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
} | } | ||
/* | .kz-with-icon .kz-icon { | ||
font-size: 1.2em; | |||
line-height: 1; | |||
transform: translateY(-1px); | |||
} | |||
/* ---------- Buttons ---------- */ | |||
.kz-btn { | .kz-btn { | ||
display: inline-flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
gap: 12px; | |||
gap: | padding: 14px 22px; | ||
padding: | |||
border-radius: 12px; | border-radius: 12px; | ||
font-weight: | font-weight: 700; | ||
text-decoration: none; | text-decoration: none; | ||
line-height: 1; | line-height: 1; | ||
position: relative; | |||
} | } | ||
.kz-btn.primary { | .kz-btn.primary { | ||
background: linear-gradient( | background: linear-gradient( | ||
to bottom, | |||
#4f46e5, | |||
#4338ca | |||
); | |||
color: #fff; | color: #fff; | ||
border: | |||
box-shadow: 0 | border: 1px solid rgba(0,0,0,0.2); | ||
box-shadow: | |||
inset 0 1px 0 rgba(255,255,255,0.25), | |||
0 3px 0 #312e81, | |||
0 10px 24px rgba(49,46,129,0.45); | |||
} | } | ||
.kz-btn.primary:hover { | .kz-btn.primary:hover { | ||
background: #1d4ed8; | |||
} | |||
.kz-primary::after { | |||
content: ""; | |||
position: absolute; | |||
inset: 2px; | |||
border-radius: 10px; | |||
border: 1px solid rgba(255,255,255,0.25); | |||
pointer-events: none; | |||
} | } | ||
.kz-btn.secondary { | .kz-btn.secondary { | ||
background: | background: linear-gradient( | ||
color: # | to bottom, | ||
border: 1px solid rgba(255, 255, 255, 0. | #f8fafc, | ||
#e5e7eb | |||
); | |||
color: #1f2937; | |||
border: 1px solid #d1d5db; | |||
border-radius: 12px; | |||
box-shadow: | |||
inset 0 1px 0 rgba(255,255,255,0.9), | |||
0 2px 0 #cbd5e1, | |||
0 6px 14px rgba(0,0,0,0.15); | |||
} | } | ||
.kz-btn.secondary:hover { | .kz-btn.secondary:hover { | ||
background: # | background: linear-gradient( | ||
to bottom, | |||
#ffffff, | |||
#e5e7eb | |||
); | |||
} | } | ||
.kz-btn.ghost { | .kz-btn.ghost { | ||
background: rgba(255, 255, 255, 0. | background: rgba(255,255,255,0.6); | ||
color: #374151; | |||
color: # | |||
border: 1px solid #9ca3af; | |||
border-radius: 12px; | |||
box-shadow: | |||
inset 0 1px 0 rgba(255,255,255,0.8), | |||
0 1px 0 rgba(0,0,0,0.08); | |||
} | } | ||
/* | /* ---------- Sections ---------- */ | ||
.kz-section { | .kz-section { | ||
padding: | padding: 25px 0; | ||
} | } | ||
div.kz-section { | div.kz-section { | ||
margin-top: 30px; | |||
} | |||
.kz-section.alt,div.kz-section { | |||
background: #f9fafb; | background: #f9fafb; | ||
padding | padding-left: 16px; | ||
padding-right: 16px; | |||
} | } | ||
.kz-section h2 { | .kz-section h2 | ||
font-size: | { | ||
font-size: 24px; | |||
margin- | margin-bottom: 8px; | ||
margin-top: 8px; | |||
} | } | ||
. | .section-lead { | ||
color: #6b7280; | color: #6b7280; | ||
margin-bottom: 24px; | |||
margin-bottom: | |||
} | } | ||
/* | /* ---------- Cards ---------- */ | ||
.card-grid { | .card-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax( | grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); | ||
gap: | gap: 16px; | ||
} | } | ||
.card { | .card { | ||
padding: 20px; | |||
border-radius: 12px; | |||
border: 1px solid #e5e7eb; | |||
background: #fff; | background: #fff; | ||
text-decoration: none; | |||
color: inherit; | |||
transition: transform 0.15s ease, box-shadow 0.15s ease; | |||
transition: | |||
} | } | ||
.card:hover | .card:hover { | ||
transform: translateY(- | transform: translateY(-2px); | ||
box-shadow: 0 | box-shadow: 0 6px 18px rgba(0,0,0,0.08); | ||
} | } | ||
.card .icon { | .card .icon { | ||
font-size: | font-size: 28px; | ||
} | } | ||
.card .title { | .card .title { | ||
display: block; | |||
font-weight: 600; | font-weight: 600; | ||
margin-top: 8px; | |||
margin- | |||
} | } | ||
.card .desc { | .card .desc { | ||
font-size: | font-size: 13px; | ||
color: #6b7280; | color: #6b7280; | ||
margin-top: 4px; | |||
} | } | ||
.card-main { | .card-main { | ||
display: | display: block; | ||
padding: 16px; | |||
padding | |||
text-decoration: none; | text-decoration: none; | ||
color: inherit; | color: inherit; | ||
border- | border-bottom: 1px solid var(--border-color); | ||
margin-bottom: 8px; | |||
} | } | ||
.card-main:hover { | .card-main:hover { | ||
background: | background-color: rgba(0, 0, 0, 0.03); | ||
} | |||
.card-box { | |||
display: block; | |||
border: 1px solid currentColor; | |||
border-color: rgba(0, 0, 0, 0.15); | |||
border-radius: 6px; | |||
padding: 12px; | |||
text-decoration: none; | |||
color: inherit; | |||
background: transparent; | |||
} | } | ||
| 415行目: | 456行目: | ||
display: grid; | display: grid; | ||
grid-template-columns: 1fr 1fr; | grid-template-columns: 1fr 1fr; | ||
gap: | gap: 8px; | ||
} | } | ||
.card- | .card-links a { | ||
padding: 12px 8px; | |||
padding: | |||
text-align: center; | text-align: center; | ||
font-size: | font-size: 14px; | ||
text-decoration: none; | text-decoration: none; | ||
color: | color: inherit; | ||
} | } | ||
.card- | .card-links a:hover { | ||
background | background-color: rgba(0, 0, 0, 0.03); | ||
} | } | ||
| 452行目: | 478行目: | ||
} | } | ||
.card.disabled { | |||
opacity: 0.45; | |||
pointer-events: none; | |||
. | |||
} | } | ||
/* ---------- Article ---------- */ | |||
.article-list { | .article-list { | ||
display: grid; | display: grid; | ||
gap: | gap: 8px; | ||
margin-bottom: | margin-bottom: 16px; | ||
} | } | ||
.article-item { | .article-item { | ||
padding: 12px 14px; | |||
background: #fff; | background: #fff; | ||
border-radius: 8px; | |||
border-radius: | |||
border: 1px solid #e5e7eb; | border: 1px solid #e5e7eb; | ||
} | } | ||
. | .text-link { | ||
font-weight: 600; | |||
text-decoration: none; | |||
} | } | ||
.center-actions { | .center-actions { | ||
margin-top: 32px; | margin-top: 32px; | ||
text-align: center; | text-align: center; | ||
} | } | ||
/* ----- CTA -----*/ | |||
.cta a { | .cta a { | ||
display: inline-block; | display: inline-block; | ||
padding: | padding: 12px 20px; | ||
border-radius: | border-radius: 6px; | ||
font-weight: 600; | font-weight: 600; | ||
text-decoration: none; | text-decoration: none; | ||
background: # | background: #2563eb; | ||
color: #fff; | color: #fff; | ||
} | } | ||
/* hover */ | |||
.cta a:hover { | .cta a:hover { | ||
background: # | background: #1d4ed8; | ||
} | } | ||
/* visitedで色が変わらないように */ | |||
.cta a:visited { | .cta a:visited { | ||
color: #fff; | color: #fff; | ||
} | } | ||
/* ---------- Footer ---------- */ | |||
/* | |||
.footer-note { | .footer-note { | ||
text-align: center; | text-align: center; | ||
padding: | padding: 48px 0 16px; | ||
color: #6b7280; | color: #6b7280; | ||
font-size: | font-size: 13px; | ||
} | } | ||
/* ---------- Dark Mode ---------- */ | |||
.skin-theme-clientpref-night .section-lead, | .skin-theme-clientpref-night .section-lead, | ||
.skin-theme-clientpref-night .footer-note { | .skin-theme-clientpref-night .footer-note { | ||
color: #9ca3af; | color: #9ca3af; | ||
} | } | ||
.skin-theme-clientpref-night .card-box { | .skin-theme-clientpref-night .card-box { | ||
border-color: rgba(255, 255, 255, 0.25); | |||
} | |||
} | |||
.skin-theme-clientpref-night . | .skin-theme-clientpref-night .kz-section.alt | ||
,.skin-theme-clientpref-night div.kz-section { | |||
background: #1f2937; | |||
} | } | ||
.skin-theme-clientpref-night .card . | .skin-theme-clientpref-night .card, | ||
color: # | .skin-theme-clientpref-night .article-item { | ||
background: #111827; | |||
border-color: #374151; | |||
} | } | ||
.skin-theme-clientpref-night . | .skin-theme-clientpref-night .kz-btn.secondary { | ||
background: #374151; | background: #374151; | ||
color: #f9fafb; | color: #f9fafb; | ||
} | } | ||
/* | /* OS自動モード(ダークOS時) */ | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
.skin-theme-clientpref-os .kawanishi-top { | .skin-theme-clientpref-os .kawanishi-top { | ||
--hero-bg-image: url('/images/8/8a/3704109_m.jpg'); | --hero-bg-image: url('/images/8/8a/3704109_m.jpg'); | ||
} | } | ||
.skin-theme-clientpref-os .card-box { | |||
.skin-theme-clientpref-os . | border-color: rgba(255, 255, 255, 0.25); | ||
} | } | ||
.skin-theme-clientpref-os .section-lead, | .skin-theme-clientpref-os .section-lead, | ||
.skin-theme-clientpref-os .footer-note { | .skin-theme-clientpref-os .footer-note { | ||
color: #9ca3af; | color: #9ca3af; | ||
} | } | ||
.skin-theme-clientpref-os .kz-section.alt | |||
,.skin-theme-clientpref-os div.kz-section { | |||
background: #1f2937; | |||
} | |||
.skin-theme-clientpref-os .card, | .skin-theme-clientpref-os .card, | ||
.skin-theme-clientpref-os .article-item | .skin-theme-clientpref-os .article-item { | ||
background: #111827; | |||
background: # | border-color: #374151; | ||
border-color: # | |||
} | } | ||
.skin-theme-clientpref-os .kz-btn.secondary { | |||
.skin-theme-clientpref-os . | |||
background: #374151; | background: #374151; | ||
color: #f9fafb; | color: #f9fafb; | ||
} | } | ||
} | } | ||
2026年1月22日 (木) 16:31時点における版
図鑑で探す
準備中
記事
川西のさまざまな図鑑ページに関連する、
ユーザーが書いた記事を紹介します。
川西能勢口で見つけた小さな名店
昔の川西と今を比べてみる
川西で活動する人たち
今日の川西
ランダムに1件表示しています。
エラー: テーブル飲食店情報が見つかりません。
お店のオーナー様へ
情報の修正や、写真・メニューの追加、公式図鑑ページとしての掲載が可能です。
市民の皆さんへ 情報提供のお願い
営業時間や定休日の変更、新店舗情報など、市民の皆さんからの情報提供を受け付けています。