/* =========================
   ポートフォリオ一覧ページ
========================= */

.portfolio-title{
    text-align: center;
    font-size: 32px;
    margin: 40px 0;
    color: #fff;
}

/* =========================
   カード全体
========================= */

.portfolio-card{
    width: 95%;
    max-width: 1000px;
    margin: 0 auto 40px;
    background: #444;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: 0.3s;
}

.portfolio-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* =========================
   上段（画像＋本文）
========================= */

.portfolio-image img{
    width: 100%;
    max-width: 300px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.portfolio-content{
    margin-top: 16px;
}

.portfolio-card_title{
    font-size: 22px;
    color: #fff;
    margin-bottom: 8px;
}

.portfolio-catch{
    font-size: 16px;
    color: #ddd;
    margin-bottom: 10px;
}

/* =========================
   ★ 説明文は必ず3行表示
========================= */

.portfolio-desc{
    line-height: 1.6;
    height: calc(1.6rem * 3);
    overflow: hidden;
}

/* =========================
   下段（カテゴリ・公開日・詳細）
========================= */

.portfolio-footer{
    display: flex;
    justify-content: space-between; /* 左右分離 */
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #666;
}

.portfolio-info{
    font-size: 14px;
    line-height: 1.6;
    color: #eee;
}

/* 詳細ボタン右寄せ */
.portfolio-actions{
    margin-left: auto;
}

.btn-detail{
    padding: 8px 20px;
    background: #FFC20E;
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-detail:hover{
    background: #ffcc00;
    transform: scale(1.05);
}

@media (max-width:768px){
   .portfolio-title{
     margin: 24px 0;
   }
   .portfolio-title h1{
    font-size: 20px;
   }
   .portfolio-title p{
    font-size: 14px;
   }
   .portfolio-card{
     padding: 16px;
     border-radius: 16px;
     gap: 16px;
   }
   .portfolio-image img{
     width: 100%;
     max-width: 100%;
     height: 300px;
   }
   .portfolio-card_title{
     font-size: 18px;
   }
   .portfolio-catch{
     font-size: 14px;
   }
   .portfolio-desc{
     font-size: 13px;
   }
   .portfolio-footer{
     flex-direction: column;
     align-items: flex-start;
     gap: 12px;
   }
   .portfolio-actions{
     width: 100%;
   }
   .btn-detail{
     width: 100%;
     text-align: center;
   }
}