﻿/* ===== 作品集(Bootstrap 5 用) ===== */
:root {
    --g-bg: #f3f5f7;
    --g-surface: #ffffff;
    --g-ink: #1f2933;
    --g-muted: #6b7280;
    --g-line: #dfe3e8;
    --g-footer-h: 48px;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
}
html {
    scroll-behavior: smooth;
}
body {
    background: #fff;
    color: #333333;
    font-family: 游ゴシック体, "Yu Gothic", YuGothic, "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 16px;
    line-height: 1;
    text-align: left;
    -webkit-text-size-adjust: 100%;
    font-weight: 500;
}
a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

ul {
    list-style: none;
}

.gallery-body {
    background: var(--g-bg);
    color: var(--g-ink);
    font-family: "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
    /* 固定フッターに隠れないための余白 */
    padding-bottom: calc(var(--g-footer-h) + env(safe-area-inset-bottom, 0px) + 16px);
}

/* ---- ヘッダ ---- */
.gallery-header {
    background: var(--g-surface);
    border-bottom: 1px solid var(--g-line);
}

.gallery-brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--g-ink);
    text-decoration: none;
    width:150px;
    height:auto;
}

/* ---- 固定フッター ---- */
.gallery-footer {
    background: var(--g-surface);
    border-top: 1px solid var(--g-line);
    min-height: var(--g-footer-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---- メイン ---- */
.gallery-main {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

/* カテゴリへのジャンプ */
.gallery-jump {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.gallery-jump-link {
    padding: .35rem .9rem;
    border: 1px solid var(--g-line);
    border-radius: 999px;
    background: var(--g-surface);
    color: var(--g-ink);
    font-size: .9rem;
    text-decoration: none;
}

    .gallery-jump-link:hover {
        border-color: var(--g-ink);
    }

/* カテゴリ・色系統 */
.gallery-category {
    margin-bottom: 2.5rem;
    scroll-margin-top: 80px; /* sticky ヘッダ分 */
}

.gallery-category-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--g-ink);
}

.gallery-group {
    margin-bottom: 1.75rem;
    --group-color: #9ca3af;
}

    .gallery-group[data-group="red"] {
        --group-color: red;
    }

    .gallery-group[data-group="blue"] {
        --group-color: blue;
    }
    .gallery-group[data-group="yellow"] {
        --group-color: yellow;
    }
    .gallery-group[data-group="navy"] {
        --group-color: navy;
    }
    .gallery-group[data-group="black"] {
        --group-color: black;
    }
    .gallery-group[data-group="green"] {
        --group-color: green;
    }


.gallery-group-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .75rem;
}

    .gallery-group-title::before {
        content: "";
        width: .85rem;
        height: .85rem;
        border-radius: 50%;
        background: var(--group-color);
    }

/* ---- カード ---- */
.gallery-card {
    border: 1px solid var(--g-line);
    border-radius: .5rem;
    background: var(--g-surface);
    color: var(--g-ink);
    text-decoration: none;
    overflow: hidden;
}

    .gallery-card:hover {
        border-color: var(--group-color);
        color: var(--g-ink);
    }

    .gallery-card:focus-visible {
        outline: 3px solid var(--group-color);
        outline-offset: 2px;
    }

.gallery-thumb {
    background: #eceff3;
    border-bottom: 1px solid var(--g-line);
}

    .gallery-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.gallery-thumb-id {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #b8c0cb;
}

.gallery-card-title {
    font-weight: 600;
    font-size: .95rem;
}

.gallery-card-sub {
    font-size: .8rem;
    color: var(--g-muted);
}

/* ---- 空表示 ---- */
.gallery-empty {
    padding: 3rem 1rem;
    text-align: center;
    background: var(--g-surface);
    border: 1px dashed var(--g-line);
    border-radius: .5rem;
}

#js-pageTop {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 100;
}

    #js-pageTop:hover {
        filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);
        opacity: 0.6;
        transition: 0.5s;
        -o-transition: 0.5s;
        /* opera */
        -moz-transition: 0.5s;
        /* firefox */
        -webkit-transition: 0.5s;
        /* chrome, safari */
        -ms-transition: 0.5s;
        /* ie */
    }

    #js-pageTop .page-top-in {
        display: block;
        cursor: pointer;
        padding: 8px;
        text-align: center;
    }

        #js-pageTop .page-top-in::before {
            content: "";
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 0 0 100px 100px;
            border-color: transparent transparent #1f296b;
            position: absolute;
            bottom: 0;
            right: 0;
        }

        #js-pageTop .page-top-in .page-top-text {
            color: #ffffff;
            position: relative;
            z-index: 100;
            font-family: "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif;
            font-weight: bold;
        }