/*==============================
ユーザーエージェント
==============================*/
var ua = {};
ua.name = window.navigator.userAgent.toLowerCase();
ua.isIE = (ua.name.indexOf('msie') >= 0 || ua.name.indexOf('trident') >= 0);
ua.isiPhone = ua.name.indexOf('iphone') >= 0;
ua.isiPod = ua.name.indexOf('ipod') >= 0;
ua.isiPad = ua.name.indexOf('ipad') >= 0;
ua.isiOS = (ua.isiPhone || ua.isiPod || ua.isiPad);
ua.isAndroid = ua.name.indexOf('android') >= 0;
ua.isTablet = (ua.isiPad || (ua.isAndroid && ua.name.indexOf('mobile') < 0));
if (ua.isIE) {
ua.verArray = /(msie|rv:?)\s?([0-9]{1,})([\.0-9]{1,})/.exec(ua.name);
if (ua.verArray) {
ua.ver = parseInt(ua.verArray[2], 10);
}
}
if (ua.isiOS) {
ua.verArray = /(os)\s([0-9]{1,})([\_0-9]{1,})/.exec(ua.name);
if (ua.verArray) {
ua.ver = parseInt(ua.verArray[2], 10);
}
}
if (ua.isAndroid) {
ua.verArray = /(android)\s([0-9]{1,})([\.0-9]{1,})/.exec(ua.name);
if (ua.verArray) {
ua.ver = parseInt(ua.verArray[2], 10);
}
}
/*==============================
基本設定
==============================*/
var w = $(window).innerWidth();
var x = 479;
/*==============================
ブレークポイント通過時リロード
==============================*/
var reflg = 0;
var uatab = navigator.userAgent;
$(window).on('load', function() {
if(w <= x){
reflg=1;
}
else if(w>x){
reflg=2;
}
});
$(window).resize(function() {
var w = $(window).innerWidth();
var new_url = location.href.replace(/#.*$/,"");
if(w <= x && reflg==2){
if((uatab.indexOf('Android') > 0 && uatab.indexOf('Mobile') == -1)){
} else {
location.href=new_url;
reflg=1;
}
}
else if(w>x && reflg==1){
if((uatab.indexOf('Android') > 0 && uatab.indexOf('Mobile') == -1)){
} else {
location.href=new_url;
reflg=2;
}
}
});
/*==============================
フォント設定
==============================*/
function cText(obj){
if(obj.value==obj.defaultValue){
obj.value="";
obj.style.color="#000";
}
}
function sText(obj){
if(obj.value==""){
obj.value=obj.defaultValue;
obj.style.color="#666";
}
}
/*==============================
グロナビ_現在地表示
==============================*/
$(function(){
path = location.pathname;
if (w > x) {
if(path.match("/kojin/access/")){
$("#header #h_g_menu_01kojin_01 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/kojin/chokin/")){
$("#header #h_g_menu_01kojin_02 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/kojin/sokin/")){
$("#header #h_g_menu_01kojin_03 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/kojin/kyuyo_nenkin/")){
$("#header #h_g_menu_01kojin_04 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/kojin/card/")){
$("#header #h_g_menu_01kojin_05 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/kojin/shisanunyou/")){
$("#header #h_g_menu_01kojin_06 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/kojin/loan/")){
$("#header #h_g_menu_01kojin_07 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/app/")){
$("#header #h_g_menu_01kojin_08 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/hojin/speedy/")){
$("#header #h_g_menu_01hojin_01 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/hojin/smart/")){
$("#header #h_g_menu_01hojin_02 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/hojin/cs/")){
$("#header #h_g_menu_01hojin_03 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/ir/financial/")){
$("#header #h_g_menu_01ir_01 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/ir/information/")){
$("#header #h_g_menu_01ir_02 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/ir/stock/")){
$("#header #h_g_menu_01ir_03 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/ir/investor/")){
$("#header #h_g_menu_01ir_04 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/aboutus/ci/")){
$("#header #h_g_menu_01aboutus_02 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/aboutus/company/")){
$("#header #h_g_menu_01aboutus_03 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/aboutus/activity/")){
$("#header #h_g_menu_01aboutus_04 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/aboutus/activity/csr/")){
$("#header #h_g_menu_01aboutus_04 a.h_g_menu_01_01").removeClass('active');
$("#header #h_g_menu_01aboutus_06 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/aboutus/cm/")){
$("#header #h_g_menu_01aboutus_05 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/aboutus/csr/")){
$("#header #h_g_menu_01aboutus_06 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/recruit/sinsotu/")){
$("#header #h_g_menu_01recruit_01 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/recruit/chuto/")){
$("#header #h_g_menu_01recruit_02 a.h_g_menu_01_01").addClass('active');
}
if(path.match("/recruit/challenged/")){
$("#header #h_g_menu_01recruit_03 a.h_g_menu_01_01").addClass('active');
}
}
});
/*==============================
グロナビ_マウスオーバー+開閉
==============================*/
$(function(){
if (w > x) {
var outFlg = false;
var navFlg = false;
$('#header #h_g_menu dt a.h_g_menu_01_01.active').mousemove(function(){
outFlg = true;
},
function(){
outFlg = false;
});
if (navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('iPad') > 0 || navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 0) {
navFlg = true;
}
$('body').mousemove(function() {
if(!outFlg){
navFlg = true;
}
});
$('#header #h_g_menu dt a.h_g_menu_01_01').hover(function(){
if(navFlg) {
$(this).parent('dt').next('dd').css('z-index','900');
$(this).parent('dt').next('dd').stop(true,false).slideDown(400);
if (!($(this).hasClass('active'))){
$(this).stop(true,false).animate( {backgroundColor: '#1d6414'},400);
}
}
},
function(){
$(this).parent('dt').next('dd').css('z-index','800');
$(this).parent('dt').next('dd').stop().slideUp(400);
if (!($(this).hasClass('active'))){
$(this).stop(true,false).animate( {backgroundColor: '#009900'},400);
$(this).removeClass('tab_on');
$(this).addClass('tab_off');
}
});
$("#header #h_g_menu dd.h_g_menu_01_01").hover(function(){
$(this).stop(true,false).slideDown(400);
$(this).css('display','block');
if(!($(this).prev('dt').children('a.h_g_menu_01_01').hasClass('active'))) {
$(this).prev('dt').children('a.h_g_menu_01_01').stop(true,false).animate( {backgroundColor: '#1d6414'},400);
$(this).prev('dt').children('a.h_g_menu_01_01').addClass('hover');
}
},
function(){
$(this).stop().slideUp(400);
if (!($(this).prev('dt').children('a.h_g_menu_01_01').hasClass('active'))) {
$(this).prev('dt').children('a.h_g_menu_01_01').stop(true,false).animate( {backgroundColor: '#090'},400);
$(this).prev('dt').children('a.h_g_menu_01_01').removeClass('hover');
}
});
//210514_キャリア採用
$("#header #h_g_menu #h_g_menu_01recruit_02 a.h_g_menu_01_01").hover(function(){
$(this).stop(true,false).slideDown(400);
$(this).css('display','block');
if(!($(this).prev('dt').children('a.h_g_menu_01_01').hasClass('active'))) {
$(this).prev('dt').children('a.h_g_menu_01_01').stop(true,false).animate( {backgroundColor: '#090'},400);
}
});
}
});
/*==============================
グロナビ_閉じるボタン
==============================*/
$(function(){
$("#header dd.h_g_menu_01_01 .h_g_menu_close p").click(function(){
$(this).parent('div').parent('dd').slideUp(400);
if ($(this).parent('div').parent('dd').prev('dt').children('a').hasClass('active')) {
}
else {
$(this).parent('div').parent('dd').prev('dt').children('a').animate( {backgroundColor: '#090'},400).removeClass('hover');
}
});
$('#header dd.h_g_menu_01_01 .h_g_menu_close p').keypress( function ( e ) {
if ( e.which == 13 ) {
$(this).parent('div').parent('dd').slideUp(400);
$(this).parent('div').parent('dd').prev('dt').children('a').removeClass('tab_on');
$(this).parent('div').parent('dd').prev('dt').children('a').addClass('tab_off');
return false;
}
});
});
/*==============================
グロナビ_フォーカス
==============================*/
$(function(){
if (w > x) {
$('a.h_g_menu_01_01').focus(function(){
$(this).parent('dt').next('dd.h_g_menu_01_01').css('display' , 'block');
$(this).addClass('hover');
$(this).parent('dt').prev('dd.h_g_menu_01_01').css('display' , 'none');
});
$('a.h_g_menu_01_01').blur(function(){
$(this).removeClass('hover');
});
$("dd.h_g_menu_01_01 .h_g_menu_close p:last").blur(function(){
$(this).closest('dd.h_g_menu_01_01').css('display' , 'none');
$(this).closest('dd.h_g_menu_01_01').prev('dt').children('a.h_g_menu_01_01').removeClass('active');
});
}
});
/*==============================
グロナビ_スマートフォン
==============================*/
$(function(){
if(w<=x) {
$('#h_menu_btn').on('click', function(){
var display = $('#h_sp_menu').css('display');
if (display == 'block') {
//$(this).removeClass('h_menu_btn_open');
//$(this).addClass('h_menu_btn_close');
$('#h_sp_menu').slideUp(400);
$('#contents').fadeIn();
$('.side_menu').fadeIn();
$('#footer').fadeIn();
$('#top_contents,#contents').css('height','auto');
$('#top_contents,#contents').css('overflow','visible');
$('.btn_to_top').css('z-index','10000');
} else {
//$(this).removeClass('h_menu_btn_close');
//$(this).addClass('h_menu_btn_open');
$('#h_sp_menu').slideDown(400);
$('#contents').fadeOut();
$('.side_menu').fadeOut();
$('#footer').fadeOut();
$('#top_contents,#contents').css('height','0');
$('#top_contents,#contents').css('overflow','hidden');
$('.btn_to_top').css('z-index','0');
}
});
$('#h_close_btn').on('click', function(){
$('#h_menu_btn').removeClass('h_menu_btn_open');
$('#h_menu_btn').addClass('h_menu_btn_close');
$('#h_sp_menu').slideUp(400);
$('#contents').fadeIn();
$('.side_menu').fadeIn();
$('#footer').fadeIn();
$('#top_contents,#contents').css('height','auto');
$('#top_contents,#contents').css('overflow','visible');
$('.btn_to_top').css('z-index','10000');
});
}
});
/*==============================
グロナビ_タブレット対応
==============================*/
$(function (){
if (navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('iPad') > 0 || navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 0) {
if (w>x) {
var tbtn = $('a.h_g_menu_01_01');
tbtn.addClass('tab_off');
$(tbtn).click(function(e){
if ($(tbtn).parent('dt').next('dd').hasClass('dis_n')) {
$(tbtn).removeClass('tab_on');
$(this).addClass('tab_off');
}
else if($(this).hasClass('tab_off')) {
e.preventDefault();
$(tbtn).removeClass('tab_on');
$(tbtn).addClass('tab_off');
$(this).removeClass('tab_off');
$(this).addClass('tab_on');
}
else {
$(tbtn).removeClass('tab_on');
$(this).addClass('tab_off');
}
});
}
}
});
/*==============================
ローカルナビ_アコーディオン
==============================*/
$(function(){
if (w<=x) {
$('.side_menu_list div').hide();
$('.side_menu ul.side_menu_list li span').click(function(){
$(this).toggleClass('open');
$('.side_menu_list div').slideToggle(400);
});
}
$('a.side_menu_list01_a').click(function(){
if ($(this).attr('href') == "toggle") {
if ($(this).hasClass('side_menu_list01_close')) {
$(this).parent().children('.side_menu_list02').slideDown(400);
$(this).removeClass('side_menu_list01_close');
$(this).addClass('side_menu_list01_open');
} else if ($(this).hasClass('side_menu_list01_open')) {
$(this).parent().children('.side_menu_list02').slideUp(400);
$(this).removeClass('side_menu_list01_open');
$(this).addClass('side_menu_list01_close');
}
return false;
}
});
$('a.side_menu_list02_a').click(function(){
if ($(this).attr('href') == "toggle") {
if ($(this).hasClass('side_menu_list02_close')) {
$(this).parent().children('.side_menu_list03').slideDown(400);
$(this).removeClass('side_menu_list02_close');
$(this).addClass('side_menu_list02_open');
} else if ($(this).hasClass('side_menu_list02_open')) {
$(this).parent().children('.side_menu_list03').slideUp(400);
$(this).removeClass('side_menu_list02_open');
$(this).addClass('side_menu_list02_close');
}
return false;
}
});
});
/*==============================
ローカルナビ_現在地表示
==============================*/
$(function(){
var url = window.location;
var url = url.href;
var fileName = url.replace(/^[httpsfile]+:\/{2,3}[0-9a-z\.\_\-:]+?:?[0-9]*?\//i,'/');
if (w>x) {
if (fileName.indexOf('?') != -1) {
fileName = fileName.substring(0,fileName.indexOf('?'));
};
if (fileName.indexOf('#') != -1) {
fileName = fileName.substring(0,fileName.indexOf('#'));
};
if (fileName.indexOf('.html') == -1) {
fileName = fileName+'index.html';
};
//if(fileName^=)
var obj = 'a[href="'+fileName+'"]';
$('.side_menu_top').find(obj).css('color','#009900');
if ($(obj).hasClass('side_menu_list03_a')) {
$(obj).parents('ul').show();
$(obj).parent().parent().parent().children('.side_menu_list02_a').removeClass('side_menu_list02_close');
$(obj).parent().parent().parent().children('.side_menu_list02_a').addClass('side_menu_list02_open');
$(obj).parent().parent().parent().children('.side_menu_list02_a').css('color','#009900');
$(obj).parents('ul').children().children('.side_menu_list01_a').removeClass('side_menu_list01_close');
$(obj).parents('ul').children().children('.side_menu_list01_a').addClass('side_menu_list01_open');
$(obj).parents('ul').children().children('.side_menu_list01_a').css('color','#009900');
};
if ($(obj).hasClass('side_menu_list02_a')) {
$(obj).parents('ul').show();
$(obj).parents('ul').children().children('.side_menu_list01_a').removeClass('side_menu_list01_close');
$(obj).parents('ul').children().children('.side_menu_list01_a').addClass('side_menu_list01_open');
$(obj).parents('ul').children().children('.side_menu_list01_a').css('color','#009900');
};
}
});
/*==============================
その他_画像+テキスト並列
==============================*/
$(document).ready(function() {
if(w>x){
$('.arrange_box_l').each(function() {
var fl_w = $(this).children('.img_area').children('.img').find('img').width();
$(this).children('.img_area').children('.cap').css('width',fl_w);
$(this).children('.txt_area').css('width',660-fl_w);
});
$('.arrange_box_r').each(function() {
var fl_w = $(this).children('.img_area').children('.img').find('img').width();
$(this).children('.img_area').children('.cap').css('width',fl_w);
$(this).children('.txt_area').css('width',660-fl_w);
});
}
});
$(window).on('load', function() {
if(w>x){
$('.arrange_box_l').each(function() {
var fl_w = $(this).children('.img_area').children('.img').find('img').width();
$(this).children('.img_area').children('.cap').css('width',fl_w);
$(this).children('.txt_area').css('width',660-fl_w);
});
$('.arrange_box_r').each(function() {
var fl_w = $(this).children('.img_area').children('.img').find('img').width();
$(this).children('.img_area').children('.cap').css('width',fl_w);
$(this).children('.txt_area').css('width',660-fl_w);
});
}
});
/*==============================
その他_画像+テキスト回り込み
==============================*/
$(window).on('load', function() {
if(w>x){
$('.img_fl_left').each(function() {
var fl_w = $(this).children('.img_fl_left_img').find('img').width();
$(this).children('.img_fl_left_img').children('span').css('width',fl_w);
});
$('.img_fl_right').each(function() {
var fl_w = $(this).children('.img_fl_right_img').find('img').width();
$(this).children('.img_fl_right_img').children('span').css('width',fl_w);
});
}
});
/*==============================
その他_画像PC,SP自動切替え
==============================*/
$(function(){
if(w <= x){
$('.pcsp').each(function(){
$(this).attr("src",$(this).attr("src").replace('_pci', '_spi'));
});
}
});
/*==============================
その他_アコーディオン
==============================*/
$(document).ready(function(){
if(document.URL.match(/kj_crd_cdt_jcb_sv_yutai/) || document.URL.match(/kj_crd_cdt_vm_sv_yutai/)) {
$('.slide_content_btn').addClass('close');
} else {
$('.slide_content_btn').addClass('open');
}
$('.slide_content_title').click(function(){
$(this).children('div').toggleClass('close');
$(this).children('div').toggleClass('open');
$(this).next('.slide_content_area').slideToggle("fast");
});
$('.slide_content_title').keypress( function ( e ) {
if ( e.which == 13 ) {
$(this).children('div').toggleClass('close');
$(this).children('div').toggleClass('open');
$(this).next('.slide_content_area').slideToggle("fast");
return false;
}
});
});
$(document).ready(function(){
if(document.URL.match(/kat_index/)) {
$('.second_slide_content_btn').addClass('open');
} else{
$('.second_slide_content_btn').addClass('close');
}
$('.second_slide_content_btn').click(function(){
$(this).toggleClass('close');
$(this).toggleClass('open');
$(this).prev('.second_slide_content_area').slideToggle("fast");
});
$('.second_slide_content_btn').keypress( function ( e ) {
if ( e.which == 13 ) {
$(this).toggleClass('close');
$(this).toggleClass('open');
$(this).prev('.second_slide_content_area').slideToggle("fast");
return false;
}
});
});
/*==============================
その他_フッター位置調整
==============================*/
$(window).on('load', function() {
if(w <= x){
if ($('.side_menu_bottom').length) {
// サイドメニューがある時
var fp_t = $('.side_menu_bottom').height();
$('#footer').css('padding-top', fp_t+20);
} else {
// サイドメニューがない時
$('#footer').css('padding-top', 20);
}
}
});
/*==============================
その他_ページ内リンク
==============================*/
$(function() {
$('a[href^="#"]:not(.popup-modal)').click(function() {
var speed = 400;
var href= $(this).attr("href");
var target = $(href == "#" || href == "" ? 'html' : href);
var position = target.offset().top;
$('body,html').animate({scrollTop:position}, speed, 'swing');
return false;
});
$('map area[href^="#"]').click(function() {
var speed = 400;
var href= $(this).attr("href");
var target = $(href == "#" || href == "" ? 'html' : href);
var position = target.offset().top;
$('body,html').animate({scrollTop:position}, speed, 'swing');
return false;
});
});
/*==============================
その他_トップに戻る
==============================*/
$(function() {
var topBtn = $('.btn_to_top');
//最初はボタンを隠す
topBtn.hide();
//スクロールが300に達したらボタンを表示させる
$(window).scroll(function () {
if ($(this).scrollTop() > 300) {
topBtn.fadeIn();
} else {
topBtn.fadeOut();
}
});
//スクロールしてトップに戻る
//500の数字を大きくするとスクロール速度が遅くなる
topBtn.click(function () {
$('body,html').animate({
scrollTop: 0
}, 500);
return false;
});
});
/*==============================
ローカルナビ_現在地展開
==============================*/
$(function(){
if(w <= x){
$(".side_menu_top h2 a").click(function() {
return false;
});
}
/*==========店舗・ATM==========*/
//「ゆうちょ ATMのご案内」タブを開く
if(document.URL.match(/kj_acs_atmcd_atmcd/)) {
$("a[href *= 'kj_acs_atmcd_atmcd']").next('ul').show();
$("a[href *= 'kj_acs_atmcd_atmcd']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_acs_atmcd_atmcd']").addClass('side_menu_list01_open');
$("a[href *= 'kj_acs_atmcd_atmcd']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_acs_atmcd_atmcd']").attr("href", "toggle");
}
/*==========貯金==========*/
//「定額貯金一覧」タブを開く
if(document.URL.match(/kj_cho_tg_/)) {
$("a[href *= 'kj_cho_tg_index']").next('ul').show();
$("a[href *= 'kj_cho_tg_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_cho_tg_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_cho_tg_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_cho_tg_index']").attr("href", "toggle");
}
//「定期貯金一覧」タブを開く
if(document.URL.match(/kj_cho_tk_/)) {
$("a[href *= 'kj_cho_tk_index']").next('ul').show();
$("a[href *= 'kj_cho_tk_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_cho_tk_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_cho_tk_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_cho_tk_index']").attr("href", "toggle");
}
//「財形貯金」タブを開く
if(document.URL.match(/kj_cho_zk_/)) {
$("a[href *= 'kj_cho_zk_index']").next('ul').show();
$("a[href *= 'kj_cho_zk_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_cho_zk_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_cho_zk_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_cho_zk_index']").attr("href", "toggle");
}
/*==========送金・支払・海外関連==========*/
//「口座を持っていない相手に送る」タブを開く
if(document.URL.match(/kj_sk_hkz_/)) {
$("a[href *= 'kj_sk_hkz_index']").next('ul').show();
$("a[href *= 'kj_sk_hkz_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_sk_hkz_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_sk_hkz_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_sk_hkz_index']").attr("href", "toggle");
}
//「ゆうちょ口座に送金する」タブを開く
if(document.URL.match(/kj_sk_kz_/)) {
$("a[href *= 'kj_sk_kz_index']").next('ul').show();
$("a[href *= 'kj_sk_kz_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_sk_kz_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_sk_kz_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_sk_kz_index']").attr("href", "toggle");
}
//「他の金融機関口座に送金する」タブを開く
if(document.URL.match(/kj_sk_fm_/)) {
$("a[href *= 'kj_sk_fm_furikomi']").next('ul').show();
$("a[href *= 'kj_sk_fm_furikomi']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_sk_fm_furikomi']").addClass('side_menu_list01_open');
$("a[href *= 'kj_sk_fm_furikomi']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_sk_fm_furikomi']").attr("href", "toggle");
}
//「自動で送金・払込み」タブを開く
if(document.URL.match(/kj_sk_jd_/)) {
$("a[href *= 'kj_sk_jd_haraikomi']").next('ul').show();
$("a[href *= 'kj_sk_jd_haraikomi']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_sk_jd_haraikomi']").addClass('side_menu_list01_open');
$("a[href *= 'kj_sk_jd_haraikomi']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_sk_jd_haraikomi']").attr("href", "toggle");
}
//「即時振替サービス・双方向即時振替サービス」タブを開く
if(document.URL.match(/kj_sk_sj_/)) {
$("a[href *= 'kj_sk_sj_index']").next('ul').show();
$("a[href *= 'kj_sk_sj_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_sk_sj_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_sk_sj_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_sk_sj_index']").attr("href", "toggle");
}
//「Pay-easy(ペイジー)」タブを開く
if(document.URL.match(/kj_sk_pe_/)) {
$("a[href *= 'kj_sk_pe_index']").next('ul').show();
$("a[href *= 'kj_sk_pe_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_sk_pe_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_sk_pe_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_sk_pe_index']").attr("href", "toggle");
}
//「Pay-easy(ペイジー)」「ペイジーでお支払いできる税金・料金」タブを開く
if(document.URL.match(/kj_sk_pe_list/)) {
$("a[href *= 'kj_sk_pe_list']").next('ul').show();
$("a[href *= 'kj_sk_pe_list']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_sk_pe_list']").addClass('side_menu_list01_open');
$("a[href *= 'kj_sk_pe_list']").append('メニュー開閉');
$("a.side_menu_list02_a[href *= 'kj_sk_pe_list']").attr("href", "toggle");
}
//「国際送金」タブを開く
if(document.URL.match(/kj_sk_ks_/)) {
$("a[href *= 'kj_sk_ks_index']").next('ul').show();
$("a[href *= 'kj_sk_ks_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_sk_ks_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_sk_ks_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_sk_ks_index']").attr("href", "toggle");
}
//「口座振替受付サービス」タブを開く
if(document.URL.match(/kj_sk_kf_/)) {
$("a[href *= 'kj_sk_kf_furikae.html']").next('ul').show();
$("a[href *= 'kj_sk_kf_furikae.html']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_sk_kf_furikae.html']").addClass('side_menu_list01_open');
$("a[href *= 'kj_sk_kf_furikae.html']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_sk_kf_furikae.html']").attr("href", "toggle");
}
//「ゆうちょPay」タブを開く
if(document.URL.match(/kj_sk_yp_/)) {
$("a[href *= 'kj_sk_yp_index']").next('ul').show();
$("a[href *= 'kj_sk_yp_index]").removeClass('side_menu_list01_link');
$("a[href *= 'kj_sk_yp_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_sk_yp_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_sk_yp_index']").attr("href", "toggle");
}
/*==========カードサービス==========*/
//「クレジットカード」タブを開く
if(document.URL.match(/kj_crd_cdt_/)) {
$("a[href *= 'kj_crd_cdt_top_index']").next('ul').show();
$("a[href *= 'kj_crd_cdt_top_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_crd_cdt_top_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_crd_cdt_top_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_crd_cdt_top_index']").attr("href", "toggle");
}
//「クレジットカード」「JP BANK VISAカード/マスターカード」タブを開く
if(document.URL.match(/kj_crd_cdt_vm_/)) {
$("a[href *= 'kj_crd_cdt_vm_vmindex']").next('ul').show();
$("a[href *= 'kj_crd_cdt_vm_vmindex']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_crd_cdt_vm_vmindex']").addClass('side_menu_list01_open');
$("a[href *= 'kj_crd_cdt_vm_vmindex']").append('メニュー開閉');
$("a.side_menu_list02_a[href *= 'kj_crd_cdt_vm_vmindex']").attr("href", "toggle");
}
//「クレジットカード」「JP BANK JCBカード」タブを開く
if(document.URL.match(/kj_crd_cdt_jcb_/)) {
$("a[href *= 'kj_crd_cdt_jcb_jindex']").next('ul').show();
$("a[href *= 'kj_crd_cdt_jcb_jindex']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_crd_cdt_jcb_jindex']").addClass('side_menu_list01_open');
$("a[href *= 'kj_crd_cdt_jcb_jindex']").append('メニュー開閉');
$("a.side_menu_list02_a[href *= 'kj_crd_cdt_jcb_jindex']").attr("href", "toggle");
}
//「プリペイドカード mijica(ミヂカ)」タブを開く
if(document.URL.match(/kj_crd_mij_/)) {
$("a[href *= 'kj_crd_mij_index']").next('ul').show();
$("a[href *= 'kj_crd_mij_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_crd_mij_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_crd_mij_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_crd_mij_index']").attr("href", "toggle");
}
/*==========資産運用==========*/
//「国債」タブを開く
if(document.URL.match(/kj_suy_ks_/)) {
$("a[href *= 'kj_suy_ks_index']").next('ul').show();
$("a[href *= 'kj_suy_ks_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_suy_ks_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_suy_ks_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_suy_ks_index']").attr("href", "toggle");
}
//「投資信託」タブを開く
if(document.URL.match(/kj_suy_ts_/)) {
$("a[href *= 'kj_suy_ts_index']").next('ul').show();
$("a[href *= 'kj_suy_ts_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_suy_ts_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_suy_ts_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_suy_ts_index']").attr("href", "toggle");
}
//「投資信託」「NISA」タブを開く
if(document.URL.match(/kj_suy_ts_nisa_/)) {
$("a[href *= 'kj_suy_ts_nisa_index']").next('ul').show();
$("a[href *= 'kj_suy_ts_nisa_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_suy_ts_nisa_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_suy_ts_nisa_index']").append('メニュー開閉');
$("a.side_menu_list02_a[href *= 'kj_suy_ts_nisa_index']").attr("href", "toggle");
}
//「変額年金保険」タブを開く
if(document.URL.match(/kj_suy_hg_/)) {
$("a[href *= 'kj_suy_hg_index']").next('ul').show();
$("a[href *= 'kj_suy_hg_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_suy_hg_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_suy_hg_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_suy_hg_index']").attr("href", "toggle");
}
//「確定拠出年金」タブを開く
if(document.URL.match(/kj_suy_kt_/)) {
$("a[href *= 'kj_suy_kt_index']").next('ul').show();
$("a[href *= 'kj_suy_kt_index']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_suy_kt_index']").addClass('side_menu_list01_open');
$("a[href *= 'kj_suy_kt_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_suy_kt_index']").attr("href", "toggle");
}
/*==========ローン・貸付け==========*/
//「スルガ銀行の個人ローンのお申込み」タブを開く
if(document.URL.match(/kj_ln_loan/) || document.URL.match(/kj_ln_tetuzuki/) || document.URL.match(/kj_ln_access/) ) {
$("a[href *= 'kj_ln_loan']").next('ul').show();
$("a[href *= 'kj_ln_loan']").removeClass('side_menu_list01_link');
$("a[href *= 'kj_ln_loan']").addClass('side_menu_list01_open');
$("a[href *= 'kj_ln_loan']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'kj_ln_loan']").attr("href", "toggle");
}
/*==========アプリのご案内==========*/
//「ゆうちょ通帳アプリ」タブを開く
if(document.URL.match(/app_tsucho/)|| document.URL.match(/app_howto/)|| document.URL.match(/app_goriyo/)) {
$("a[href *= 'app_tsucho']").next('ul').show();
$("a[href *= 'app_tsucho']").removeClass('side_menu_list01_link');
$("a[href *= 'app_tsucho']").addClass('side_menu_list01_open');
$("a[href *= 'app_tsucho']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'app_tsucho']").attr("href", "toggle");
}
/*==========入出力事務を省力化==========*/
//「ゆうちょBizダイレクト」タブを開く
if(document.URL.match(/hj_smt_bd_/)) {
$("a[href *= 'hj_smt_bd_index']").next('ul').show();
$("a[href *= 'hj_smt_bd_index']").removeClass('side_menu_list01_link');
$("a[href *= 'hj_smt_bd_index']").addClass('side_menu_list01_open');
$("a[href *= 'hj_smt_bd_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'hj_smt_bd_index']").attr("href", "toggle");
}
/*==========顧客サービスを向上==========*/
//「ゆうちょPay」タブを開く
if(document.URL.match(/hj_cs_yp_/)|| document.URL.match(/kj_sk_yp_cl_crb/)) {
$("a[href *= 'hj_cs_yp_index']").next('ul').show();
$("a[href *= 'hj_cs_yp_index']").removeClass('side_menu_list01_link');
$("a[href *= 'hj_cs_yp_index']").addClass('side_menu_list01_open');
$("a[href *= 'hj_cs_yp_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'hj_cs_yp_index']").attr("href", "toggle");
}
/*==========会社情報==========*/
//「経営理念」タブを開く
if(document.URL.match(/abt_cmp_ph_/)) {
$("a[href *= 'abt_cmp_ph_mission']").next('ul').show();
$("a[href *= 'abt_cmp_ph_mission']").removeClass('side_menu_list01_link');
$("a[href *= 'abt_cmp_ph_mission']").addClass('side_menu_list01_open');
$("a[href *= 'abt_cmp_ph_mission']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'abt_cmp_ph_mission']").attr("href", "toggle");
}
//「会社概要」タブを開く
if(document.URL.match(/abt_cmp_ol_/)) {
$("a[href *= 'abt_cmp_ol_profile']").next('ul').show();
$("a[href *= 'abt_cmp_ol_profile']").removeClass('side_menu_list01_link');
$("a[href *= 'abt_cmp_ol_profile']").addClass('side_menu_list01_open');
$("a[href *= 'abt_cmp_ol_profile']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'abt_cmp_ol_profile']").attr("href", "toggle");
}
//「コーポレートガバナンス」タブを開く
if(document.URL.match(/abt_cmp_governance/) || document.URL.match(/abt_cmp_report/) || document.URL.match(/abt_cmp_system/) || document.URL.match(/abt_cmp_compliance/) || document.URL.match(/bt_cmp_conflict/) || document.URL.match(/abt_cmp_risk/) || document.URL.match(/abt_cmp_internalaudit/)) {
$("a[href *= 'abt_cmp_governance']").next('ul').show();
$("a[href *= 'abt_cmp_governance']").removeClass('side_menu_list01_link');
$("a[href *= 'abt_cmp_governance']").addClass('side_menu_list01_open');
$("a[href *= 'abt_cmp_governance']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'abt_cmp_governance']").attr("href", "toggle");
}
//「ESG関連方針」タブを開く
if(document.URL.match(/abt_cmp_esg_hosin/) || document.URL.match(/abt_cmp_human_rights/) || document.URL.match(/abt_cmp_environment/) || document.URL.match(/abt_cmp_esg/) || document.URL.match(/index03/)) {
$("a[href *= 'abt_cmp_esg_hosin']").next('ul').show();
$("a[href *= 'abt_cmp_esg_hosin']").removeClass('side_menu_list01_link');
$("a[href *= 'abt_cmp_esg_hosin']").addClass('side_menu_list01_open');
$("a[href *= 'abt_cmp_esg_hosin']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'abt_cmp_esg_hosin']").attr("href", "toggle");
}
/*==========取り組み・活動==========*/
//「電子決済等代行業者との連携等に係る取り組み」タブを開く
if(document.URL.match(/abt_act_api_/)) {
$("a[href *= 'abt_act_api_index']").next('ul').show();
$("a[href *= 'abt_act_api_index']").removeClass('side_menu_list01_link');
$("a[href *= 'abt_act_api_index']").addClass('side_menu_list01_open');
$("a[href *= 'abt_act_api_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'abt_act_api_index']").attr("href", "toggle");
}
//「福祉・ボランティアサービス」タブを開く
if(document.URL.match(/abt_act_fk_/)) {
$("a[href *= 'abt_act_fk_index']").next('ul').show();
$("a[href *= 'abt_act_fk_index']").removeClass('side_menu_list01_link');
$("a[href *= 'abt_act_fk_index']").addClass('side_menu_list01_open');
$("a[href *= 'abt_act_fk_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'abt_act_fk_index']").attr("href", "toggle");
}
//「福祉・ボランティアサービス」「ゆうちょボランティア貯金」タブを開く
if(document.URL.match(/abt_act_fk_vlt_/) || document.URL.match(/abt_act_fk_volunteer/)) {
$("a[href *= 'abt_act_fk_volunteer']").next('ul').show();
$("a[href *= 'abt_act_fk_volunteer']").removeClass('side_menu_list01_link');
$("a[href *= 'abt_act_fk_volunteer']").addClass('side_menu_list01_open');
$("a[href *= 'abt_act_fk_volunteer']").append('メニュー開閉');
$("a.side_menu_list02_a[href *= 'abt_act_fk_volunteer']").attr("href", "toggle");
}
/*==========CSR==========*/
//「ゆうちょ銀行のCSR」タブを開く
if(document.URL.match(/abt_act_csr_policy/) || document.URL.match(/abt_act_csr_message/)) {
$("a[href *= 'abt_act_csr_policy']").next('ul').show();
$("a[href *= 'abt_act_csr_policy']").removeClass('side_menu_list01_link');
$("a[href *= 'abt_act_csr_policy']").addClass('side_menu_list01_open');
$("a[href *= 'abt_act_csr_policy']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'abt_act_csr_policy']").attr("href", "toggle");
}
//「具体的な取り組み」タブを開く
if(document.URL.match(/abt_csr_act_index/) || document.URL.match(/abt_csr_act_ctmm_index/) || document.URL.match(/abt_csr_act_cmt_index/) || document.URL.match(/abt_csr_act_hrit_index/) || document.URL.match(/abt_csr_act_ds_index/) || document.URL.match(/abt_csr_act_env_index/)) {
$("a[href *= 'abt_csr_act_index']").next('ul').show();
$("a[href *= 'abt_csr_act_index']").removeClass('side_menu_list01_link');
$("a[href *= 'abt_csr_act_index']").addClass('side_menu_list01_open');
$("a[href *= 'abt_csr_act_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'abt_csr_act_index']").attr("href", "toggle");
}
//「データ集・ガイドライン対照表」タブを開く
if(document.URL.match(/abt_act_csr_dtgd_index/) || document.URL.match(/abt_act_csr_dtgd_dt/) || document.URL.match(/abt_act_dtgd_gri/) || document.URL.match(/abt_act_dtgd_esg/)) {
$("a[href *= 'abt_act_csr_dtgd_index']").next('ul').show();
$("a[href *= 'abt_act_csr_dtgd_index']").removeClass('side_menu_list01_link');
$("a[href *= 'abt_act_csr_dtgd_index']").addClass('side_menu_list01_open');
$("a[href *= 'abt_act_csr_dtgd_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'abt_act_csr_dtgd_index']").attr("href", "toggle");
}
/*==========各種お申込み・お手続き==========*/
//「貯金商品」タブを開く
if(document.URL.match(/tzk_shn_/)) {
$("a[href *= 'tzk_shn_index']").next('ul').show();
$("a[href *= 'tzk_shn_index']").removeClass('side_menu_list01_link');
$("a[href *= 'tzk_shn_index']").addClass('side_menu_list01_open');
$("a[href *= 'tzk_shn_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'tzk_shn_index']").attr("href", "toggle");
}
//「送金・決済・受取り」タブを開く
if(document.URL.match(/tzk_sk_/)) {
$("a[href *= 'tzk_sk_index']").next('ul').show();
$("a[href *= 'tzk_sk_index']").removeClass('side_menu_list01_link');
$("a[href *= 'tzk_sk_index']").addClass('side_menu_list01_open');
$("a[href *= 'tzk_sk_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'tzk_sk_index']").attr("href", "toggle");
}
//「貸付け」タブを開く
if(document.URL.match(/tzk_ktk_/)) {
$("a[href *= 'tzk_ktk_index']").next('ul').show();
$("a[href *= 'tzk_ktk_index']").removeClass('side_menu_list01_link');
$("a[href *= 'tzk_ktk_index']").addClass('side_menu_list01_open');
$("a[href *= 'tzk_ktk_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'tzk_ktk_index']").attr("href", "toggle");
}
//「国債」タブを開く
if(document.URL.match(/tzk_ks_/)) {
$("a[href *= 'tzk_ks_index']").next('ul').show();
$("a[href *= 'tzk_ks_index']").removeClass('side_menu_list01_link');
$("a[href *= 'tzk_ks_index']").addClass('side_menu_list01_open');
$("a[href *= 'tzk_ks_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'tzk_ks_index']").attr("href", "toggle");
}
//「海外関連サービス」タブを開く
if(document.URL.match(/tzk_kg_/)) {
$("a[href *= 'tzk_kg_index']").next('ul').show();
$("a[href *= 'tzk_kg_index']").removeClass('side_menu_list01_link');
$("a[href *= 'tzk_kg_index']").addClass('side_menu_list01_open');
$("a[href *= 'tzk_kg_index']").append('メニュー開閉');
$("a.side_menu_list01_a[href *= 'tzk_kg_index']").attr("href", "toggle");
}
if($(window).width() >= 479){
//「Corporate Information」タブを開く
if(document.URL.match(/en_abt_cmp_/)) {
$("a[href *= 'en_abt_cmp_index.html']").next('ul').show();
$("a[href *= 'en_abt_cmp_index.html']").removeClass('side_menu_list01_link');
$("a[href *= 'en_abt_cmp_index.html']").addClass('side_menu_list01_open');
$("a[href *= 'en_abt_cmp_index.html']").append('Open Menu or Close Menu');
$("a.side_menu_list01_a[href *= 'en_abt_cmp_index.html']").attr("href", "toggle");
}
//「Corporate Information」「Corporate Profile」タブを開く
if(document.URL.match(/en_abt_cmp_profile/) || document.URL.match(/en_abt_cmp_overseas/)) {
$("a[href *= 'en_abt_cmp_profile']").next('ul').show();
$("a[href *= 'en_abt_cmp_profile']").removeClass('side_menu_list01_link');
$("a[href *= 'en_abt_cmp_profile']").addClass('side_menu_list01_open');
$("a[href *= 'en_abt_cmp_profile']").append('Open Menu or Close Menu');
$("a.side_menu_list02_a[href *= 'en_abt_cmp_profile']").attr("href", "toggle");
}
//「Corporate Information」「Corporate Governance」タブを開く
if(document.URL.match(/en_abt_cmp_governance/) || document.URL.match(/en_abt_cmp_stance/) || document.URL.match(/en_abt_cmp_system/) || document.URL.match(/en_abt_cmp_auditing/) || document.URL.match(/en_abt_cmp_risk/) || document.URL.match(/en_abt_cmp_compliance/)) {
$("a[href *= 'en_abt_cmp_governance']").next('ul').show();
$("a[href *= 'en_abt_cmp_governance']").removeClass('side_menu_list01_link');
$("a[href *= 'en_abt_cmp_governance']").addClass('side_menu_list01_open');
$("a[href *= 'en_abt_cmp_governance']").append('Open Menu or Close Menu');
$("a.side_menu_list02_a[href *= 'en_abt_cmp_governance']").attr("href", "toggle");
}
//「Investor Relations」タブを開く
if(document.URL.match(/en_ir_/)) {
$("a[href *= 'en_ir_index']").next('ul').show();
$("a[href *= 'en_ir_index']").removeClass('side_menu_list01_link');
$("a[href *= 'en_ir_index']").addClass('side_menu_list01_open');
$("a[href *= 'en_ir_index']").append('Open Menu or Close Menu');
$("a.side_menu_list01_a[href *= 'en_ir_index']").attr("href", "toggle");
}
//「Investor Relations」「Financial Information」タブを開く
if(document.URL.match(/en_ir_fnc_/)) {
$("a[href *= 'en_ir_fnc_index']").next('ul').show();
$("a[href *= 'en_ir_fnc_index']").removeClass('side_menu_list02_link');
$("a[href *= 'en_ir_fnc_index']").addClass('side_menu_list02_open');
$("a[href *= 'en_ir_fnc_index']").append('Open Menu or Close Menu');
$("a.side_menu_list02_a[href *= 'en_ir_fnc_index']").attr("href", "toggle");
}
//「Investor Relations」「IR Information」タブを開く
if(document.URL.match(/en_ir_inf_/)) {
$("a[href *= 'en_ir_inf_index']").next('ul').show();
$("a[href *= 'en_ir_inf_index']").removeClass('side_menu_list02_link');
$("a[href *= 'en_ir_inf_index']").addClass('side_menu_list02_open');
$("a[href *= 'en_ir_inf_index']").append('Open Menu or Close Menu');
$("a.side_menu_list02_a[href *= 'en_ir_inf_index']").attr("href", "toggle");
}
//「Investor Relations」「Stock Information」タブを開く
if(document.URL.match(/en_ir_stk_/)) {
$("a[href *= 'en_ir_stk_index']").next('ul').show();
$("a[href *= 'en_ir_stk_index']").removeClass('side_menu_list02_link');
$("a[href *= 'en_ir_stk_index']").addClass('side_menu_list02_open');
$("a[href *= 'en_ir_stk_index']").append('Open Menu or Close Menu');
$("a.side_menu_list02_a[href *= 'en_ir_stk_index']").attr("href", "toggle");
$("a.side_menu_list02_a[href *= 'en_ir_stk_meeting_bn']").attr("href", "toggle");
}
//「Investor Relations」「To Individual Investors」タブを開く
if(document.URL.match(/en_ir_inv_/)) {
$("a[href *= 'en_ir_inv_index']").next('ul').show();
$("a[href *= 'en_ir_inv_index']").removeClass('side_menu_list02_link');
$("a[href *= 'en_ir_inv_index']").addClass('side_menu_list02_open');
$("a[href *= 'en_ir_inv_index']").append('Open Menu or Close Menu');
$("a.side_menu_list02_a[href *= 'en_ir_inv_index']").attr("href", "toggle");
}
//「Service Information」タブを開く
if(document.URL.match(/en_ias_/) || document.URL.match(/en_djp_index/) ) {
$("a[href *= 'en_ias_index']").next('ul').show();
$("a[href *= 'en_ias_index']").removeClass('side_menu_list01_link');
$("a[href *= 'en_ias_index']").addClass('side_menu_list01_open');
$("a[href *= 'en_ias_index']").append('Open Menu or Close Menu');
$("a.side_menu_list01_a[href *= 'en_ias_index']").attr("href", "toggle");
}
//「Service Information」「International ATM Service」タブを開く
if(document.URL.match(/en_ias_/) || document.URL.match(/en_djp_index/) ) {
$("a[href *= 'en_ias_index']").next('ul').show();
$("a[href *= 'en_ias_index']").removeClass('side_menu_list02_link');
$("a[href *= 'en_ias_index']").addClass('side_menu_list02_open');
$("a[href *= 'en_ias_index']").append('Open Menu or Close Menu');
$("a.side_menu_list02_a[href *= 'en_ias_index']").attr("href", "toggle");
}
//「Corporate Social Responsibility (ESG)」タブを開く
if(document.URL.match(/en_csr_/) ) {
$("a[href *= 'en_csr_index']").next('ul').show();
$("a[href *= 'en_csr_index']").removeClass('side_menu_list01_link');
$("a[href *= 'en_csr_index']").addClass('side_menu_list01_open');
$("a[href *= 'en_csr_index']").append('Open Menu or Close Menu');
$("a.side_menu_list01_a[href *= 'en_csr_index']").attr("href", "toggle");
}
//SP表示時にコンテンツ内に特定のURLが含まれているとき、クラスが付与されアイコンが表示されてしまうため、クラスを削除
if(document.URL.indexOf('en_ias_simplifiedchinese.html') || document.URL.indexOf('en_ias_traditionalchinese.html') || document.URL.indexOf('en_ias_korean.html')){
$('#contents ul.list_link li a').removeClass('side_menu_list01_open');
$('#contents ul.list_link li a').removeClass('side_menu_list02_open');
}
}
});
//SPヘッダー固定
$(function() {
var $win = $(window),
$header = $('#header'),
headerHeight = $header.outerHeight(),
startPos = 0;
$win.on('load scroll', function() {
var value = $(this).scrollTop();
if ( value > startPos && value > headerHeight ) {
$header.css('top', '-' + headerHeight + 'px');
} else {
$header.css('top', '0');
}
startPos = value;
});
});
// 商品・サービス IR/ESG・CSRパート フッターメニュー
$(document).ready(function(){
$('.slide_content_btn').click(function(){
$(this).toggleClass('close');
$(this).toggleClass('open');
$(this).next().children('.slide_content_area').slideToggle("fast");
});
$('.slide_content_btn_close').click(function(){
$(this).parent('.slide_content_area').slideUp("fast");
$('.slide_content_btn').removeClass("close");
$('.slide_content_btn').addClass("open");
});
});
$(document).ready(function(){
$('.slide_content_area dt.sp_btn').click(function(){
$(this).toggleClass('close');
$(this).toggleClass('open');
$(this).next('dd').slideToggle("fast");
});
});
// 360px未満の幅狭デバイス時はviewportを固定
!(function () {
const viewport = document.querySelector('meta[name="viewport"]');
function switchViewport() {
const value =
window.outerWidth > 360
? 'width=device-width,initial-scale=1'
: 'width=360';
if (viewport.getAttribute('content') !== value) {
viewport.setAttribute('content', value);
}
}
addEventListener('resize', switchViewport, false);
switchViewport();
})();
/*--------------------------------------------------------------------------*
*
* heightLine JavaScript Library beta4
*
* MIT-style license.
*
* 2007 Kazuma Nishihata
* http://www.webcreativepark.net
*
*--------------------------------------------------------------------------*/
new function(){(function(h,k,a){try{h.addEventListener(k,a,!1)}catch(m){h.attachEvent("on"+k,a)}})(window,"load",function(){this.className="heightLine";this.parentClassName="heightLineParent";reg=new RegExp(this.className+"-([a-zA-Z0-9-_]+)","i");objCN=[];for(var h=document.getElementsByTagName?document.getElementsByTagName("*"):document.all,k=0;kg[e].offsetHeight?a:g[e].offsetHeight);for(e=0;eobjCN[f][d].offsetHeight?a:objCN[f][d].offsetHeight;for(d=0;d