/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ブロック1: ヘッダー・ナビゲーション */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* ブロック2: トップ画像エリア（常に全体表示） */
.top-image-section2 {
    width: 100%;
    background: #f8f8f8;
}

.image-container2 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-image2 {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* 画像全体を常に表示、アスペクト比維持 */
    max-width: 100%;
}

/* ブロック3: ヒーローセクション */
.hero-section2 {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #000000;
    color: white;
}

.hero-content2 {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.3;
}

.hero-subtitle2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description2 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons2 {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* ブロック4: メインコンテンツ */
.main-content {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.content-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.content-item.reverse .content-image {
    order: 2;
}

.content-item.reverse .content-text {
    order: 1;
}

.content-image {
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content-text {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.content-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

/* お問い合わせセクション */
.contact-section {
    padding: 4rem 2rem;
    text-align: center;
    background: #2c3e50;
    color: white;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .content-item,
    .content-item.reverse {
        grid-template-columns: 1fr;
    }

    .content-item.reverse .content-image {
        order: 1;
    }

    .content-item.reverse .content-text {
        order: 2;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .content-text {
        padding: 1.5rem;
    }

    .content-text h3 {
        font-size: 1.5rem;
    }
}