/* --- style.css --- */

/* 基本設定 */
:root {
    --text-color: #333;
    --background-color: #f9f9f9;
    --primary-color: #007bff;
    --card-background: #ffffff;
    --footer-background: #2c2c2c;
    --footer-text: #ccc;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 20px auto 0;
}

/* ヘッダー */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* メインビジュアル */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: #2c3e50; /* fallback for old browsers */
    background: linear-gradient(to right, #4ca1af, #2c3e50);
    padding-top: 60px; /* ヘッダーの高さ分 */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* Aboutセクション */
#about {
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 60px;
}

.services {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.service-item {
    flex: 1;
    padding: 30px;
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.service-item span {
    font-size: 3rem;
}

.service-item h3 {
    margin-top: 15px;
    font-size: 1.5rem;
}

/* Worksセクション */
#works {
    background-color: #eef1f5;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 320px);
    gap: 30px;
    justify-content: center;
}

.work-card {
    background: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.work-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.work-card-content {
    padding: 25px;
}

.work-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.work-card .category {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.work-card .link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

/* Contactセクション */
#contact {
    text-align: center;
}

.contact-text {
    margin-bottom: 30px;
}

.contact-email {
    color: var(--primary-color);
    text-decoration: none;
}

.social-links {
    margin-top: 40px;
}

.social-links a {
    margin: 0 15px;
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* フッター */
.footer {
    background: var(--footer-background);
    color: var(--footer-text);
    text-align: center;
    padding: 30px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* 簡単のため、スマホではメニューを非表示にします */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .services {
        flex-direction: column;
    }
}
