/***＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊
お問い合せフォーム
*＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊*/
/******* 商品レンタルお問いわせフォーム *******/

.contact p {
  margin-bottom: 0 !important;
}
body.page-id-2613 .wpcf7 form > div,
body.page-id-2613 .wpcf7 form > p {
  margin-bottom: 0 !important;
}

section.contact {
  padding: 90px 0 150px 0;
  position: relative;
  font-family: "Noto Sans JP";
  background: #fff;
}

.contact .contact-container {
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
}

/* body.page-id-2613 .site-content .ast-container {
  display: block !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  align-items: unset !important;
} */

.contact .contact-container {
  display: block;
  width: 100%;
}

.contact_tel {
  line-height: 1.5em;
  font-weight: 600;
  font-size: 18px;
}
.contact_txt {
  line-height: 1.5em;
  margin-top: 10px;
}

.form {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.wpcf7-spinner {
  display: none;
}

.form-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
  gap: 10px;
}

.form-label {
  display: flex;
  align-items: center;
  width: 30%;
  margin: 0;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-align: left;
}

.form-label .must {
  margin-right: 8px;
  color: red;
}

.form-item > :not(.form-label) {
  width: 100%;
}

.form-item input[type="text"],
.form-item input[type="tel"],
.form-item input[type="email"],
.form-item input[type="date"],
.form-item textarea {
  width: 100%;
  padding: 15px;
  font-size: 19px;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  text-align: left;
}

.form-item input[type="file"] {
  width: 100%;
  padding: 15px;
  font-size: 19px;
  color: #333;
  box-sizing: border-box;
  text-align: left;
}

textarea {
  resize: vertical;
}

.form-item.block-text {
  display: block;
  text-align: left;
}

.form-file-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
}

.file-txt {
  font-weight: bold;
  margin-top: 10px;
}

input[type="file"] {
  padding: 5px;
}

/* ---------- SUBMIT BUTTON ---------- */
input[type="submit"] {
  padding: 0.8rem 3rem 0.8rem 3rem;
  background: #006efa;
  display: inline-block;
  position: relative;
  letter-spacing: 0.18em;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
  font-size: 16px;
  border: none;
  margin-top: 60px;
  cursor: pointer;
  border-radius: 10px;
}

input[type="submit"]:hover {
  background-color: #ffffff;
  font-family: "Roboto", Sans-serif;
  font-weight: 500;
  fill: #006efa;
  color: #006efa;
  border-style: solid;
  border-color: #006efa;
}

.wpcf7 form .wpcf7-submit,
.wpcf7 form input.check,
.wpcf7 form input.multistep-123 {
  display: inline-block;
  margin: 40px auto 0 auto;
}

.wpcf7 form p {
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 900px) {
  .entry-form .heading-back {
    top: 147px;
    font-size: 150px;
  }
}

@media screen and (max-width: 767px) {
  .entry-form {
    padding: 60px 0 60px;
  }

  .form-item {
    display: block;
    padding: 0;
  }

  .form-label {
    width: 100%;
    margin-bottom: 10px;
  }

  .form-item > :not(.form-label) {
    width: 100%;
  }

  .form-file-box {
    display: block;
  }

  .entry-form .heading-back {
    font-size: 20vw;
    top: 7%;
  }
  .wpcf7 form .wpcf7-submit,
  .wpcf7 form input.check,
  .wpcf7 form input.multistep-123 {
    margin: 30px auto 0 auto;
  }
}

@media screen and (max-width: 480px) {
  .sp-none {
    display: none;
  }

  .entry-form .heading-back {
    top: 9%;
  }

  .heading-sm {
    font-size: 40px;
  }
}

section.form-thanks {
  width: 100%;
  height: 100vh;
  text-align: center;
  margin: 0;
  padding: 50px 0;
  overflow: hidden;
  background-color: #fff7e9;
}

.form-thanks-container {
  margin: 200px auto 0 auto;
  max-width: 90%;
}

.form-thanks-text {
  margin: 15px 0;
}

.back-button {
  padding: 1rem 8rem 1rem 7rem;
  background: #007cba;
  display: inline-block;
  position: relative;
  letter-spacing: 0.18em;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
  font-size: 16px;
  border: none;
  margin-top: 60px;
  cursor: pointer;
}

.back-button:hover {
  background-color: #fff;
  color: #000;
  box-shadow: 4px 4px 0 #aaa;
}
.form-thanks-container .heading-title {
  font-size: 20px;
  font-weight: bold;
}

@media screen and (max-width: 560px) {
  .back-button {
    padding: 1rem 4rem 1rem 4rem;
  }
}

/* sp-entry-form-thanks */
@media screen and (max-width: 480px) {
  .form-thanks-container {
    margin: 150px auto 0 auto;
  }
}

/***＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊
料金シミュレーター
*＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊*/

/* セクション全体 */
.price-simulator-section {
  padding: 60px 0 100px;
  background-color: #f5f8fa;
  position: relative;
  z-index: 1;
}

.price-simulator-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* タイトル */
.price-simulator-title {
  text-align: center;
  line-height: 1.4;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #333;
}

