/*
Theme Name: progrive-new
Description: progrive-new Theme (2026/2/15 modify)
Version: 1.0.0
*/
/* 2025/04/15 add recruit banner */
#recruit-fixed-banner {
  position: fixed;
  bottom: 20px;
  left: -650px; /* ← 初期状態は画面外に */
  display: flex;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 9999;
  max-width: 600px;
  width: auto;
  overflow: hidden;
  align-items: stretch;
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
  opacity: 0; /* 初期は透明 */
  transition: left 0.6s ease-out, opacity 0.6s ease-out;
}

#recruit-fixed-banner.show {
  left: 20px; /* 画面内に移動 */
  opacity: 1;  /* 表示 */
}

#recruit-fixed-banner img {
  width: 300px;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  flex-shrink: 0;
}

.recruit-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  flex-grow: 1;
  min-width: 200px;
  align-items: center;
}

.recruit-message {
  font-size: 20px;
  font-weight: bold;
  color: #196b8c;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

.recruit-btn {
  color: white;
  padding: 12px 16px;
  margin: 5px 0;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  width: 100%;
  max-width: 240px;
  box-sizing: border-box;
}

.recruit-btn.primary {
  background-color: #14499e;
}

.recruit-btn.primary:hover {
  background-color: #1a5ae0;
}

.recruit-btn.secondary {
  background-color: #33ac36;
}

.recruit-btn.secondary:hover {
  background-color: #288a2b;
}

#recruit-banner-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  font-size: 26px;
  line-height: 36px;
  background: transparent;
  color: #777;
  border: none;
  cursor: pointer;
  z-index: 10000;
  padding: 0;
  text-align: center;
}

#recruit-banner-close:hover {
  color: #333;
}
/*
@media screen and (max-width: 768px) {
  #recruit-fixed-banner {
    display: none;
  }
}
*/
@media screen and (max-width: 768px) {
  #recruit-fixed-banner {
    flex-direction: column;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-width: 90%;
    height: auto;
  }

  #recruit-fixed-banner img {
    width: 100%;
    height: auto;
    object-fit: contain; /* ← containで画像が切れず、縮小されて表示される */
    max-height: 180px;
    border-bottom: 1px solid #eee;
  }

  .recruit-buttons {
    padding: 10px;
    align-items: stretch;
  }

  .recruit-message {
    font-size: 16px;
    white-space: normal;
  }

  .recruit-btn {
    font-size: 14px;
    padding: 10px;
    max-width: 100%;
    white-space: normal;
  }

  #recruit-banner-close {
    width: 32px;
    height: 32px;
    font-size: 22px;
    line-height: 32px;
  }
}

/* デフォルト：PC用画像 */
.recruit-banner-img {
  content: url("https://www.progrive.co.jp/wp-content/uploads/2025/04/banner.png");
  width: 300px;
  height: auto;
  object-fit: cover;
}

