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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1C96D5;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1C96D5;
}

/* ★追加：ハンバーガーメニューボタンのスタイル */
.hamburger-btn {
    display: none; /* デスクトップでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ★追加：ハンバーガーアイコンがアクティブ時（X字）のスタイル */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ★追加：モバイルメニューオーバーレイのスタイル */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* ★追加：モバイルメニューがアクティブ時のスタイル */
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    text-align: center;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin: 1.2rem 0; /* ★変更：2rem → 1.2rem に縮小 */
}

.mobile-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem; /* ★変更：1.8rem → 1.3rem に縮小 */
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.6rem; /* ★変更：1rem → 0.6rem に縮小 */
}

.mobile-nav-link:hover {
    color: #1C96D5;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* セクション共通スタイル */
.section {
    padding: 5rem 0;
    width: 100%;
}

.section h2,
.philosophy-content,
.product-grid,
.company-info,
.recruitment-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1C96D5;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #1C96D5;
}

/* 企業理念セクション */
.philosophy {
    background: linear-gradient(135deg, rgba(28, 150, 213, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.philosophy-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

.philosophy-image {
    height: 400px;
    background: url('../images/philosophy-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 製品紹介セクション */
.products {
    background: #f8f9fa;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(28, 150, 213, 0.2);
}

.product-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.solar-panel {
    background-image: url('../images/solar-panels.jpg');
}

.battery-system {
    background-image: url('../images/battery-system.jpg');
}

.product-content {
    padding: 2rem;
}

.product-content h3 {
    font-size: 1.5rem;
    color: #1C96D5;
    margin-bottom: 1rem;
}

.product-content p {
    color: #666;
    margin-bottom: 1rem;
}

.features {
    list-style: none;
}

.features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.features li:before {
    content: '✓';
    color: #1C96D5;
    font-weight: bold;
    margin-right: 10px;
}

/* ★新規追加：画像なし製品カード用のスタイル */
.product-card-no-image {
    /* 画像がない分、上部にパディングを追加してバランスを取る */
    padding-top: 1rem;
}

.product-card-no-image .product-content {
    /* 画像なしカードのコンテンツ部分 */
    padding: 2rem;
    padding-top: 1rem; /* 上部パディングを調整 */
}

.product-card-no-image .product-content h3 {
    /* タイトルに視覚的なアクセントを追加 */
    position: relative;
    padding-bottom: 0.5rem;
}

.product-card-no-image .product-content h3:after {
    /* タイトル下にアクセントラインを追加 */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #1C96D5;
    border-radius: 2px;
}

/* 会社概要セクション */
.company-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.company-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.company-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.company-card h3 {
    color: #1C96D5;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: left;
    font-weight: 600;
}

.company-card h4 {
    color: #555;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.company-details-grid {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #1C96D5;
}

.detail-label {
    font-weight: 500;
    color: #666;
    font-size: 0.95rem;
}

.detail-value {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.business-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.business-list li {
    padding: 0.6rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.business-list li:before {
    content: '•';
    color: #1C96D5;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0.6rem;
}

.achievements {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.achievement-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.achievement-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.achievement-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #1C96D5;
}

.achievement-label {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

.certifications {
    margin-top: 1.5rem;
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.cert-badge {
    background: #e8f4f8;
    color: #1C96D5;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #d1e7f0;
}

/* 採用セクション */
.recruitment {
    background: linear-gradient(135deg, #1C96D5, #0d7ec4);
    color: white;
    text-align: center;
}

.recruitment h2 {
    color: white;
}

.recruitment h2::after {
    background: white;
}

.recruitment-content {
    max-width: 600px;
    margin: 0 auto;
}

.recruitment-btn {
    display: inline-block;
    background: white;
    color: #1C96D5;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recruitment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* フッター */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #1C96D5;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    /* ★変更：デスクトップナビを非表示、ハンバーガーボタンを表示 */
    .nav-links {
        display: none;
    }

    .hamburger-btn {
        display: block; /* モバイルでハンバーガーボタンを表示 */
    }

    .philosophy-content,
    .company-info {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }

    .section h2,
    .philosophy-content,
    .product-grid,
    .company-info,
    .recruitment-content,
    .footer-content,
    .footer-bottom {
        padding: 0 1rem;
    }

    .header {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .company-card {
        padding: 1.5rem;
    }

    .achievement-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .achievement-item {
        padding: 1rem;
    }

    .achievement-number {
        font-size: 2rem;
    }

    .cert-badges {
        justify-content: center;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

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

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