/**
 * File: assets/css/home-layout.css
 * Project: Used Car Sales Site
 * Version: 1.00.06
 * Description: テキストを完全な白に固定し、視認性を最大化した1カラムレイアウト
 */

/* --- Reset & 基本 (Ver 1.00.03 維持) --- */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f7f9;
    color: #333;
    line-height: 1.6;
}

h1,
h2,
h3 {
    margin: 0 0 10px 0;
}

a {
    text-decoration: none;
}

/* --- Astra 固定ヘッダー対応 --- */
.site-content {
    padding-top: 90px;
}

/* --- メインセクション (1カラム) --- */
.main-section {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* --- ヒーローセクション (視認性強化版) --- */
.hero-image {
    min-height: 550px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* 画像に合わせて左寄せ */
    padding: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* * 重要：左側のテキストエリアを暗くするグラデーション 
 * これにより白文字が背景の明るい部分に被っても読めるようになります
 */
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    /* 左寄せに変更 */
    width: 100%;
    max-width: 650px;
}

/* 上部のサブテキスト：白固定 ＋ 影 */
.hero-supertitle {
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* メインキャッチコピー：白固定 ＋ 強力な二重の影 */
.hero-content h1 {
    color: #ffffff !important;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.25;
    /* 背景が明るくても絶対に文字を浮き立たせる強力なシャドウ */
    text-shadow:
        0 4px 10px rgba(0, 0, 0, 0.9),
        0 1px 2px rgba(0, 0, 0, 1);
}

/* 下部の説明テキスト：白固定 ＋ 影 */
.hero-subtitle {
    color: #ffffff !important;
    font-size: 1.15rem;
    margin-bottom: 35px;
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* --- ボタン (Ver 1.00.03 維持) --- */
.btn {
    display: inline-block;
    font-weight: 700;
    padding: 16px 35px;
    margin: 8px 8px 8px 0;
    /* 左マージンを0に */
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
}

.btn-primary {
    background: #e60012;
    color: #fff;
}

.btn-primary:hover {
    background: #b3000e;
    transform: scale(1.05);
}

.btn-secondary {
    background: #ffc107;
    color: #333;
}

.btn-secondary:hover {
    background: #e0a800;
    transform: scale(1.05);
}

/* --- コンテンツセクション (Ver 1.00.03 維持) --- */
.campaign-item,
.store-info,
.review-item {
    background: #fff;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- レスポンシブ --- */
@media screen and (max-width:768px) {
    .hero-image {
        padding: 30px;
        min-height: 450px;
        justify-content: center;
    }

    .hero-content {
        text-align: center;
    }

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

    .btn {
        margin: 8px;
    }
}

/* キャンペーンセクション全体 */
.campaign-list {
    margin-top: 40px;
}

.campaign-list h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

/* 見出し下のアクセントライン */
.campaign-list h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #e60012; /* 中古車店らしい赤 */
}

/* キャンペーンカード単体 */
.campaign-item {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex; /* PC時は横並びにする（任意） */
    flex-direction: column; /* 基本は縦 */
    align-items: center;
    text-align: center;
    padding-bottom: 25px;
}

.campaign-item:hover {
    transform: translateY(-5px);
}

/* サムネイル画像 */
.campaign-item img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover; /* 画像の比率を保ちつつ枠に収める */
    border-bottom: 1px solid #eee;
}

/* タイトル */
.campaign-item h3 {
    padding: 20px 15px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* 詳細ボタンの調整 */
.campaign-item .btn-primary {
    margin-top: 10px;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(230, 0, 18, 0.3);
}

/* レスポンシブ調整 */
@media screen and (max-width: 768px) {
    .campaign-list h2 { font-size: 1.5rem; }
    .campaign-item h3 { font-size: 1.2rem; }
}