/* =================================================================
   ???E?????E????????
================================================================= */

/* Google Fonts: Zen Maru Gothic */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700&display=swap');

body {
    font-family: 'Zen Maru Gothic', sans-serif;
}

/* ??E????E???E?? */
.staff-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: transparent;
    border-radius: 20px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    animation: staffPop 1s ease-out;
    transform: translateY(0);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ???E????????E?E?????E?? */
.staff-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #28a745);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

/* ???E?E?????????????? */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ???E????E?E?E??E?E????????? */
@keyframes staffPop {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ??E????? */
.staff-container h1 {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: #ff69b4;
    text-shadow: 2px 2px 8px #ffe4f7, 0 2px 0 #fff;
    border-radius: 16px;
    padding: 0.5em 1em;
    background: transparent;
    display: block;
    margin: 100px auto 40px auto;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-align: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    animation: titleSlide 1s ease-out 0.2s both;
    width: fit-content;
}

/* ???????E???? (???????????????????E */
.staff-container h1::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

/* ??????????????????? */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-5px); }
    60% { transform: translateX(-50%) translateY(-3px); }
}

/* ????????????????????? */
@keyframes titleSlide {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ?????????E?? */
.staff-header-image {
    width: 100%;
    max-width: 800px;
    margin: 120px auto 3rem;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out 0.4s both;
    background: transparent;
    display: block;
    visibility: visible;
    box-sizing: border-box;
}

/* ???????????E?E????E???????? */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ??????E*/
.staff-header-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: block;
    max-width: 100%;
    visibility: visible;
    opacity: 1;
    position: relative;
    z-index: 11;
    box-sizing: border-box;
}

/* ???????E??E??E?????????E*/
.staff-header-image img:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ???E?????????????E???????E*/
.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    animation: gridSlide 1s ease-out 0.6s both;
}

/* ???E??????????????????? */
@keyframes gridSlide {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ?E????E??????E?????? - ???E???? */
.staff-card {
    text-align: center;
    padding: 2rem;
    animation: cardPop 0.8s ease-out both;
    animation-delay: calc(1s + var(--card-index, 0) * 0.15s);
    opacity: 0;
    transform: translateY(30px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: 2px solid #ff69b4;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
    backdrop-filter: blur(10px);
}

/* ????????E?? - ?????? */
.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff69b4, #ff1493, #ff69b4);
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

/* ????E??E??E?????E- ?????? */
.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.3);
    border-color: #ff1493;
}

/* ?????????E??????????E????????? */
.staff-card:nth-child(1) { --card-index: 0; }
.staff-card:nth-child(2) { --card-index: 1; }
.staff-card:nth-child(3) { --card-index: 2; }
.staff-card:nth-child(4) { --card-index: 3; }
.staff-card:nth-child(5) { --card-index: 4; }
.staff-card:nth-child(6) { --card-index: 5; }
.staff-card:nth-child(7) { --card-index: 6; }
.staff-card:nth-child(8) { --card-index: 7; }
.staff-card:nth-child(9) { --card-index: 8; }

/* ?????????E?E????????? */
@keyframes cardPop {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ???E????????E?? */
.staff-image-container {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

/* ?????E???????E????E?? - ?????? */
.staff-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 105, 180, 0.2), rgba(255, 20, 147, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* ?????E???????E?????E- ?????? */
.staff-image-container:hover::before {
    opacity: 1;
}

/* ?????E???????E???????E- ?????? */
.staff-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.3);
}

/* ???E???????E???? */
.staff-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* ???????E???????E- ?????? */
.staff-image-container:hover img {
    transform: scale(1.1);
}

/* ???E???E??????E?? */
.staff-info {
    margin-top: 1.5rem;
    animation: fadeIn 1s ease-out 1.5s both;
}

/* ????????????????? */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ??????? */
.staff-position {
    font-size: 1.2rem;
    color: black; /* ???????????? */
    margin-bottom: 0.8rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

/* ?????E- ?????? */
.staff-position::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #ff69b4, #ff1493);
    border-radius: 1px;
}

/* ??????? */
.staff-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: black; /* ???????????? */
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ??????E???? - ???E???? */
.staff-quote {
    font-size: 1rem;
    color: #333;
    font-style: italic;
    margin-top: 1rem;
    padding: 1rem;
    border-top: 2px solid #ff69b4;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(255, 20, 147, 0.1));
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.1);
}

/* ???????????E(????) */
.staff-quote::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 10px;
    font-size: 1.2rem;
}

