/* --- ハイライトセクション (highlight-section.css) --- */

.hl-section {
    /* セクション間の隙間を詰めるため、上パディングを 40px に縮小 */
    padding: 40px 0 100px; 
    background-color: #fff;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* 画面幅いっぱいに広がる背面の青パネル */
.hl-section::before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: #0054a6; /* レクストンブルー */
    left: 0;
    right: 0;
    width: 100%;

    /* パネルの縦方向：コンテンツの高さに合わせて調整 */
    top: 30%;   
    bottom: 20%;
}

/* 共通タイトルがある場合の調整 */
.intro-subtitle-accent {
    text-align: center;
    margin-top: 30px; 
    margin-bottom: 0;
    font-weight: bold;
    color: #0054a6;      
    font-size: 30px;
    line-height: 1.4;
}

/* ハイライトコンテナ：コンテンツを中央に保持 */
.hl-container {
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    padding: 0 40px;
    z-index: 1;
}

/* アイテム内部：画像とテキストのレイアウト（横並び） */
.hl-item {
    width: 100%;
    display: flex;
    align-items: flex-end; 
    gap: 60px;
    padding-bottom: 30px; 
}

/* 画像エリア：左側 */
.hl-image {
    flex: 0 0 48%;
    aspect-ratio: 1200 / 790;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hl-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* ホバー時の画像ズーム */
.hl-item:hover .hl-image img {
    transform: scale(1.05);
}

/* テキストエリア：右側 */
.hl-body {
    flex: 1;
    text-align: left;
    margin-top: 40px; 
    margin-bottom: 20px;
}

/* 見出し：白抜き ＋ 全幅アンダーバー */
.hl-title {
    display: block;
    position: relative;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    color: #fff;
}

.hl-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
}

/* 説明文 */
.hl-text {
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
}

/* --- レスポンシブ (スマホ・タブレット) --- */

@media (max-width: 768px) {
    .hl-section {
        /* SP時、さらにセクション間の隙間を詰める */
        padding: 20px 0 60px;
    }

    .hl-section::before {
        /* テキスト表示位置の引き上げに合わせてパネル開始位置を上へ */
        top: 10%; 
        bottom: 5%;
    }

    .hl-container {
        padding: 0 20px;
    }

    /* モバイルでは縦並びに切り替え */
    .hl-item {
        flex-direction: column;
        /* 画像とテキストの間の隙間を最小化 */
        gap: 10px !important; 
        padding-bottom: 0;
    }

    .hl-image {
        flex: none;
        width: 100%;
    }

    /* テキストエリアの表示位置引き上げ */
    .hl-body {
        text-align: center;
        width: 100%;
        /* 余計な余白を消去し、ネガティブマージンでさらに上へ */
        margin-top: 0 !important; 
        padding-top: 5px !important;
        margin-bottom: 10px;
    }

    .hl-title {
        font-size: 20px;
        margin-bottom: 10px; /* 本文との隙間を詰める */
    }
    
    .hl-text {
        font-size: 15px;
        line-height: 1.6;
    }
}