/* =========================================
   共通ヒーローセクション（統一デザイン）
========================================= */
.page-hero {
  position: relative;
  width: 100%;
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.page-bg {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  z-index: 0;
}

.page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 30, 0.185);
  /* ✅ 統一した半透明黒 */
  z-index: 1;
}

.page-hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  animation: fadeUp 1.5s ease forwards;
  margin-top: 12vh;
}

.page-hero-text h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.page-hero-text p {
  font-size: clamp(16px, 2vw, 22px);
  margin-top: 10px;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .page-hero {
    height: 50vh;
  }

  .page-hero-text h1 {
    font-size: 2rem;
  }
}

/* ===== お問い合わせフォーム ===== */
.contact-section {
    background: #f8faff;
    padding: 5rem 2rem;
}

.contact-section .inner {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #182578;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

input,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
}

.btn-area {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    background: linear-gradient(90deg, #182578, #4a6ef1);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(90deg, #142060, #3a58d0);
    transform: translateY(-2px);
}

/* ===== 必須マーク ===== */
.required {
    color: #e53935;
    font-size: 0.85em;
    margin-left: 0.3em;
}

/* ===== フェードアニメ ===== */
.fadeUpTrigger {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.fadeUp {
    opacity: 1;
    transform: translateY(0);
}

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
    .contact-section h2 {
        font-size: 1.2rem;
    }

    .btn-submit {
        width: 100%;
    }
}

/* ======================================
   確認モーダル
====================================== */

#confirmModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#confirmModal.show {
  display: flex;
}

.confirm-content {
  background: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  text-align: left;
}

.confirm-row {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.confirm-btns {
  text-align: right;
  margin-top: 1.5rem;
}

.btn-back,
.btn-send {
  padding: 8px 18px;
  margin-left: 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

.btn-back {
  background: #ddd;
}

.btn-send {
  background: #0078ff;
  color: #fff;
}


/* ======================================
   🩵 S.I.Mエレック ブランド調 モーダル
====================================== */
#thanksModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 40, 0.65); /* ネイビー系の透過背景 */
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease forwards;
}

#thanksModal.show {
  display: flex;
}

.modal-content {
  background: #ffffff;
  padding: 2rem 3rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  animation: popIn 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* 成功・失敗時の上部ゴールド／レッドライン */
.modal-content.success {
  border-top: 6px solid #C6A350; /* ゴールド */
}
.modal-content.error {
  border-top: 6px solid #D94E4E;
}

/* アイコン領域 */
.icon-area {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.icon {
  display: none;
  animation: pulse 1.2s ease infinite alternate;
}
.icon.success {
  color: #C6A350; /* ゴールド */
  text-shadow: 0 0 12px rgba(198,163,80,0.4);
}
.icon.error {
  color: #D94E4E;
  text-shadow: 0 0 12px rgba(217,78,78,0.3);
}

/* テキスト領域 */
#modalMessage {
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 1.2rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

/* ボタン */
#closeModal {
  background: linear-gradient(135deg, #182578, #0e1b6b);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.65rem 1.6rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(24,37,120,0.25);
}
#closeModal:hover {
  background: linear-gradient(135deg, #0e1a56, #101f80);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(24,37,120,0.35);
}

/* === アニメーション === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes pulse {
  from { transform: scale(1); opacity: 0.75; }
  to { transform: scale(1.15); opacity: 1; }
}

/* === ダークテーマでも視認性を保つために微調整 === */
@media (prefers-color-scheme: dark) {
  .modal-content {
    background: #fdfdfd;
    color: #111;
  }
}
