1/* ã¢ãã¡ã¼ã·ã§ã³é¢é£ 2========================================================================== */ 3$(function () { 4 AOS.init(); 5}); 6 7/* ã¹ã ã¼ãºã¹ã¯ãã¼ã« 8========================================================================== */ 9$(function () { 10 $('a[href^="#"]').click(function () { 11 var speed = 500; 12 var href = $(this).attr("href"); 13 var target = $(href == "#" || href == "" ? "html" : href); 14 var position = target.offset().top; 15 16 if ($("#newHeader").length > 0) { 17 position = target.offset().top - $(".header-pcNav").height(); 18 } 19 20 $("html, body").animate( 21 { 22 scrollTop: position, 23 }, 24 speed, 25 "swing", 26 ); 27 return false; 28 }); 29}); 30 31/* ã¡ã¬ã¡ãã¥ã¼ã®ããã¼ 32========================================================================== */ 33$(function () { 34 if ($("#newHeader").length > 0) { 35 $(".header-pcNav__box a").hover( 36 function () { 37 // data-mega屿§ãåå¨ããããã§ã㯠38 if ($(this).data("mega")) { 39 var targetId = $(this).data("mega"); 40 $("#" + targetId).addClass("open"); 41 $("#headerMegaOverlay").addClass("open"); 42 } 43 }, 44 function () { 45 // data-mega屿§ãåå¨ããããã§ã㯠46 if ($(this).data("mega")) { 47 var targetId = $(this).data("mega"); 48 if (!$("#" + targetId).is(":hover")) { 49 $("#headerMegaOverlay").removeClass("open"); 50 // å°ãé å»¶ãå ¥ãã 51 setTimeout(function () { 52 // ãã¦ã¹ãã¾ã ä¸ã«ããããã§ã㯠53 $("#" + targetId).removeClass("open"); 54 }, 150); // 150ããªç§ã®é å»¶ 55 } 56 } 57 }, 58 ); 59 60 // .header-mega.openã®ããã¼ç¶æ ãä¿æ 61 $(document).on("mouseleave", ".header-mega.open", function () { 62 var targetId = $(this).attr("id"); 63 if ( 64 !$(".header-pcNav__box a[data-mega='" + targetId + "']").is(":hover") 65 ) { 66 $("#headerMegaOverlay").removeClass("open"); 67 $("#" + targetId).removeClass("open"); 68 69 // setTimeout(function () { 70 // // å°ãé å»¶ãå ¥ãã 71 72 // }, 150); // 150ããªç§ã®é å»¶ 73 } 74 }); 75 } 76}); 77/* ã¡ãã¥ã¼ã®ã¹ãã£ããã¼ 78========================================================================== */ 79$(function () { 80 if ($("#newHeader").length > 0) { 81 let headerHeight = 82 $(".header-head").height() + $(".header-middle").height(); 83 84 $(window).on("scroll", function () { 85 let scrollPosition = $(window).scrollTop(); 86 if (scrollPosition > headerHeight) { 87 $(".header-middle, .header-bottom").addClass("sticky"); 88 } else { 89 $(".header-middle, .header-bottom").removeClass("sticky"); 90 } 91 }); 92 } 93}); 94 95/* åºå®ããã ããã¼(PC) 96========================================================================== */ 97$(function () { 98 var footerBtn = $(".fixed-bnr__bottom"); 99 footerBtn.hide(); 100 //ã¹ã¯ãã¼ã«ã100ã«éããããã¿ã³è¡¨ç¤º 101 $(window).scroll(function () { 102 if ($(this).scrollTop() > 100) { 103 footerBtn.fadeIn(); 104 } else { 105 footerBtn.fadeOut(); 106 } 107 }); 108}); 109 110/* ã¹ã©ã¤ãã¼ 111========================================================================== */ 112//ã¢ãã¤ã«ã®æã®å¦ç 113// 両æ¹ã®å ´å 114 115$(function () { 116 // ããããã¼ã¸ã¡ã¤ã³ãã¸ã¥ã¢ã«ã¹ã©ã¤ãã¼ 117 $(".owl-carousel-catch").owlCarousel({ 118 items: 1, 119 center: true, 120 loop: true, 121 dots: true, 122 nav: true, 123 autoplay: true, 124 autoplayTimeout: 6300, 125 autoplayHoverPause: true, 126 smartSpeed: 500, 127 }); 128 129 // ããããã¼ã¸ è¬åãå§ããã®æ¹ã¸ 220302 130 $(".owl-top-beginner").owlCarousel({ 131 items: 1.5, 132 center: true, 133 loop: true, 134 dots: true, 135 nav: true, 136 autoplay: true, 137 autoplayTimeout: 6300, 138 autoplayHoverPause: true, 139 smartSpeed: 500, 140 141 responsive: { 142 768: { 143 items: 4, 144 center: true, 145 margin: 30, 146 }, 147 }, 148 }); 149 150 //ã客æ§ã®å£° 151 $(".owl-review").owlCarousel({ 152 items: 1.2, 153 center: true, 154 loop: true, 155 dots: true, 156 autoWidth: true, 157 autoplay: true, 158 autoplayHoverPause: true, 159 nav: true, 160 margin: 10, 161 autoplayTimeout: 3000, 162 responsive: { 163 768: { 164 items: 4, 165 margin: 30, 166 dots: true, 167 }, 168 }, 169 }); 170 171 //ãã¼ã«ã®ãã³ãã¬SPã®å ¬å¶æå ´ã®ã¹ã©ã¤ãã¼ 172 $(".owl-koei").owlCarousel({ 173 items: 2, 174 center: true, 175 loop: true, 176 dots: true, 177 autoWidth: true, 178 autoplay: true, 179 autoplayHoverPause: true, 180 nav: false, 181 margin: 10, 182 autoplayTimeout: 3000, 183 }); 184 185 //å¼å ´ãã¼ã¸ã®ã¹ã©ã¤ãã¼ 186 $(".owl-hall-slider").owlCarousel({ 187 items: 1, 188 center: true, 189 loop: true, 190 autoWidth: true, 191 rewindNav: true, 192 dots: false, 193 nav: true, 194 navText: ["", ""], 195 thumbs: true, 196 thumbImage: true, 197 thumbContainerClass: "owl-thumbs", 198 thumbItemClass: "owl-thumb-item", 199 smartSpeed: 500, 200 201 responsive: { 202 768: { 203 items: 3, 204 margin: 12, 205 }, 206 }, 207 }); 208 209 $(".owl-common-slider").owlCarousel({ 210 items: 1, 211 autoWidth: true, 212 center: true, 213 loop: true, 214 margin: 0, 215 nav: true, 216 navText: ["", ""], 217 thumbs: false, 218 thumbImage: false, 219 220 responsive: { 221 768: { 222 margin: 10, 223 autoplay: true, 224 autoplayTimeout: 5200, 225 autoplayHoverPause: true, 226 smartSpeed: 500, 227 }, 228 }, 229 }); 230 // lpãåºå 231 $(".owl-ret-lp-slider").owlCarousel({ 232 items: 1, 233 margin: 10, 234 center: true, 235 loop: true, 236 dots: true, 237 nav: true, 238 navText: ["", ""], 239 autoWidth: true, 240 autoplay: true, 241 autoplayTimeout: 6300, 242 autoplayHoverPause: true, 243 smartSpeed: 500, 244 245 responsive: { 246 768: { 247 items: 3, 248 margin: 24, 249 }, 250 }, 251 }); 252 253 // ãæ¥ãã®æ¹ ãã¼ã«ç»åã¹ã©ã¤ãã¼ 230307 254 $(".owl-feature").owlCarousel({ 255 items: 1, 256 center: true, 257 loop: true, 258 margin: 3, 259 nav: true, 260 navText: ["", ""], 261 thumbs: false, 262 thumbImage: false, 263 }); 264 265 $(".owl-carousel-knowledge").owlCarousel({ 266 items: 1, 267 center: true, 268 loop: true, 269 dots: false, 270 nav: false, 271 margin: 16, 272 autoplay: true, 273 autoWidth: true, 274 autoplayTimeout: 6300, 275 autoplayHoverPause: true, 276 smartSpeed: 500, 277 }); 278}); 279 280/* æ¬å¼§ã®ä½ç½ 281========================================================================== */ 282$(function () { 283 var tgElm = $(".space-kakko"), //対象ã¨ãªãè¦ç´ ãããã§æå® 284 tagType = "span"; //æ¬å¼§ãå²ãã¿ã°åãããã§æå® 285 tgElm.each(function () { 286 var tgText = $(this).html(); 287 tgText = tgText.replace( 288 /[ããï¼ãï½ï¼»ããã]/g, 289 "<" + 290 tagType + 291 ' style="display: inline-block; margin-left: -0.12em;">$&</' + 292 tagType + 293 ">", 294 ); 295 tgText = tgText.replace( 296 /[ããï¼ãï½ï¼½ããã]/g, 297 "<" + 298 tagType + 299 ' style="display: inline-block; margin-right: -0.12em;">$&</' + 300 tagType + 301 ">", 302 ); 303 $(this).html(tgText); 304 }); 305}); 306 307/* GoogleMap 308========================================================================== */ 309
310/* ãã³ãã¼ã¬ã¼å ã®ã¢ã³ã¼ãã£ãªã³ 230821 311========================================================================== */ 312$(function () { 313 $(".gMenu-plan__box--mTitle").each(function () { 314 $(this).on("click", function () { 315 $(this).toggleClass("active"); 316 $(this).next(".humToggle").slideToggle(); 317 $(".humToggle").toggleClass("active"); 318 return false; 319 }); 320 }); 321}); 322 323$(function () { 324 $(".gMenu-hall__box--mTitle").each(function () { 325 $(this).on("click", function () { 326 $(this).toggleClass("active"); 327 $(this).next(".humToggle2").slideToggle(); 328 $(".humToggle2").toggleClass("active"); 329 return false; 330 }); 331 }); 332}); 333 334/* ã¬ãã¥ã¼ãã¼ã¸ã¢ã¼ãã«(ã客æ§ã®è©ä¾¡è©³ç´°ãã¼ã¸) 335========================================================================== */ 336window.addEventListener("DOMContentLoaded", function () { 337 var scrollPosition; 338 $(".js-modal-open").each(function () { 339 $(this).on("click", function () { 340 var target = $(this).data("target"); 341 var modal = document.getElementById(target); 342 $(modal).fadeIn(); 343 scrollPosition = $(window).scrollTop(); 344 $("body").addClass("fixed").css({ 345 top: -scrollPosition, 346 }); 347 return false; 348 }); 349 }); 350 $(".js-modal-close").on("click", function () { 351 $(".js-modal").fadeOut(); 352 $("body").removeClass("fixed").css({ 353 top: 0, 354 }); 355 window.scrollTo(0, scrollPosition); 356 return false; 357 }); 358}); 359 360/* ã¹ãã©ã¤ãã¹ã©ã¤ãã¼è¨å® ã客æ§ã®å£°ãã¼ã¸ å°ããªæ£®ã®å®¶ããç§»æ¤ PCã®ã¿ 231005 361========================================================================== */ 362 363//PCã®æã®å¦ç 364document.addEventListener("DOMContentLoaded", function () { 365 var element = document.getElementById("review-carousel"); 366 367 if (element) { 368 // ID "yourID"ãæã¤è¦ç´ ãåå¨ããå ´åã®å¦ç 369 370 new Splide(".splide-review-js", { 371 perPage: 1, // 1ãã¼ã¸ã«ä½æã®ã¹ã©ã¤ãã表示ããã 372 373 autoWidth: true, // æå¹ã«ããã¨ãããããã®ã¹ã©ã¤ãã®å¹ ããã®ã¾ã¾ä½¿ç¨ããã¾ã 374 autoHeight: true, // æå¹ã«ããã¨ãããããã®ã¹ã©ã¤ãã®é«ãããã®ã¾ã¾ä½¿ç¨ããã¾ã 375 376 perMove: 1, // 1度ã®ç§»åã§ã使ã®ã¹ã©ã¤ããç§»åããããæå® 377 gap: 120, // ã¹ã©ã¤ãéã®ä½ç½ 378 updateOnMove: true, 379 380 //padding: "5rem", //å·¦å³ã®ã¹ã©ã¤ããå ¥åæ°å表示ããããè¦åã表示 381 type: "loop", //ã¹ã©ã¤ããã«ã¼ãããã 382 focus: "center", //ã¢ã¯ãã£ããªã¹ã©ã¤ããä¸å¤®ã«è¡¨ç¤ºãã 383 }).mount(); 384 } 385}); 386 387/* ã¹ãã©ã¤ãã¹ã©ã¤ãã¼è¨å® ã客æ§ã®å£° ãã³ãã¬ã¼ãã¹ã©ã¤ãã¼ å°ããªæ£®ã®å®¶ããç§»æ¤ PCã®ã¿ 231005 388========================================================================== */ 389 390//PCã®æã®å¦ç 391document.addEventListener("DOMContentLoaded", function () { 392 var element = document.getElementById("review-tpl-carousel"); 393 if (element) { 394 // ID "yourID"ãæã¤è¦ç´ ãåå¨ããå ´åã®å¦ç 395 new Splide(".splide-review-tpl-js", { 396 perPage: 1, // 1ãã¼ã¸ã«ä½æã®ã¹ã©ã¤ãã表示ããã 397 autoWidth: true, // æå¹ã«ããã¨ãããããã®ã¹ã©ã¤ãã®å¹ ããã®ã¾ã¾ä½¿ç¨ããã¾ã 398 autoHeight: true, // æå¹ã«ããã¨ãããããã®ã¹ã©ã¤ãã®é«ãããã®ã¾ã¾ä½¿ç¨ããã¾ã 399 perMove: 1, // 1度ã®ç§»åã§ã使ã®ã¹ã©ã¤ããç§»åããããæå® 400 gap: 30, // ã¹ã©ã¤ãéã®ä½ç½ 401 updateOnMove: true, 402 //padding: "5rem", //å·¦å³ã®ã¹ã©ã¤ããå ¥åæ°å表示ããããè¦åã表示 403 type: "loop", //ã¹ã©ã¤ããã«ã¼ãããã 404 focus: "center", //ã¢ã¯ãã£ããªã¹ã©ã¤ããä¸å¤®ã«è¡¨ç¤ºãã 405 }).mount(); 406 } 407}); 408 409//ã¨ãªã¢ãã¼ã¸202503 410document.addEventListener("DOMContentLoaded", function () { 411 var element = document.querySelector(".review-slider-wrap"); 412 if (element) { 413 // ID "yourID"ãæã¤è¦ç´ ãåå¨ããå ´åã®å¦ç 414 new Splide(".splide-review-tpl-js", { 415 perPage: 1, // 1ãã¼ã¸ã«ä½æã®ã¹ã©ã¤ãã表示ããã 416 autoWidth: true, // æå¹ã«ããã¨ãããããã®ã¹ã©ã¤ãã®å¹ ããã®ã¾ã¾ä½¿ç¨ããã¾ã 417 autoHeight: true, // æå¹ã«ããã¨ãããããã®ã¹ã©ã¤ãã®é«ãããã®ã¾ã¾ä½¿ç¨ããã¾ã 418 perMove: 1, // 1度ã®ç§»åã§ã使ã®ã¹ã©ã¤ããç§»åããããæå® 419 gap: 30, // ã¹ã©ã¤ãéã®ä½ç½ 420 updateOnMove: true, 421 //padding: "5rem", //å·¦å³ã®ã¹ã©ã¤ããå ¥åæ°å表示ããããè¦
421åã表示 422 type: "loop", //ã¹ã©ã¤ããã«ã¼ãããã 423 focus: "center", //ã¢ã¯ãã£ããªã¹ã©ã¤ããä¸å¤®ã«è¡¨ç¤ºãã 424 }).mount(); 425 } 426}); 427 428/* è¨äºç´¹ä»ãã¼ã¸ç®æ¬¡ï¼ã¢ã¯ãã£ãã«ãã 429========================================================================== */ 430//åºæºç¹ã®æºå 431var elemTop = []; 432 433//ç¾å¨å°ãåå¾ããããã®è¨å®ã颿°ã§ã¾ã¨ãã 434function PositionCheck() { 435 //.scroll-pointã¨ããã¯ã©ã¹åãã¤ããã¨ãªã¢ã®ä½ç½®ãåå¾ããè¨å® 436 $(".js-head").each(function (i) { 437 //.scroll-pointã¯ã©ã¹ãã¤ããã¨ãªã¢ãããããã¾ã§ã®è·é¢ãè¨ç®ãã¦è¨å® 438 elemTop[i] = Math.round(parseInt($(this).offset().top)); //追å¾ããheaderåã®é«ãï¼70pxï¼ãå¼ãå°æ°ç¹ã忍äºå ¥ 439 }); 440} 441 442//ããã²ã¼ã·ã§ã³ã«ç¾å¨å°ã®ã¯ã©ã¹ãã¤ããããã®è¨å® 443function ScrollAnime() { 444 //ã¹ã¯ãã¼ã«ããéã®ããã²ã¼ã·ã§ã³ã®é¢æ°ã«ã¾ã¨ãã 445 var scroll = Math.round($(window).scrollTop()); 446 var NavElem = $(".intro-side__list li"); //ããã²ã¼ã·ã§ã³ã®liã®ä½çªç®ããå®ç¾©ããããã®æºå 447 $(".intro-side__list li").removeClass("active"); //å ¨ã¦ã®ããã²ã¼ã·ã§ã³ã®ç¾å¨å°ã¯ã©ã¹ãé¤å» 448 if (scroll >= 0 && scroll < elemTop[1]) { 449 //ã¹ã¯ãã¼ã«å¤ã0ä»¥ä¸ .scroll-point 1ã¤ãï¼area-1ï¼ã®é«ãæªæº 450 $(NavElem[0]).addClass("active"); //1ã¤ãã®liã«ç¾å¨å°ã¯ã©ã¹ãä»ä¸ 451 } else if (scroll >= elemTop[1] && scroll < elemTop[2]) { 452 $(NavElem[1]).addClass("active"); 453 } else if (scroll >= elemTop[2] && scroll < elemTop[3]) { 454 $(NavElem[2]).addClass("active"); 455 } else if (scroll >= elemTop[3] && scroll < elemTop[4]) { 456 $(NavElem[3]).addClass("active"); 457 } else { 458 $(NavElem[4]).addClass("active"); 459 } 460} 461 462$(window).scroll(function () { 463 PositionCheck(); 464 ScrollAnime(); 465}); 466 467/* ãã¥ã¼ã¹ã¢ã¼ã«ã¤ãã¢ã³ã¼ãã£ãªã³ 468========================================================================== */ 469// ã¢ã¼ã«ã¤ã 470$(function () { 471 $(".archive__box--year").each(function () { 472 $(this).on("click", function () { 473 $(this).toggleClass("on"); 474 $(this).next().slideToggle(); 475 return false; 476 }); 477 }); 478}); 479 480/* æ°:ãç¥ãã ã¹ã©ã¤ãã¼ 231226 481========================================================================== */ 482document.addEventListener("DOMContentLoaded", function () { 483 var element = document.getElementById("news_slider"); // ã¯ã©ã¹åããIDã«å¤æ´ 484 if (element) { 485 new Splide("#news_slider", { 486 // ã¯ã©ã¹åããIDã«å¤æ´ 487 perPage: 3, 488 autoWidth: true, 489 autoHeight: true, 490 perMove: 1, 491 gap: 30, 492 type: "loop", 493 focus: "center", 494 arrows: true, 495 pagination: true, 496 }).mount(); 497 } 498}); 499 500/* æ°:ãç¥ãã ãã³ãã¬ã¹ã©ã¤ãã¼ 501========================================================================== */ 502document.addEventListener("DOMContentLoaded", function () { 503 var element = document.getElementById("newsSplide"); // ã¯ã©ã¹åããIDã«å¤æ´ 504 if (element) { 505 new Splide("#newsSplide", { 506 // ã¯ã©ã¹åããIDã«å¤æ´ 507 perPage: 1, 508 autoWidth: true, 509 autoHeight: true, 510 perMove: 1, 511 gap: 0, 512 type: "loop", 513 focus: "center", 514 arrows: true, 515 pagination: false, 516 updateOnMove: true, 517 isNavigationCentered: true, 518 }).mount(); 519 } 520}); 521 522/* æ°:ã³ã©ã ãã³ãã¬ã¹ã©ã¤ãã¼ 523========================================================================== */ 524document.addEventListener("DOMContentLoaded", function () { 525 var element = document.getElementById("columnSplide"); // ã¯ã©ã¹åããIDã«å¤æ´ 526 if (element) { 527 new Splide("#columnSplide", { 528 // ã¯ã©ã¹åããIDã«å¤æ´ 529 perPage: 1, 530 autoWidth: true, 531 autoHeight: true, 532 perMove: 1, 533 type: "loop", 534 // gap: 0, 535 focus: "center", 536 arrows: true, 537 pagination: false, 538 updateOnMove: true, 539 isNavigationCentered: true, 540 }).mount(); 541 } 542}); 543 544/* æ°:TOPã¹ã©ã¤ãã¼ 545========================================================================== */ 546document.addEventListener("DOMContentLoaded", function () { 547 var element = document.getElementById("topMv"); // ã¯ã©ã¹åããIDã«å¤æ´ 548 if (element) { 549 new Splide("#topMv", { 550 perPage: 1, 551 autoWidth: true, 552 autoHeight: true, 553 perMove: 1, 554 type: "fade", 555 arrows: true, 556 pagination: true, 557 updateOnMove: true, 558 isNavigationCentered: true, 559 rewind: true, 560 }).mount(); 561 } 562}); 563 564/* é»è©±ã®ã¢ã¼ãã«(PCã®ã¿) 565========================================================================== */ 566$(function () { 567 if ($(".telModal").length && $("#pcTelModal").length) { 568 $(".telModal").on("click", function () { 569 $("#pcTelModal").fadeIn(); 570 571 $("body").css({ 572 overflow: "hidden", 573 height: "100%", 574 }); 575 return false;
576 }); 577 578 $(".pcTelModal__close").on("click", function () { 579 $("#pcTelModal").fadeOut(); 580 581 $("body").css({ 582 overflow: "", 583 height: "", 584 }); 585 }); 586 587 $(".pcTelModal__book--btn").on("click", function () { 588 if ($(this).parent().hasClass("active")) { 589 $(this).html( 590 '<i class="far fa-address-book"></i><span>é»è©±å¸³ç»é²</span>', 591 ); 592 $(this).parent().removeClass("active"); 593 } else { 594 $(this).html('<i class="far fa-times-circle"></i><span>éãã</span>'); 595 $(this).parent().addClass("active"); 596 } 597 }); 598 599 $(".pcTelModal form").attr({ 600 onsubmit: "return false", 601 }); 602 603 $("input[name='ãåå']").attr({ 604 autocomplete: "name", 605 }); 606 607 $("input[name='é»è©±çªå·']").attr({ 608 autocomplete: "tel", 609 }); 610 611 $("input[name='éµä¾¿çªå·']").attr({ 612 autocomplete: "postal-code", 613 }); 614 615 $("input[name='使']").attr({ 616 autocomplete: "street-address", 617 }); 618 619 $("button.pcTelModalSend").hover( 620 function () { 621 $(".pcTelModal form").attr({ 622 onsubmit: "", 623 }); 624 }, 625 function () { 626 $(".pcTelModal form").attr({ 627 onsubmit: "return false", 628 }); 629 }, 630 ); 631 $(".pcTelModal__bottom input,.pcTelModal__bottom textarea").on( 632 "click", 633 function () { 634 closeBook(); 635 }, 636 ); 637 638 function closeBook() { 639 if ($(".pcTelModal__book").hasClass("active")) { 640 $(".pcTelModal__book--btn").html( 641 '<i class="far fa-address-book"></i><span>é»è©±å¸³ç»é²</span>', 642 ); 643 $(".pcTelModal__book").removeClass("active"); 644 } 645 } 646 647 //ã¨ã©ã¼æã®å¦ç 648 if ($(".pcTelModal__content .error").length > 0) { 649 $("#pcTelModal").show(); 650 $("body").css({ 651 overflow: "hidden", 652 height: "100%", 653 }); 654 655 // pcTelModal__bottom--bottomã«errorã¯ã©ã¹ãä»ä¸ 656 $(".pcTelModal__bottom--bottom").addClass("error"); 657 $(".pcTelModal__book").remove(); 658 } 659 660 //ãã§ãã¯ããã¯ã¹ã®è¨å® 661 $(".requestBox").change(function () { 662 if ($(this).is(":checked")) { 663 // ãã§ãã¯ãããã親è¦ç´ ã®èæ¯è²ã夿´ 664 $(this).parent().addClass("active"); 665 } else { 666 // ãã§ãã¯ãå¤ãããèæ¯è²ãå ã«æ»ã 667 $(this).parent().removeClass("active"); 668 } 669 }); 670 671 $(".situationBox").change(function () { 672 if ($(this).is(":checked")) { 673 $(".situationBox").parent().removeClass("active"); 674 $(this).parent().addClass("active"); 675 $(".situationBox").not(this).prop("checked", false); 676 } else { 677 $(this).parent().removeClass("active"); 678 } 679 }); 680 681 //å®äºæã®å¦ç 682 if ($(".pcTelModal__content .mw_wp_form_complete").length > 0) { 683 $(".pcTelModal__content").addClass("complete"); 684 $(".pcTelModal__pp").remove(); 685 $(".pcTelModal__bottom--top").text( 686 "ãåãåããããããã¨ããããããã¾ããå 容ãéä¿¡ããã¾ããã", 687 ); 688 $(".pcTelModal__bottom--bottom").text("æ å½è ããããã«ãé»è©±ãã¾ãã"); 689 690 $("#pcTelModal").show(); 691 692 setTimeout(function () { 693 $("#pcTelModal").fadeOut(); 694 }, 5000); 695 } 696 } 697}); 698 699/* åãã¦ã®æ¹ã¸é ä¸ã®faq 700========================================================================== */ 701$(document).ready(function () { 702 $(".faq-content__box--flex:nth-child(odd)").on("click", function () { 703 var nextElement = $(this).next(".faq-content__box--flex"); 704 if (nextElement.hasClass("on")) { 705 nextElement.slideUp(); 706 nextElement.removeClass("on"); 707 } else { 708 $(".faq-content__box--flex.on").slideUp().removeClass("on"); 709 nextElement.slideDown(); 710 nextElement.addClass("on"); 711 } 712 $(this).toggleClass("first-clicked"); 713 }); 714}); 715 716/* ãããã¨ã¨ãªã¢ã®movie 717========================================================================== */ 718$("#js-movieLink").click(function () { 719 var iframe = document.createElement("iframe"); 720 iframe.src = 721 "https://www.youtube.com/embed/AH95us2CzBg?si=kCO9ruI-FPSRCKLY&loop=1&playlist=AH95us2CzBg"; 722 iframe.frameborder = "0"; 723 iframe.allow = 724 "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"; 725 iframe.setAttribute("allowfullscreen", "1"); 726 this.appendChild(iframe); 727 //ãµã ãã¤ã«é表示 728 var picture = this.querySelector("picture"); 729 picture.remove(); 730}); 731 732/* Googlemapã®ç¸®å°ºãçµ±ä¸ !1dã®å¤ã䏿¬å¤æ´ 733--------------------------------------------------------------- */ 734const iframes = document.querySelectorAll(".hall-info__map iframe"); 735 736if (iframes) { 737 // ç»é¢ãµã¤ãºã«ãã£ã¦desiredDistanceãè¨å® 738 const desiredDistance = window.matchMedia( 739 "only screen and (max-width: 768px)", 740 ).matches 741 ? "9000" 742 : "5000"; 743
744 iframes.forEach((iframe) => { 745 if (iframe.src.includes("google.com/maps/embed")) { 746 let src = iframe.src; 747 const distancePattern = /(!1d)(\d+(\.\d+)?)/; 748 src = src.replace(distancePattern, `$1${desiredDistance}`); 749 iframe.src = src; 750 } 751 }); 752} 753 754/* ãã¼ã«è©³ç´°ãã¼ã¸ã®ã¹ã©ã¤ãã¼ Splide 755========================================================================== */ 756$(function () { 757 var element = document.getElementById("sync1"); 758 if (element) { 759 var main = new Splide(".hallSlider", { 760 type: "loop", 761 focus: "center", 762 rewind: true, 763 pagination: false, 764 fixedWidth: 768, 765 gap: 10, 766 padding: "5rem", 767 }); 768 var thumbnails = new Splide(".hallThumb", { 769 fixedWidth: 88, 770 isNavigation: true, 771 gap: 4, 772 perPage: 5, 773 pagination: false, 774 arrows: false, 775 type: "slide", 776 slideFocus: true, 777 autoplay: false, 778 rewind: false, 779 drag: false, 780 }); 781 782 main.sync(thumbnails); 783 main.mount(); 784 thumbnails.mount(); 785 } 786}); 787 788/* ãã¼ã«è©³ç´°ãã¼ã¸ã®ã¹ã©ã¤ãã¼ Splide 789========================================================================== */ 790document.addEventListener("DOMContentLoaded", function () { 791 if (document.querySelector(".splide-common-slider")) { 792 new Splide(".splide-common-slider", { 793 autoplay: true, 794 type: "loop", // ã«ã¼ãè¨å® 795 autoWidth: true, // èªåå¹ è¨å® 796 focus: "center", // ã»ã³ã¿ãªã³ã° 797 perPage: 1, // 表示ããã¹ã©ã¤ãã®æ° 798 gap: "10px", // ã¹ã©ã¤ãéã®ãã¼ã¸ã³ 799 arrows: false, // ããã²ã¼ã·ã§ã³ã®ç¢å° 800 pagination: true, // ãã¼ã¸ãã¼ã·ã§ã³ 801 }).mount(); 802 } 803}); 804 805/* ãæ¥ãã®æ¹ ãå±ç¯¤ã»ãéå»ããæ¬éã¾ã§ã®æµã ã¿ãåãæ¿ã表示 241120 806========================================================================== */ 807$(document).ready(function () { 808 // æåã®è¦ç´ ãã¢ã¯ãã£ãã«ãã 809 $(".JS-quick-btn:first").addClass("active"); 810 $(".JS-quick-list:first").addClass("show"); 811 // ãªã¹ãç»åãã§ã¼ãåæè¡¨ç¤º 812 $(".JS-quick-list:first").find(".quick-flow__list--img").addClass("show"); 813 814 // ã¯ãªãã¯ã¤ãã³ãã®å¦ç 815 $(".JS-quick-btn").click(function () { 816 var index = $(".JS-quick-btn").index(this); 817 818 // ã¿ãã®ã¢ã¯ãã£ãç¶æ ãåãæ¿ãã 819 $(".JS-quick-btn").removeClass("active"); 820 $(this).addClass("active"); 821 822 // 対å¿ãããªã¹ãã表示ãã 823 $(".JS-quick-list").removeClass("show"); 824 $(".JS-quick-list").eq(index).addClass("show"); 825 826 // 対å¿ãããªã¹ãã®ç»åã« show ã¯ã©ã¹ã追å ï¼showãä»ããã¨ã«ãã£ã¦ãã§ã¼ã表示 PCã®ã¿ï¼ 827 $(".JS-quick-list") 828 .eq(index) 829 .find(".quick-flow__list--img") 830 .addClass("show"); 831 }); 832}); 833 834/* ãæ¥ãã®æ¹ FAQ ã¢ã³ã¼ãã£ãªã³ 241121 835========================================================================== */ 836$(function () { 837 $(".js-quick-question").each(function () { 838 $(this).on("click", function () { 839 $(this).toggleClass("on"); 840 $("+.js-quick-answer", this).slideToggle(); 841 return false; 842 }); 843 }); 844}); 845 846/* ã³ã©ã ã¹ã©ã¤ã splideç 250108 847========================================================================== */ 848$(function () { 849 var element = document.getElementById("column-slider"); 850 if (element) { 851 var main = new Splide(element, { 852 rewind: true, 853 rewindByDrag: true, 854 cover: true, 855 arrows: true, // ç¢å° 856 pagination: false, // ãã¼ã¸ãã¼ã·ã§ã³ 857 type: "loop", 858 fixedWidth: 400, 859 gap: 20, 860 focus: "center", 861 }); 862 main.mount(); 863 } 864}); 865 866/* LP ãªã¿ã²åºåTOP ã客æ§ã®å£°ï¼é»è©±ç¸è«ãè³æè«æ±ã対é¢ç¸è«ï¼ splideç 250108 867========================================================================== */ 868$(function () { 869 // 対象ã®ã¹ã©ã¤ãã¼è¦ç´ ã®IDãªã¹ã 870 var sliderIds = [ 871 "voice-tel-slider", 872 "voice-book-slider", 873 "voice-hall-slider", 874 ]; 875 876 sliderIds.forEach(function (id) { 877 var element = document.getElementById(id); 878 879 if (element) { 880 var main = new Splide(element, { 881 rewind: true, 882 rewindByDrag: true, 883 cover: true, 884 arrows: true, // ç¢å° 885 pagination: true, // ãã¼ã¸ãã¼ã·ã§ã³ 886 type: "loop", 887 focus: "center", 888 fixedWidth: 325, 889 fixedHeight: 320, 890 gap: 32, // ã¹ã©ã¤ãéã®ä½ç½ 891 padding: "20%", // ã¹ã©ã¤ãã¼ã®å·¦å³ã®ä½ç½ 892 893 breakpoints: { 894 768: { 895 fixedWidth: "34.3rem", 896 //padding: "20%", // ã¹ã©ã¤ãã¼ã®å·¦å³ã®ä½ç½ 897 //gap: 16, // ã¹ã©ã¤ãéã®ä½ç½ 898 }, 899 }, 900 }); 901 main.mount(); 902 } 903 }); 904}); 905 906/* LP ãªã¿ã²åºåTOP é»è©±ç¸è« ã客æ§ã®å£° splideç 250106 907========================================================================== */ 908/* 909$(function () { 910 var element = document.getElementById("voice-tel-slider"); 911 if (element) { 912 var main = new Splide(element, { 913 rewind: true, 914 rewindByDrag: true, 915 cover: true, 916 arrows: true, // ç¢å° 917 pagination: true, // ãã¼ã¸ãã¼ã·ã§ã³ 918 type: 'loop', 919 focus: "center", 920 fixedWidth: 325, 921 fixedHeight: 320, 922 gap: 32, // ã¹ã©ã¤ãéã®ä½ç½ 923 padding: "20%", // ã¹ã©ã¤ãã¼ã®å·¦å³ã®ä½ç½ 924 925 breakpoints: { 926 768: { 927 fixedWidth: '34.3rem', 928 //padding: "20%", // ã¹ã©ã¤ãã¼ã®å·¦å³ã®ä½ç½ 929 //gap: 16, // ã¹ã©ã¤ãéã®ä½ç½ 930 }, 931 } 932 933 }); 934 main.mount(); 935 } 936}); 937*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.