/* スマホ：画像差し替え */
@media screen and (max-width: 768px) {
  .recruit-banner-img {
    content: url("https://www.progrive.co.jp/wp-content/uploads/2025/04/banner_2.jpg");
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 768px) {
  .float_bnr {
    display: none !important;
  }
}

.ss_error_msg {
  color: red;
  font-weight: bold;
}

/* ====== お問い合わせフォーム（ID=4）用スタイル ====== */
/* 規約ボックス（どの場所でも効く版） */
.ff-pp-title {
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 8px;
}
.ff-pp-box {
  border: 1px solid #ccc;
  background: #fafafa;
  padding: 12px;
  max-height: 400px;     /* お好みで 220–500px */
  overflow-y: auto;      /* 縦スクロールを強制 */
  line-height: 1.7;
  font-size: 14px;
}

/* 外枠と背景 */
.fluent_form_4 .fluentform {
  border: 1px solid #ddd;
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* フィールド間の余白 */
.fluent_form_4 .ff-el-group {
  margin-bottom: 16px;
}

/* ラベル */
.fluent_form_4 .ff-el-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* 必須マーク */
.fluent_form_4 .ff-el-required {
  color: #d00;
}

/* 入力欄の見た目 */
.fluent_form_4 input[type="text"],
.fluent_form_4 input[type="email"],
.fluent_form_4 input[type="tel"],
.fluent_form_4 textarea,
.fluent_form_4 select {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 9px 10px;
  background: #fff;
}

/* チェック/ラジオの並び */
.fluent_form_4 .ff-el-input--content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.fluent_form_4 .ff-el-input--content input[type="checkbox"],
.fluent_form_4 .ff-el-input--content input[type="radio"] {
  margin-right: 6px;
}
.fluent_form_4 .ff-el-input--content label {
  margin-right: 12px;
}

/* 個人情報の取扱い部分 */
.fluent_form_4 .ff-pp-title {
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 8px;
}
/* フォームID=4 内だけで強制 */
.fluent_form_4 .ff-pp-box {
  border: 1px solid #ccc !important;
  background: #fafafa !important;
  padding: 12px !important;
  max-height: 400px !important;
  overflow-y: auto !important;
  line-height: 1.7;
  font-size: 14px;
}

/* 氏名（姓／名）2列レイアウト */
.fluent_form_4 .ff-name-fields {
  display: flex;
  flex-wrap: wrap;
}
.fluent_form_4 .ff-name-item {
  width: 48%;
}
.fluent_form_4 .ff-name-item.ff-name-last-wrap {
  margin-left: 4%;
}
@media (max-width:640px){
  .fluent_form_4 .ff-name-item {
    width: 100%;
    margin-left: 0;
  }
}

/* 補足文 */
.fluent_form_4 .ff-el-help-text,
.fluent_form_4 .ff-el-input--content .ff-el-description {
  color: #888;
  font-size: 12px;
  margin-top: 4px;
}

/* 送信ボタン */
.fluent_form_4 .ff-btn-submit {
  background: #004aad;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.fluent_form_4 .ff-btn-submit:hover {
  opacity: 0.92;
}

/* テーブルセル余白 */
.fluent_form_4 .ff-t-cell {
  padding: 0;
}

/* --- 1項目＝1カード --- */
.fluent_form_4 .ff-el-group{
  margin-bottom:18px;
  padding:14px 16px;
  border:1px solid #e5e7eb;         /* 薄い枠線 */
  border-radius:8px;
  background:#ffffff;
  transition: background .15s, box-shadow .15s, border-color .15s;
}

/* ホバー/フォーカス時にほんのり強調 */
.fluent_form_4 .ff-el-group:hover{
  background:#fcfcfd;
  border-color:#d7dbe0;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
}

/* ラベルと内容の間隔 */
.fluent_form_4 .ff-el-label{ margin-bottom:8px; }

/* 入力にフォーカス時の見やすい枠 */
.fluent_form_4 input[type="text"],
.fluent_form_4 input[type="email"],
.fluent_form_4 input[type="tel"],
.fluent_form_4 textarea,
.fluent_form_4 select{
  width:100%;
  border:1px solid #cfcfcf;
  border-radius:4px;
  padding:9px 10px;
  background:#fff;
}
.fluent_form_4 input[type="text"]:focus,
.fluent_form_4 input[type="email"]:focus,
.fluent_form_4 input[type="tel"]:focus,
.fluent_form_4 textarea:focus,
.fluent_form_4 select:focus{
  outline:0;
  border-color:#004aad;
  box-shadow:0 0 0 3px rgba(0,74,173,.12);
}

/* チェック/ラジオの行も整える */
.fluent_form_4 .ff-el-input--content{ display:flex; align-items:center; flex-wrap:wrap; }
.fluent_form_4 .ff-el-input--content input[type="checkbox"],
.fluent_form_4 .ff-el-input--content input[type="radio"]{ margin-right:6px; }
.fluent_form_4 .ff-el-input--content label{ margin-right:12px; }

/* 氏名（姓/名）2列。カード内で整列 */
.fluent_form_4 .ff-name-fields{ display:flex; flex-wrap:wrap; gap:10px; }
.fluent_form_4 .ff-name-item{ flex:1 1 240px; min-width:200px; }

/* 個人情報スクロール枠（HTMLフィールド） */
.fluent_form_4 .ff-pp-title{ font-size:18px; font-weight:700; margin:6px 0 8px; }
.fluent_form_4 .ff-pp-box{
  border:1px solid #ccc; background:#fafafa; padding:12px;
  max-height:400px; overflow-y:auto; line-height:1.7; font-size:14px;
}

/* 送信ボタン */
.fluent_form_4 .ff-btn-submit{
  background:#004aad; color:#fff; border:0; border-radius:8px;
  padding:12px 24px; font-size:16px; font-weight:700; cursor:pointer;
}
.fluent_form_4 .ff-btn-submit:hover{ opacity:.92; }



/* 20250827 add */
/**************************************************
 * 共通トークン（色など）
 **************************************************/
:root{
  --pg-brand:       #004AAD;
  --pg-brand-dark:  #003080;
  --pg-border:      #e5e7eb;
  --pg-input-border:#cfcfcf;
  --pg-help:        #888;
  --pg-card-hover:  #fcfcfd;
  --pg-muted:       #6b7280;
  --pg-pp-bg:       #fafafa;
}

/**************************************************
 * 規約ボックス（どこでも使える汎用）
 **************************************************/
.ff-pp-title{ font-size:18px; font-weight:700; margin:18px 0 8px; }
.ff-pp-box{
  border:1px solid #ccc;
  background:var(--pg-pp-bg);
  padding:12px;
  max-height:400px;
  overflow-y:auto;
  line-height:1.7;
  font-size:14px;
}

/**************************************************
 * Fluent Forms 共通ベース（ID=4/6/7/8）
 * ※以降、必要な差分だけをフォームID別に上書き
 **************************************************/
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .fluentform{
  border:1px solid #ddd;
  background:#fff;
  padding:20px;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
}

:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-el-group{
  margin-bottom:18px;
  padding:14px 16px;
  border:1px solid var(--pg-border);
  border-radius:8px;
  background:#fff;
  transition: background .15s, box-shadow .15s, border-color .15s;
}
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-el-group:hover{
  background:var(--pg-card-hover);
  border-color:#d7dbe0;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
}

:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-el-label{
  display:block; font-weight:700; margin-bottom:8px; line-height:1.4;
}
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-el-required{ color:#d00; }

:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8)
input[type="text"],
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8)
input[type="email"],
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8)
input[type="tel"],
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8)
textarea,
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8)
select{
  width:100%;
  border:1px solid var(--pg-input-border);
  border-radius:4px;
  padding:9px 10px;
  background:#fff;
  transition:border-color .15s, box-shadow .15s;
}
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8)
input[type="text"]:focus,
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8)
input[type="email"]:focus,
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8)
input[type="tel"]:focus,
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8)
textarea:focus,
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8)
select:focus{
  outline:0;
  border-color:var(--pg-brand);
  box-shadow:0 0 0 3px rgba(0,74,173,.12);
}

:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-el-help-text,
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-el-input--content .ff-el-description{
  color:var(--pg-help); font-size:12px; margin-top:4px;
}

/* チェック/ラジオの並び（共通） */
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-el-input--content{
  display:flex; align-items:center; flex-wrap:wrap;
}
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-el-input--content input[type="checkbox"],
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-el-input--content input[type="radio"]{
  margin-right:6px;
}
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-el-input--content label{
  margin-right:12px;
}

/* 名前フィールド 2列（十分な幅があれば2列） */
:is(.fluent_form_4,.fluent_form_6) .ff-name-fields{ display:flex; flex-wrap:wrap; gap:10px; }
:is(.fluent_form_4,.fluent_form_6) .ff-name-item{ flex:1 1 240px; min-width:200px; }

/* ファイル入力の見た目（共通で軽く整える） */
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) input[type="file"]{
  width:100%; border:1px solid var(--pg-input-border); border-radius:6px; padding:10px; background:#fff;
}

/**************************************************
 * ボタン統一（ID=4/6/7/8）
 * 送信/次へ/戻る/セカンダリ/アップロードボタンまで青で統一
 **************************************************/
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8)
  :is(.ff-btn,.ff-btn-submit,.ff-btn-next,.ff-btn-prev,.ff-btn-previous,.ff-btn-secondary,.ff_upload_btn.ff-btn){
  display:block;
  width:100%;
  background:var(--pg-brand) !important;
  border:1px solid var(--pg-brand) !important;
  color:#fff !important;
  border-radius:8px;
  padding:14px 20px;
  font-size:16px;
  font-weight:700;
  text-align:center;
  cursor:pointer;
  margin:12px 0;
  box-sizing:border-box;
}
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8)
  :is(.ff-btn:hover,.ff-btn-submit:hover,.ff-btn-next:hover,.ff-btn-prev:hover,.ff-btn-previous:hover,.ff-btn-secondary:hover,.ff_upload_btn.ff-btn:hover){
  background:var(--pg-brand-dark) !important;
  border-color:var(--pg-brand-dark) !important;
  color:#fff !important;
  opacity:1;
}

