diff --git a/style.css b/style.css index ceb0e03..39da591 100644 --- a/style.css +++ b/style.css @@ -314,3 +314,31 @@ display: flex; width: 100%; } + +.custom-pin { + transform-origin: center bottom; +} + +/* ピンの位置調整(長い名前でも中央に揃う) */ +.pin-wrapper { + position: relative; + left: 50%; + transform: translate(-50%, -40px); /* 中央揃えに変更 */ + text-align: center; +} + +.pin-img { + width: 32px; + height: 32px; +} + +/* 名前ラベル */ +.pin-label { + background: white; + padding: 3px 6px; + font-size: 12px; + border: 1px solid #ccc; + border-radius: 6px; + white-space: nowrap; + margin-top: 2px; +}