diff --git a/fes.css b/fes.css index 33897a1..878f647 100644 --- a/fes.css +++ b/fes.css @@ -1,145 +1,192 @@ -/* style.css — 中央揃え・縦長ファースト・Panzoom対応 */ - -/* Reset & base */ -* { box-sizing: border-box; } -html,body { height: 100%; margin: 0; padding: 0; } -body { - font-family: "Hiragino Sans","Helvetica Neue",Arial,sans-serif; - -webkit-font-smoothing: antialiased; - background: linear-gradient(135deg,#a8edea,#fed6e3); - color: #222; - -webkit-tap-highlight-color: transparent; +/* === 全体リセット === */ +* { + box-sizing: border-box; + margin: 0; + padding: 0; } - -/* Header */ -.site-header { - padding: 12px 16px; - text-align: center; - background: linear-gradient(90deg,#6a85b6,#bac8e0); - color: #fff; - box-shadow: 0 2px 6px rgba(0,0,0,0.12); - z-index: 60; -} -.site-header h1 { margin:0; font-size:1.15rem; } -.site-header .sub { margin-top:4px; font-size:0.85rem; opacity:.95; } - -/* Tabs */ -.tabs { display:flex; gap:8px; padding:8px; justify-content:center; flex-wrap:wrap; } -.tab-button { - flex: 0 1 18%; - min-width: 72px; - padding: 8px 12px; - border: none; - border-radius: 10px; - background: rgba(255,255,255,0.95); - font-size: 0.95rem; - cursor: pointer; - box-shadow: 0 2px 6px rgba(0,0,0,0.08); -} -.tab-button.active { background: linear-gradient(90deg,#ff9a9e,#fad0c4); color: #fff; font-weight:700; } - -/* Main */ -.main { display:block; padding:8px 10px 80px; } /* bottom padding for list toggle */ - -/* Wrapper: CENTER align the map (user requested) */ -.map-wrapper { +html, body { width: 100%; + height: 100%; + font-family: "Hiragino Sans", "Helvetica Neue", Arial, sans-serif; + background: #fffafc; /* 青春を感じる桜っぽい背景 */ + color: #333; + overflow-y: auto; /* サイト全体をスクロール可能に */ +} + +/* === ヘッダー === */ +.site-header { + text-align: center; + padding: 0.8rem; + background: linear-gradient(90deg, #ffb6c1, #87cefa); + color: #fff; +} +.site-header h1 { + font-size: 1.5rem; +} + +/* === タブ === */ +.tabs { display: flex; - align-items: center; - justify-content: center; /* <-- CENTER */ - overflow: visible; - touch-action: pan-y; /* default: vertical page scroll allowed */ - padding-left: 0; + justify-content: center; + margin-top: 0.5rem; + flex-wrap: wrap; + gap: 0.3rem; +} +.tab-button { + background: #ffffffcc; + border: 2px solid #87cefa; + border-radius: 20px; + padding: 0.4rem 0.8rem; + font-size: 0.9rem; + cursor: pointer; +} +.tab-button.active { + background: #87cefa; + color: #fff; + font-weight: bold; } -/* map container inline-block so width == displayed image width */ -.map-container { - display: inline-block; +/* === マップ === */ +#mapWrapper { + display: flex; + justify-content: center; /* 中央揃え */ + padding: 1rem; +} +#map { position: relative; - height: auto; - border-radius: 14px; - overflow: visible; - border: 3px solid rgba(255,255,255,0.9); - box-shadow: 0 8px 24px rgba(0,0,0,0.18); - background: #fff; - margin-left: 0; -} - -/* map image: vertical-first (height fits viewport) */ -.map-container img#mapImage { - height: 100vh; /* fits viewport height so tall feel on mobile */ width: auto; + height: auto; + max-width: 100%; +} +#mapImage { + max-width: 90vw; /* 横幅は画面幅の90% */ + max-height: 80vh; /* 高さは画面高さの80% */ + height: auto; display: block; - user-select: none; - -webkit-user-drag: none; - pointer-events: none; + margin: 0 auto; } -/* pin */ +/* === ピン === */ .pin { position: absolute; - width: 44px; - height: 44px; transform: translate(-50%, -100%); - touch-action: manipulation; - z-index: 6; - transition: transform .12s ease; + cursor: pointer; } -.pin img { width: 100%; height: 100%; display:block; pointer-events:none; } -.pin:active, .pin:focus { transform: translate(-50%, -100%) scale(.98); } +.pin img { + width: 28px; + height: 28px; +} -/* tooltip card */ +/* === 吹き出しカード === */ .tooltip { position: absolute; - z-index: 8; + z-index: 10; transform: translate(-50%, -120%); display: none; - min-width: 200px; - max-width: 86vw; - border-radius: 12px; - box-shadow: 0 10px 28px rgba(0,0,0,0.20); +} +.tooltip-card { background: #fff; - overflow: hidden; - animation: tooltipFade .22s ease; + border-radius: 12px; + box-shadow: 0 4px 12px rgba(0,0,0,0.15); + padding: 0.6rem; + width: 220px; + animation: fadeIn 0.2s ease-out; } -@keyframes tooltipFade { - from { opacity: 0; transform: translate(-50%,-125%) scale(.98); } - to { opacity: 1; transform: translate(-50%,-120%) scale(1); } +.tooltip-header { + font-weight: bold; + margin-bottom: 0.4rem; + color: #333; } -.tooltip-card { position: relative; display:block; } -.tooltip-header { background: linear-gradient(90deg,#ff9a9e,#fad0c4); color:#fff; padding:10px 12px; font-weight:700; font-size:1rem; text-align:left; } -.tooltip-body { padding:10px 12px; text-align:left; font-size:0.95rem; color:#333; } -.tooltip-body img { width:100%; border-radius:8px; display:block; margin-top:8px; } -.tooltip-body p { margin:6px 0 0; line-height:1.4; } - -.tooltip .close-btn { - position:absolute; right:8px; top:8px; background: rgba(255,255,255,0.9); border:none; width:34px; height:34px; border-radius:50%; font-size:16px; cursor:pointer; z-index:12; box-shadow:0 2px 6px rgba(0,0,0,0.12); +.tooltip-body { + display: flex; + gap: 0.5rem; +} +.tooltip-thumb { + width: 60px; + height: 60px; + border-radius: 8px; + object-fit: cover; +} +.close-btn { + background: none; + border: none; + font-size: 1rem; + position: absolute; + top: 6px; + right: 8px; + cursor: pointer; + color: #666; +} +@keyframes fadeIn { + from { opacity: 0; transform: translate(-50%, -110%); } + to { opacity: 1; transform: translate(-50%, -120%); } } -/* list toggle button */ -.list-toggle { position: fixed; right: 12px; bottom: 12px; z-index: 60; background: linear-gradient(90deg,#6a85b6,#bac8e0); color: #fff; border:none; padding:12px 14px; border-radius:999px; box-shadow: 0 8px 20px rgba(0,0,0,0.22); font-weight:700; cursor:pointer; } - -/* bottom list panel */ -.list-panel { position: fixed; left:0; right:0; bottom:0; z-index:70; background:#fff; border-top-left-radius:14px; border-top-right-radius:14px; box-shadow: 0 -8px 30px rgba(0,0,0,0.22); transform: translateY(110%); transition: transform .28s cubic-bezier(.2,.9,.2,1); max-height: 70vh; display:flex; flex-direction:column; } -.list-panel.open { transform: translateY(0); } -.list-panel-header { display:flex; align-items:center; justify-content:space-between; padding:12px; border-bottom: 1px solid #eee; } -.list-content { overflow:auto; padding:8px 12px 24px; } - -/* list rows */ -.shop-item { display:flex; gap:10px; padding:10px; border-radius:10px; align-items:center; cursor:pointer; transition: background .12s ease; } -.shop-item:hover { background: rgba(220,235,255,0.6); } -.shop-thumb { width:64px; height:64px; border-radius:8px; object-fit:cover; flex:0 0 64px; } -.shop-meta { text-align:left; flex:1; } -.shop-title { font-weight:700; margin:0; font-size:0.98rem; } -.shop-desc { margin:6px 0 0; font-size:0.9rem; color:#555; } - -@media (min-width:520px) { - .pin { width:48px; height:48px; } - .tooltip { min-width:220px; } +/* === 一覧パネル === */ +#listToggle { + position: fixed; + bottom: 1rem; + right: 1rem; + background: #ffb6c1; + border: none; + border-radius: 50%; + width: 60px; + height: 60px; + font-size: 0.9rem; + font-weight: bold; + color: #fff; + box-shadow: 0 4px 10px rgba(0,0,0,0.2); } - -/* utility */ -.hidden { display:none !important; } +.list-panel { + position: fixed; + bottom: 0; + left: 0; + right: 0; + max-height: 70%; + background: #fff; + border-top-left-radius: 16px; + border-top-right-radius: 16px; + transform: translateY(100%); + transition: transform 0.3s ease; + overflow-y: auto; + padding: 1rem; + z-index: 20; +} +.list-panel.open { + transform: translateY(0%); +} +.close-list-btn { + background: none; + border: none; + font-size: 1.2rem; + float: right; + cursor: pointer; + color: #333; +} +.shop-item { + display: flex; + align-items: center; + gap: 0.8rem; + padding: 0.6rem 0; + border-bottom: 1px solid #eee; +} +.shop-thumb { + width: 60px; + height: 60px; + border-radius: 8px; + object-fit: cover; +} +.shop-meta { + flex: 1; +} +.shop-title { + font-weight: bold; + margin-bottom: 0.2rem; +} +.shop-desc { + font-size: 0.85rem; + color: #555; +} ::-webkit-scrollbar { width: 15px;