@charset "utf-8";
/* skills.css */
.skills-wrapper {
    padding: 40px 10px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.skills-header h1 {
    color: #1a365d;
}

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

/* スキルカード */
.skill-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    transition: 0.3s;
}

.skill-card:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.skill-card.highlight {
    border: 2px solid #3182ce;
    background: #fdfeff;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.skill-card h3 {
    color: #2d3748;
    margin-bottom: 15px;
    border-bottom: 2px solid #3182ce;
    display: inline-block;
}

.card-content p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 資格バッジ */
.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* バッジ表示エリアの調整 */
.badge-container {
    display: flex;
    justify-content: center;
    align-items: center; /* 縦方向の中央寄せ（これで引き伸ばしを防止します） */
    flex-wrap: wrap;     /* 複数並んだ時に折り返しを許可 */
    gap: 15px;           /* バッジ同士の間隔 */
    margin: 20px 0;
    min-height: auto;    /* 固定高さを解除 */
}

.static-badge {
    width: 120px;        /* 横幅を指定（好みのサイズに調整してください） */
    height: auto;        /* 縦横比を維持（重要！） */
    object-fit: contain; /* 枠内に収める */
    transition: transform 0.3s ease;
    cursor: pointer;
}

.static-badge:hover {
    transform: scale(1.1);
}

/* 他の資格タグとの間隔 */
.cert-badges {
    margin-top: 15px;
    justify-content: center; /* 中央寄せにするとバッジと馴染みます */
}

/* skills.css に追加 */

.badge-container.multi {
    flex-wrap: wrap; /* スマホで縦に並ぶように */
    gap: 10px;      /* バッジ同士の隙間 */
}

.badge-container.multi .static-badge {
    width: 110px;   /* 複数並ぶので、少しだけ小さくするとバランスが良いです */
}

@media (max-width: 480px) {
    .badge-container.multi .static-badge {
        width: 100px; /* スマホではさらに微調整 */
    }
}

.cert-tag {
    background: #edf2f7;
    color: #2d3748;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.cert-tag.future {
    background: #fff;
    border: 1px dashed #3182ce;
    color: #3182ce;
}

/* paiza等のランク表示 */
.rank-box {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 6px;
    padding: 5px 12px;
    width: fit-content;
}

.rank-label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #2f855a;
    margin-right: 10px;
}

.rank-value {
    font-size: 1rem;
    font-weight: 900;
    color: #276749;
}

.skill-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
    color: #4a5568;
}

.skill-list li {
    margin-bottom: 5px;
}