/* モーダル共通部 */

/* モーダル領域 */
.modal{
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 200;
  display: none; /* 初期は非表示 */
}
/*ポップアップ外枠*/
.Popbox{
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  padding: 20px;
  border-radius: 20px;
}
.popAdjuster{
  margin: 20px 30px 20px 30px;
}
/*ポップアップ内枠*/
.PopInBox{
  background: #f1f1f1;
  border-radius: 10px;
}
/*ポップアップテキスト領域*/
.Pop_txtBox{
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  border-bottom: 2px solid #dddddd;
  padding-bottom: 10px;
  text-align: center;
}
.popTitle{
  display:flex;
  align-items: center;
  justify-content: center;
  color: var(--darkBrown);
  font-size: var(--fz-lg);
  font-weight: var(--fw-bold);
}
/*ポップアップテキスト*/
.Poptext{
  display:flex;
  align-items: center;
  justify-content: center;
  color: var(--darkBrown);
  font-size: var(--fz-sm);
}
/*ボタン配置領域*/
.ButtonGr{
  display:flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  padding-top: 15px;
}
/*赤色ボタン*/
.Redbtn{
  display:flex;
  margin: 2%;
  min-width: 150px;
  min-height: 30px;
  height: 40px;
  width: 200px;
  background-color: #DD2C2B;
  border:2px solid #DD2C2B;
  color: white;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.Redbtn>img{
  width: var(--icon-size);
  height: var(--icon-size);
}
/*緑枠ボタン*/
.Grnbtn{
  margin: 2%;
  min-width: 150px;
  min-height: 30px;
  height: 40px;
  width: 200px;
  background-color: white;
  border: 2px solid #57c3a2fd;
  color:#57c3a2fd ;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* モーダル個別部 */

/* 呼び出し確認モーダル*/ 
/*IDパスワード要素*/
input[type="text"],
input[type="password"] {
  width: 50%;
  padding: 3px 35px;
  border: 1px solid #cacaca;
  border-radius: 20px;
  font-size: 14px;
  background-color: white;
  transition: border-color .15s ease, box-shadow .15s ease;
}
/* 入力フィールド */
.field {
  display: flex;
  align-items: center;
  text-align: right;
}
.explanation_input{
  width: 40%;
  margin: 2%;
  justify-items: right;
  color: var(--darkBrown);
  font-size: var(--fz-sm);
}
.callForm_class{
  padding: 15px 10px;
  border-bottom: 2px solid #dddddd;
}
.inquiryPopTitle{
  br{
    display: none;
  }
}

/* 保存モーダル */
.savaPopText{
 br {
  display:none;
 }
}
/* 問い合わせモーダル */
#inquiryModal {
  background: rgb(236, 234, 234);
  margin-top: var(--header-h);
  z-index: 99;
} 
/* 問い合わせボタン */
.contactbutton{
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4C8491;
  color:#fff;
  border-radius: 50px;
  line-height: 1;
  border: 0;
  font-weight: bold;
  margin-top: 40px;
  width: 300px;
  height: 40px;
  display: inline-block;
  margin-bottom: 40px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
}
.contactbutton>span{
  margin:0 20% 0 20%;
}
.contacticon{
  height: 20%;

}
.contactTitle{
  font-size: var(--fz-lg);
  font-weight: var(--fw-bold);
  color: var( --darkBrown);
  margin-bottom: 24px;
  
}
.contact_text{
  display: flex;
  color: var( --darkBrown);
  text-align: center;
  font-size: var(--fz-sm);
}
.contact_box{
  max-height: 320px;
  text-align:center;
} 

/* 内側ラッパーは透明のまま（フレックスで中央寄せ） */
.inquiry-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
  /* 中央でコンテンツを包むだけ */
  display: flex;
  justify-content: center;
  /* 最大幅／左右の余白（画面が広い時の見栄え用） */
  width: min(100%, 1100px);
  height: 100%;
  padding: var(--gapHeadContent) 24px;
}

/* カードとボタンを“ぴったり”横並びにする行コンテナ */
.inquiry-row {
  display: flex;
  align-items: flex-start;  /* ボタンとカードの上下位置を揃える */
  gap: 0px;             /* ほぼ“くっつく”距離（必要なら 4px などへ） */
  width: 90%;
}

