.map-page {
--map-content: 880px;
--map-accent: #d1684f;
--map-accent-light: #e9a08f;
--map-bg: #fdf7f2;
--map-text: #4d4d4d;
color: var(--map-text);
} .map-header {
display: flex;
align-items: center;
justify-content: center;
height: 122px;
padding: 0 16px;
background: #fff;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.map-header img {
width: auto;
height: 56px;
} .map-hero {
position: relative;
max-width: calc(var(--map-content) + 32px);
min-height: 680px; margin: 0 auto;
padding: 100px 16px 40px;
}
.map-hero__text {
position: relative;
z-index: 1;
max-width: 440px;
} .map-hero__label {
display: inline-block;
padding: 2px 32px 2px 16px;
clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
background: var(--map-accent);
color: #fff;
font-size: 26px;
font-weight: 700;
letter-spacing: 0.05em;
}
.map-hero__title {
margin-top: 12px;
padding-top: 12px;
font-size: 60px;
font-weight: 700;
line-height: 1.3;
letter-spacing: 0.04em;
white-space: nowrap;
}
.map-hero__accent {
color: var(--map-accent);
}
.map-hero__lead {
margin-top: 24px;
font-size: 17px;
line-height: 1.9;
}
.map-hero__hint {
display: inline-flex;
align-items: center;
gap: 10px;
margin-top: 32px;
padding: 15px 16px 18px;
border: 1px dashed #bbb;
border-radius: 8px;
color: #999;
font-size: 12px;
line-height: 1.6;
} .map-hero__map {
position: absolute;
top: 100px;
right: 16px;
width: 600px;
aspect-ratio: 600 / 540;
z-index: 2; pointer-events: none; }
.map-hero__illust {
position: absolute;
top: 0;
left: 24.17%;
width: 51.33%;
height: auto;
}
.map-hero__baobao {
position: absolute;
top: 66.5%;
left: 67.8%;
width: 21.17%;
height: auto;
transform-origin: 50% 100%;
} .map-sea {
position: absolute;
height: auto;
}
.map-sea--boat {
animation: map-boat-bob 1.8s ease-in-out infinite alternate;
}
.map-sea--wave {
animation: map-wave-drift 1.6s ease-in-out infinite alternate;
}
.map-sea--w1 { top: 0.9%; left: 38.7%; width: 7%; }
.map-sea--w2 { top: 40.9%; left: 17.9%; width: 5.17%; animation-delay: -0.7s; }
.map-sea--w3 { top: 36.3%; left: 72%; width: 5.17%; animation-delay: -0.4s; animation-duration: 2s; }
.map-sea--w4 { top: 85.4%; left: 22%; width: 7%; animation-delay: -1.1s; }
.map-sea--ferry { top: 18.5%; left: 25.8%; width: 9.67%; }
.map-sea--sail { top: 76.9%; left: 55.3%; width: 6.17%; animation-delay: -0.9s; animation-duration: 1.5s; }
@keyframes map-boat-bob {
from { transform: translateY(0) rotate(-6deg); }
to { transform: translateY(-10px) rotate(6deg); }
}
@keyframes map-wave-drift {
from { transform: translateY(-5px); }
to { transform: translateY(5px); }
} .map-hero__text > * {
animation: map-fade-right 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.map-hero__title { animation-delay: 0.12s; }
.map-hero__lead { animation-delay: 0.24s; }
.map-hero__hint { animation-delay: 0.36s; }
.map-hero__map {
animation: map-pop 0.7s ease-out 0.3s both;
} .map-spots {
animation: map-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}
@keyframes map-fade-right {
from { opacity: 0; transform: translateX(-24px); }
to { opacity: 1; transform: translateX(0); }
}
@keyframes map-fade-up {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
} @media (max-width: 767px) {
.map-hero__text > *,
.map-hero__map {
animation-name: map-fade-up;
}
.map-spots {
animation: none;
}
}
@keyframes map-rise {
from { opacity: 0; transform: translateY(40px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes map-pop {
0% { opacity: 0; transform: scale(0.6); }
60% { opacity: 1; transform: scale(1.05); }
80% { transform: scale(0.98); }
100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
.map-sea,
.map-hero__text > *,
.map-hero__map,
.map-spots {
animation: none;
}
} .map-pin,
.map-bubble {
position: absolute;
padding: 0;
border: 0;
background: none;
cursor: pointer;
pointer-events: auto;
} .map-pin > span {
display: block;
padding: 0 calc(14px - 0.08em) 0 14px;
border: 2px solid var(--map-accent);
border-radius: 999px;
background: #fff;
color: var(--map-accent);
font-size: 18px;
font-weight: 700;
line-height: 28px;
letter-spacing: 0.08em;
white-space: nowrap;
}
.map-pin::before,
.map-pin::after {
content: "";
position: absolute;
top: 50%;
background: var(--map-accent);
}
.map-pin::before {
left: 100%;
width: var(--line);
height: 1.5px;
}
.map-pin::after {
left: calc(100% + var(--line) - 3px);
width: 7px;
height: 7px;
margin-top: -3px;
border-radius: 50%;
} .map-pin--line-left::before {
right: 100%;
left: auto;
}
.map-pin--line-left::after {
right: calc(100% + var(--line) - 3px);
left: auto;
}
.map-pin--taipei { top: 6.3%; left: 17.83%; --line: 141px; }
.map-pin--newtaipei { top: 5.6%; left: 86.67%; --line: 78px; }
.map-pin--tainan { top: 60.7%; left: 0.17%; --line: 54px; } .map-bubble {
top: 46.7%;
left: 69.17%;
width: 21%;
}
.map-bubble img {
width: 100%;
height: auto;
}
.map-bubble__on {
position: absolute;
top: 0;
left: 0;
opacity: 0;
}
.map-bubble:hover .map-bubble__on,
.map-bubble:focus-visible .map-bubble__on {
opacity: 1;
}
.map-bubble:hover .map-bubble__off,
.map-bubble:focus-visible .map-bubble__off {
opacity: 0;
} .map-pin > span,
.map-bubble img,
.map-hero__baobao,
.map-filter__btn,
.map-card__btn,
.map-home-float img {
transition: transform 0.12s linear, background-color 0.12s linear, color 0.12s linear, opacity 0.12s linear;
}
.map-pin:hover > span,
.map-pin:focus-visible > span,
.map-filter__btn:hover,
.map-filter__btn:focus-visible {
background: var(--map-accent);
color: #fff;
transform: scale(1.08);
}
a.map-card__btn:hover,
a.map-card__btn:focus-visible {
background: #fff;
color: var(--map-accent);
transform: scale(1.08);
}
.map-bubble:hover img,
.map-bubble:focus-visible img {
transform: scale(1.08);
} .map-hero__map:has(.map-bubble:hover, .map-bubble:focus-visible) .map-hero__baobao {
transform: translateY(-4%) scale(1.02);
} .map-home-float {
position: fixed;
right: max(12px, calc(50% - var(--map-content) / 2 - 22px - 128px));
bottom: 32px;
z-index: 20;
}
.map-home-float:hover img,
.map-home-float:focus-visible img {
transform: scale(1.15);
}
.map-home-float img {
width: 128px;
height: auto;
} .map-spots {
max-width: calc(var(--map-content) + 32px);
margin: 0 auto;
padding: 0 16px 64px;
}
.map-filter {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
margin-bottom: 16px;
}
.map-filter__btn {
padding: 2px 18px;
border: 1.5px solid var(--map-accent);
border-radius: 999px;
background: #fff;
color: var(--map-accent);
font-size: 20px;
font-weight: 700;
letter-spacing: 0.05em; cursor: pointer;
}
.map-filter__btn.is-active {
background: var(--map-accent);
color: #fff;
}
.map-spots__panel {
padding: 24px;
border: 2px solid var(--map-accent-light);
border-radius: 8px;
background: var(--map-bg);
}
.map-spots__heading {
margin-bottom: 24px;
font-size: 27px;
font-weight: 700;
text-align: center;
letter-spacing: 0.1em;
} .map-spots__list {
display: grid;
grid-template-columns: repeat(3, 244px);
justify-content: center;
gap: 18px 20px;
} .map-card {
position: relative;
display: flex;
flex-direction: column;
padding-top: 28px;
}
.map-card__body {
display: flex;
flex: 1;
flex-direction: column;
min-height: 242px;
padding: 34px 14px 26px 13px;
border: 2px solid #b9aca3;
border-radius: 8px;
background: #fff;
}
.map-card[hidden] {
display: none;
} .map-card__icon {
position: absolute;
top: 28px;
right: 12px;
z-index: 1;
transform: translateY(-50%);
}
.map-card__title {
font-size: 21px;
font-weight: 700;
line-height: 1.5;
letter-spacing: 0.05em;
}
.map-card__text {
flex: 1;
margin: 10px 0;
color: var(--map-text);
font-size: 16px;
line-height: 1.7;
}
.map-card__btn {
display: block;
padding: 6px 5px;
border: 1px solid var(--map-accent);
border-radius: 999px;
background: var(--map-accent);
color: #fff;
font-size: 16px;
font-weight: 700;
text-align: center;
}
.map-card__btn.is-disabled {
border-color: #ccc;
background: #ccc;
} @media (max-width: 767px) {
.map-header {
height: 80px;
}
.map-header img {
height: 44px;
}
.map-hero {
min-height: 0;
padding-top: 48px;
} .map-hero__text {
max-width: none;
text-align: center;
}
.map-hero__hint {
text-align: left;
} .map-hero__map {
position: relative;
top: auto;
right: auto;
width: 100%;
margin-top: 32px;
} .map-pin {
margin-top: -10px;
}
.map-pin > span {
padding: 4px calc(8px - 0.08em) 4px 8px;
border-radius: 12px;
font-size: 13px;
line-height: 16px;
text-align: center;
}
.map-pin__sub {
display: block;
} .map-pin--taipei { left: auto; right: calc(100% - 65.2% + var(--line)); --line: 22vw; }
.map-pin--newtaipei { left: calc(73.7% + var(--line)); --line: 6vw; }
.map-pin--tainan { left: auto; right: calc(100% - 32.2% + var(--line)); --line: 8vw; } .map-sea--ferry { top: 24%; } .map-hero__label {
padding: 2px 28px;
clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
font-size: 18px;
}
.map-hero__title {
font-size: 40px;
}
.map-hero__lead {
font-size: 15px;
}
.map-home-float img {
width: 80px;
} .map-filter {
flex-wrap: nowrap;
justify-content: flex-start;
gap: 10px;
margin: 0 -16px 10px;
padding: 6px 16px;
overflow-x: auto;
scroll-snap-type: x proximity;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
}
.map-filter::-webkit-scrollbar {
display: none;
} .map-filter {
--fade-left: 0px;
--fade-right: 40px;
-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent);
mask-image: linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent);
}
.map-filter.is-scrolled {
--fade-left: 40px;
}
.map-filter.is-end {
--fade-right: 0px;
}
.map-filter__btn {
flex-shrink: 0;
font-size: 16px;
white-space: nowrap;
scroll-snap-align: start;
scroll-margin-left: 16px;
}
.map-spots__panel {
padding: 20px 12px;
}
.map-spots__list {
grid-template-columns: repeat(2, 1fr);
gap: 16px 12px;
}
}
@media (max-width: 420px) {
.map-spots__list {
grid-template-columns: 1fr;
}
}