﻿/* =============================
    モーダル中身 共通 ページタイトル
============================= */

.page-midashi-box {
  position: relative;
  position: -webkit-sticky;
  position: sticky;
  width:100%;
  height:60px;
  top:0;
  left:0;
  z-index:10;
  transform: translate3d(0,0,0);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color:rgba(255,255,255,1);
  padding:0 60px;
  margin:0px auto;
  line-height:1;
  color:#293133;
  border-bottom:1px solid #aaa;
}
.page-midashi {  
  position: relative;
  display:inline-block;
  vertical-align: top;
  font-size:2rem;
  font-family: 'Josefin Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height:1;
  padding-right:5px;
  padding-top:6px;
}
.page-midashi-sub {  
  position: relative;
  display:inline-block;
  vertical-align: top;
  font-size:1.6rem;
  letter-spacing: 0.05rem;
  line-height:1;
}

/* =============================
    マーカー
============================= */

span.marker-yellow {
  background: linear-gradient(transparent 75%, #ede93b 90%);
}
span.marker-black {
  background: linear-gradient(transparent 90%, #65707C 90%);
}
span.marker-green {
  background: linear-gradient(transparent 75%, #80F2B3 90%);
}
span.marker-brown {
  background: linear-gradient(transparent 75%, #FFE187 90%);
}
span.marker-pink {
  background: linear-gradient(transparent 80%, #E85F73 90%);
}
span.marker-kon {
  background: linear-gradient(transparent 75%, #99C1FF 90%);
}
span.marker-blue {
  background: linear-gradient(transparent 90%, #0075BA 90%);
}
span.bold{
color:#484f5a;
font-weight:500;
}

/* =============================
    モーダル内ターゲットへスクロール
============================= */

.js-to-target{
  cursor: pointer;
}

/* =============================
   モーダル用 ローダーボックス
============================= */

.loader-box{
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height: 100dvh;
  height: calc((var(--vh, 1vh) * 100));
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 20;
  pointer-events:none;
}

/* =============================
   表示時間が遅い時のメッセージ
============================= */

.loader-message{
   position: absolute;
   width:100%;
   top:50%; 
   left:0;
   transform: translate(0,20px);
   font-size:1.3rem;
   line-height:1.8;
   text-align:center;
   opacity:0;
   transition:opacity .4s ease;
}
.loader-message.show{
    opacity:1;
}

/* =============================
   ローダー
============================= */

.loader-flower, 
.loader-flower-modal{
  position: relative;
  width:40px;
  height:40px;
  backface-visibility: hidden;
  z-index: 20;
  will-change: transform;
  transform: scale(.8);
}
.loader-flower div,
.loader-flower-modal div { 
  box-sizing: content-box; 
  pointer-events:none;
}

/* =============================
   ローダースタート
============================= */

.loader-flower.loading  div,
.loader-flower-modal.loading div,
.loader-flower.lazy-loading  div,
.loader-flower-modal.lazy-loading div{
  position: absolute;
  left: 16px;
  top: -2px;
  position: absolute;
  background: #535353;
  width: 4px;
  height: 10px;
  border-radius: 3px / 6px;
  transform-origin: 3px 20px;
  animation: loader-flower linear 1s infinite;
}
.loader-flower div:nth-child(1),
.loader-flower-modal div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -0.9166666666666666s;
  background: #535353;
}
.loader-flower div:nth-child(2),
.loader-flower-modal div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -0.8333333333333334s;
  background: #535353;
}
.loader-flower div:nth-child(3),
.loader-flower-modal div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.75s;
  background: #535353;
}
.loader-flower div:nth-child(4),
.loader-flower-modal div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.6666666666666666s;
  background: #535353;
}
.loader-flower div:nth-child(5),
.loader-flower-modal div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.5833333333333334s;
  background: #535353;
}
.loader-flower div:nth-child(6),
.loader-flower-modal div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.5s;
  background: #535353;
}
.loader-flower div:nth-child(7),
.loader-flower-modal div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.4166666666666667s;
  background: #535353;
}
.loader-flower div:nth-child(8),
.loader-flower-modal div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.3333333333333333s;
  background: #535353;
}
.loader-flower div:nth-child(9),
.loader-flower-modal div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.25s;
  background: #535353;
}
.loader-flower div:nth-child(10),
.loader-flower-modal div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.16666666666666666s;
  background: #535353;
}
.loader-flower div:nth-child(11),
.loader-flower-modal div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.08333333333333333s;
  background: #535353;
}
.loader-flower div:nth-child(12),
.loader-flower-modal div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
  background: #535353;
}
@keyframes loader-flower {
  0% {
   opacity: 1 
  }
  100%
  { 
    opacity: 0
  }
}

