@charset "utf-8";

.container {
    margin: 130px auto;
    padding: 0 8%;
    max-width: 1400px;
}
.card {
    padding: 60px;
    margin-bottom: 40px;
    position: relative;
}
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}
.profile-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-column: 1;
}
.profile-photo {
    width: 30vw;
    max-width: 410px;
    height: auto;
    display: block;
}
.sns {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    gap: 12px;
}
.sns a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}
.sns a img {
    width: 16px;
    height: 16px;
    display: block;
}
.sns a:hover {
    opacity: 0.7;
}
.sns-t {
    display: none;
}
.sns-p {
    display: none;
}
.profile-right-wrapper {
    grid-column: 2;
    display: flex;
    flex-direction: column;
}
.profile-header h1 {
    font-weight: 500;
}
.profile-header h1 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}
.profile-header h2 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}
.profile-header h3 {
    font-size: 14px;
    margin-bottom: 70px;
    font-weight: 500;
    line-height: 1.6;
}
.profile-text p {
    font-size: 14px;
    margin-bottom: 40px;
    text-align: justify;
    line-height: 2;
}
.profile-text p a{
    color: inherit;
    text-decoration: none;
}
.profile-text p a:hover{
    text-decoration: underline;
}
.section-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}
.section-title.alumni-title {
    margin-top: 100px;
}

.status {
    font-size: 14px;
    color: #666;
    font-style: italic;
    position: relative;
    z-index: 1;
}
.alumni-year {
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}
.alumni-year:first-of-type {
    margin-top: 0;
}
.alumni-list {
    font-size: 14px;
    line-height: 2;
    position: relative;
    z-index: 1;
}
.alumni-list span {
    margin-right: 20px;
    display: inline-block;
}

@media (max-width: 1024px) and (min-width: 800px), 
       (min-width: 800px) and (hover: none) and (pointer: coarse) {   
    .container {
        margin: 130px 8%;
    }
    .profile-content {
        grid-template-columns: 50% 1fr;
        grid-template-rows: auto auto;
        gap: 30px;
    }
    .profile-left {
        grid-row: 1;
        grid-column: 1;
    }
    .profile-photo {
        width: 100%;
        display: block; 
        height: auto;
    }
    .profile-right-wrapper {
        display: contents;
    }
    .profile-header {
        grid-row: 1;
        grid-column: 2;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .profile-header h3 {
        margin-bottom: 30px;
    }
    .sns {
        display: none;
    }
    .sns-t {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: auto; 
    }
    .sns-t a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #333;
        text-decoration: none;
        font-size: 13px;
    }
    .sns-t a img {
        width: 16px;
        height: 16px;
        display: block;
    }
    .sns-t a:hover {
        opacity: 0.7;
    }
    .profile-text {
        grid-row: 2;
        grid-column: 1 / -1;
        margin-top: 50px;
    }
}

@media (max-width: 800px) {
    .container {
        margin: 50px 1%;
    }
    .card {
        padding: 30px;
    }
    .profile-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .profile-left {
        grid-column: 1;
    }
    .profile-photo {
        width: 100%;
        max-width: none;
    }
    .profile-header h3 {
        margin-bottom: 40px;
        font-size: 14px;
    }
    .profile-right-wrapper {
        grid-column: 1;
        display: contents;
    }
    .sns {
        display: none;
    }
    .sns-t {
        display: none;
    }
    .sns-p {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .sns-p a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #333;
        text-decoration: none;
        font-size: 13px;
    }
    .sns-p a img {
        width: 16px;
        height: 16px;
        display: block;
    }
    .sns-p a:hover {
        opacity: 0.7;
    }
}
@media screen and (max-width: 600px) {
    .profile-header h1 {
    font-size: 16px;
    }
    .profile-header h2 {
        font-size: 14px;
    }
    .profile-text p {
    font-size: 12px;
    }   
    .alumni-list {
    font-size: 12px;
    }  
}