/*
Theme Name: UD-LAB Custom Theme
Theme URI: http://new.ud-lab.online/
Description: My custom theme for UD-LAB.online
Author: Your Name
Version: 1.0.0
*/

/* ここからheader.phpから移動したカスタムスタイル */
.sk-source-tag {
    width: 10px;
    height: 10px;
    display: inline-block;
    text-align: center;
    line-height: 10px;
    color: var(--text-icon-text-3, #485568);
    text-align: center;
    font-family: Outfit;
    font-style: normal;
    font-weight: 400;
    line-height: 170%;
    background: var(--fill-fill-2, #edeff1);
    cursor: pointer;
    background: url(https://static.skywork.ai/fe/skywork-site-assets/svg/ic_sources.svg) no-repeat;
    background-size: 100% 100%;
    vertical-align: middle;
}

.sk-source-tag:hover {
    background: url(https://static.skywork.ai/fe/skywork-site-assets/svg/ic_sources_hover.svg) no-repeat;
    background-size: 100% 100%;
}

.sk-source-tag.active {
    background: url(https://static.tiangong.cn/fe/skywork-site-assets/svg/ic_sources_hover.svg) no-repeat;
    background-size: 100% 100%;
}

.sk-source-text-check {
    background: var(--other-doc-check, rgba(77, 94, 255, 0.20));
}

.sk-hide-tag .sk-source-tag {
    display: none
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: transparent;
}

::-webkit-scrollbar-track {
    width: 6px;
    height: 6px;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

/* 研究室ページ用スタイル */
.file-item {
    transition: all 0.3s ease;
}
.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.lab-page {
    display: none;
}
.lab-page.active {
    display: block;
}
/* 追加スタイル: Googleフォームのiframeが親要素の幅にフィットするように */
.contact-form-container iframe {
    width: 100%;
    height: 853px; /* 高さは元の指定を維持 */
}
/* フッターの所在地と著作権表示のレイアウト調整 */
.footer-content {
    display: flex;
    flex-direction: column; /* モバイルでは縦並び */
    align-items: center; /* 中央寄せ */
    text-align: center;
    padding-bottom: 2rem; /* 下部に少し余白を追加してコンテンツが途切れないように */
}
@media (min-width: 640px) { /* sm以上で横並び */
    .footer-content {
        flex-direction: row;
        justify-content: space-between; /* 中央寄せ */
        align-items: flex-start; /* 上揃えに調整 */
        text-align: left; /* テキスト左揃え */
    }
    .footer-address {
        flex-grow: 1; /* 利用可能なスペースを埋める */
        text-align: left; /* 左寄せ */
        margin-right: 2rem; /* 必要に応じて調整 */
        margin-bottom: 0; /* モバイルでの下マージンをリセット */
    }
}
.footer-address p, .footer-address a {
    line-height: 1.5; /* 行の高さを調整 */
}
/* ここまでheader.phpから移動したカスタムスタイル */


/* Custom styles for UD-LAB website */
/* General styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Animation for elements */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header styles */
.logo-container svg text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Mobile menu styles */
.mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Hero section styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom right, transparent 49%, white 50%);
}

/* Space cards hover effect */
.space-card:hover {
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

/* Filter buttons active state */
.filter-btn.active, .project-filter-btn.active {
    background-color: #3B82F6;
    color: white;
}

/* Modal styles */
.max-h-90vh {
    max-height: 90vh;
}

/* Team member hover effect */
.team-member:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Custom form focus styles */
input:focus, textarea:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section::after {
        bottom: -30px;
        height: 60px;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Animation for cards on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* Accessibility improvements */
a:focus, button:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Space details modal animation */
#spaceModal {
    transition: opacity 0.3s ease;
}

#spaceModal.show {
    opacity: 1;
}

/* Project cards category colors */
.project-card[data-category="urban-planning"] .inline-block {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.project-card[data-category="sustainability"] .inline-block {
    background-color: #DCFCE7;
    color: #166534;
}

.project-card[data-category="community"] .inline-block {
    background-color: #FEF3C7;
    color: #92400E;
}

/* Footer link hover effect */
footer a:hover {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

/* Contact form submit button pulse effect */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

form button[type="submit"]:hover {
    animation: pulse 1.5s infinite;
}