/* style.css */

/* Interフォントを適用 */
body {
    font-family: 'Inter', sans-serif;
}

/* ナビゲーションリンクのホバーエフェクト */
nav ul li a {
    position: relative;
    padding-bottom: 5px; /* 下線とテキストの間にスペース */
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000000; /* Tailwind blue-500 */
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active::after {
    width: 100%;
}


/* セクション間の余白を調整 */
section {
    margin-bottom: 3rem; /* 各セクションの下に余白 */
}

/* プロフィール写真のボーダーとシャドウ */
img.rounded-full {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 260px;
    height: 260px;
}

/* カード要素のホバーエフェクト */
.bg-blue-50 {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.bg-blue-50:hover {
    transform: translateY(-5px); /* 少し上に移動 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* より強いシャドウ */
}

/* ボタンのスタイル */
.inline-block {
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.inline-block:hover {
    transform: translateY(-2px); /* 少し上に移動 */
}

/* レスポンシブデザインの調整 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
    }
    nav ul li {
        margin-bottom: 0.5rem;
    }
    #home {
        flex-direction: column;
        text-align: center;
    }
    #home .md:w-1/3, #home .md:w-2/3 {
        width: 100%;
    }
    .grid-cols-1.md:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    .grid-cols-1.md:grid-cols-2.lg:grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* ページ切り替えアニメーション */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 홈 ui 글자 크기*/
.custom-list-text {
    font-size: 1.4rem; /* 원하는 글자 크기로 설정 (예: 1.1rem은 body 기본 크기보다 10% 큼) */
    /* 또는 font-size: 18px; 와 같이 픽셀 값 사용 가능 */
}


/* 이력서 이미지들을 담을 컨테이너 스타일 */
.resume-images-container {
    display: flex;             /* Flexbox를 사용하여 내부 요소들을 정렬 */
    flex-direction: column;    /* 요소들을 수직 방향으로 나열 */
    align-items: center;       /* 가로 방향으로 중앙 정렬 */
    gap: 20px;                 /* 이미지들 사이의 간격 */
    width: 100%;               /* 부모 요소의 너비에 맞춤 */
    max-width: 2500px;         /* 컨테이너의 최대 너비 설정 (선택 사항, 필요에 따라 조절) */
    margin-left: auto;         /* 좌우 마진을 자동으로 설정하여 컨테이너 자체를 중앙 정렬 */
    margin-right: auto;        /* 좌우 마진을 자동으로 설정하여 컨테이너 자체를 중앙 정렬 */
}

/* 개별 이력서 이미지 스타일 */
.resume-image {
    max-width: 100%;
    width: 900px;           /* 이미지의 최대 너비를 컨테이너에 맞춤 (반응형) */
    height: auto;              /* 비율 유지 */
    display: block;            /* 이미지 하단의 여백 제거 */
    border: 1px solid #e0e0e0; /* 이미지 테두리 (선택 사항) */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 그림자 효과 (선택 사항) */
    border-radius: 8px;        /* 모서리 둥글게 (선택 사항) */
}



.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    height: auto;
    background-color: transparent;
}

.modal-frame {
    position: relative;
    width: 100%;
    height: 80vh; /* 프레임의 높이를 고정하여 그 안에서만 이미지가 보이도록 설정 */
    background-color: #EFF6FF; /* 프레임 배경색 */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    overflow: hidden; /* 이 속성이 중요합니다! 컨테이너 밖으로 나가는 부분은 숨깁니다. */
    border: 0.5px solid #000000;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

#modalImage {
    transition: transform 0.2s ease-in-out;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 이미지가 컨테이너에 맞게 비율 유지 */
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #555;
    background-color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.close:hover {
    background-color: #eee;
}
