@charset "UTF-8";
/* 2026 ホームローン改訂 */

h4.h4_kiyaku {
  font-size: 110%;
  margin: 3em 0 0;
}

/*ベストホームローン規約用_チェックボックス*/
.checkbox-input,
.checkbox-input-table{
  	display: none;
}
.checkbox-parts{
	padding:1em 2em;
  	position:relative;
  border:3px solid #FF9999;
  display:block;
  color:#D80000;
  font-size:130%;
  font-weight:bold;
  margin:1em 1em 4em;
  line-height:1.2em;
}
.checkbox-parts::before{
  content: "";
  display: block;
  float:left;
  width: 1em;
  height: 1em;
  margin-right:0.5em;
  border: 3px solid #999;
  border-radius: 4px;
  line-height:1em;
}
/*チェック後のスタイル*/
.checkbox-input:checked + .checkbox-parts{
  color: #009a9a;
  border:3px solid #009a9a;
}
.checkbox-input:checked + .checkbox-parts::after{
  content: "";
  display: inline-block;
  position:absolute;
  top:1em;
  left:2.4em;
  width: 7px;
  height: 14px;
  transform: rotate(40deg);
  border-bottom: 5px solid #009a9a;
  border-right: 5px solid #009a9a;
}


.checkbox-parts-table{
  	position:relative;
	display:block;
	font-weight:bold;
	line-height:1.4em;
}
.checkbox-parts-table .nowrap {
	word-break: normal;
}
.checkbox-parts-table::before{
  content: "";
  display: block;
  float:left;
  width: 1em;
  height: 1em;
  margin-right:0.4em;
  border: 3px solid #999;
  border-radius: 4px;
}
/*チェック後のスタイル*/
.checkbox-input-table:checked + .checkbox-parts-table{
  color: #009a9a;
}
.checkbox-input-table:checked + .checkbox-parts-table::after{
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 6px;
  width: 6px;
  height: 12px;
  transform: rotate(40deg);
  border-bottom: 4px solid #009a9a;
  border-right: 4px solid #009a9a;
}


@media screen and (max-width:770px){
	h5.h5_kiyaku {
		font-size:110%;
	}
	#simulation {
		margin:0;
		padding:15px;
		box-sizing:border-box !important;
	}
	#simulation .simtable {
		width:100%;
	}
	#simulation .simtable td {
		display:block;
		padding: 5px 10px;
	}
	
	.checkbox-parts {
		margin:1em 0;
		font-size:120%;
		padding:1em;
	}
	.checkbox-input:checked + .checkbox-parts::after{
		left:1.4em;
	}
	.checkbox-parts-table::before{
		margin-left:-2.1em;
	}
	.checkbox-parts-table {
		width:4em;
		padding-left:2.1em;
	}
	.checkbox-parts-table .nowrap{
		word-break:break-all;
	}
}

/* ロックされている時は、同意チェックボックスの見た目（文字色）を薄くする */
input[disabled] + .checkbox-parts {
  color: #999;
  cursor: not-allowed;
}

.link-group {
  margin-top: 20px;
}


/* --------------------------------------------------
   ★ここからがカスタムチェックボックスのCSS★
-------------------------------------------------- */
.check-item {
  background: #EBF2FF url("../../../../../common/img/ico_commonPdfLarge01.png") no-repeat right 28px center;
  border: 3px solid #A7A7A7;
  padding: 12px 30px;
  border-radius: 5px;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 15px;
  position: relative;
  line-height: 1.4;
}

/* 1. 本物のチェックボックスは非表示にする */
.check-item input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

/* 2. カスタムのチェックボックスを作る（土台：正方形） */
.check-item .custom-box {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #f1f3f5; /* 初期（未チェック）時の薄灰色 */
    border: 3px solid #ced4da;
    border-radius: 4px;
    margin-right: 20px;
    transition: background-color 0.2s, border-color 0.2s; /* アニメーション */
    position: relative;
    vertical-align: middle;
    box-sizing: border-box;
}

/* 3. カスタムのチェックボックスの中にチェックマーク（✓）を作る（初期は非表示） */
.check-item .custom-box::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 5px;
    width: 7px;
    height: 12px;
    border: solid #009a9a; /* チェックマークの色（白） */
    border-width: 0 3px 3px 0; /* ✓の形を border で表現 */
    transform: rotate(45deg); /* ✓の形に回転 */
    opacity: 0; /* 初期は非表示 */
    transition: opacity 0.2s; /* アニメーション */
}

/* 4. 【本物がチェックされた時】カスタムボックスを「緑色」に変える */
.check-item input[type="checkbox"]:checked + .custom-box {
    background-color: #FFF;
    border-color: #999;
}

/* 5. 【本物がチェックされた時】チェックマーク（✓）を「表示」する */
.check-item input[type="checkbox"]:checked + .custom-box::after {
    opacity: 1; /* 表示 */
}

/* [重要] グレーアウト（disabled）のままにする（機能制限）が、
   今回はカスタムボックスなので、チェックが入れば緑色になる。
   未チェックで無効な状態だけ少し薄くする */
.check-item input[disabled] + .custom-box {
    /* opacity: 0.8; /* 必要なら未チェックで無効の時だけ薄く */
}

/* ラベルの文字のデザイン */
.check-label {
  font-size: 110%;
  color: #484646;
  cursor: pointer; /* ラベルクリックでもチェックを連動させる */
  flex: 1;
}

/* PDFリンクの通常のデザイン */
.pdf-link {
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  color: inherit;
  font-weight: bold;
}

/* 同意チェックボックス周りのデザイン */
.agree-group {
    margin-top: 30px;
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
}
.agree-item {
    margin-bottom: 0; /* 同意だけ下のマージンを詰める */
}
.agree-item .custom-box {
    width: 28px; /* 同意は少しだけ大きく */
    height: 28px;
}
.agree-item .check-label {
    font-weight: bold;
    font-size: 18px;
}

/* 同意チェックボックスが無効な時のラベルの色を薄くする（既存の仕様） */
.agree-item input[disabled] ~ .check-label {
    color: #adb5bd;
    cursor: not-allowed;
}

.entryBtn.disabled {
    opacity: 0.5;
}

.h7_basic {
  background: #D0E4FF;
  color: #003583;
  font-size: 130%;
  padding: 10px 15px;
  margin-bottom: 20px;
  line-height: 1.4;
}