/* 全体のスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 言語切り替えボタン */
.lang-switch-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ffeb3b;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    z-index: 1001;
}

.lang-switch-btn:hover {
    background-color: #fdd835;
    transform: scale(1.05);
}

.lang-switch-btn:active {
    transform: scale(0.98);
}

/* ヘッダー */
header {
    background-color: #2196F3;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin-right: 20px;
    margin-bottom: 5px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffeb3b;
}

/* ヒーローセクション */
#hero {
    background: linear-gradient(rgba(33, 150, 243, 0.7), rgba(33, 150, 243, 0.7)), url('https://assets.about.me/background/aya_welcom_1310145066_87.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 60px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-content .location {
    font-size: 1.2rem;
}

/* セクション共通 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #2196F3;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #ffeb3b;
    margin: 15px auto 0;
}

/* プロフィールセクション */
.profile-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-info {
    flex: 1 1 400px;
}

.profile-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2196F3;
}

.profile-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.profile-info h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2196F3;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.skills-list li {
    background-color: #e3f2fd;
    color: #2196F3;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ポートフォリオセクション */
.portfolio-categories {
    margin-bottom: 40px;
}

.category {
    margin-bottom: 40px;
}

.category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2196F3;
    border-left: 4px solid #ffeb3b;
    padding-left: 15px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-item h4 {
    padding: 15px 15px 5px;
    font-size: 1.2rem;
    color: #2196F3;
}

.portfolio-item p {
    padding: 0 15px 15px;
    font-size: 0.9rem;
}

.portfolio-link, .blog-link {
    text-align: center;
    margin-top: 30px;
}

.button {
    display: inline-block;
    background-color: #2196F3;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #1976D2;
}

/* ブログセクション */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.post-image {
    flex: 0 0 300px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-content {
    flex: 1 1 300px;
    padding: 20px;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2196F3;
}

.post-date {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

.post-excerpt {
    margin-bottom: 15px;
}

.read-more {
    color: #2196F3;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* 趣味セクション */
.hobbies-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.hobby-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hobby-icon {
    font-size: 2.5rem;
    color: #2196F3;
    margin-bottom: 20px;
}

.hobby-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2196F3;
}

/* コンタクトセクション */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #2196F3;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-link i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.portfolio-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* フッター */
footer {
    background-color: #2196F3;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffeb3b;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .profile-info h3 {
        font-size: 1.5rem;
    }
    
    .blog-post {
        flex-direction: column;
    }
    
    .post-image {
        flex: 0 0 100%;
    }
    
    .lang-switch-btn {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .profile-info h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .hobbies-content {
        grid-template-columns: 1fr;
    }
}