/* ??????E??E??E?????E- ?????? */
.staff-quote:hover {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.2), rgba(255, 20, 147, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

/* =================================================================
   ??E???E????????
================================================================= */
.staff-qualifications {
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: transparent;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    animation: qualificationsPop 1s ease-out 1.8s both;
}

/* ???????????E?E?????E?? */
.staff-qualifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff69b4, #ff1493, #ff69b4);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

/* ??E???E????????E?E?E??E?E????????? */
@keyframes qualificationsPop {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    50% {
        transform: translateY(-5px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ????????? (H2) */
.staff-qualifications h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

/* ??????E???? (???????????????????E */
.staff-qualifications h2::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

/* ????????????????? */
@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

/* ????????????E*/
.staff-qualifications h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff69b4, #ff1493);
    border-radius: 2px;
}

/* ?E?????????????E???????E*/
.qualification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ?E??E??????E?????? */
.qualification-card {
    background: transparent;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid white; /* ??????? */
    position: relative;
    overflow: hidden;
    text-align: center;
    cursor: default; /* ?????????????E*/
}

/* ?E??????????E?? */
.qualification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

/* 2?????E?E??????E??E?????????E*/
.qualification-card:nth-child(2)::before {
    background: linear-gradient(90deg, #17a2b8, #138496);
}

.qualification-card:nth-child(3)::before {
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

.qualification-card:nth-child(4)::before {
    background: linear-gradient(90deg, #6f42c1, #5a32a3);
}

.qualification-card:nth-child(5)::before {
    background: linear-gradient(90deg, #fd7e14, #e55a00);
}

/* ?E??????E??E??E?????????E*/
.qualification-card:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ?E???E(H3) */
.qualification-card h3 {
    color: black; /* ???????????? */
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

/* ?E????E??E*/
.qualification-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 1px;
}

/* 2?????E?E??????E?????????E*/
.qualification-card:nth-child(2) h3::after {
    background: linear-gradient(90deg, #17a2b8, #138496);
}

.qualification-card:nth-child(3) h3::after {
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

.qualification-card:nth-child(4) h3::after {
    background: linear-gradient(90deg, #6f42c1, #5a32a3);
}

.qualification-card:nth-child(5) h3::after {
    background: linear-gradient(90deg, #fd7e14, #e55a00);
}

/* ?E?????E??????? */
.qualification-card .staff-count {
    color: black; /* ???????????? */
    font-weight: bold;
    margin-top: 1rem;
    font-size: 1.8rem;
    text-align: center;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 2?????E?E??????E???E??????????E*/
.qualification-card:nth-child(2) .staff-count {
    color: black; /* ???????????? */
}

.qualification-card:nth-child(3) .staff-count {
    color: black; /* ???????????? */
}

.qualification-card:nth-child(4) .staff-count {
    color: black; /* ???????????? */
}

.qualification-card:nth-child(5) .staff-count {
    color: black; /* ???????????? */
}

/* =================================================================
   ????????E================================================================= */

/* ????E????? (768px??E */
@media screen and (max-width: 768px) {
    .staff-container {
        padding: 2rem 1rem;
        margin: 1rem;
        background: transparent;
        overflow: visible;
    }
    
    .staff-card {
        border: 1px solid white;
    }
    
    .staff-container h1 {
        margin: 80px 0 30px;
        font-size: 2rem;
        background: transparent;
    }
    
    .staff-header-image {
        max-width: 100%;
        margin: 100px auto 2rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
        width: 100% !important;
        padding: 0 1rem;
        box-sizing: border-box;
        animation: none !important;
        transform: none !important;
    }
    
    .staff-header-image img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        z-index: 11 !important;
        margin: 0 auto;
        transform: none !important;
        animation: none !important;
    }
    
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .staff-image-container {
        width: 180px;
        height: 180px;
    }
    
    .staff-qualifications {
        margin: 2rem 1rem;
        padding: 2rem 1rem;
        background: transparent;
    }
    
    .staff-qualifications h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .qualification-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ???E??????? (480px??E */
@media screen and (max-width: 480px) {
    .staff-container {
        overflow: visible;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .staff-image-container {
        width: 160px;
        height: 160px;
    }
    
    .staff-container h1 {
        font-size: 1.6rem;
        margin: 60px 0 20px;
        background: transparent;
    }
    
    .staff-header-image {
        max-width: 100%;
        margin: 80px auto 1.5rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
        width: 100% !important;
        padding: 0 1rem;
        box-sizing: border-box;
        animation: none !important;
        transform: none !important;
    }
    
    .staff-header-image img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        z-index: 11 !important;
        margin: 0 auto;
        transform: none !important;
        animation: none !important;
    }
    
    .staff-card {
        padding: 1.5rem;
        background: transparent;
        border: 1px solid white;
    }
    
    .staff-name {
        font-size: 1.3rem;
        color: black; /* ????????????E*/
    }
    
    .staff-position {
        font-size: 1.1rem;
        color: black; /* ????????????E*/
    }
    
    .staff-quote {
        font-size: 0.9rem;
        padding: 0.8rem;
        background: transparent;
        color: black; /* ????????????E*/
    }
    
    .qualification-card {
        padding: 1.5rem;
        background: transparent;
        border: 1px solid white; /* ???????E*/
    }
    
    .qualification-card h3 {
        font-size: 1.2rem;
        color: black; /* ????????????E*/
    }
    
    .qualification-card .staff-count {
        font-size: 1.5rem;
        color: black; /* ????????????E*/
    }
}

/* ??????????????? */
.email-link {
    text-decoration: none;
    color: black; /* ???????????? */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.email-link:hover {
    color: #ff69b4;
    transform: translateY(-1px);
}

.email-link i {
    font-size: 1rem;
    color: inherit;
}
