/* ==========================================================================
   トップページ専用（スマホファースト）
   ========================================================================== */

/* メインビジュアル */
.hero-section {
    position: relative;
    /* ★左から右へ向かって暗くなるグラデーション（スマホ時は全体に薄く黒を敷く） */
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 100%), url('../images/mv-bg11.webp');
    background-size: cover;
    background-position: center;
    background-color: #151515;
    color: #ffffff;
    padding: 60px 20px;
    text-align: left; /* 文字左寄せ */
    border-bottom: 4px solid #dc3545;
}

.hero-container-flex {
    width: 100%;
}

.hero-content h2 {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.5;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: 0.85rem;
    color: #dddddd;
    margin: 0;
    line-height: 1.4;
    max-width: 400px; /* 文字が右に広がりすぎないように制限 */
}

/* お知らせリスト */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ★新設：日付とバッジをスマホでも横並びにするための枠 */
.news-meta {
    display: flex;
    align-items: center; /* 上下を中央で揃える */
    gap: 12px;           /* 日付とバッジの間のすき間 */
    margin-bottom: 8px;  /* 下の本文テキストとの間のすき間 */
}

/* ★日付の文字サイズを少し大きく調整 */
.news-date {
    font-size: 0.95rem; /* 0.85remから引き上げ、見やすく大きく */
    font-weight: bold;
    color: #444444;
}

/* ★バッジをスマホでも横長に、少し大きく見せる調整 */
.news-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
   /* ------------------------------------------------------------------
        ここを上書き修正（横幅を 75px に完全に固定します）
       ------------------------------------------------------------------ */
    width: 75px; 
    padding: 4px 0;    /* 左右のパディングを0にして、幅の計算を固定します */
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* 各バッジの色 */
.badge-new  { background-color: #17a2b8; } /* 新着：鮮やかな青 */
.badge-info { background-color: #333; } /* 案内：引き締まった黒 */

/* --- 追加のバッジバリエーション（スマホ最適化版） --- */
/* 1. 【重要】トラブルや納期遅延、お盆・年末年始の休みなど（目立つ鮮やかな赤） */
.badge-alert { background-color: #dc3545; } 

/* 2. 【入荷】予約商品が入ってきた時や、人気パーツの再入荷（勢いのあるレーシングオレンジ） */
.badge-arrival { background-color: #ff6600; } 

/* 3. 【イベント】サーキット走行会、展示会への出展、セール情報（サーキットのシグナル風グリーン） */
.badge-event { background-color: #28a745; } 

/* 4. 【ヤフオク】オークションへの格安出品、パーツ大放出（ヤフオクイメージのゴールド・黄色） */
.badge-auc { background-color: #ffcc00; color: #111111 !important; } 

/* 5. 【BASE】BASE限定クーポン配布やオリジナルグッズ発売（BASEイメージの青緑・ティール） */
.badge-base { background-color: #00b4aa; } 
/* 6. 【ヤフーショッピング】PayPayポイントアップ、5のつく日セール、即納パーツ案内（ヤフー公式の赤） */
.badge-yshop { 
    background-color: #ff0033; 
    color: #ffffff;
}


/* 本文テキスト */
.news-text {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* 過去のお知らせはこちらリンク */
.news-archive-link {
    text-align: right;
    margin-top: 15px;
}
.news-archive-link a {
    font-size: 0.9rem;
    font-weight: bold;
    color: #dc3545; /* ショップカラーの赤にして目立たせる */
    text-decoration: underline;
    display: inline-block;
    padding: 5px 0; /* タップしやすい縦幅 */
}

/* ==========================================================================
   PC用の調整
   ========================================================================== */
@media (min-width: 768px) {
    .hero-section {
        padding: 0;
        height: 420px; /* 迫力を出すため少し高く */
        display: flex;
        align-items: center;
        /* ★PCでは左側のグラデーションをよりクッキリ濃くして文字の視認性を確保 */
        background-image: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 100%), url('../images/mv-bg11.webp');
/* ★ここを変更・追加 */
        background-size: 100% auto;       /* 枠いっぱいに表示 */
        background-position: center;   /* 中央を基準にする */

    }
    
    .hero-container-flex {
        max-width: 1000px;
        margin: 0 auto;
        display: flex;
        justify-content: flex-start; /* 左側に寄せる */
    }
    
    /* ★PCのときは文字を左寄せにする */
    .hero-content.hero-left {
        text-align: left;
        padding-left: 20px;
    }
    
    .hero-content h2 {
        font-size: 2.4rem;
        margin-bottom: 15px;
        letter-spacing: 2px;
    }
    
    .hero-content p {
        font-size: 1.05rem;
        letter-spacing: 1px;
        max-width: 540px; /* 文字が右に広がりすぎないように制限 */
    }
    .news-date {
        font-size: 1rem;
    }

}