/* ページ側のインラインstyle（wpf_has_custom_css）を無効化 */
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .wpf_has_custom_css.ff-btn-submit,
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .wpf_has_custom_css.ff-btn-submit:hover{
  background:var(--pg-brand) !important;
  border-color:var(--pg-brand) !important;
  color:#fff !important;
}
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .wpf_has_custom_css.ff-btn-submit:hover{
  background:var(--pg-brand-dark) !important;
  border-color:var(--pg-brand-dark) !important;
}

/**************************************************
 * ステップインジケータ（使うフォームで共通色に）
 **************************************************/
:is(.fluent_form_6,.fluent_form_8) .ff-step-header .ff-step-titles li::before{
  background:#9db7ec !important; border-color:#9db7ec !important; color:#fff !important;
}
:is(.fluent_form_6,.fluent_form_8) .ff-step-header .ff-step-titles li.ff_active::before,
:is(.fluent_form_6,.fluent_form_8) .ff-step-header .ff-step-titles li.ff_completed::before{
  background:var(--pg-brand) !important; border-color:var(--pg-brand) !important; color:#fff !important;
}
:is(.fluent_form_6,.fluent_form_8) .ff-step-header .ff-step-titles li::after{ background:#9db7ec !important; }
:is(.fluent_form_6,.fluent_form_8) .ff-step-header .ff-step-titles li.ff_completed::after,
:is(.fluent_form_6,.fluent_form_8) .ff-step-header .ff-step-titles li.ff_active::after{ background:var(--pg-brand) !important; }
:is(.fluent_form_6,.fluent_form_8) .ff-step-header .ff-step-titles li span{ color:var(--pg-muted) !important; }
:is(.fluent_form_6,.fluent_form_8) .ff-step-header .ff-step-titles li.ff_active span,
:is(.fluent_form_6,.fluent_form_8) .ff-step-header .ff-step-titles li.ff_completed span{ color:var(--pg-brand) !important; }

/**************************************************
 * 確認テーブル（レビュー）共通
 **************************************************/
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-review{
  width:100%; border-collapse:collapse; margin:8px 0 16px;
}
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-review th,
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-review td{
  border:1px solid var(--pg-border); padding:10px 12px; text-align:left; vertical-align:top;
}
:is(.fluent_form_4,.fluent_form_6,.fluent_form_7,.fluent_form_8) .ff-review th{
  width:220px; background:#fafafa; font-weight:700;
}

/**************************************************
 * 【ID=7】カジュアル面談フォーム専用差分
 **************************************************/
/* 先頭説明ボックス */
.fluent_form_7 #casual-desc{
  border:1px solid var(--pg-border);
  background:#f8fafc;
  border-radius:8px;
  padding:16px;
  margin-bottom:18px;
}
.fluent_form_7 #casual-desc h2{ margin:0 0 8px; font-size:20px; }

