/* home.css - トップページ専用のスタイル */

/* ヒーローセクション */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;

    /* --- ↓ ここからが重要です ↓ --- */
    background-image: url('../images/hero-background2025.jpg');
    background-repeat: no-repeat; /* ← 画像の繰り返しを無効化 */
    background-position: center center; /* ← 画像を中央に配置 */
    background-size: cover; /* ← 画像を引き伸ばして全体をカバー */
    /* --- ↑ ここまでが重要です ↑ --- */
}

/* 画像を読みやすくするための黒いオーバーレイ（推奨） */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* テキストがオーバーレイより手前に来るように設定 */
.hero-text {
    position: relative;
    z-index: 2;
    /* ...その他のスタイルは変更なし... */
}

.hero-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* スマホでボタンが改行されるように */
}


/* ビデオセクション */
.video-section {
    background-color: #fff;
}
.video-section video {
    width: 100%;
    max-width: 900px; /* 最大幅を指定 */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
/* ビデオセクションのレスポンシブ対応 */
.video-section {
    padding-top: 4rem; /* 上のセクションとの余白 */
    padding-bottom: 4rem; /* 下のセクションとの余白 */
    background-color: #fff; /* 背景色を指定するとより安定的 */
}

.video-section video {
    width: 100%; /* 幅を親要素に合わせる 2025-10-15追加*/ 
    max-width: 900px; /* PCでの最大幅を指定 */
    height: auto; /* 幅に合わせて高さを自動調整（縦横比を維持） */
    display: block; /* 余分な隙間を防ぐ */
    margin: 0 auto; /* 中央寄せ */
    border-radius: 10px; /* 角を丸くして柔らかな印象に */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* 影を付けて立体感を出す */
}

/* 強みセクション */
.strengths-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.strength-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.strength-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.strength-item img {
    height: 60px;
    margin-bottom: 1.5rem;
}
.strength-item h3 {
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-bottom: 0.8rem;
}

/* サービス概要セクション */
.services-overview {
    background-color: #fff;
}
.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-card h3 {
    font-size: 1.2rem;
    margin: 1.5rem 1.5rem 0.5rem;
    color: var(--heading-color);
}
.service-card p {
    font-size: 0.9rem;
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
}

/* 福利厚生セクション */
.welfare-section {
    background-color: #fff;
}
.welfare-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.welfare-card {
    text-align: center;
}
.welfare-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.welfare-card h3 {
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-bottom: 0.8rem;
}

/* 新着情報セクション */
.news-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}
.news-list li {
    border-bottom: 1px solid var(--border-color);
}
.news-list li a {
    display: flex;
    align-items: center;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s;
    flex-wrap: wrap;
}
.news-list li a:hover {
    background-color: #fff;
}
.news-list time {
    margin-right: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    flex-shrink: 0;
}
.news-list span {
    color: var(--link-color);
}
.news-list a:hover span {
    text-decoration: underline;
}

/* CTAセクション */
.cta-section {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
}
.cta-content h2 {
    color: #fff;
}
.cta-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}
.cta-section .primary-btn:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* レスポンシブデザイン（PC用スタイル） */
@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
    .hero-text p {
        font-size: 1.25rem;
    }
}

/* レスポンシブデザイン（モバイル用スタイル） */
@media (max-width: 767px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .news-list li a {
        padding: 1rem 0.5rem;
    }
    .news-list time {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}