$(function () {
    const ua = navigator.userAgent;
    if (ua.indexOf('iPhone') > -1 || (ua.indexOf('Android') > -1 && ua.indexOf('Mobile') > -1)) {
        //TOPのNobilistaに関するお役立ち情報用高さ調整処理
        setTimeout(function () {
            var t = 0;
            var p = 0;
            $(".js-title").each(function () {
                if ($(this).outerHeight() > t) {
                    t = $(this).outerHeight()
                }
            });
            $(".js-text").each(function () {
                if ($(this).outerHeight() > p) {
                    p = $(this).outerHeight()
                }
            });
            $(".js-title").css("height", t + "px");
            $(".js-text").css("height", p + "px");
        }, 100);
    } else if (ua.indexOf('iPad') > -1 || ua.indexOf('Android') > -1) { } else {
        $(function () {
            // 高さの最大値を代入するための変数h
            var h = 0;

            // それぞれの要素の高さを調べる
            $(".list_set .text").each(function () {
                // 要素の高さと変数hの値を比較し、大きい方を変数hに代入
                if ($(this).height() > h) {
                    h = $(this).height();
                }
            });
            // 要素の高さを変数hの値に統一
            $(".list_set .text").css("height", h + "px");
        });

        //TOPのNobilistaに関するお役立ち情報用高さ調整処理
        setTimeout(function () {
            var t = 0;
            var p = 0;
            $(".js-title").each(function () {
                if ($(this).outerHeight() > t) {
                    t = $(this).outerHeight()
                }
            });
            $(".js-text").each(function () {
                if ($(this).outerHeight() > p) {
                    p = $(this).outerHeight()
                }
            });
            $(".js-title").css("height", t + "px");
            $(".js-text").css("height", p + "px");
        }, 100);
    }
});


$(function () {
    var h = 0;
    var s = 0;
    $(".set-height").each(function () {
        if ($(this).height() > h) {
            h = $(this).height();
        }
    });
    $(".set-height02").each(function () {
        if ($(this).height() > s) {
            s = $(this).height();
        }
    });
    $(".set-height").css("height", h + "px");
    $(".set-height02").css("height", s + "px");
});