/* ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダーと言語切り替え */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0) 100%);
}

.language-switch {
    display: flex;
    align-items: center;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.language-switch:hover {
    background: rgba(26, 26, 26, 0.8);
}

.lang-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    color: #4ecdc4;
}

.lang-btn:hover {
    color: #fff;
}

.lang-divider {
    color: #444;
    margin: 0 2px;
    user-select: none;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #888;
}

/* 自己紹介セクション */
.about {
    padding: 100px 0;
    background: #0f0f0f;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
}

.about-text {
    font-size: 1.1rem;
    color: #888;
    margin: 2rem 0;
    line-height: 1.8;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid #4ecdc4;
}

.name-box {
    margin: 2rem 0;
    padding: 20px;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.name-jp {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.1em;
}

.name-en {
    font-size: 1.2rem;
    color: #888;
    letter-spacing: 0.2em;
    font-weight: 300;
}

/* SNSリンク */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-icon.twitter:hover {
    background: #1DA1F2;
}

.social-icon.github:hover {
    background: #333;
}

.social-icon.linkedin:hover {
    background: #0077B5;
}

/* 趣味セクション */
.hobbies {
    padding: 100px 0;
}

.hobbies h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.hobby-card {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 0 0 30px;
    text-align: center;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    overflow: hidden;
}

.hobby-card:hover {
    transform: translateY(-10px);
}

.hobby-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    overflow: hidden;
}

.hobby-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hobby-card:hover .hobby-image img {
    transform: scale(1.1);
}

.hobby-icon {
    margin-top: -30px;
    position: relative;
    z-index: 1;
    background: #1a1a1a;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hobby-card h3 {
    color: #4ecdc4;
    margin: 1rem 0;
    font-size: 1.25rem;
}

.hobby-card p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0 20px;
}

/* プロジェクトセクション */
.projects {
    padding: 100px 0;
    background: #0f0f0f;
}

.projects h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects-container {
    position: relative;
    padding: 20px 0;
}

.projects-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.projects-scroll::-webkit-scrollbar {
    height: 8px;
}

.projects-scroll::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.projects-scroll::-webkit-scrollbar-thumb {
    background: #4ecdc4;
    border-radius: 4px;
}

.project-card {
    flex: 0 0 300px;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    scroll-snap-align: start;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}


.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
    background: #1a1a1a;
}


.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #4ecdc4;
}

.project-content p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; /* 最大4行に制限 */
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.read-more {
    display: inline-block; /* ボタンを表示 */
    color: #4ecdc4;
    cursor: pointer;
    font-size: 0.9rem;
}

.project-content.expanded p {
    -webkit-line-clamp: unset; /* 行数制限を解除 */
    overflow: visible;
}

.project-content.expanded .read-more {
    display: none; /* 展開中は非表示 */
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    padding: 4px 12px;
    background: #2a2a2a;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #4ecdc4;
}

/* オーバーレイ効果 */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.view-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

/* ホバー効果 */
.project-image-link:hover .image-overlay {
    opacity: 1;
}

.project-image-link:hover img {
    transform: scale(1.1);
}

/* 経歴セクション */
.career {
    padding: 100px 0;
}

.career h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    height: 100%;
    width: 2px;
    background: #4ecdc4;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 100px;
    opacity: 0;
    transform: translateY(20px);
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    padding: 5px 10px;
    background: #4ecdc4;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.timeline-content {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
}

.timeline-content h3 {
    color: #4ecdc4;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #888;
    line-height: 1.6;
}

.timeline-content a {
    color: #4ecdc4; /* リンクの色を設定 */
    text-decoration: underline; /* 下線を表示 */
    transition: color 0.3s ease; /* カラー変更のアニメーション */
}

.timeline-content a:hover {
    color: #ff6b6b; /* ホバー時の色を変更 */
    text-decoration: none; /* ホバー時に下線を非表示 */
}

/* 全体のスタイルに影響を与えないようにスコープを限定 */
.timeline-content h3 a {
    font-weight: bold; /* 見出し内のリンクを太字に */
}


/* お問い合わせセクション */
.contact {
    padding: 100px 0;
    text-align: center;
    background: #0f0f0f;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-content p {
    color: #888;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #4ecdc4;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.contact-button:hover {
    background: #3dbdb4;
    transform: translateY(-2px);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.contact-button:hover .arrow-icon {
    transform: translateX(5px);
}

/* フッター */
.footer {
    padding: 20px 0;  /* パディングを小さく */
    background: #0a0a0a;
    text-align: center;
    border-top: 1px solid #1a1a1a;  /* 境界線を追加 */
}

.footer-content {
    font-size: 0.85rem;  /* フォントサイズを小さく */
    color: #666;  /* より控えめな色に */
}

.copyright {
    transition: color 0.3s ease;
}

.copyright:hover {
    color: #888;  /* ホバー時は少し明るく */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header {
        padding: 15px;
    }
    
    .language-switch {
        padding: 4px 10px;
    }
    
    .lang-btn {
        font-size: 12px;
    }

    .container {
        padding: 0 15px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hobbies-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .project-card {
        flex: 0 0 280px;
    }

    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-date {
        width: 60px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .project-card {
        flex: 0 0 260px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}
