/* パスワード保護用 */
#protected-content {
    display: none;
}

:root {
    --accent: #6ec1f2;
    --ink: #1b1f23;
    --muted: #6b7280;
    --bg: #f7fbff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.wrap {
    max-width: 980px;
    margin: auto;
    padding: 16px;
}

.title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.title h1 {
    margin: 0;
    font-size: 28px;
}

.title a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

.controls {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    margin-top: 12px;
}

.controls .row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.controls input[type="text"] {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.controls select,
.controls button {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
}

.tagbox {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
}

.tag.active {
    border-color: var(--accent);
    color: var(--accent);
    background: #e7f5ff;
}

.count {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    padding-block: 16px;
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.thumb {
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%;
    background: #eef2f7;
}

.pad {
    padding: 12px 14px;
}

.meta {
    display: flex;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.chip {
    font-size: 11px;
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 999px;
}

.card h3 {
    margin: 4px 0 6px;
    font-size: 16px;
}

.card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

footer {
    padding: 24px 0;
    color: var(--muted);
    text-align: center;
}

@media (min-width: 720px) {
    .controls {
        grid-template-columns: 1fr auto;
    }
}