/* フォーム */
.price-simulator-form {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  min-width: 300px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 5px 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-control select,
select.form-control {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  font-size: 15px;
}

.form-control select option,
select.form-control option {
  font-size: 15px;
  padding: 8px;
}

.form-control:focus {
  outline: none;
  border-color: #007BFF;
}

/* ボタン */
.btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-calculate {
  width: 100%;
  background-color: #007BFF;
  color: #fff;
  margin-top: 10px;
}

.btn-calculate:hover {
  background-color: #0056b3;
}

.btn-pdf {
  background-color: #28a745;
  color: #fff;
  display: block;
  width: 100%;
  margin-top: 30px;
}

.btn-pdf:hover {
  background-color: #218838;
}

/* 結果表示 */
.price-result {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-room-info {
  background-color: #f0f6ff;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 5px;
  line-height: 1.8;
}

.result-section {
  margin-bottom: 30px;
}

.result-section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007BFF;
  color: #333;
}

.result-content {
  line-height: 1.8;
}

/* コストグループ */
.cost-group {
  margin-bottom: 25px;
}

.cost-group-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  flex-wrap: wrap;
}

.cost-label {
  font-weight: 500;
  color: #333;
  flex: 0 0 auto;
}

.cost-right {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cost-value {
  font-weight: bold;
  color: #000;
  flex: 0 0 auto;
}

.cost-note {
  color: #666;
  font-size: 14px;
  margin-left: 10px;
  flex: 0 0 auto;
}

.cost-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-top: 10px;
  border-top: 1px solid #ddd;
  font-weight: bold;
}

.cost-subtotal .cost-label {
  color: #000;
}

.cost-subtotal .cost-value {
  color: #000;
  font-size: 18px;
}

.cost-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-top: 20px;
  background-color: #e7f3ff;
  border-radius: 5px;
  font-weight: bold;
}

.cost-grand-total .cost-label {
  font-size: 18px;
  color: #007BFF;
}

.cost-grand-total .cost-value {
  font-size: 22px;
  color: #007BFF;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .price-simulator-title {
    font-size: 24px;
  }

  .price-simulator-form,
  .price-result {
    padding: 20px;
  }

  .cost-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cost-right {
    justify-content: flex-start;
    margin-top: 5px;
  }

  .cost-note {
    margin-left: 0;
    margin-top: 3px;
  }

  .cost-grand-total {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media screen and (max-width: 480px) {
  .price-simulator-section {
    padding: 40px 0 60px;
  }

  .price-simulator-title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .result-section-title {
    font-size: 18px;
  }

  .cost-grand-total .cost-label,
  .cost-grand-total .cost-value {
    font-size: 16px;
  }
}

/***＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊
料金シミュレーター（統合版・横並びレイアウト）
*＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊*/

/* 統合版コンテナ */
.price-simulator-combined-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* グリッドレイアウト（2カラム） */
.simulator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-top: 20px;
}

/* 各シミュレーターカラム */
.simulator-column {
  display: flex;
  flex-direction: column;
  min-width: 350px;
}

/* シミュレータータイトル（統合版用） */
.simulator-column .simulator-title {
  text-align: center;
  line-height: 1.4;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
}

/* タブレット対応（768px以下） */
@media screen and (max-width: 1024px) {
  .simulator-grid {
    gap: 40px;
  }

  .simulator-column .simulator-title {
    font-size: 22px;
    margin-bottom: 25px;
  }
}

/* スマホ対応（縦積みレイアウト） */
@media screen and (max-width: 768px) {
  .simulator-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .simulator-column {
    min-width: 0;
  }

  .simulator-column .simulator-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .price-simulator-combined .simulator-column:not(:last-child) {
    padding-bottom: 40px;
    border-bottom: 2px solid #ddd;
  }
}

@media screen and (max-width: 480px) {
  .price-simulator-combined-container {
    padding: 0 15px;
  }

  .simulator-grid {
    gap: 50px;
  }

  .simulator-column .simulator-title {
    font-size: 20px;
    margin-bottom: 25px;
  }
}

/***＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊
AI Engine z-index 修正
*＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊*/

/* AI Engineのチャットウィンドウが閉じている時に他の要素をクリックできるようにする */

/* デスクトップ表示時：チャットが閉じている時はウィンドウ全体へのクリックを無効化 */
@media (min-width: 761px) {
  .mwai-timeless-theme.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) {
    pointer-events: none !important;
  }

  /* トリガーボタンは常にクリック可能にする */
  .mwai-timeless-theme.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-trigger {
    pointer-events: auto !important;
  }

  /* ウィンドウボックスも念のため */
  .mwai-timeless-theme.mwai-window:not(.mwai-open):not(.mwai-opening):not(.mwai-closing) .mwai-window-box {
    pointer-events: none !important;
    visibility: hidden !important;
  }
}

/* モバイル表示時：チャットが閉じている時はウィンドウ全体を縮小 */
@media (max-width: 760px) {
  /* ウィンドウが閉じている時はクリックイベントを無効化 */
  .mwai-timeless-theme.mwai-window:not(.mwai-open) {
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* トリガーボタンは常にクリック可能にする */
  .mwai-timeless-theme.mwai-window:not(.mwai-open) .mwai-trigger {
    pointer-events: auto !important;
    width: auto !important;
    height: auto !important;
  }

  /* ウィンドウが開いている時は通常通り */
  .mwai-timeless-theme.mwai-window.mwai-open {
    pointer-events: auto !important;
    width: calc(100% - 40px) !important;
    height: auto !important;
  }
}
