/* Five Landscapes of Japan */
.ls-viewer {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    background: #d9dde3;
    color: #fff;
}
#ls-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: pan-y;
}
.ls-viewer.is-dragging #ls-canvas { cursor: grabbing; }

.ls-panel {
    background: rgba(18, 22, 30, 0.28);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
}

.ls-info {
    position: absolute;
    left: clamp(16px, 4vw, 48px);
    top: 96px;
    max-width: min(420px, calc(100% - 32px));
    padding: 20px 22px 22px;
    z-index: 2;
    pointer-events: none;
}
.ls-eyebrow {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    opacity: 0.85;
    margin: 0 0 10px;
}
.ls-place-line { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.ls-name {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.ls-kana { font-size: 13px; opacity: 0.85; letter-spacing: 0.12em; }
.ls-season { margin: 8px 0 0; font-size: 13px; font-weight: 500; opacity: 0.92; }
.ls-desc { margin: 12px 0 0; font-size: 14px; line-height: 1.85; opacity: 0.95; }

.ls-controls {
    position: absolute;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    width: max-content;
    max-width: calc(100% - 24px);
}
.ls-seg { display: flex; padding: 4px; gap: 2px; border-radius: 999px; }
.ls-seg button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font: 500 14px/1 'Noto Sans JP', 'Outfit', sans-serif;
    letter-spacing: 0.06em;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}
.ls-seg button:hover { background: rgba(255, 255, 255, 0.14); }
.ls-seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.92); color: #1f2430; }
.ls-seg button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ls-seg-time button { padding: 10px 14px; }

.ls-hint {
    position: absolute;
    right: clamp(16px, 4vw, 48px);
    top: 104px;
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.1em;
    opacity: 0.8;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
}

.ls-veil {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0f2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.42s ease;
    z-index: 5;
}
.ls-veil.is-on { opacity: 1; pointer-events: auto; }
.ls-veil-text {
    color: #5b6170;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-align: center;
    padding: 0 24px;
}
.ls-veil.is-on .ls-veil-text::after {
    content: '';
    display: inline-block;
    width: 1.2em;
    text-align: left;
    animation: ls-dots 1.4s steps(4, end) infinite;
}
@keyframes ls-dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

.ls-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
}
.ls-card {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    padding: 20px 22px;
}
.ls-card-name { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 20px; color: #111827; margin: 0 0 8px; letter-spacing: 0.06em; }
.ls-card-text { font-size: 14px; line-height: 1.8; color: #4b5563; margin: 0; }

.ls-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    background: #1f2430;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.04em;
    transition: background-color 0.2s ease;
}
.ls-cta:hover { background: #3a4152; }

@media (max-width: 640px) {
    .ls-info { top: 84px; padding: 16px 18px; }
    .ls-desc { font-size: 13px; line-height: 1.75; }
    .ls-hint { display: none; }
    .ls-seg button { padding: 9px 11px; font-size: 13px; }
    .ls-seg-time button { padding: 9px 12px; }
}
@media (max-height: 640px) and (max-width: 640px) {
    .ls-desc { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ls-veil { transition: none; }
}
