:root {
    --card-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    margin-right: auto;
}
.logo-link {
    display: inline-flex;
    align-items: center;
}
.logo-header {
    height: 36px;
    width: auto;
    display: block;
}

.nav-spacer {
    flex: 1;
}

.filters {
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
}
.filters-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-tag {
    border: 1px solid #dcdee8;
    border-radius: 999px;
    background: var(--tag-bg);
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.filter-tag:hover {
    background: #8d9450;
    border-color: #7f8548;
}
.filter-tag .tag-icon {
    width: 12px;
    height: 12px;
}

.cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    transition: box-shadow 0.15s ease;
}
.card:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}
.museum-show {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    max-width: 1500px;
}
.show-search {
    margin-bottom: 8px;
    /*width: 100%;*/
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}
.museums-page .shell {
    margin-top: -5px;
}
.search-sticky {
    position: sticky;
    top: 70px !important;
    left: 0;
    right: 0;
    z-index: 12;
    background: var(--bg);
    padding: 10px 20px 8px;
    width: 100vw;
}
.search-sticky.scrolled {
    border-bottom: 1px solid var(--border);
}

.show-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
    margin: 0 auto;
}
.show-left {
    width: 100%;
}
.show-right {
    width: 100%;
}
#viewport-debug {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(47, 38, 64, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.show-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.show-list-back {
    margin-bottom: 6px;
    position: relative;
    z-index: 6;
}
.show-list-back a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.show-list-back a:hover {
    text-decoration: underline;
}
.show-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7a8a34!important;
    font-weight: 700;
    text-decoration: none;
}
.show-back-link:hover {
    text-decoration: underline;
}
.show-back-icon {
    width: 16px;
    height: 16px;
    background: #7a8a34;
    -webkit-mask: url('../images/arrow-dropright-circle.svg') center/16px 16px no-repeat;
    mask: url('../images/arrow-dropright-circle.svg') center/16px 16px no-repeat;
    display: inline-block;
    margin-bottom: -3px;
    transform: rotate(180deg);
}
.show-list-item {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--card-shadow);
}
.show-list-item:hover {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}
.show-list-item.active {
    border-color: #7b6797;
    box-shadow: 0 12px 26px rgba(99, 76, 144, 0.2);
}
.show-list-name {
    font-weight: 700;
    margin-bottom: 4px;
}
.show-list-area {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}
.show-list-tagline {
    font-size: 14px;
    color: var(--text);
}

@media (min-width: 980px) {
    .show-left {
        flex: 0 0 360px;
        max-width: 380px;
    }
}

@media (min-width: 760px) {
    .show-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }
    .show-left {
        flex: 0 0 320px;
        max-width: 340px;
        position: sticky;
        top: 90px;
        align-self: flex-start;
        width: auto;
    }
    .show-right {
        flex: 1;
        min-width: 0;
        width: auto;
    }
}

@media (max-width: 640px) {
    .show-layout {
        padding: 0 0;
    }
    .show-list {
        display: none;
    }
    .show-right .top-status {
        margin: -12px 5px -5px 0 !important;
    }
    .show-list-back {
        width: 120px;
        margin-top: -5px;
        padding-bottom: 3px;
    }
    .show-right {
        margin-top: 0;
    }
    .museums-page .shell {
        margin-top: -10px;
    }
    .search-sticky {
        top: 50px !important;
    }
}
/* ミドル帯も1カラム（SP同様に一覧を隠す） */
@media (max-width: 799px) {
    .show-layout {
        flex-direction: column;
        gap: 8px;
    }
    .show-left {
        display: block;
        width: 100%;
        position: static;
        top: auto;
        flex: 0 0 auto;
        max-width: none;
        margin-bottom: 6px;
    }
    .show-list {
        display: none;
    }
    .show-right {
        width: 100%;
        flex: 0 0 auto;
        margin-top: -45px;
    }
}

.show-card {
    padding: 20px;
}
.show-card h1 {
    margin: 0;
    font-size: 20px;
    color: var(--text);
}
.show-card .area {
    margin-top: 6px;
    font-size: 14px;
    color: var(--muted);
}
.section {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.section h3 {
    margin: 0;
    font-size: 15px;
    color: var(--text);
}
.section .tagline {
    margin: 0;
    font-size: 15px;
}
.section .description {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}
.basic-info {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.basic-info div {
    background: #f8f8fb;
    border-radius: 12px;
    padding: 10px 12px;
}
.basic-info dt {
    margin: 0 0 6px 0;
    font-weight: 700;
    color: var(--text);
}
.basic-info dd {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
}
.support-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: underline;
}
.support-link img {
    width: 14px;
    height: 14px;
}
.support-link:hover {
    text-decoration: none;
}
.support-note {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}
.back-link {
    margin-top: 4px;
}
.back-link a {
    color: var(--accent);
    text-decoration: underline;
}
.card-main-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.card-main-link:hover h2 {
    text-decoration: underline;
}
.card-main-link .card-meta {
    margin-top: auto;
}
.card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.card-header h2 {
    margin: 0;
    font-size: 17px;
    color: var(--text);
}
.card-header .area {
    font-size: 13px;
    color: var(--muted);
    margin: 5px 0 5px 0;
}
.card-tagline {
    margin: 0 0 8px 0;
    color: var(--text);
    font-size: 14px;
}
.card-meta {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin: -5px;
}
.meta-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.badge {
    background: #eef3ff;
    color: #1f3c7a;
    border-radius: 14px;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid #d3dbf5;
}
.status {
    gap: 16px;
    position: relative;
    z-index: 4;
}
.top-status {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    margin: -15px;
}
.show-right .top-status {
    margin: -10px 5px -5px 0;
}
.status-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.status-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.status-icon path {
    fill: #ddd;
    stroke: currentColor;
    stroke-width: 2;
}
.status-icon.footprint,
.status-icon.flag,
.status-icon.heart {
    color: #fff;
}
.status-icon.footprint svg {
    width: 30px;
    height: 30px;
    transform: rotate(-90deg);
}
.status-icon.highlight path {
    fill: #990000;
}
.status-icon::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 4px 8px;
    background: #2f2640;
    color: #fff;
    font-size: 11px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.12s ease,
        transform 0.12s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    z-index: 50;
}
.status-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.show-right .top-status .status-icon::after {
    bottom: auto;
    top: calc(100% + 6px);
    transform: translateX(-50%) translateY(-4px);
}
.show-right .top-status .status-icon:hover::after {
    transform: translateX(-50%) translateY(0);
}
