/* 基本設定 */
:root {
    --primary-color: #0056b3; /* 信頼感のある青 */
    --text-color: #333;
    --bg-light: #f4f7f6;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ヘッダー */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.global-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.global-nav a {
    font-weight: bold;
    transition: color 0.3s;
}

.global-nav a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
}

/* メインビジュアル (Hero) */
.hero {
    /* 本番ではここにビルの画像やコンクリートの美しいテクスチャ画像を設定します */
    background-color: #2c3e50; 
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: #e74c3c; /* アクセントカラー */
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #c0392b;
}

/* セクション共通 */
.section {
    padding: 80px 20px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

/* 特徴グリッド (3カラム) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* フッター */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* スマホ対応 (レスポンシブ) */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    .global-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
}

/* =========================================
   メインビジュアル（スライドショー）
   ========================================= */
.hero {
    position: relative; /* スライド画像とテキストを重ねるための基準 */
    width: 100%;
    height: 600px; /* メインビジュアルの高さを固定 */
    overflow: hidden; /* はみ出した部分を隠す */
    display: flex;
    align-items: center; /* テキストを上下中央寄せ */
    justify-content: center; /* テキストを左右中央寄せ */
    background-color: #333; /* 画像が読み込まれるまでの背景色 */
}

/* スライドショーのリスト */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 0; /* テキストより後ろに配置 */
}

/* 各スライド画像 */
.hero-slider li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* 初期状態は透明 */
    animation: slideAnimation 18s infinite; /* 18秒で1周するアニメーション */
}

/* 画像の上に重ねる暗いフィルター */
.hero-slider li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

/* 各画像の背景設定とアニメーション遅延 */
.hero-slider li:nth-child(1) {
    background-image: url('hero-slide1.jpg');
    animation-delay: 0s; /* すぐに開始 */
}
.hero-slider li:nth-child(2) {
    background-image: url('hero-slide2.jpg');
    animation-delay: 6s; /* 6秒後に開始 */
}
.hero-slider li:nth-child(3) {
    background-image: url('hero-slide3.jpg');
    animation-delay: 12s; /* 12秒後に開始 */
}

/* スライド切り替えのアニメーション定義 */
@keyframes slideAnimation {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1; /* フェードイン完了 */
        transform: scale(1); /* 初期サイズ */
    }
    33% {
        opacity: 1; /* 次の画像が来るまで表示維持 */
        transform: scale(1.05); /* ゆっくりズームインさせる効果 */
    }
    38% {
        opacity: 0; /* フェードアウト完了 */
    }
    100% {
        opacity: 0;
    }
}

/* テキストコンテンツの調整 */
.hero-content {
    position: relative;
    z-index: 1; /* 画像より手前に表示 */
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 800px; /* テキストの幅を制限 */
}

/* スマホでの高さ調整 */
@media (max-width: 768px) {
    .hero {
        height: 400px;
    }
}