/* =========================================================
   送信結果のお知らせ画面（contact.html / partner.html）

   send.php から ?sent=1（成功）／?error=1（失敗）で戻ってきたときに、
   js/form-modal.js が画面全体をおおう形で出します。
   ページの上のほうに小さく出るだけだと見落とされる、というご指摘への対応です。

   ・共通CSS（css/style.css）は変更していません。このファイルは
     contact.html と partner.html だけが読み込みます。
   ・クラス名はすべて .fmodal から始めます（他の部品と当たらないようにするためです）。
   ========================================================= */

.fmodal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 24, 38, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.fmodal {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px 28px 26px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(6, 24, 38, 0.36);
  text-align: center;
  animation: fmodal-in 0.22s ease-out;
}

@keyframes fmodal-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 動きを控えめにする設定の端末では、アニメーションを止めます。 */
@media (prefers-reduced-motion: reduce) {
  .fmodal { animation: none; }
}

/* 上の丸いアイコン。成功は紺のチェック、失敗は赤の「！」です。 */
.fmodal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  color: #fff;
}

.fmodal-ok .fmodal-icon {
  background: #0a2438;
}

.fmodal-ng .fmodal-icon {
  background: #c0392b;
}

.fmodal-title {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.5;
  color: #0a2438;
}

.fmodal-ng .fmodal-title {
  color: #c0392b;
}

.fmodal-body {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #46515c;
  text-align: left;
}

.fmodal-body p {
  margin: 0 0 10px;
}

.fmodal-body p:last-child {
  margin-bottom: 0;
}

/* 電話番号・メールアドレスは、失敗したときの連絡先なので目立たせます。 */
.fmodal-contact {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #dfe4e9;
  border-radius: 10px;
  background: #f6f8fa;
  text-align: center;
  font-size: 15px;
  line-height: 2;
}

.fmodal-contact a {
  font-weight: 600;
  color: #0a2438;
}

.fmodal-close {
  display: inline-block;
  min-width: 180px;
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  background: #0a2438;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
}

.fmodal-close:hover {
  background: #061826;
}

.fmodal-close:focus-visible {
  outline: 3px solid #5fa8f2;
  outline-offset: 2px;
}

/* 画面がおおわれている間は、後ろのページをスクロールさせません。 */
.fmodal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .fmodal {
    padding: 26px 20px 22px;
  }

  .fmodal-title {
    font-size: 19px;
  }

  .fmodal-close {
    width: 100%;
  }
}
