/* ========================================
   作品紹介ページ
======================================== */

.works-main {
    min-height: 100vh;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 0%,
            rgba(0, 229, 255, 0.1),
            transparent 34rem),
        #02070b;
    font-family: "M PLUS Rounded 1c", sans-serif;
}


/* ========================================
   メインタイトル
======================================== */

.works-hero {
    position: relative;
    padding: 150px 24px 90px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.18);
    text-align: center;
}

.works-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.025) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(0, 229, 255, 0.025) 1px,
            transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.7),
            transparent);
}

.works-hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1100px);
    margin: 0 auto;
}

.works-hero-label {
    margin: 0 0 16px;
    color: #00e5ff;
    font-family: "Orbitron", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.24em;
}

.works-hero-title {
    margin: 0;
    font-size: clamp(38px, 5vw, 66px);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-shadow:
        0 0 9px rgba(0, 229, 255, 0.45),
        0 0 22px rgba(0, 229, 255, 0.18);
}

.works-hero-text {
    margin: 36px 0 0;
    color: #d7edf3;
    font-size: 17px;
    font-weight: 500;
    line-height: 2;
}


/* ========================================
   作品一覧
======================================== */

.works-gallery {
    padding: 72px 24px 40px;
}

.works-gallery-inner {
    width: min(100%, 1180px);
    margin: 0 auto;
}


/* 絞り込みボタン */

.works-filter {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 54px;
}

.works-filter-button {
    min-height: 52px;
    padding: 12px 18px;
    border: 1px solid rgba(0, 229, 255, 0.55);
    border-radius: 999px;
    color: #dcfaff;
    background: rgba(2, 12, 17, 0.9);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.works-filter-button:hover {
    transform: translateY(-2px);
    border-color: #00e5ff;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.2);
}

.works-filter-button.is-active {
    border-color: #00e5ff;
    color: #001015;
    background: #00dff7;
    box-shadow:
        0 0 12px rgba(0, 229, 255, 0.6),
        0 0 28px rgba(0, 229, 255, 0.25);
}


/* 作品カード一覧 */

.works-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.works-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: 22px;
    background:
        linear-gradient(145deg,
            rgba(7, 25, 33, 0.98),
            rgba(2, 10, 15, 0.98));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.works-card::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 4px;
    height: 100%;
    content: "";
    background: linear-gradient(to bottom,
            #00e5ff,
            #ff00b8,
            #ffe600);
}

.works-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 255, 0.7);
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.38),
        0 0 24px rgba(0, 229, 255, 0.12);
}


/* 画像・動画部分 */

.works-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #071118;
}

.works-card-image,
.works-card-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.works-card-image {
    transition: transform 0.45s ease;
}

.works-card:hover .works-card-image {
    transform: scale(1.035);
}

.works-card-video {
    background: #000000;
}

.works-card-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(255, 255, 255, 0.58);
    background:
        linear-gradient(135deg,
            rgba(0, 229, 255, 0.13),
            rgba(255, 0, 184, 0.08));
    font-family: "Orbitron", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15em;
}


/* カード本文 */

.works-card-content {
    padding: 24px 25px 26px;
}

.works-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
}

.works-card-date {
    color: #8faebb;
    font-family: "Orbitron", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.works-card-category {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    border: 1px solid #00e5ff;
    border-radius: 999px;
    color: #00e5ff;
    font-size: 12px;
    font-weight: 800;
}

.works-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.55;
}

.works-card-description {
    margin: 15px 0 0;
    color: #c5dbe2;
    font-size: 14px;
    line-height: 1.9;
}

.works-card-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 21px;
    color: #00e5ff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.works-card-link::after {
    content: "→";
    transition: transform 0.25s ease;
}

.works-card-link:hover::after {
    transform: translateX(5px);
}


/* 読み込み・作品なし */

.works-message {
    margin: 65px 0;
    color: #a8c5ce;
    font-size: 15px;
    text-align: center;
}

.works-message[hidden] {
    display: none;
}


/* ========================================
   注意書き
======================================== */

.works-note {
    padding: 10px 24px 80px;
}

.works-note-inner {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 20px 24px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 14px;
    background: rgba(0, 229, 255, 0.035);
}

.works-note p {
    margin: 0;
    color: #9db8c1;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}


/* ========================================
   お問い合わせ
======================================== */

.works-contact {
    padding: 35px 24px 85px;
}

.works-contact-inner {
    width: min(100%, 800px);
    margin: 0 auto;
    padding: 55px 45px;
    border: 1px solid rgba(255, 230, 0, 0.6);
    border-radius: 22px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 100%,
            rgba(255, 230, 0, 0.1),
            transparent 65%),
        rgba(7, 12, 15, 0.94);
    box-shadow: 0 0 32px rgba(255, 230, 0, 0.08);
}

.works-contact-label {
    margin: 0 0 15px;
    color: #ffe600;
    font-family: "Orbitron", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.works-contact h2 {
    margin: 0;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.6;
}

.works-contact p:not(.works-contact-label) {
    margin: 19px 0 0;
    color: #c5dbe2;
    font-size: 14px;
    line-height: 1.8;
}

.works-contact-button {
    display: inline-flex;
    min-width: 285px;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 30px;
    padding: 12px 24px;
    border: 1px solid #ffe600;
    border-radius: 999px;
    color: #ffe600;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.works-contact-button:hover {
    transform: translateY(-2px);
    color: #070900;
    background: #ffe600;
    box-shadow: 0 0 24px rgba(255, 230, 0, 0.3);
}


/* ========================================
   トップへ戻る
======================================== */

.works-back {
    padding: 0 24px 115px;
    text-align: center;
}

.works-back a {
    display: inline-flex;
    min-width: 290px;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 25px;
    border: 1px solid #00e5ff;
    border-radius: 999px;
    color: #ffffff;
    font-family: "Orbitron", "M PLUS Rounded 1c", sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.works-back a:hover {
    color: #001015;
    background: #00e5ff;
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.25);
}