/* style.min.css - 純粋なCSSコード */

:root {
    --color-primary: #007bff; /* 青 */
    --color-secondary: #0056b3; /* 濃い青 */
    --color-background: #111111; /* 濃い背景 */
    --color-text-light: #f4f4f4; /* 明るい文字 */
}

/* 共通レイアウト */
body {
    background-color: var(--color-background);
    color: var(--color-text-light);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
h1, h2, h3, h4 {
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 30px;
}

/* ヘッダーとナビゲーション */
.site-header {
    background-color: var(--color-background); 
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 123, 255, 0.2);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    /* HOMEの位置ずれ修正 */
    align-items: center; 
}
.main-navigation a {
    color: var(--color-text-light);
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s;
    /* HOMEの位置ずれ修正 */
    display: inline-block; 
}
.main-navigation a:hover {
    color: var(--color-primary);
}

/* CTAボタン（汎用） */
.btn-cta, .btn-primary, .btn-cta-footer {
    background-color: var(--color-primary);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
}
.btn-cta:hover, .btn-primary:hover, .btn-cta-footer:hover {
    background-color: var(--color-secondary);
}

/* メインビジュアル */
.hero-section {
    height: 60vh;
    /* 背景画像パスはfront-page.phpで設定 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* 子要素の絶対配置の基準 */
    text-align: center;
    overflow: hidden; /* スライダー外の要素を隠す */
}
.hero-section h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
}

/* --- スライダー用CSS --- */
.slider-items { /* 画像/動画のコンテナ */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 画像用 */
    background-size: cover;
    background-position: center;
    opacity: 0; /* 通常は非表示 */
    transition: opacity 1.5s ease-in-out; /* フェードイン/アウトのアニメーション */
}
.slide.active {
    opacity: 1; /* アクティブな画像は表示 */
}
/* 動画要素（<video>）をスライド全体に広げる */
.slide video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.overlay {
    /* テキストとボタンを画像の上に固定する */
    position: relative; 
    z-index: 10; /* 画像の上に表示 */
}

/* 強みセクション (3つの約束) */
.about-strength-section {
    padding: 60px 0;
}
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列に設定 */
    gap: 30px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}
.strength-item {
    background-color: #222222;
    padding: 30px;
    border-top: 3px solid var(--color-primary);
    border-radius: 5px;
}
.strength-item h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* サービスリンクセクション */
.service-links-section {
    padding: 40px 0;
}
.service-links-section h2 {
    text-align: left; /* 見出しを左寄せ */
    margin-bottom: 20px;
}
.service-links-section a {
    /* 縦並びのカードデザインを維持 */
    display: block; 
    background-color: #333333;
    padding: 20px;
    margin-bottom: 10px;
    color: var(--color-text-light);
    text-decoration: none;
    border-left: 5px solid var(--color-primary);
    transition: background-color 0.3s;
}
.service-links-section a:hover {
    background-color: #444444;
}

/* 事例抜粋セクション */
.case-studies-excerpt {
    padding: 40px 0;
}
/* 支援事例グリッド */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列に設定 */
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;
}
.case-card-excerpt {
    display: block;
    background-color: #222222;
    padding: 20px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--color-text-light);
    border-top: 3px solid var(--color-primary);
}
.case-card-excerpt h3 {
    text-align: left;
    margin-bottom: 10px;
    font-size: 1.1rem;
}


/* フッター */
.site-footer {
    padding: 40px 0 10px;
    margin-top: 50px;
    text-align: center;
}
.footer-container {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: left;
}
.footer-nav ul {
    /* サイトマップのリストアイコンを削除 */
    list-style: none; 
    padding: 0;
    margin: 0;
}
.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}


/* --- レスポンシブ対応 (モバイルファースト) --- */

/* --- レスポンシブ対応 (モバイルファースト) --- */

/* 900px以上のPCサイズではハンバーガーアイコンは非表示 */
.menu-toggle {
    display: none; 
}
/* PCサイズではナビゲーションは横並びで表示 */
.main-navigation {
    display: block; 
}

@media (max-width: 900px) {
    /* PC表示でのナビゲーションは非表示 */
    .main-navigation {
        display: none; 
        position: absolute;
        top: 60px; /* ヘッダーの高さに合わせて調整 */
        left: 0;
        width: 100%;
        background-color: #111111;
        z-index: 100;
        padding-bottom: 20px;
        box-shadow: 0 5px 5px rgba(0,0,0,0.5);
    }
    /* openクラスが追加されたらナビゲーションを表示 */
    .main-navigation.toggled {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    .main-navigation a {
        padding: 15px 0;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* ハンバーガーアイコンのスタイル */
    .menu-toggle {
        display: block; /* モバイルでのみ表示 */
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 200;
        width: 30px;
        height: 24px;
        position: relative;
    }
    .menu-toggle .bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-text-light);
        margin: 5px 0;
        transition: 0.4s;
    }

    /* ヘッダーコンテナの調整 */
    .header-container {
        flex-direction: row; /* 横並びに戻す */
        justify-content: space-between;
    }
    /* CTAボタンも調整 */
    .btn-cta {
        order: 3; /* ボタンを右端に */
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .site-branding {
        order: 1; /* サイト名を左端に */
    }
    .menu-toggle {
        order: 2; /* ハンバーガーアイコン */
    }

    /* グリッドレイアウトを縦積みに変更 */
    .strengths-grid,
    .cases-grid {
        grid-template-columns: 1fr; /* 1列にする */
    }

    /* フッターのレイアウトを縦積みに変更 */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav, .footer-info {
        margin-bottom: 30px;
    }
    .footer-nav ul {
        display: block; /* 縦並びに */
        padding-bottom: 10px;
    }
    .footer-nav ul li a {
        display: block;
        padding: 5px 0;
    }
    
    /* 全体のパディング調整 */
    .site-content {
        padding: 0 15px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
}