.jimoto-tourism-section {
    margin: 24px 0;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.jimoto-tourism-header {
    margin: 0 0 16px;
}

.jimoto-tourism-label {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f2edff;
    color: #5f3ea8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.jimoto-tourism-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #222;
    line-height: 1.4;
}

.jimoto-tourism-lead {
    margin: 8px 0 0;
    color: #555;
    line-height: 1.7;
}

.jimoto-tourism-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    box-sizing: border-box;
}

.jimoto-tourism-toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.jimoto-tourism-toolbar-label {
    font-size: 13px;
    font-weight: 800;
    color: #333;
    line-height: 1.5;
    white-space: nowrap;
}

.jimoto-tourism-sort-buttons,
.jimoto-tourism-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.jimoto-tourism-sort-btn,
.jimoto-tourism-filter-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: #eee8fb;
    color: #5f3ea8;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    cursor: pointer;
}

.jimoto-tourism-sort-btn.is-active,
.jimoto-tourism-filter-btn.is-active,
.jimoto-tourism-sort-btn:hover,
.jimoto-tourism-filter-btn:hover {
    background: #5f3ea8;
    color: #fff;
}

.jimoto-tourism-loading,
.jimoto-tourism-error,
.jimoto-tourism-empty,
.jimoto-tourism-cache-note {
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #444;
    line-height: 1.6;
}

.jimoto-tourism-cache-note {
    margin-bottom: 12px;
    font-size: 13px;
    background: #f0fdf4;
    color: #166534;
}

.jimoto-tourism-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.jimoto-tourism-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    cursor: default;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    animation: jimotoTourismFadeIn .22s ease-out;
}

@keyframes jimotoTourismFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jimoto-tourism-card.is-clickable-photo {
    cursor: pointer;
}

.jimoto-tourism-card.is-clickable-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.jimoto-tourism-card.rank-top {
    border-color: #d7b45a;
    background: linear-gradient(180deg, #fffdf7 0%, #ffffff 70%);
}

.jimoto-tourism-osusume-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.jimoto-tourism-osusume-badge.osusume-gold {
    background: linear-gradient(135deg, #f6d365 0%, #d4a017 100%);
    color: #3a2500;
}

.jimoto-tourism-osusume-badge.osusume-silver {
    background: linear-gradient(135deg, #f4f6f8 0%, #aeb7c2 100%);
    color: #1f2937;
}

.jimoto-tourism-osusume-badge.osusume-bronze {
    background: linear-gradient(135deg, #c98b45 0%, #7c4a18 100%);
    color: #fffaf0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

.jimoto-tourism-osusume-badge.osusume-white {
    background: rgba(255, 255, 255, 0.94);
    color: #5f3ea8;
    border: 1px solid rgba(95, 62, 168, 0.22);
}


/* 画像がないカードは、画像ありカードに無理に高さを合わせずコンパクトに見せます */
.jimoto-tourism-card.no-photo {
    align-self: start;
}

.jimoto-tourism-card.no-photo .jimoto-tourism-osusume-badge {
    position: static;
    align-self: flex-start;
    margin: 14px 14px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.jimoto-tourism-card.no-photo .jimoto-tourism-info,
.jimoto-tourism-card.no-photo .jimoto-tourism-card-main {
    padding-top: 10px;
}

.jimoto-tourism-card.no-photo.rank-top {
    background: linear-gradient(180deg, #fffdf7 0%, #ffffff 55%);
}

.jimoto-tourism-photo-box {
    width: 100%;
    height: 160px;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
}

.jimoto-tourism-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.jimoto-tourism-info,
.jimoto-tourism-card-main {
    padding: 14px 14px 16px;
    flex: 1;
    min-width: 0;
}

.jimoto-tourism-name {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    color: #222;
}

.jimoto-tourism-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #444;
    line-height: 1.8;
    font-size: 14px;
}

.jimoto-tourism-meta a {
    color: #00377F;
    font-weight: 700;
    text-decoration: none;
}

.jimoto-tourism-type-pill {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 6px;
    border-radius: 999px;
    background: #f2edff;
    color: #5f3ea8;
    font-size: 12px;
    font-weight: 800;
}

.jimoto-tourism-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.jimoto-tourism-action-link,
.jimoto-tourism-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f2edff;
    color: #5f3ea8;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.5;
}

.jimoto-tourism-action-link:hover,
.jimoto-tourism-link-btn:hover {
    background: #e6dcff;
    color: #4f2f99;
    text-decoration: none;
}

@media (max-width: 760px) {
    .jimoto-tourism-section {
        padding: 16px;
    }

    .jimoto-tourism-title {
        font-size: 20px;
    }

    .jimoto-tourism-lead {
        font-size: 13px;
    }

    .jimoto-tourism-toolbar-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .jimoto-tourism-sort-buttons,
    .jimoto-tourism-filter-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .jimoto-tourism-sort-btn,
    .jimoto-tourism-filter-btn {
        width: 100%;
        padding: 10px 12px;
    }

    .jimoto-tourism-list {
        grid-template-columns: 1fr;
    }

    .jimoto-tourism-photo-box,
    .jimoto-tourism-photo {
        height: 180px;
    }

    .jimoto-tourism-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .jimoto-tourism-action-link,
    .jimoto-tourism-link-btn {
        text-align: center;
        padding: 8px 10px;
    }
}
