:root {
    --color-blue-light: #02A1A7;
    --color-orange: #FC6203;
    --color-gray: #919191;
}

/* プロフィール */

.profile-section {
    color: #2F1B00;
    margin: 30px auto;
    max-width: 1140px;
    display: flex;
}

.profile-photo {
    text-align: center;
    margin: 20px;
    min-width: 370px;
    border-right: 1.5px solid rgba(128, 128, 128, 0.3);
}

.profile-photo .name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-photo img {
    margin: 20px;
    height: 140px;
    width: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-text {
    padding: 20px;
}

.profile-text p {
    line-height: 1.8;
    font-weight: 500;
}

.profile-text p.no-set {
    font-weight: normal;
    text-align: left;
}

.mylist {
    display: flex;
    gap: 10px;
}

.sns-links {
    margin-top: 15px;
}

.sns-links ul {
    display: flex;
    gap: 6px;
}

.sns-links ul li a img {
    width: 30px;
    height: 30px;
}

/* SP */
@media (max-width: 768px) {
    .profile-section {
        display: block;
        margin: 20px auto;
        padding: 0 20px;
        text-align: center;
    }

    .profile-photo {
        min-width: auto;
        padding: 10px 0;
        border-right: none;
        margin: 0 20px;
    }

    .profile-photo img {
        margin: 15px auto;
        display: block;
        width: 120px;
        height: 120px;
    }

    .profile-text {
        padding: 10px 0 20px;
        max-width: 400px;
        margin: 0 auto;
    }

    .profile-text p {
        text-align: left;
    }

    .profile-text p.no-set {
        font-weight: normal;
        text-align: center;
    }

    .sns-links ul {
        justify-content: center;
    }
}

/* プロジェクト一覧 */

.tabs {
    margin: 0 auto;
    max-width: 1140px;
    font-weight: 500;
    font-size: 16px;
}

.tabs ul {
    display: flex;
    gap: 10px;
}

.tabs li {
    display: flex;
    flex: 1;
    background-color: var(--color-gray);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.tabs li img {
    height: 70px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.tabs li.tab-supported.active {
    position: relative;
    background-color: var(--color-blue-light);
}

.tabs li.tab-owned.active {
    position: relative;
    background-color: var(--color-orange);
}

.tabs li a {
    width: 100%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.tabs li a img {
    margin-right: 15px;
}

/* ▼矢印ベース */
.tabs li a.pointer::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
}

.tabs li.tab-supported a.pointer::after {
    border-top: 20px solid var(--color-blue-light);
}

.tabs li.tab-owned a.pointer::after {
    border-top: 20px solid var(--color-orange);
}

.outline {
    max-width: 1140px;
    margin: 0 auto 80px;
    padding: 10px;
    background-color: #F2F2F2;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    border-width: 4px;
    border-style: solid;
}

.outline-supported {
    border-color: var(--color-blue-light);
}

.outline-owned {
    border-color: var(--color-orange);
}

.outline .no-projects {
    text-align: center;
    margin: 100px 0;
}

/* SP */
@media (max-width: 768px) {

    .tabs ul {
        gap: 0;
    }

    .tabs ul li {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    .tabs ul li a {
        text-decoration: none;
        flex-direction: column;
        align-items: center;
    }

    .tabs li a img {
        margin-right: 0;
    }

    .tabs li a.pointer::after {
        bottom: -12px;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
    }
}

/* プロフィールテキスト */

.profile-content {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.8;
}

p.profile-content {
    margin-bottom: 0;
}

.profile-content.is-close {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* トグル */

.profile-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 0 0 auto;
    padding: 4px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #000;
    line-height: 1;
}

.profile-toggle-icon {
    width: 8px;
    height: 8px;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    transform: rotate(45deg);
    margin-top: -4px;
}

.profile-toggle.is-open .profile-toggle-icon {
    transform: rotate(225deg);
    margin-top: 4px;
}

/* プロジェクトカードのスタイルを上書き */
.outline .achievement-list-favorite {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    padding-right: 15px;
    padding-left: 15px;
}

@media screen and (max-width: 1024px) {
    .outline .achievement-list-favorite {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .outline .achievement-list-favorite {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.outline .achievement-list-favorite .project-card {
    width: 100%;
    min-width: 0;
}
