/* --- CSS変数・基本設定 --- */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-color: #334155;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

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

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

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-color);
}

/* --- ヒーローセクション --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    padding-top: 70px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #1e293b;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #64748b;
}

/* --- ボタン --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.bg-light {
    background-color: var(--bg-light);
}

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

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- アバウト --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #cbd5e1;
}

.about-text {
    flex: 2;
    min-width: 280px;
}

.about-text h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* --- ワークス（カードグリッド） --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    padding: 24px;
}

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

.card-img {
    height: 160px;
    background-color: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 16px;
}

.card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.95rem;
    color: #64748b;
}

/* --- コンタクト --- */
.contact-text {
    text-align: center;
    margin-bottom: 24px;
    color: #64748b;
}

.contact-box {
    text-align: center;
}

/* --- フッター --- */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .nav {
        display: none; /* スマホ用メニューは省略の簡易対応 */
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
}