/* --- ごはんセクション 固有スタイル (food-section.css) --- */

.food-point-container {
    margin-top: 20px;
}

.food-point-item {
    display: flex;
    align-items: stretch; /* 高さを揃えて密着させる */
    gap: 0;                /* 隙間を完全にゼロにする */
    margin-bottom: 80px;   /* 基本の下マージン */
}

/* ★追加修正：最後の項目（POINT 03）のみ下マージンを調整し、スライダーとの距離を詰める */
.food-point-item:last-child {
    margin-bottom: 30px; /* 他のテキストに影響せず、ここだけが反映されます */
}

/* 偶数番目（または .reverse クラス）を左右反転 */
.food-point-item.reverse {
    flex-direction: row-reverse;
}

/* 画像側：幅を60%で固定 */
.food-point-img {
    flex: 0 0 60%;
    overflow: hidden;
}

.food-point-img img {
    width: 100%;
    height: 100%;      /* 隣のテキストボックスと高さを一致させる */
    object-fit: cover;
    display: block;
}

/* テキスト部分：背景を画像に完全に密着させる */
.food-point-text {
    flex: 1;           /* 残り40%を割り当て */
    text-align: left;
    background-color: #0054a6; /* レクストンブルー */
    padding: 50px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 密着した状態でテキストを上下中央に */
}

/* --- 角丸の調整（密着部分の丸みを消す） --- */

/* 通常：左が画像、右がテキスト */
.food-point-item:not(.reverse) .food-point-img img {
    border-radius: 4px 0 0 4px;
}
.food-point-item:not(.reverse) .food-point-text {
    border-radius: 0 4px 4px 0;
}

/* 反転：右が画像、左がテキスト */
.food-point-item.reverse .food-point-img img {
    border-radius: 0 4px 4px 0;
}
.food-point-item.reverse .food-point-text {
    border-radius: 4px 0 0 4px;
}

/* ポイントラベル */
.point-label {
    display: inline-block;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
    border-bottom: 2px solid #fff;
}

.food-point-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.4;
}

.food-point-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
}

/* --- レスポンシブ (スマホ表示時) --- */
@media (max-width: 768px) {
    .food-point-item, 
    .food-point-item.reverse {
        flex-direction: column;
        margin-bottom: 50px;
    }

    /* スマホ時も最後の項目だけマージンを個別に調整したい場合はここに追加 */
    .food-point-item:last-child {
        margin-bottom: 40px; 
    }

    .food-point-img {
        width: 100%;
        flex: none;
    }

    .food-point-img img {
        aspect-ratio: 4 / 3;
        border-radius: 4px 4px 0 0 !important; /* スマホでは上側のみ丸める */
    }

    .food-point-text {
        text-align: center;
        padding: 30px 20px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 0 0 4px 4px !important; /* スマホでは下側のみ丸める */
    }

    .food-point-text h3 {
        font-size: 20px;
    }
    
    .food-point-text p {
        font-size: 15px;
    }
}