/* ラジオ＆チェック：左寄せ＋カード風（ネイティブ丸を使用） */
.fluent_form_7 .ff-el-form-check label.ff-el-form-check-label{
  display:inline-flex !important;
  align-items:center; justify-content:flex-start; gap:10px;
  text-align:left !important; width:100%;
  padding:12px; border:1px solid #d7dbe0; border-radius:8px; background:#fff;
}
.fluent_form_7 .ff-el-form-check input[type="radio"],
.fluent_form_7 .ff-el-form-check input[type="checkbox"]{
  position:static !important; opacity:1 !important; margin:0 6px 0 2px;
}

/**************************************************
 * ダウンロード一覧（サンクスページ）
 **************************************************/
#dl-container{ max-width:720px; }
#dl-container h2{ margin:0 0 12px; }
#dl-container p{ margin:6px 0 20px; line-height:1.8; color:#333; }

#dl-list{
  display:grid; gap:16px;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  align-items:stretch;
  margin-top:8px;
}
#dl-list > *{ margin:0 !important; display:flex !important; align-items:stretch; }
#dl-list a.dl-btn{
  display:flex !important; align-items:center; justify-content:center;
  width:100%; height:100% !important; min-height:56px;
  padding:16px 24px !important; box-sizing:border-box;
  background:var(--pg-brand); color:#fff; border:0; border-radius:8px;
  text-decoration:none; text-align:center; line-height:1.3; white-space:normal;
  transition:background .15s ease, transform .05s ease;
}
#dl-list a.dl-btn:hover{ background:var(--pg-brand-dark); }
#dl-list a.dl-btn:active{ transform:translateY(1px); }
#dl-list a.dl-btn:focus-visible{ outline:0; box-shadow:0 0 0 3px rgba(0,74,173,.18); }

