/* ===== SST Web Fonts ===== */
@font-face {
    font-family: "SST";
    src: url("./font/SSTLight.TTF") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SST";
    src: url("./font/SSTRg.TTF") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SST";
    src: url("./font/SSTMedium.TTF") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SST";
    src: url("./font/SSTBold.TTF") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SST";
    src: url("./font/SSTHeavy.TTF") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===== Tokens ===== */
:root {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --ink: #1a1c1f;
    --ink-sub: #6b7077;
    --line: #e7e9ee;
    --accent: #2f6df0;
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(20, 24, 31, .04), 0 2px 8px rgba(20, 24, 31, .05);
    --shadow-lg: 0 12px 28px rgba(20, 24, 31, .12), 0 4px 10px rgba(20, 24, 31, .06);
    --maxw: 1200px;
}

/* ===== Reset ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    display: block;
    width: 100%;
    height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

body {
    font-family: "SST", -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
    background:
        radial-gradient(1200px 600px at 50% -10%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
        var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
.site-header {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 72px 24px 40px;
    text-align: center;
}

.header-inner {
    position: relative;
    display: inline-block;
}

.eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.site-title {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.site-desc {
    margin: 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--ink-sub);
    font-size: 15px;
    font-weight: 300;
}

.count-badge {
    display: inline-block;
    margin: 0 0 22px 0;
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-sub);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    box-shadow: var(--shadow-sm);
}

.line{
    color: #2D7A4F;
}

/* ===== Gallery grid ===== */
.gallery {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 24px 24px 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ===== Card ===== */
.card[hidden] {
    display: none;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eceef2;
}

.card-thumb img,
.card-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.card:hover .card-thumb img,
.card:hover .card-thumb video {
    transform: scale(1.06);
}

.card-go {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(26, 28, 31, .82);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .02em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}

.card:hover .card-go {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-top: 1px solid var(--line);
}

.card-logo {
    width: 44px;
    height: 44px;
    flex: none;
    object-fit: contain;
    border-radius: 10px;
    background: #f7f8fa;
    border: 1px solid var(--line);
    padding: 6px;
}

.card-meta {
    min-width: 0;
}

.card-name {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.card-name-sub {
    font-size: 11px;
    font-weight: 900;
    color: var(--ink-sub);
    margin-left: 4px;
}

.card-tag {
    font-size: 12.5px;
    font-weight: 300;
    color: var(--ink-sub);
    letter-spacing: .02em;
}

/* ===== Load more ===== */
.more-wrap {
    display: flex;
    justify-content: center;
    padding: 0 24px 64px;
}

.more-btn {
    font-family: inherit;
    cursor: pointer;
    padding: 13px 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .04em;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}

.more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.more-btn[hidden] {
    display: none;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 24px;
    text-align: center;
    color: var(--ink-sub);
    font-size: 13px;
    font-weight: 300;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card-name {
        font-size: 12px;
    }

    .site-desc {
        font-size: 12px;
    }

    .card-tag {
        font-size: 10px;
    }

}

@media (max-width: 560px) {
    .site-header {
        padding: 48px 20px 28px;
    }
}