/* =============================
   モーダルを開いた時スクロールバーを消す
============================= */

body.scrollbar-hide::-webkit-scrollbar {
}
body.scrollbar-hide::-webkit-scrollbar-thumb{
  background-color: #fff;
}

/* =============================
   モーダルを開いた時ピンチアウト禁止
   スマホで効かないのでjsで強制
============================= */
.no-zoom {
  touch-action: none;
  overscroll-behavior: none;
}

/* =============================
  モーダル内の全ての画像を取得してから表示
   HTML用  function initWaitImages
============================= */

/* 適応したいエリアに付ける
------------------------------------------------*/
.js-wait-images {  
    transition:opacity 0.35s ease;
}
/* js側で処理
------------------------------------------------*/
.js-waiting  {  
    opacity:0;
    pointer-events:none;
    overflow:hidden;
    height:100%; 
    transition:opacity 0.35s ease;
}


/* =============================
  モーダル内の全ての画像を取得してから表示
   AJAX 用  fadeInAfterImagesLoaded
============================= */

.js-fade-target{
    transition:opacity .35s ease;
}

/* =============================
  モーダル背景スクロール連鎖ストップ
============================= */

.scroll-stop-box {  
  position: fixed;
  inset: 0;
  width: 100%;
  height:100vh;
  overflow: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
  transform: translate3d(0,0,0);
  background-color:rgba(34,37,43,.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  will-change:opacity;
  transition: opacity 0.4s 0.3s ease;
  transition: opacity 0.4s 0s ease;

  z-index: 998;
  opacity:0;
  pointer-events:none;
}
@media screen and (min-width: 821px) {
.scroll-stop-box {  
  background-color:rgba(34,37,43,.3);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: opacity 0.4s 0s ease;
}
}
/* 
------------------------------------------------*/
.scroll-stop-box.show {  
  opacity:1;
  pointer-events:auto;
}
/* 
------------------------------------------------*/
.scroll-stop-box::-webkit-scrollbar { 
  width: 0px!important;
  height: 0px!important; 
}
.scroll-stop-box::-webkit-scrollbar-track { 
  background-color: rgba(255, 255, 255, 0) !important;
  border-radius:0!important;
  -webkit-box-shadow: inset 0 0 0 rgba(0,0,0,0.0)!important;
  border-left: solid 0px #ececec !important;
}
.scroll-stop-box::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 0 !important;
  box-shadow:inset 0 0 0 rgba(0,0,0,0.0)!important;
}
/* 
------------------------------------------------*/
.scroll-stop-box-inner {  
  position: relative;
  width: 1px;
  height:calc(100vh + 1px);
}

/* =============================
  モーダル(A,B,C)ボックス親
============================= */
.modalBoxA,
.modalBoxB,
.modalBoxC {
  position: fixed;
  top:0;
  bottom:0;
  right:0;
  left:auto;
  width:100%;
  max-width: 800px;
  height:100vh;
  height: calc((var(--vh, 1vh) * 100));
  height: 100dvh;
  overflow: hidden;
  background-color:rgba(255,255,255,1);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
  opacity:1;
  pointer-events:none;
}
.modalBoxA {
 z-index: 1000;
}
.modalBoxB {
 z-index: 1001;
}
.modalBoxC {
 z-index: 1002;
}

@media screen and (min-width: 600px) {
.modalBoxA,
.modalBoxB,
.modalBoxC {
}
}

@media screen and (min-width: 821px) {
.modalBoxA,
.modalBoxB,
.modalBoxC {
  transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity .5s ease;
  opacity:0;
}
}

