/* 目次全体の枠線を消し、背景をグレーにする */
div#ez-toc-container {
    background: #f8f9fa !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 32px 48px !important;
    width: 100% !important;
    font-weight: 400!important;
    margin: 16px 0 40px!important;
}

/* 「目次」タイトルのデザイン */
p.ez-toc-title {
    font-size: 18px !important;
    color: #595757 !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
}

/* 目次リスト全体の余白リセット */
ul.ez-toc-list {
    padding-left: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* 各リスト項目のスタイル */
ul.ez-toc-list li {
    font-size: 16px !important;
    line-height: 2 !important;
    padding: 16px 0px!important;
    color: #595757 !important;
    border-bottom: 1px dashed #595757;
}

/* 最後の項目の余白調整 */
ul.ez-toc-list li:last-child {
    margin-bottom: 0 !important;
    border-bottom: 0px dashed #595757;
}

/* リンクの色と下線消去 */
ul.ez-toc-list li a {
    color: #555 !important;
    text-decoration: none !important;
}

/* ホバー時に少し薄くする（お好みで） */
ul.ez-toc-list li a:hover {
    opacity: 0.8;color: #5f1985 !important;
}

/* メールフォーム
--------------------------- */
/* ─── フォーム全体の共通設定 ─── */
.wpcf7-form {
  max-width: 1200px;
    widows: 100%;
  margin: 0 auto;
  color: #595757;
  font-family: sans-serif;
}

/* 横並び（姓名）のフレックスボックス設定 */
.cf7-flex {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.cf7-half {
  flex: 1;
}
.cf7-row {
  margin-bottom: 24px;
}

/* ─── 入力枠（インプット・テキストエリア）のデザイン ─── */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select {
  width: 100% !important;
  box-sizing: border-box;
  padding: 16px 20px;
  font-size: 15px;
  color: #595757;
  background-color: #fff;
  border: 1px solid #acabab; /* 薄いグレーの細い枠線 */
  border-radius: 4px; /* わずかな角丸 */
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* テキストエリア（お問い合わせ内容）の個別設定 */
.wpcf7-form-control.wpcf7-textarea {
  height: 240px; /* 画像に合わせた少し高めの設定 */
  resize: vertical;
}

/* プレースホルダー（薄い文字）の色 */
.wpcf7-form-control::placeholder {
  color: #a0aec0;
}

/* 入力枠にカーソルが当たった時（フォーカス時）のじわっとした変化 */
.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-textarea:focus,
.wpcf7-form-control.wpcf7-select:focus {
  border-color: #5f1985; /* フォーカス時にブランドカラーのピンクに */
  box-shadow: 0 0 0 3px rgba(236, 0, 140, 0.1);
}

/* ─── ドロップダウン（選択してください）の矢印カスタム ─── */
.wpcf7-form-control.wpcf7-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* 下向き矢印（∨）を背景画像として右端に配置（昨日作成したアコーディオンの形状に統一） */
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://w3.org" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23595757" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 20px center;
  background-size: 16px;
  padding-right: 45px;
}

/* ─── ラベルと必須マーク（お問い合わせ種別） ─── */
.cf7-label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 0px;
  color: #333;
}
.cf7-required {
  color: #5f1985;
  margin-left: 4px;
}

/* ─── プライバシーポリシー（チェックボックス） ─── */
.cf7-privacy-row {
   text-align: left;
  margin: 32px 0;
}
.cf7-privacy-row .wpcf7-list-item {
  margin: 0;
}
.cf7-privacy-row label {
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* チェックボックス自体のサイズ調整 */
.cf7-privacy-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #5f1985; /* チェック時の色をピンクに */
  cursor: pointer;
}


.cf7-submit-row {
  text-align: center;
}
.wpcf7-form-control.wpcf7-submit {
    margin: 0 auto;
  width: 280px;
  height: 56px;
  border: none;
  border-radius: 28px; /* 完全なカプセル型 */
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #ec008c 0%, #5e2590 100%);
 box-shadow: 0 4px 14px rgba(236, 0, 140, 0.35);

  transition: transform 0.4s cubic-bezier(0.45, 0, 0.55, 1), box-shadow 0.4s cubic-bezier(0.45, 0, 0.55, 1);
}

.wpcf7-form-control.wpcf7-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(236, 0, 140, 0.5);
}

/* スマートフォン（スマホ）対応のレスポンシブ調整 */
@media (max-width: 480px) {
  .cf7-flex {
    flex-direction: column;
    gap: 20px;
  }
}