@media (max-width:768px){ #dl-list{ grid-template-columns:1fr; } }

/**************************************************
 * カジュアル面談サンクス（ID=7）
 **************************************************/
#casual-thanks{ max-width:860px; margin:0 auto; }
#casual-thanks h1{ font-size:24px; margin:0 0 12px; }
#casual-thanks h3{ margin:18px 0 8px; }
#casual-thanks p, #casual-thanks li{ line-height:1.9; }
#casual-thanks ul{ margin:6px 0 20px; padding-left:1.2em; }
#casual-thanks .ct-tip{
  color:#333; background:#f8fafc; border:1px solid var(--pg-border); border-radius:6px; padding:10px 12px;
}
.ct-btns{ display:grid; gap:12px; grid-template-columns:1fr; margin-top:8px; }
@media (min-width:720px){ .ct-btns{ grid-template-columns:1fr 1fr; } }
.ct-btn{ display:block; text-align:center; padding:14px 20px; border-radius:8px; text-decoration:none; font-weight:700; }
.ct-btn-primary{ background:var(--pg-brand); color:#fff; border:1px solid var(--pg-brand); }
.ct-btn-primary:hover{ background:var(--pg-brand-dark); border-color:var(--pg-brand-dark); }
.ct-btn-outline{ background:#fff; color:var(--pg-brand); border:1px solid var(--pg-brand); }
.ct-btn-outline:hover{ background:#f3f6ff; }

/**************************************************
 * 採用応募サンクス（ID=8）
 **************************************************/
#apply-thanks{ max-width:860px; margin:0 auto; }
#apply-thanks h1{ font-size:24px; margin:0 0 12px; }
#apply-thanks h3{ margin:18px 0 8px; }
#apply-thanks p, #apply-thanks li{ line-height:1.9; }
#apply-thanks ul{ margin:6px 0 20px; padding-left:1.2em; }
#apply-thanks .ap-tip{
  color:#333; background:#f8fafc; border:1px solid var(--pg-border); border-radius:6px; padding:10px 12px;
}
#apply-thanks .ap-received{
  color:#0b6f2a; background:#eef8f1; border:1px solid #cdebd6; border-radius:6px; padding:10px 12px; margin-top:8px;
}
.ap-btns{ display:grid; gap:12px; grid-template-columns:1fr; margin-top:8px; }
@media (min-width:720px){ .ap-btns{ grid-template-columns:1fr 1fr; } }
.ap-btn{ display:block; text-align:center; padding:14px 20px; border-radius:8px; text-decoration:none; font-weight:700; }
.ap-btn-primary{ background:var(--pg-brand); color:#fff; border:1px solid var(--pg-brand); }
.ap-btn-primary:hover{ background:var(--pg-brand-dark); border-color:var(--pg-brand-dark); }
.ap-btn-outline{ background:#fff; color:var(--pg-brand); border:1px solid var(--pg-brand); }
.ap-btn-outline:hover{ background:#f3f6ff; }

/* === ID=7：チェックボックス/ラジオの“1つ1つの枠”をやめる === */
.fluent_form_7 .ff-el-form-check label.ff-el-form-check-label{
  /* 左寄せは維持しつつ“カード風”だけ解除 */
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  text-align: left !important;
  width: auto !important;          /* ← 100% を解除（横に並べやすく） */
  padding: 0 !important;           /* ← 余白リセット */
  border: 0 !important;            /* ← 枠線リセット */
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* 行内の並び・間隔だけ軽く整える */
.fluent_form_7 .ff-el-input--content{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;                   /* 行間 / 列間 */
}
.fluent_form_7 .ff-el-form-check input[type="radio"],
.fluent_form_7 .ff-el-form-check input[type="checkbox"]{
  margin: 0 6px 0 0;               /* 丸とテキストの間隔 */
}

/* ===== mainvisual layer fix ===== */
#mainvisual{ position: relative; overflow: hidden; }

/* SVGは必ず全面に敷く */
#mainvisual .mask{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* SVG内のimageを「cover」相当にする（効く環境で最大化） */
#mainvisual .mask image{
  width: 100%;
  height: 100%;
  preserveAspectRatio: xMidYMid slice;
}

/* PROGRESS AND THRIVE を確実に消す（残っててもOK） */
#mainvisual #mv_copy{ display:none !important; }

/* ===== Message：横長・縦狭・左寄せ ===== */
#mainvisual .mv_message{
  position:absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%) translateY(10px);
  z-index: 5;

  /* 横長カード */
  width: min(980px, calc(100% - 64px));
  padding: 18px 22px;
  border-radius: 14px;

  background: rgba(0,0,0,0.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.16);

  text-align: left;     /* ←左寄せ */
  color:#fff;

  /* フェードイン（既存仕様） */
  opacity:0;
  transition: opacity .9s ease, transform .9s ease;
}

#mainvisual.is-hero-message-visible .mv_message{
  opacity:1;
  transform: translate(-50%, -50%) translateY(0);
}

/* タグラインは左上に小さく */
#mainvisual .mv_tagline{
  display:inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 0.9rem;
}

/* H1は大きめ、でも縦を食わないように行間控えめ */
#mainvisual .mv_headline{
  margin: 0 0 10px;
  font-weight: 800;
  line-height: 1.35;  /* ←縦を詰める */
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

/* 説明は2〜3行に収まりやすく（読みやすい密度） */
#mainvisual .mv_description{
  margin:0;
  line-height: 1.65;
  font-size: 0.95rem;
  opacity: .92;
}

