/* =========================================================
 *20260312修正
 問い合わせフォーム全体レイアウト
========================================================= */
.form-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 20px;
}

.form-info-wrapper {
  flex: 1;
  max-width: 520px;
}

.image-note-container {
  width: 100%; /* ここで全体の幅を決め、中身はすべてこれの100%にする */
  position: relative;
  z-index: 5;
}

.form-info-wrapper strong {
  display: block;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
  width: 100%;
}

/* =========================================================
   メイン画像スライダーエリア
========================================================= */
.main-image-container {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

.main-image {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

/* 矢印（メイン・モーダル共通） */
.nav-arrow, .modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  user-select: none;
  transition: background 0.3s;
}

.nav-arrow:hover { background: rgba(0, 0, 0, 0.7); }
.prev-arrow, .modal-prev { left: 10px; }
.next-arrow, .modal-next { right: 10px; }

/* サムネイル */
.thumbnails {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  width: 100%;
}

.thumb-item {
  width: calc(32.777% - 7px);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumb-item:hover { opacity: 1; }

.thumb-item.active-thumb {
  opacity: 1;
  border-color: #00a0a0; /* アクセントカラー */
}

/* =========================================================
   ポップアップ（モーダル）
========================================================= */
.thumbnailsModal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.thumbnailsModal.active { display: flex; }

.modal-content {
  position: relative;
  max-width: 80%;
}

.modal-content img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.modal-arrow {
  width: 60px;
  height: 60px;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.1);
}
.modal-arrow:hover { background: rgba(255, 255, 255, 0.3); }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

/* =========================================================
   「強調スタイル」
========================================================= */
.note.recommend-style {
  background: #f0f9f9; /* 背景色：資料の内容（#ebf6f6）より少し明るく、またはお好みの色に */
  border: 2px solid #40aca7; /* 枠線：BORDERの送信ボタンと同じ色で強調 */
}

.note.recommend-style h2 {
  color: #40aca7; /* 見出しの文字色も合わせる */
  margin-bottom: 10px;
}

/* =========================================================
   「こんな方/資料共通スタイル」
========================================================= */
.note {
  background: #ebf6f6;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 100%;
	box-sizing: border-box;
	margin-top: 40px;
}

.note h2 {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin: 0 0 15px 0;
  border: none;
  background: none;
}

.note ul {
  list-style: disc;
  padding-left: 20px;
}

.note li {
  margin-bottom: 6px;
  color: #333;
  font-size: 15px;
}

/* =========================================================
   HubSpotフォーム
========================================================= */
.form_area {
  flex: 1;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* フォーム冒頭メッセージ */
.form_area::before {
  content: "下記フォームに必要事項をご記入の上、送信ください。\Aメールにて資料をお送りいたします。";
  display: block;
  white-space: pre-line;
  font-size: 15px;
  color: #667;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* =========================================================
   モバイル対応
========================================================= */
@media (max-width: 768px) {
  .form-layout {
    flex-direction: column;
    gap: 40px;
    padding: 40px 15px;
    max-width: 100%;       /* 横幅制限 */
    margin: 0 auto;        /* 中央寄せ */
    box-sizing: border-box; /* パディング込みで幅計算 */
    align-items: center;
  }
}

/* コンテンツを包むラッパーを中央配置に固定 */
@media (max-width: 768px) {
  .form-info-wrapper {
    width: 100%;
    max-width: 400px; /* フォームの幅と合わせる */
    flex: none;      /* PC版のflex設定を解除 */
    margin: 0 auto;  /* 中央寄せ */
  }
}

@media (max-width: 768px) {
  .image-note-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .main-image {
    width: 100%;           /* 横幅いっぱいに調整 */
    max-width: 400px;      /* 最大幅を指定するとはみ出し防止 */
    margin: 0 auto 15px;   /* 真ん中に寄せる */
  }

  .thumbnails {
    width: 100%;
    max-width: 400px;
    justify-content: center; /* 🌟サムネイル画像を中央に並べる */
    margin: 0 auto 30px;
  }
  
  .thumbnails img {
    width: 30%;             /* 親幅に収まるよう調整 */
    max-width: 100px;       /* 適宜調整 */
  }
}

@media (max-width: 768px) {
  .form_area {
    width: 100%;            /* 横幅いっぱい */
    max-width: 400px;       /* はみ出し防止 */
    margin: 0 auto;         /* 中央寄せ */
    padding: 20px;
    box-sizing: border-box;
  }
}
@media (max-width: 768px) {
  /* 説明文を中央寄せ */
  .form-info-wrapper strong {
    width: 100%;          /* 親幅に収める */
    max-width: 400px;     /* 適宜調整 */
    margin: 0 auto 30px;  /* 上0、下30px、左右中央寄せ */
    display: block;
    text-align: center;   /* 文字も中央寄せ */
    box-sizing: border-box;
  }

  /* 「こんな方におすすめ/資料の内容」を中央寄せ */
  .note {
    width: 100%;          /* 親幅に収める */
    max-width: 400px;     /* 画像幅やフォーム幅に合わせて調整 */
    margin: 40px auto 0;  /* 上40px、左右中央寄せ */
  }
	
	.note h2 {
		font-size: 18px;
	}
	
  .note ul {
    padding-left: 0;      /* 中央寄せ時はリストの左余白を削除 */
    list-style-position: inside; /* ディスクをテキスト内に */
  }

  .note li {
    text-align: left;     /* リスト項目は左寄せのまま */
    margin-bottom: 6px;
		font-size: 13.5px;
  }
}

@media (max-width: 768px) {
  .modal-arrow { 
    width: 40px; 
    height: 40px; 
    font-size: 18px; 
  }
}