@charset "UTF-8";

/* 一覧カード：グリッド配置・カード本体・カード上のタグ表示 */

/* 一覧グリッド */
#list-all {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 3%;
    width: 100%;
    margin: 0 auto 60px;
}

/* カード本体 */
.content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    container-type: inline-size;
}

.content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(84, 181, 176, 0.3);
}

.content-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    background-color: #fff;
}

.content figure {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content figcaption {
    text-align: center;
    padding: 20px 15px;
    font-weight: 800;
    color: var(--dark-green);
    font-size: clamp(1rem, 6cqw, 1.3rem);
    line-height: 1.4;
    letter-spacing: 0.04em;
}

/* カード上のタグ */
.thumbnail-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 0 15px 15px;
    margin-top: -10px;
}

.thumbnail-tags .tag {
    font-size: 0.75rem;
    padding: 4px 10px;
}

.tag {
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 999px;
    background-color: transparent;
    border: 1px solid #ccc;
    color: #555;
}

.tag-attribute {
    font-weight: 600;
}

.tag-attribute--sports {
    border-color: #e57373;
    color: #c62828;
}

.tag-attribute--culture {
    border-color: #64b5f6;
    color: #1565c0;
}

.tag-attribute--autonomy {
    border-color: #81c784;
    color: #2e7d32;
}

/* 分類順表示の見出し */
.category-header {
    grid-column: 1 / -1;
    font-size: 1.4rem;
    color: var(--dark-green);
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 10px;
    margin: 20px 0 10px;
    text-align: left;
}