/* Contact Form */
.contact-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4b5563;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.submit-button {
    background-color: #0070c9;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.submit-button:hover {
    background-color: #005ba1;
}

.contact-button {
    margin-top: 1.5rem;
}

.contact-button a {
    display: inline-flex;
    align-items: center;
    background-color: #0070c9;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.contact-button a:hover {
    background-color: #005ba1;
}

.contact-button i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.bio {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Tab Navigation */
.tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    background-color: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    flex-grow: 1;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 500;
    position: relative;
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: #334155;
}

.tab-button i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.tab-button.active {
    background-color: #fff;
    color: #0070c9;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0070c9;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.tab-content > p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Projects Grid */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Project Cards */
.project-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card a.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    text-indent: -9999px;
}

.project-image {
    width: 120px;
    height: 120px;
    margin: 25px auto 15px;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.project-image i {
    font-size: 4rem;
    color: #3498db;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-weight: 600;
}

.project-description {
    color: #5a6a7a;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    position: relative;
    z-index: 5;
}

.tag {
    display: inline-block;
    background-color: #f1f5f9;
    color: #4b5563;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.tag:hover {
    background-color: #e5e7eb;
}

.tag.project {
    background-color: #e8f5e9;
    color: #388e3c;
}

.tag.ai {
    background-color: #fff8e1;
    color: #ffa000;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #2c3e50;
    color: #ecf0f1;
    margin-top: 2rem;
}

/* Home Page Specific Styles */
.intro-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.profile-image {
    font-size: 6rem;
    color: #3498db;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.skills-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.skills-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.skill-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h4 {
    margin-bottom: 0.5rem;
    color: #3498db;
}

.skill-category ul {
    list-style-type: none;
}

.skill-category li {
    padding: 0.3rem 0;
    border-bottom: 1px dotted #eee;
}

.projects-overview h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.projects-overview p {
    margin-bottom: 1.5rem;
}

.project-counts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.count-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.count-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #3498db;
}

/* Loading and Error Messages */
.loading {
    padding: 2rem;
    text-align: center;
    font-size: 1.2rem;
    color: #666;
}

.error-message {
    padding: 2rem;
    text-align: center;
    background-color: #fff3f3;
    border-radius: 5px;
    color: #e74c3c;
}

.error-message h3 {
    margin-bottom: 1rem;
}

.error-message p {
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tab-button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .projects {
        grid-template-columns: 1fr;
    }
    
    .profile {
        flex-direction: column;
        text-align: center;
    }
    
    .skill-categories {
        grid-template-columns: 1fr;
    }
    
    .project-counts {
        grid-template-columns: 1fr;
    }
}
.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-image .face-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* モダンなヘッダースタイル */
.modern-header {
    position: relative;
    background: linear-gradient(135deg, #1a2a6c, #2a3e75, #4267b2);
    color: #fff;
    text-align: center;
    padding: 4rem 0;
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M0,160L48,176C96,192,192,224,288,229.3C384,235,480,213,576,186.7C672,160,768,128,864,133.3C960,139,1056,181,1152,186.7C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center bottom;
    opacity: 0.7;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.header-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-text {
    max-width: 800px;
}

.modern-header h1 {
    margin-bottom: 1rem;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.text-gradient {
    background: linear-gradient(90deg, #00dbde, #fc00ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modern-header .bio {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.highlight {
    position: relative;
    display: inline-block;
    color: #fff;
    font-weight: 500;
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    z-index: -1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .modern-header h1 {
        font-size: 2.5rem;
    }
    
    .modern-header .bio {
        font-size: 1.1rem;
    }
    
    .header-logo {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 768px) {
    .header-content {
        flex-direction: row;
        text-align: left;
    }
    
    .logo-container {
        margin-right: 2rem;
        margin-bottom: 0;
    }
}