/* ====================================
   Works Archive Page Styles
   制作実績一覧ページ
   ビッグナンバー + ミニマル + グリッチエフェクト
   ==================================== */

/* ====================================
   Breadcrumb
   ==================================== */
   .works-breadcrumb {
    width: 100%;
    padding: 10rem 0 0.5rem;
    position: relative;
    z-index: 10;
}

.works-breadcrumb__container {
    width: 80%;
    margin: 0 auto;
}

.works-breadcrumb__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.works-breadcrumb__link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.works-breadcrumb__link:hover {
    color: #4CAF50;
    text-decoration: none;
}

.works-breadcrumb__separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.works-breadcrumb__current {
    color: #4CAF50;
    font-weight: bold;
}

/* ====================================
   Hero Section
   ==================================== */
.works-hero {
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 20px;
    overflow: hidden;
}

.works-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.works-hero__container {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Left Side - Content */
.works-hero__left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease-out 0.3s forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.works-hero__label {
    font-size: 0.85rem;
    color: #4CAF50;
    letter-spacing: 0.4em;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.works-hero__label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #4CAF50;
    animation: lineExpand 0.8s ease-out 0.5s forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes lineExpand {
    to {
        transform: scaleX(1);
    }
}

.works-hero__title {
    font-size: 3rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.works-hero__title-line {
    display: block;
    position: relative;
}

.works-hero__description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.05em;
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

/* Right Side - Visual Elements */
.works-hero__right {
    position: relative;
    height: 600px;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease-out 0.5s forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.works-hero__visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Particles */
.works-hero__particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.works-hero__particle--1 {
    top: 10%;
    left: 20%;
    animation: float1 8s ease-in-out infinite;
}

.works-hero__particle--2 {
    top: 30%;
    left: 70%;
    animation: float2 10s ease-in-out infinite;
    animation-delay: 1s;
}

.works-hero__particle--3 {
    top: 50%;
    left: 15%;
    animation: float3 12s ease-in-out infinite;
    animation-delay: 2s;
}

.works-hero__particle--4 {
    top: 70%;
    left: 80%;
    animation: float4 9s ease-in-out infinite;
    animation-delay: 0.5s;
}

.works-hero__particle--5 {
    top: 20%;
    left: 50%;
    animation: float5 11s ease-in-out infinite;
    animation-delay: 1.5s;
}

.works-hero__particle--6 {
    top: 80%;
    left: 30%;
    animation: float6 13s ease-in-out infinite;
    animation-delay: 2.5s;
}

.works-hero__particle--7 {
    top: 40%;
    left: 90%;
    animation: float7 10s ease-in-out infinite;
    animation-delay: 3s;
}

.works-hero__particle--8 {
    top: 60%;
    left: 50%;
    animation: float8 14s ease-in-out infinite;
    animation-delay: 0.8s;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -30px); }
    50% { transform: translate(-15px, -50px); }
    75% { transform: translate(30px, -20px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-25px, 35px); }
    50% { transform: translate(20px, 60px); }
    75% { transform: translate(-30px, 25px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, 30px); }
    66% { transform: translate(-30px, 50px); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -40px); }
    50% { transform: translate(-25px, -60px); }
    75% { transform: translate(20px, -30px); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-35px, 45px); }
    66% { transform: translate(25px, 70px); }
}

@keyframes float6 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -25px); }
    50% { transform: translate(-20px, -45px); }
    75% { transform: translate(35px, -15px); }
}

@keyframes float7 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-40px, 35px); }
    66% { transform: translate(30px, 55px); }
}

@keyframes float8 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(25px, -35px); }
    50% { transform: translate(-30px, -55px); }
    75% { transform: translate(20px, -25px); }
}

/* ====================================
   Filter Section
   ==================================== */
.works-filter-section {
    position: relative;
    margin-bottom: 8rem;
}

.works-filter-section__container {
    width: 80%;
    margin: 0 auto;
    position: relative;
}

.works-filter-section__title {
    color: #fff;
    margin-bottom: 4rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

.works-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.works-filter__btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.works-filter__btn:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.4);
    color: #4CAF50;
    transform: translateY(-2px);
}

