@charset "utf-8";

/* works.css */
.works-wrapper {
    padding: 40px 10px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.works-header {
    text-align: center;
    margin-bottom: 40px;
}

.works-header h1 {
    color: #1a365d;
    font-size: 2.2rem;
}

.subtitle {
    color: #718096;
    margin-top: 10px;
}

/* グリッドレイアウト */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* カードデザイン */
.work-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* 画像プレースホルダー */
.work-img-placeholder {
    height: 160px;
    background: #1a365d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

.work-body {
    padding: 20px;
    flex-grow: 1;
}

.category-tag {
    font-size: 0.75rem;
    color: #3182ce;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.work-body h3 {
    margin: 10px 0;
    color: #2d3748;
}

.work-body p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
}

/* 技術バッジ */
.tech-stack {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    background: #edf2f7;
    color: #4a5568;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.work-footer {
    padding: 15px 20px;
    background: #f7fafc;
    border-top: 1px solid #edf2f7;
}

.btn-sm {
    display: inline-block;
    padding: 8px 16px;
    background: #3182ce;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-badge {
    font-size: 0.8rem;
    color: #718096;
}

/* 制作予定用 */
.coming-soon {
    opacity: 0.7;
    border-style: dashed;
}

.footer-nav .btn.active {
    background: #e2e8f0;
    border-color: #cbd5e0;
    color: #718096;
    pointer-events: none;
}

/* ボタンを包むグループのスタイル */
.btn-group {
    display: flex;         /* 横並びにする */
    gap: 10px;            /* ボタン間の隙間 */
    padding: 15px 20px;   /* カード内の余白調整 */
    justify-content: center;
}

/* ボタン自体のスタイル調整 */
.btn-group .btn-sm {
    flex: 1;              /* 親要素の幅を等分に占有する */
    text-align: center;   /* テキストを中央寄せ */
    padding: 10px 5px;    /* 上下パディングを維持し、左右を調整 */
    font-size: 0.85rem;   /* 文字が溢れる場合は少し小さく調整 */
    white-space: nowrap;  /* 改行を防ぐ */
    text-decoration: none;
    border-radius: 4px;
    background: #3182ce;
    color: white;
    font-weight: bold;
    transition: 0.2s;
}

.btn-group .btn-sm:hover {
    background: #2b6cb0;
}



/* レスポンシブ (ナビゲーション等はabout.cssから継承可能) */
@media (max-width: 600px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
    .btn-group {
        flex-direction: column;
    }
}