.modalBoxA.act,
.modalBoxB.act,
.modalBoxC.act {
  transform: translateX(0);
  opacity:1;
  pointer-events:auto;
}

/* =============================
  モーダル閉じる(A,B,C)
============================= */

.close-modalA,
.close-modalB,
.close-modalC {
  position: fixed;
  display:block;
  top: calc(20px + env(safe-area-inset-top));
  left: calc(20px + env(safe-area-inset-left));
  width: 56px;
  height:56px;
  background-color:#f8f8f8;
  border:1px solid #bbb;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
  border-radius:50%;
  cursor: pointer;
  transform: translate3d(0,0,0); 
  z-index: 1100;
  touch-action: manipulation;
  transition: transform 0.12s cubic-bezier(.17,.89,.32,1.28);
  -webkit-tap-highlight-color: transparent;  user-select: none;

-webkit-user-select: none;
 -ms-user-select: none;
 -moz-user-select: none;
}


/*iPhoneのボタンのようにタッチした瞬間に“ぷるっ” 
---------------------------------------------------*/
body.js_isMobile .close-modalA:active,
body.js_isMobile .close-modalB:active,
body.js_isMobile .close-modalC:active {
  transform: scale(1.18);
}

.close-modalA::after,
.close-modalB::after, 
.close-modalC::after {
    position: absolute;
    content:"";
    margin:0;
    width: 10px;
    height: 10px;
    top:50%;
    left:50%;
    border-top:3px solid #3f3f3f;
    border-right:3px solid #3f3f3f;
    pointer-events: none;
    transform : translate3d(-50%,-50%,0) rotate(-135deg);
    pointer-events:none;
}

/* =============================
  モーダル内トップへ戻る
============================= */

.modal-pageTop {
  position: absolute; /* ← モーダル内に固定 */
  bottom:20px;
  right:20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
  left:auto;
  transform: translate3d(0,0,0) rotate(180deg);
  width: 56px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background-color:#fff;
  background-repeat: no-repeat;
  background-position: center center;
  background-size:20%;
  background-image: url(../images/index/yajirushi-down.svg);
  border:1px solid #aaa;
  z-index: 20;
  border-radius:100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.modal-pageTop.is-show {
  opacity: 1;
  pointer-events: auto;
}

/* =============================
  ここにページコンテンツを流し込む(A,B,C)
============================= */

#modalContentA, 
#modalContentB, 
#modalContentC {
  position: relative;
  width: 100%;
  height: 100%;
  background-color:#fff;
  overflow:hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  transform: translate3d(0,0,0); 
 -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  scroll-behavior: smooth;
  contain: layout paint style;
  font-size:1.6rem;
  z-index: 1;
  padding-bottom:calc(100px + env(safe-area-inset-bottom));
  touch-action: pan-y;
}
body.js_isMobile #modalContentA, 
body.js_isMobile #modalContentB, 
body.js_isMobile #modalContentC {
  padding-bottom:calc(80px + env(safe-area-inset-bottom));
}

/* =============================
  ajaxがエラーしたとき用
============================= */
#modalContentA.center, 
#modalContentB.center, 
#modalContentC.center {
  display:flex;
  align-items:center;
  justify-content:center;
}

/* =============================
  メールモーダル (他のモーダルとは別物)
============================= */

