diff --git a/fes.css b/fes.css index dfe7e80..b2d4f9a 100644 --- a/fes.css +++ b/fes.css @@ -1,99 +1,77 @@ -/* style.css - 縦長表示版(スマホ優先 / Panzoom 対応) */ +/* style.css — スマホ縦長ファースト、左揃え、Panzoom とページスクロール併存を考慮 */ -/* 基本 */ +/* reset & base */ * { box-sizing: border-box; } -html, body { height: 100%; margin: 0; padding: 0; } +html,body { height: 100%; margin: 0; padding: 0; } body { - display: flex; - flex-direction: column; - min-height: 100vh; 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; } -/* ヘッダー(上部) */ +/* header */ .site-header { padding: 12px 16px; text-align: center; background: linear-gradient(90deg,#6a85b6,#bac8e0); - color: #fff; + color: white; box-shadow: 0 2px 6px rgba(0,0,0,0.12); - z-index: 50; + z-index: 60; } -.site-header h1 { margin: 0; font-size: 1.15rem; } -.site-header .sub { margin-top: 4px; font-size: 0.85rem; opacity: .95; } +.site-header h1 { margin:0; font-size:1.15rem;} +.site-header .sub { margin-top:4px; font-size:0.85rem; opacity:.95; } -/* タブ(ヘッダー下) */ -.tabs { - display: flex; - gap: 8px; - padding: 8px; - justify-content: center; - background: transparent; -} +/* tabs */ +.tabs { display:flex; gap:8px; padding:8px; justify-content:center; } .tab-button { - flex: 1; - max-width: 220px; - padding: 10px 12px; - border: none; - border-radius: 10px; - background: rgba(255,255,255,0.95); - font-size: 1rem; - cursor: pointer; + flex:1; max-width:220px; padding:10px 12px; border:none; border-radius:10px; + background: rgba(255,255,255,0.95); font-size:1rem; 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; -} +.tab-button.active { background: linear-gradient(90deg,#ff9a9e,#fad0c4); color:white; font-weight:700; } -/* メイン:高さを残してマップを縦長に表示 (ヘッダー+タブを除いた残りを使う) */ -.main { - flex: 1 1 auto; - display: flex; - align-items: center; - justify-content: center; - padding: 8px; -} +/* main layout — page is scrollable; map fits vertically but not fixed to viewport height */ +.main { display:block; padding:8px 10px 40px; } /* bottom padding to allow list-toggle click */ -/* ラッパ:画面高さを活かす */ +/* wrapper is LEFT-ALIGNED so left edge of map is always visible */ .map-wrapper { width: 100%; - height: calc(100vh - 96px); /* ヘッダー + タブの目安高さ */ - max-width: 100%; + /* height is not forced to 100vh so page scroll remains possible */ display: flex; - align-items: center; - justify-content: center; - touch-action: none; /* Panzoom のジェスチャーを許可するため */ + align-items: flex-start; + justify-content: flex-start; /* LEFT align -> important */ + overflow: visible; + touch-action: pan-y; /* allow vertical page scrolling by default; JS toggles this to 'none' when map should capture gestures */ + padding-left: 0; } -/* マップ本体コンテナ(image の幅に合わせる) */ +/* map container: inline-block so its width equals image's displayed width */ .map-container { display: inline-block; position: relative; - height: 100%; /* 画像の高さに合わせる */ + height: auto; /* height follows image */ 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; - -webkit-tap-highlight-color: transparent; + margin-left: 0; /* explicit left align */ } -/* マップ画像:高さを基準にフィット、幅は自動 */ +/* map image: HEIGHT-BASED fit (vertical-first) */ .map-container img#mapImage { - height: 100%; + height: 100vh; /* image height fits viewport height — gives tall / mobile-first feel */ width: auto; display: block; + max-width: none; user-select: none; -webkit-user-drag: none; - pointer-events: none; /* 画像自体へのpointerを避ける */ + pointer-events: none; /* pointer events handled by container and children */ } -/* Pin(指で押しやすいサイズ) */ +/* pin styling */ .pin { position: absolute; width: 44px; @@ -101,14 +79,12 @@ transform: translate(-50%, -100%); touch-action: manipulation; z-index: 6; - transition: transform .14s ease; - -webkit-tap-highlight-color: transparent; + transition: transform .12s ease; } -.pin:active, -.pin:focus { transform: translate(-50%, -100%) scale(.98); } -.pin img { width: 100%; height: 100%; display: block; pointer-events: none; } +.pin img { width: 100%; height: 100%; display:block; pointer-events:none; } +.pin:active, .pin:focus { transform: translate(-50%, -100%) scale(.98); } -/* Tooltip(カード風) */ +/* tooltip card */ .tooltip { position: absolute; z-index: 8; @@ -117,7 +93,7 @@ min-width: 200px; max-width: 86vw; border-radius: 12px; - box-shadow: 0 10px 28px rgba(0,0,0,.20); + box-shadow: 0 10px 28px rgba(0,0,0,0.20); background: #fff; overflow: hidden; animation: tooltipFade .22s ease; @@ -126,9 +102,7 @@ from { opacity: 0; transform: translate(-50%,-125%) scale(.98); } to { opacity: 1; transform: translate(-50%,-120%) scale(1); } } - -/* カードの中身 */ -.tooltip-card { display: block; position: relative; } +.tooltip-card { position: relative; display:block; } .tooltip-header { background: linear-gradient(90deg,#ff9a9e,#fad0c4); color: #fff; @@ -137,105 +111,51 @@ 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 { 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 button */ .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; - line-height: 1; - cursor: pointer; - z-index: 12; + position: absolute; right: 8px; top: 8px; + background: rgba(255,255,255,0.9); border: none; + width: 34px; height: 34px; border-radius: 50%; cursor: pointer; z-index: 12; box-shadow: 0 2px 6px rgba(0,0,0,0.12); } -/* 下部の「一覧」ボタン(固定) */ +/* 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; + 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; + 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; + 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-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; } -/* ショップリストの行 */ -.shop-item { - display:flex; - gap: 10px; - padding: 10px; - border-radius: 10px; - align-items: center; - cursor: pointer; - transition: background .12s ease; -} +/* shop list row */ +.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; } +.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; } -/* PC向けや大きめ画面の微調整 */ +/* responsive tweaks */ @media (min-width: 520px) { - .pin { width: 48px; height: 48px; } + .pin { width:48px; height:48px; } .tooltip { min-width: 220px; } - .map-wrapper { height: calc(100vh - 120px); } } -/* 便利ユーティリティ */ +/* utility */ .hidden { display: none !important; }