/* スマホは縦積みっぽくして読みやすく */
@media (max-width: 640px){
  #mainvisual .mv_message{
    top: 58%;
    width: calc(100% - 28px);
    padding: 16px 16px;
  }
  #mainvisual .mv_headline{
    font-size: clamp(1.35rem, 5vw, 1.9rem);
  }
  #mainvisual .mv_description{
    font-size: 0.9rem;
    line-height: 1.7;
  }
}



/* ===== Hero Layout ===== */
#mainvisual{
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;

  display: flex;
  align-items: center;     /* 縦中央 */
  justify-content: center; /* 横中央 */

  /* 固定ヘッダー分だけ、見た目の中心を少し下へ */
  padding-top: 72px;
  box-sizing: border-box;
}

/* SVGを常に画面いっぱいに敷き詰め（中央基準でトリミング） */
#mainvisual svg.mask{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  padding-top: 1340px;
  padding-left: 170px;
}

/* 矢印は前面へ */
#mainvisual .arrow-down{
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 5;
}

/* ===== Hero Copy ===== */
#heroCopy{
  position: relative;
  z-index: 4;

  width: min(1100px, 92vw);
  padding: 22px 28px;                /* 縦をなるべく薄く */
  border-radius: 14px;

  background: rgba(0,0,0,0.35);      /* ソフト黒レイヤー */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  color: #fff;
  text-align: left;                  /* 左寄せ */
  box-shadow: 0 16px 50px rgba(0,0,0,0.18);

  opacity: 0;
  transform: translateY(10px);
  transition: opacity .9s ease, transform .9s ease;
}

#mainvisual.is-revealed #heroCopy{
  opacity: 1;
  transform: translateY(0);
}

#heroCopy .hero-tagline{
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  margin-bottom: 14px;
}

#heroCopy .hero-title{
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.35;
  margin: 0 0 14px;
  font-weight: 800;
}

#heroCopy .hero-desc{
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
  color: rgba(255,255,255,0.9);
  max-width: 62ch; /* 横長で読みやすい */
}

/* SPは少し詰める */
@media (max-width: 640px){
  #mainvisual{ min-height: 640px; padding-top: 64px; }
  #heroCopy{ padding: 18px 18px; border-radius: 12px; }
  #heroCopy .hero-desc{ font-size: 13px; }
}

/* ===== Overlay Hero (top1_overlay移植) ===== */
#mainvisual.hero--overlay{
  height: 100vh;
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

/* overlay gradient */
#mainvisual.hero--overlay::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(31, 58, 95, 0.8) 0%, rgba(31, 58, 95, 0.95) 100%);
}

@media (min-width: 768px){
  #mainvisual.hero--overlay::before{
    background: linear-gradient(to right, rgba(31, 58, 95, 0.95) 0%, rgba(31, 58, 95, 0.6) 100%);
  }
}

/* inner layout */
#mainvisual.hero--overlay .hero__inner{
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 90px; /* 固定ヘッダー分の逃げ（必要なら調整） */
  color: #fff;
}

#mainvisual.hero--overlay .hero__title{
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 28px;
}

#mainvisual.hero--overlay .hero__lead{
  border-left: 2px solid rgba(255,255,255,0.3);
  padding-left: 18px;
  max-width: 720px;
}
#mainvisual.hero--overlay .hero__lead p{
  margin: 0;
  font-size: clamp(13px, 1.6vw, 18px);
  line-height: 1.9;
  opacity: 0.85;
}

/* animation */
#mainvisual.hero--overlay .fade-in-up{
  opacity: 0;
  animation: heroFadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes heroFadeInUp{
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 既存arrowの見た目が合わない場合の保険 */
#mainvisual.hero--overlay .arrow-down{
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
}
#mainvisual.hero--overlay .arrow-down a{
  color: rgba(255,255,255,0.85);
  font-size: 22px;
}