.modalOpenMail{
  cursor: pointer;
}
/* モーダルボックス(お問い合わせ）
-------------------------------------------*/
.modalBoxMail{
  position: fixed;
  width:96%;
  max-width: 800px;
  height:98vh;
  height: calc((var(--vh, 1vh) * 98));
  height: 98dvh;
  top:2%; 
  bottom:0;
  right:0;
  left:50%;
  overflow: hidden;
  background-color:rgba(255,255,255,1);
  transform: translate(-50%,100%);
  transition: transform .6s, opacity .6s;
  opacity:0;
  pointer-events:none;
  z-index: 999; 
  border-radius:10px 10px 0 0 !important;
}
.modalBoxMail.act{
  transform: translate(-50%,0%);
  opacity:1;
  pointer-events:auto;
}
/*閉じる
---------------------------------------*/
.close-modalMail {
  position: fixed;
  display:block;
  bottom: calc(40px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
  width: 56px;
  height:56px;
  background-color:#f8f8f8;
  border:1px solid #bbb;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
  border-radius:50%;
  cursor: pointer;
  transform: translate3d(0,0,0); 
  z-index: 1100;
  touch-action: manipulation;
}

.close-modalMail::after {
    position: absolute;
    content:"";
    margin:0;
    width: 10px;
    height: 10px;
    top:50%;
    left:50%;
    border-top:3px solid #3f3f3f;
    border-right:3px solid #3f3f3f;
    pointer-events: none;
    transform : translate3d(-50%,-50%,0) rotate(135deg);
    pointer-events:none;
}


/*ここにページを流し込む(メールフォーム）
-------------------------------------------*/
#modalContentMail {
  position: relative;
  width: 100%;
  height: 100%;
  background-color:#fff;
  overflow:hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  transform: translate3d(0,0,0); 
 -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  scroll-behavior: smooth;
  contain: layout paint style;
  font-size:1.6rem;
  z-index: 1;
  padding-bottom:calc(200px + env(safe-area-inset-bottom));
  border-radius:10px 10px 0 0 !important;
}

body.js_isMobile #modalContentMail {
  padding-bottom:calc(100px + env(safe-area-inset-bottom));
}

/* メールトップへ戻る
-------------------------------------------*/
#back-to-top-mail {
  position: absolute; /* ← モーダル内に固定 */
  bottom:20px;
  right:20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
  left:auto;
  transform: translate3d(0,0,0) rotate(180deg);
  width: 56px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background-color:#fff;
  background-repeat: no-repeat;
  background-position: center center;
  background-size:20%;
  background-image: url(../images/mail/yajirushi-down.svg);
  border:1px solid #aaa;
  z-index: 20;
  border-radius:100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
#back-to-top-mail.is-show {
  opacity: 1;
  pointer-events: auto;
}


/* =============================
 FAQモーダル (他のモーダルとは別物)
============================= */

.modalOpenFaq{
  cursor: pointer;
}
/* モーダルボックス親
-------------------------------------------*/
.modalBoxFaq{
  position: fixed;
  width:96%;
  max-width: 800px;
  height:98vh;
  height: calc((var(--vh, 1vh) * 98));
  height: 98dvh;
  top:2%; 
  bottom:0;
  right:0;
  left:50%;
  overflow: hidden;
  background-color:rgba(255,255,255,1);
  transform: translate(-50%,100%);
  transition: transform .6s, opacity .6s;
  opacity:0;
  pointer-events:none;
  z-index: 999; 
  border-radius:10px 10px 0 0 !important;
}
.modalBoxFaq.act{
  transform: translate(-50%,0%);
  opacity:1;
  pointer-events:auto;
}
/*閉じる
---------------------------------------*/
.close-modalFaq{
  position: fixed;
  display:block;
  bottom: calc(40px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
  width: 56px;
  height:56px;
  background-color:#f8f8f8;
  border:1px solid #bbb;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
  border-radius:50%;
  cursor: pointer;
  transform: translate3d(0,0,0); 
  z-index: 1100;
  touch-action: manipulation;
}
.close-modalFaq::after {
    position: absolute;
    content:"";
    margin:0;
    width: 10px;
    height: 10px;
    top:50%;
    left:50%;
    border-top:3px solid #3f3f3f;
    border-right:3px solid #3f3f3f;
    pointer-events: none;
    transform : translate3d(-50%,-50%,0) rotate(135deg);
    pointer-events:none;
}


/*トップへ戻る
-------------------------------------------*/
#back-to-top-faq {
  position: absolute; /* ← モーダル内に固定 */
  bottom:20px;
  right:20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
  left:auto;
  transform: translate3d(0,0,0) rotate(180deg);
  width: 56px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background-color:#fff;
  background-repeat: no-repeat;
  background-position: center center;
  background-size:20%;
  background-image: url(../images/index/yajirushi-down.svg);
  border:1px solid #aaa;
  z-index: 9999999999;
  border-radius:100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
#back-to-top-faq.is-show {
  opacity: 1;
  pointer-events: auto;
}
