/* --- 基本リセット --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif; /* ここを変更 */
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #333;
}

/* --- コンテナ（幅の制限） --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー --- */
header {
    background: white;
    color: #333;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 1.5rem;
    color: #007bff;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007bff;
}

/* --- ヒーローセクション --- */
.hero {
    height: 100vh;
    padding-top: 60px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin: 10px 0 20px;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #0056b3;
}

/* --- スキルセクション --- */
.skills-section {
    padding: 80px 0;
    text-align: center;
    background-color: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.skill-item {
    padding: 30px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.icon-placeholder {
    font-size: 3rem;
    text-align: center;
}

/* --- 作品セクション（修正済み） --- */
.work-section {
    padding: 80px 0;
    text-align: center;
    background-color: #f4f4f4;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.work-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
    overflow: hidden;
    /* 修正点：プロパティの間をカンマで区切る */
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.work-image-placeholder {
    height: 200px;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- フッター --- */
.main-footer {
    background: #333;
    color: white;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: white;
    margin-left: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #007bff;
}

.contact-section {
    padding: 80px 0;
    background-color: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,0.2);
}

.contact-form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    nav ul li {
        margin-left: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .skills-grid, .work-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .social-links a {
        margin: 0 10px;
    }
}