@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Roboto+Mono:wght@700&display=swap');

/* --- 基本設定 & 変数 --- */
:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --primary-color: #6a00ff; /* 鮮やかな紫 */
    --secondary-color: #333333;
    --card-bg: #1e1e1e;
    --border-color: #444444;
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Roboto Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden; /* 横スクロールバー防止 */
}

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

h1, h2, h3 {
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- ヘッダー --- */
header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-family: var(--font-display);
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-color);
}

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

header nav li {
    margin-left: 30px;
}

header nav a {
    color: var(--text-color);
    font-weight: 700;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

header nav a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* --- メインコンテンツ --- */
main {
    padding-top: 80px; /* ヘッダーの高さ分 */
}

/* --- ヒーローセクション --- */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
}

#hero h1 {
    font-family: var(--font-display);
    font-size: 6vw; /* ビューポート幅に応じたサイズ */
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#hero h1 span {
    color: var(--primary-color);
    display: inline-block; /* アニメーション用 */
}

#hero p {
    font-size: 1.2em;
    color: #aaa;
}

/* --- コンテンツセクション共通 --- */
.content-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.content-section:last-of-type {
    border-bottom: none;
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: 3em;
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* --- アバウトセクション --- */
#about .about-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

#about .profile-img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border: 5px solid var(--border-color);
    border-radius: 5px;
    transition: transform 0.5s ease;
}
#about .profile-img:hover {
    transform: scale(1.05);
}

#about .about-text {
    flex: 1;
}

#about h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--text-color);
}

#about p {
    margin-bottom: 15px;
    color: #bbb;
}

/* --- ワークスセクション --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.work-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.work-item:hover img {
    opacity: 0.8;
}

.work-item .work-info {
    padding: 20px;
}

.work-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #fff;
}

.work-item p {
    color: #aaa;
}

/* --- コンタクトセクション --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 1em;
    font-family: var(--font-primary);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form button.btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.contact-form button.btn:hover {
    background-color: #5a00d6; /* 少し暗い紫 */
    transform: translateY(-3px);
}

/* --- フッター --- */
footer {
    background-color: var(--secondary-color);
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

/* --- スクロールアニメーション --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* style.css に以下を追加 */

/* --- フッターのSNSアイコン --- */
footer .social-icons {
    margin-bottom: 10px; /* コピーライトとの間隔 */
}

footer .social-icons a {
    color: var(--text-color); /* アイコンの色をテキストカラーに合わせる */
    font-size: 1.5em;       /* アイコンのサイズ */
    margin: 0 10px;         /* アイコン同士の間隔 */
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: var(--primary-color); /* ホバー時の色をプライマリカラーに */
}

/* 既存のフッタースタイル調整 (必要に応じて) */
footer .container {
    display: flex;
    flex-direction: column; /* アイコンとコピーライトを縦に並べる */
    align-items: center;
}

/* --- レスポンシブ対応 (簡易) --- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 10vw;
    }

    #about .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #about .profile-img {
        margin-bottom: 30px;
    }

    header .container {
        flex-direction: column;
    }
    header nav ul {
        margin-top: 10px;
    }
     header nav li {
        margin: 0 10px;
    }
    main {
        padding-top: 120px; /* ヘッダーの高さ調整 */
    }
}