.works-filter__btn--active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

/* ====================================
   Works Grid Section
   ==================================== */
.works-grid-section {
    position: relative;
    margin-bottom: 12rem;
}

.works-grid-section__container {
    width: 80%;
    margin: 0 auto;
    position: relative;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.works-grid__item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.works-grid__item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 175, 80, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.works-grid__mockup {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.works-grid__mockup-pc {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: 70%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.works-grid__mockup-sp {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 25%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.works-grid__mockup-image {
    width: 100%;
    height: auto;
    display: block;
}

.works-grid__content {
    padding: 2rem;
}

.works-grid__category {
    display: inline-block;
    font-size: 0.8rem;
    color: #4CAF50;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.works-grid__title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
    font-weight: normal;
}

.works-grid__catchphrase {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    letter-spacing: 0.05em;
}

.works-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0;
}

/* ====================================
   Pagination
   ==================================== */
.works-pagination {
    margin-top: 5rem;
    position: relative;
    z-index: 1;
}

.works-pagination ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.works-pagination li {
    margin: 0;
}

.works-pagination a,
.works-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.works-pagination a:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.4);
    color: #4CAF50;
    transform: translateY(-2px);
}

.works-pagination .current {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

/* ====================================
   レスポンシブ対応
   ==================================== */
@media (max-width: 1200px) {
    .works-hero__container {
        width: 90%;
    }
    
    .works-hero__title {
        font-size: 2.5rem;
    }
    
    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 1000px) {
    .works-breadcrumb__container {
        width: 85%;
    }
    
    .works-breadcrumb {
        padding: 8.5rem 0 0.5rem;
    }
    
    .works-hero {
        padding-top: 20px;
    }
    
    .works-hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .works-hero__right {
        height: 400px;
    }
    
    .works-hero__title {
        font-size: 2.2rem;
    }
    
    .works-filter-section__title {
        font-size: 2.2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .works-breadcrumb {
        padding: 7rem 0 0.5rem;
    }
    
    .works-breadcrumb__container,
    .works-filter-section__container,
    .works-grid-section__container {
        width: 85%;
    }
    
    .works-breadcrumb__nav {
        font-size: 0.75rem;
        gap: 0.6rem;
    }
    
    .works-hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .works-hero__container {
        width: 85%;
    }
    
    .works-hero__title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .works-hero__description {
        font-size: 1rem;
    }
    
    .works-hero__right {
        height: 300px;
    }
    
    .works-filter-section__title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    .works-filter__btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .works-grid__content {
        padding: 1.5rem;
    }
    
    .works-grid__title {
        font-size: 1.1rem;
    }
    
    .works-grid__catchphrase {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .works-breadcrumb {
        padding: 6.5rem 0 0.5rem;
    }
    
    .works-breadcrumb__container,
    .works-filter-section__container,
    .works-grid-section__container {
        width: 90%;
    }
    
    .works-breadcrumb__nav {
        font-size: 0.7rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .works-hero__container {
        width: 90%;
    }
    
    .works-hero__title {
        font-size: 1.6rem;
    }
    
    .works-hero__description {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    .works-hero__right {
        height: 250px;
    }
    
    .works-filter-section__title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .works-filter__btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .works-grid__content {
        padding: 1.2rem;
    }
    
    .works-grid__category {
        font-size: 0.75rem;
    }
    
    .works-grid__title {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .works-grid__catchphrase {
        font-size: 0.8rem;
    }
    
    .works-pagination a,
    .works-pagination span {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
}



/* ロゴ表示用のコンテナ */
.works-grid__visual--logo {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* Web制作のモックアップ部分と同じ比率を確保（例: 4:3） */
    position: relative;
    background-color: #f5f5f5; /* ロゴが見やすい薄いグレー背景 */
    overflow: hidden;
    border-radius: 8px; /* 角丸をつける場合 */
}

/* ロゴ画像本体 */
.works-grid__logo-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠いっぱいにトリミングして表示する場合 */
    /* object-fit: contain;  ← ロゴ全体を欠けずに見せたい場合はこちらに切り替え */
}