
/* 契約内容スクロール枠 */
.contract-scroll {
  max-height: 320px;
  overflow: auto;
  border: 2px solid #d6d6d6;
  background: #fafafa;
  padding: 14px 16px;
  border-radius: 10px;
  line-height: 1.9;
  font-size: 15px;
  color: #222;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
}

/* スクロールバーがある事を示すための軽い演出（対応ブラウザのみ） */
.contract-scroll::-webkit-scrollbar {
  width: 10px;
}
.contract-scroll::-webkit-scrollbar-thumb {
  background: #c7c7c7;
  border-radius: 10px;
}
.contract-scroll::-webkit-scrollbar-track {
  background: #efefef;
}

/* 最終行（以上） */
.contract-end {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed #bbb;
  text-align: right;
  font-size: 14px;
  color: #555;
}

/* 同意エリア全体 */
.contract-consent-wrap {
  margin-top: 14px;
  padding: 14px 16px;
  border: 2px solid #2a7de1;
  background: #f2f7ff;
  border-radius: 12px;
}

/* 案内テキスト */
.contract-consent-lead {
  margin: 0 0 10px 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #0f2a4a;
}

/* チェックボックスを目立たせる箱 */
.contract-consent-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  background: #fff;
  border-radius: 10px;
  border: 2px solid #1f6fd1;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

/* disabled中は少し抑える */
.contract-consent-box input:disabled + .contract-consent-text {
  opacity: 0.6;
}
.contract-consent-box input:disabled {
  cursor: not-allowed;
}

/* チェック本体のサイズ */
.contract-consent-box input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #1f6fd1; /* 対応ブラウザなら色が付く */
}

/* ラベル文字 */
.contract-consent-text {
  font-size: 16px;
  font-weight: 700;
  color: #0a2b57;
}

/* 同意後の見た目を少し強調 */
.contract-consent-box input[type="checkbox"]:checked {
  transform: scale(1.08);
}

/* 補足文 */
.contract-consent-note {
  margin: 8px 0 0 0;
  font-size: 13px;
  color: #2a2a2a;
}
/* 同意エリア全体：ピンク枠＋インセット＋ふんわり影 */
.contract-consent-wrap{
  position: relative;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fdf1ff;
  border: 2px solid #fe007c;
  box-shadow:
    0 6px 20px rgba(11,71,217,0.12),
    inset 0 0 0 4px rgba(11,71,217,0.06);
  overflow: hidden;
  isolation: isolate;
}

.contract-consent-wrap p{font-size:16px; padding:15px; font-family: sans-serif;}

/* 上部の案内テキストを “帯見出し” っぽく */
.contract-consent-lead{
  position: relative;
  margin: 0 0 12px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.8;
  color: #fe007c;
  background: linear-gradient(90deg, rgba(11,71,217,.08), rgba(11,71,217,0));
  border-left: 6px solid #fe007c;
  border-radius: 8px;
  z-index: 1;
}


/* チェックボックス・カード：青グラデで目立つボタン風 */
.contract-consent-box{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: #fff;
  border-radius: 12px;
  border: 2px solid #0b47d9;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(30,116,255,.18),
    0 2px 0 rgba(255,255,255,.35) inset;
  transition: transform .06s ease, box-shadow .2s ease, filter .2s ease, opacity .2s ease;
  will-change: transform, box-shadow, filter;
}

/* ホバー時（押せる状態のときだけ気持ち浮かせる） */
.contract-consent-box:hover{
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(30,116,255,.28),
    0 2px 0 rgba(255,255,255,.4) inset;
  filter: brightness(1.02);
}

/* disabled中：押せない感を強める */
.contract-consent-box input:disabled{
  cursor: not-allowed;
}
.contract-consent-box input:disabled + .contract-consent-text{
  opacity: .55;
}
.contract-consent-box:has(input:disabled){
  opacity: .75;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow:
    0 2px 8px rgba(0,0,0,.08),
    inset 0 0 0 2px rgba(0,0,0,.03);
}

/* チェック本体：少し大きく、青系で統一 */
.contract-consent-box input[type="checkbox"]{
  width: 24px;
  height: 24px;
  accent-color: #0b47d9;
  flex-shrink: 0;
}

/* ラベル文字：太め＋濃い青 */
.contract-consent-text{
  font-size: 17px;
  font-weight: 900;
  color: #0a2b57;
  letter-spacing: .02em;
}

/* チェック後：軽く強調（色味とプチ拡大） */
.contract-consent-box input[type="checkbox"]:checked{
  transform: scale(1.1);
}
.contract-consent-box:has(input:checked){
  border-color: #fe007c;
  box-shadow:
    0 10px 22px rgba(254,0,124,.22),
    0 2px 0 rgba(255,255,255,.4) inset;
}

/* 補足文：目立つけど本文より控えめに */
.contract-consent-note{
  margin: 10px 2px 0;
  font-size: 13px;
  color: #444;
}

/* 契約タイトル（必読見出し）の強調 */
.contract-title{
  position: relative;
  margin: 0 0 12px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 18px;
  color: #fe007c;
  background: linear-gradient(90deg, rgba(11,71,217,.08), rgba(11,71,217,0));
  border-left: 6px solid #fe007c;
  border-radius: 8px;
  line-height: 1.5;
}

/* 「必ず」のマーカー強調（以前の黄色ライン） */
.contract-title span{
  background: linear-gradient(transparent 60%, #fff176 60%);
  font-weight: 900;
  color: #0b47d9;
  padding: 0 2px;
}
.lead-text {
    font-size: 16px;
}

