/* 全体設定 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

ul {
    list-style: none;
    padding: 0;

    li {
        background: white;
        margin: 10px 0;
        padding: 10px;
        border-radius: 0 5px 5px 0;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        font-size: 14px;

        span {
            width: 80px;
            display: inline-block;
        }
    }
}

h2 {
    font-size: 18px;
    border-bottom: 2px solid #007BFF;
    display: inline-block;
    padding-bottom: 5px;
}

/* ヘッダー */
.header {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 20px;
    background: linear-gradient(135deg, #3783d5, #0993a3);
    color: white;
    border-radius: 10px 10px 0 0;

    .profile-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .profile-img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: #93f1ac;
        padding: 5px;
        margin-right: 20px;
    }

    .profile-info {
        flex: 1;

        h1 {
            margin: 0;
            font-size: 22px;
        }

        p {
            font-size: 14px;
            color: #f8f9fa;
        }

        .contact-info {
            display: flex;
            gap: 15px;
            margin-top: 10px;

            a {
                display:flex;
                text-decoration: none;
                font-size: 14px;
                color: #f8f9fa;
                font-weight: bold;
                transition: 0.3s;

                &:hover {
                    text-decoration: underline;
                }
            }

            .link {
                display: flex;
                align-items: center;
                gap: 8px;
                text-decoration: none;
                font-size: 14px;

                .icon {
                    width: 20px;
                    height: 20px;
                }
            }
        }
    }
}

/* セクション */
section {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* キャリア */
.career {
    background: #E3F2FD;

    h2 {
        color: #007BFF;
        border-bottom: 2px solid #007BFF;
    }

    ul {
        li {
            border-left: 5px solid #007BFF;
        }
    }
}

/* スキルセクション */
.skills {
    background: #FFF3E0;

    h2 {
        color: #855b18;
        border-color: #855b18;
    }

    h3 {
        font-size: 14px;
        color:#855b18;
        margin-bottom: 6px;
        margin-top: 20px;
        border-bottom: 1px solid #855b18;
        padding-bottom: 3px;
    }

    .skills-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;

        .skill-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: calc(50% - 30px);
            background: #FFECB3;
            padding: 10px;
            border-radius: 5px;
            box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
            font-size: 14px;
            font-weight: bold;

            .badge {
                font-size: 14px;
                padding: 3px 8px;
                border-radius: 12px;
                font-weight: bold;
                text-align: left;
                min-width: 40px;
            }

            /* ★の数によって色を変更 */
            .badge[data-stars="★★★"] {
                background: #FFD700; /* ゴールド */
                color: black;
            }

            .badge[data-stars="★★"] {
                background: #d99736;
                color: white;
            }

            .badge[data-stars="★"] {
                background: #c9ba96;
                color: white;
            }
        }
    }
}

/* 資格リスト */
.certifications {
    background: #E8F5E9;

    h2 {
        color: #4CAF50;
        border-color: #4CAF50;
    }


    ul {
        li {
            border-left: 5px solid #4CAF50;
        }
    }
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 15px;
    }

    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;

        .profile-container {
            flex-direction: column;
            text-align: center;
        }

        .profile-img {
            margin-bottom: 10px;
        }

        .contact-info {
            flex-direction: column;
            align-items: center;
            gap: 5px !important;
        }
    }

    .skills {
        .skills-list {
            .skill-item {
                width: 100%;
            }
        }
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 16px;
    }

    p, li {
        font-size: 13px;
    }

    li{
        display: flex;
        flex-direction: column;

        span{
            font-size:12px;
        }
    }
}
