/* === 全体リセット === */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
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;
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;
}
/* === マップ === */
#mapWrapper {
display: flex;
justify-content: center; /* 中央揃え */
padding: 1rem;
}
#map {
position: relative;
width: auto;
height: auto;
max-width: 100%;
}
#mapImage {
max-width: 90vw; /* 横幅は画面幅の90% */
max-height: 80vh; /* 高さは画面高さの80% */
height: auto;
display: block;
margin: 0 auto;
}
/* === ピン === */
.pin {
position: absolute;
transform: translate(-50%, -100%);
cursor: pointer;
}
.pin img {
width: 28px;
height: 28px;
}
/* === 吹き出しカード === */
.tooltip {
position: absolute;
z-index: 10;
transform: translate(-50%, -120%);
display: none;
}
.tooltip-card {
background: #fff;
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;
}
.tooltip-header {
font-weight: bold;
margin-bottom: 0.4rem;
color: #333;
}
.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%); }
}
/* === 一覧パネル === */
#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);
}
.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;
}
::-webkit-scrollbar-track {
background-color: #3b3b3b;
}
::-webkit-scrollbar-thumb {
background-color: #b3d3e2;
border-radius: 15px;
}