/* =========================================================
   フォームページ（資料請求・お問い合わせ）とサンクスページ共通スタイル
   lp.css と併用する。ヘッダーなし・中央寄せ 1 カラムの簡易レイアウト。
   ========================================================= */

/* ヘッダーを持たないページなので、lp.css の固定ヘッダー分の余白を打ち消す */
body.page-simple {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 0;
  background: var(--c-bg-light);
  color: var(--c-black);
}

.page-simple__main {
  flex: 1 0 auto;
  padding: 96px 24px 72px;
}

@media (min-width: 768px) {
  .page-simple__main { padding: 192px 24px 96px; }
}

/* ---------- フォーム枠（formrun 埋め込み） ----------
   formrun の埋め込み SDK（.formrun-embed 内に iframe を生成し、高さを自動調整する）を使う。
   SDK が iframe に inline で height:0 を入れるため、高さの下限は min-height で担保する
   （inline の height より min-height が優先される）。SDK が読み込めず自動調整が効かない場合は、
   この下限の高さで表示され、フォームが下限より長ければ iframe 内でスクロールできる。
   <noscript> の iframe も同じ見た目にするため、同じ規則を当てる。 */
.form-frame {
  max-width: 720px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--c-white);
}

.form-frame iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 720px;
  border: 0;
  overflow: auto;
}

/* フォーム下の「戻る」ボタン */
.form-back {
  display: flex;
  justify-content: center;
  margin-top: 104px;
}
.btn--back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 234px;
  padding: 14px 32px;
  border-radius: 4px;
  background: #333333;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn--back:hover { opacity: 0.85; }
.btn--back:focus-visible { outline: 3px solid var(--c-navy); outline-offset: 3px; }

/* フォーム未設置（準備中）のプレースホルダー */
.form-placeholder {
  max-width: 720px;
  margin-inline: auto;
  padding: 48px 24px;
  background: var(--c-white);
  text-align: center;
}
.form-placeholder__title {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 700;
}
.form-placeholder__box {
  padding: 48px 16px;
  border: 2px dashed #767676;
  color: var(--c-gray);
  font-size: 18px;
  font-weight: 700;
}

/* ---------- サンクスメッセージ ---------- */
.thanks-card {
  max-width: 780px;
  margin-inline: auto;
  padding: 48px 24px;
  border-radius: 16px;
  background: var(--c-white);
}

.thanks-card__title {
  margin-bottom: 40px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-black);
}

.thanks-card__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--c-black);
}

.thanks-card__body--center { text-align: center; }

.thanks-card__actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .thanks-card { margin-top: 24px; padding: 96px 48px; }
  .thanks-card__title { margin-bottom: 48px; font-size: 24px; }
}

/* 枠線つきボタン（資料ダウンロード・トップへ戻る） */
.btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 240px;
  max-width: 100%;
  padding: 14px 32px;
  border: 2px solid var(--c-black);
  border-radius: 4px;
  background: #F8F7F6;
  color: var(--c-black);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn--outline:hover { opacity: 0.8; }
.btn--outline .material-icons { font-size: 24px; }

/* ---------- フッター（簡易版） ---------- */
@media (min-width: 768px) {
  .site-footer--simple { padding-block: 96px; text-align: left; }
  .site-footer--simple .site-footer__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 48px;
    row-gap: 40px;
    max-width: 1280px;
    padding-inline: 48px;
  }
  .site-footer--simple .site-footer__links { justify-content: flex-end; }
  .site-footer--simple .site-footer__copy { grid-column: 1 / -1; }
}
