@charset "utf-8";

/* すべての要素に適用 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}






html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    font-size: 1rem;
    font-family: "Yu Mincho", "Noto Serif JP", serif;
    height: 100%;
    margin: 0;
    background: linear-gradient(180deg, var(--bg), #9097ae);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}



:root {
    --bg: #0b0c10;
    --surface: #111318;
    --surface-2: #161922;
    --text: #e7e9ee;
    --muted: #a9b0c0;
    --brand: #4cc9f0;
    --accent: #b8f;
    --ok: #22c55e;
    --radius: 16px;
    --shadow: 0 10px 20px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .15);
}


.container {
    max-width: 1100px;
    margin-inline: auto;
    padding: 70px 20px;
}

.section-title {
    text-align: center;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: .02em;
    margin: 6px 0 18px;

}

.section-lead {
    color: var(--muted);
    margin: 0 0 28px
}

/* ======= List Grid ======= */
.list-works {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px
}

/* ======= Card ======= */
.work-card {
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease
}

.work-card:focus-within,
.work-card:hover {
    transform: translateY(-3px)
}

.work-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%
}

.work-media {
    position: relative;
    isolation: isolate
}

.work-figure {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    aspect-ratio: 16/10;
    background: #0d1117
}

.work-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    overflow: hidden;
}

/* small thumbnails overlay (optional) */
.thumbs {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 6px;
    z-index: 2
}

.thumbs img {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    opacity: .9
}

.badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(76, 201, 240, .12);
    color: var(--brand);
    backdrop-filter: saturate(140%) blur(6px);
    border: 1px solid rgba(76, 201, 240, .35);
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px
}

.work-body {
    padding: 16px 16px 14px;
    display: grid;
    gap: 12px
}

.work-h2 {
    margin: 0;
    font-size: clamp(15px, 2.2vw, 18px);
    font-weight: 700;
    line-height: 1.4
}

.work-sub {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px
}

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

.chip {
    font-size: 12px;
    color: #cfd6e6;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    padding: 6px 10px;
    border-radius: 999px
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #c4cbdb;
    font-size: 12px
}

.meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #485069;
    margin-inline: 2px
}

.work-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    margin-top: auto;
}

.links {
    display: flex;
    gap: 10px;
}

.btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover,
.btn:focus {
    outline: none;
    border-color: rgba(255, 255, 255, .35)
}

.btn.primary {
    border-color: rgba(76, 201, 240, .35);
    background: rgba(76, 201, 240, .12);
    color: var(--brand)
}

/* ======= Accessibility & Motion ======= */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

/* ======= Demo helper: make thumbnails hide on small screens ======= */
@media (max-width:480px) {
    .thumbs {
        display: none
    }
}