/* 左の小さい四角カード（戻るボタン用） */
.cancel-card {
  background: #fff;
  color: #333;
  border-radius: 10px;
  border-top-right-radius: 0;           /* ← 右側だけ四角に */
  border-bottom-right-radius: 0;           /* ← 右側だけ四角に */
  padding: 10px 12px;
  min-width: 50px;
  min-height: 32px;        /* 小さめカードらしさ。必要に応じて調整 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* 実ボタン */
#cancelInquiryBtn {
  display: flex;
  flex-direction:column;
  color: #4C8491;
  background-color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  border: 0;
  font-weight: bold;
  padding: 0;
}

#cancelInquiryBtn img{
  width: 100%;
  height: auto;
  margin-bottom:15% ;
}

/* 右側の“メイン”カード（ホバーしても動かない） */
.inquiryContana {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: clamp(560px, 70vh, 840px);/* 最小 560px、標準は 70vh、最大 840px */
  height: 100%;
  position: relative;
  flex: 1 1 0;    /* 縮小可 */
  max-width: 720px;   /* 画面が広すぎてもこれ以上は広げない例 */
  min-width: min(100vw - 64px, 320px);
  /* カード風のスタイル */
  background-color: #fff;
  border-top-right-radius: 12px;
  padding: 24px;
  overflow: visible;
  overflow-y: auto;
}
.inquiryContanaTitle{
  color: var(--white);
  font-size: var(--fz-lg);
  font-weight: var(--fw-bold);
}
.inquiryContana_text{
  color: var(--white);
  font-size: var(--fz-sm);
}

/* 背景画像：引き延ばさず、カード上端から少し空間を空けて配置 */
.inquiryContana_image{
  text-align: center;
  position: relative;
  background-image: url('/picture/inquiryImg.png');   /* Bladeなら asset() 推奨 */
  background-repeat: repeat;
  background-position: center top ;
  background-origin: padding-box;    /* padding を基準に位置決め */
  border-radius: 15px;
  width: 100%;
}
.inquiryContana_image::before {
  content: "";
  position: absolute;
  top: 99%;
  left: 50%;
  margin-left: -15px;
  border: 20px solid transparent;
  border-top: 20px solid #DE7424;
}

#grayBox{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2% 0;
}
.center-box{
  display: flex;
  align-items: center;
  height:55px ;
  width: 60%;
  background-color: #fffefe;
  margin: 0  0 2% 0   ;
  border-radius: 25px;
}
.center-titl{
  margin: 0;
  width: 50%;
  text-align: right;
  padding-right: 5%;
  color: var(--orange);
  font-weight: var(--fw-bold);
}
.center-text{
  margin: 0;
  width: 55%;
  text-align: left;
  color: var(--darkBrown);
  font-weight: var(--fw-bold);
}

.inquiryicon{
  display: flex;
  align-items: center;
  margin: 10%;
  width: auto;
}

/* スマホでは縦並びにして、間隔は少し広げる */
@media (max-width: 768px) {
  .inquiry-row {
    flex-direction: column;
    align-items: stretch;
    width:100%;
    float: left;
    padding-top: 6%;
  }
  .cancel-card {
    align-self: flex-start;
    margin-left: 5%; 
    border-radius: 15px 15px 0 0;
  }
  #cancelInquiryBtn {
    position: relative;
    flex-direction: row;
  }
  #cancelInquiryBtn img{
    height: auto;
    width: 40%;
    margin-bottom: 0;
    margin-right: 10%;
  }
  .CancelInquiryBtn_text{
    display: inline-flex;
    align-items: center;
    text-align: center;
  }
  .inquiry-inner {
    padding: 0 0;
  }
  .inquiryContana_image br{
    display: none;
  }
  .center-box{
    width: 85%;
  }
  #grayBox{
    height: 33%;
  }
  .inquiryContana_text{
    margin:20px 20px 20px 20px;
  }
}

@media (max-width: 576px) {
  .modal{
    padding: 5%;
  }
  .ButtonGr{
    flex-wrap: wrap;
  }
  .savaPopText{
    br{
      display: flex;
    }
  }
  .field{
    align-items: start;
    text-align: left;
    flex-direction: column;
  }
  input[type="text"],
  input[type="password"] {
    width: auto;
  }
  .inquiryPopText{
    white-space: normal;
    br{
      display: none;
    }
  }
  .inquiryPopTitle{
    br{
      display: flex;
    }
  }
  .popAdjuster{
    margin: 20px 10px 20px 10px;
  }
  #inquiryModal {
    padding: 0;
  } 
}
@media (max-width: 500px) {
  .contact_text br{
    display:none;
  }
}
@media (max-height: 650px) {
  .contactbutton{
    margin-bottom:120px;
  }
}
@media (max-height: 700px) and (max-width: 500px) {
   .contactbutton{
    margin-bottom:72px;
  }
}
