/* 세무진단 */
.dg-intro h2, .dg-effect h2, .dg-miss h2, .dg-process h2 { font-size: 36px; font-weight: normal; }
.dg-intro p, .dg-miss p { font-size: 26px; text-align: justify; }

/* 들어가는 말(사진 + 질문) */
.dg-intro { max-width: 1200px; margin: 0 auto 100px; }
.dg-intro-row { display: flex; align-items: center; justify-content: space-between; margin: 0 auto 90px; }
.dg-intro-photo { padding-right: 60px; }
.dg-intro p { margin-top: 30px; }

/* 자가 체크리스트 */
.dg-check { padding: 85px 0; background: #f5f5f5; }
.dg-check-in { width: 1200px; max-width: calc(100% - 40px); margin: 0 auto; text-align: center; }   /* 1240px 보다 좁은 PC 에서 잘리지 않게(공통 .wrap 과 같이) */
.dg-check-in > h2 { font-size: 40px; }
.dg-check-lead { margin-top: 50px; font-size: 28px; }
.dg-check-body { margin: 40px auto; text-align: left; }
.dg-levels {
	display: flex; align-items: center; justify-content: center; gap: 38px; max-width: 1000px; height: 70px; margin: 0 auto;
	background: #fff; border: 1px solid #ddd; box-sizing: border-box;
}
.dg-levels li { display: flex; align-items: center; gap: 12px; font-size: 26px; }
.dg-levels span, .dg-result-box span {
	display: flex; align-items: center; justify-content: center; width: 120px; height: 40px; border-radius: 100vw;
	background: #ccc; font-size: 26px; font-weight: 600; color: #fff; text-align: center;
}
.dg-lv1 span { background: #6d8ae2; }
.dg-lv2 span { background: #274dc2; }
.dg-lv3 span { background: #162b6d; }
.dg-sheet { margin: 45px auto 50px; border-bottom: 1px solid #ddd; }
.dg-sheet h3 {
	display: flex; align-items: center; justify-content: center; width: calc(100% - 1px); height: 50.5px; margin-left: .5px;
	background: var(--main); font-size: 26px; font-weight: normal; color: #fff;
}
/* 표처럼 겹친 테두리 자리(반 픽셀)까지 원본과 같게 */
.dg-cols { display: flex; margin-top: -.5px; background: #fff; border: 1px solid #ddd; border-bottom: 0; }
.dg-cols ul { width: calc(50% - .5px); padding: 45px 0 45px 18px; box-sizing: border-box; }
.dg-cols ul + ul { width: calc(50% + .5px); border-left: 1px solid #ddd; }
.dg-cols li + li { margin-top: 20px; }
.dg-cols label { display: flex; align-items: center; gap: 5px; font-size: 24px; white-space: pre; }
.dg-cols input { width: 20px; height: 20px; }
.dg-check-btn {
	display: flex; align-items: center; justify-content: center; width: 230px; height: 60px; margin: 0 auto; border-radius: 100vw;
	background: var(--main); font-size: 26px; color: #fff; text-align: center;
}

/* 체크 결과 알림 */
.dg-result { display: none; position: fixed; top: 0; left: 0; z-index: 100; width: 100%; height: 100%; background: rgba(0, 0, 0, .8); pointer-events: none; }
.dg-result.is-open { display: block; }
.dg-result-box {
	position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 520px; padding: 30px;
	background: #fff; border: 1px solid #ddd; border-radius: 10px; pointer-events: auto;
}
.dg-result-close { position: absolute; top: 10px; right: 10px; z-index: 999; font-size: 26px; color: #000; opacity: .2; cursor: pointer; }
.dg-result-close:hover, .dg-result-close:focus-visible { opacity: 1; }
.dg-result-box p { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; font-size: 26px; }
.dg-result-box p[hidden] { display: none; }

/* 국세청 조사국 출신 */
.dg-expert { padding: 45px 0; background: url(../img/sub/s020401_stc2_bg.png) center / cover no-repeat; }
.dg-expert > * { color: #fff; text-align: center; }
.dg-expert .dg-expert-mark { font-size: 65px; font-weight: bold; line-height: 1; color: #ebcb9c; }
.dg-expert h2 { margin: 20px auto; font-size: 40px; line-height: 1; }
.dg-expert h2 strong { color: #ebcb9c; }
.dg-expert > p:last-child { font-size: 26px; }

/* 기대효과 */
.dg-effect { max-width: 1200px; margin: 100px auto; }
.dg-effect h2 { margin-bottom: 50px; text-align: center; }
.dg-effect-cols { display: flex; align-items: center; width: 100%; height: 640px; }
.dg-effect-cols > div {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 50%; height: 100%; padding: 60px 45px 0; box-sizing: border-box;
	background: url(../img/sub/s020401_stc3_bg01.png) center / cover no-repeat;
}
.dg-effect-cols > div + div { background-image: url(../img/sub/s020401_stc3_bg02.png); }
.dg-effect h3 { font-size: 36px; font-weight: normal; line-height: 1; text-align: center; }
/* 제목과 목록 사이 세로줄 */
.dg-effect ol::before { content: ""; display: block; width: 1px; height: 45px; margin: 30px auto; background: #fff; }
.dg-effect li { position: relative; padding-left: 45px; box-sizing: border-box; font-size: 26px; line-height: 1.4; text-align: justify; }
.dg-effect h3, .dg-effect li { color: #fff; }
.dg-effect-cols > div + div h3, .dg-effect-cols > div + div li { color: #333; }
.dg-effect-cols > div + div ol::before { background: #333; }
.dg-effect li + li { margin-top: 25px; }
.dg-effect li span {
	position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; width: 35px; height: 35px;
	box-sizing: border-box; border-radius: 50%; background: #fff; font-family: sans-serif; font-size: 20px; font-weight: 600; color: #333; text-align: center;
}
.dg-effect-cols > div + div li span { background: #333; color: #fff; }

/* 놓친 세제혜택 */
.dg-miss { margin: 185px auto 100px; padding: 120px 0; overflow: hidden; background: linear-gradient(90deg, #fff 32%, #f2f3f7 32%); }
.dg-miss-row { display: flex; align-items: center; max-width: 1200px; margin: 0 auto; }
.dg-miss-row > div { width: 50%; text-align: left; }
.dg-miss-photo { position: relative; }
.dg-miss-photo::before {
	content: ""; position: absolute; top: 50%; left: 0; z-index: 0; width: 50%; max-width: 256px; height: 100vw;
	background: #fff; transform: translateY(-50%);
}
.dg-miss-photo img { position: relative; z-index: 1; }
.dg-miss p { margin-top: 40px; }

/* 진행 단계 */
.dg-process { margin: 100px auto 0; }
.dg-process h2 { margin-bottom: 50px; text-align: center; }
.dg-steps { display: flex; max-width: 1200px; margin: 0 auto; padding-top: 190px; background: url(../img/sub/s020401_stc5_bg.png) center top no-repeat; }
.dg-steps li { width: fit-content; text-align: center; }
.dg-steps span { display: block; font-size: 26px; font-weight: bold; text-align: center; }
.dg-steps h3 {
	display: inline-block; margin: 15px auto 30px; padding: 10px 15px; border-radius: 100vw;
	background: #cacaca; font-size: 26px; font-weight: bold; line-height: 1; text-align: center;
}
.dg-steps p { font-size: 26px; text-align: center; }
.dg-steps li:nth-child(1) { margin-right: 95px; }
.dg-steps li:nth-child(2) { margin-right: 57px; }
.dg-steps li:nth-child(3) { margin-right: 35px; }
.dg-steps li:nth-child(5) { margin-left: auto; margin-right: 15px; }
.dg-steps li:nth-child(2) h3 { background: #989cb0; color: #fff; }
.dg-steps li:nth-child(3) h3 { background: #656d97; color: #fff; }
.dg-steps li:nth-child(4) h3 { background: #333f7d; color: #fff; }
.dg-steps li:nth-child(5) h3 { background: #09122d; color: #fff; }

/* 1240px 보다 좁은 PC: 양옆 20px 띄우고, 좁아진 표·기대효과는 글을 줄바꿈, 단계 줄은 폭에 맞춰 같은 비율로 줄인다 */
@media screen and (min-width: 851px) and (max-width: 1239px) {
	.dg-intro, .dg-effect, .dg-miss-row, .dg-steps { max-width: calc(100% - 40px); }
	.dg-intro, .dg-check, .dg-expert, .dg-effect, .dg-miss, .dg-process { word-break: keep-all; }
	.dg-expert { padding-left: 20px; padding-right: 20px; }
	.dg-intro-photo { flex: none; width: 47.25%; box-sizing: border-box; }
	.dg-intro-photo img { max-width: 100%; height: auto; }
	.dg-intro p, .dg-miss p, .dg-effect li { text-align: left; }
	.dg-cols label { align-items: flex-start; white-space: normal; word-break: keep-all; }
	.dg-cols input { flex: none; margin-top: 7px; }
	.dg-effect-cols { align-items: stretch; height: auto; }
	.dg-effect-cols > div { height: auto; min-height: 640px; padding-bottom: 60px; }
	.dg-miss-photo img { max-width: 100%; height: auto; }
	.dg-steps { padding-top: 15.83%; background-size: 100% auto; }
	.dg-steps span, .dg-steps h3, .dg-steps p { font-size: 2.1vw; }
	.dg-steps h3 { margin: .577em auto 1.154em; padding: .385em .577em; }
	.dg-steps li:nth-child(1) { margin-right: 7.92%; }
	.dg-steps li:nth-child(2) { margin-right: 4.75%; }
	.dg-steps li:nth-child(3) { margin-right: 2.92%; }
	.dg-steps li:nth-child(5) { margin-right: 1.25%; }
}

@media screen and (max-width: 850px) {
	.dg-intro h2, .dg-effect h2, .dg-miss h2, .dg-process h2 { font-size: 5.33vw; }
	.dg-intro p, .dg-miss p { font-size: 4vw; }

	.dg-intro { max-width: 89.33vw; margin: 13.33vw auto; }
	.dg-intro-row { flex-direction: column; margin: 0 auto 10.67vw; }
	.dg-intro-photo { padding-right: 0; }
	.dg-intro-photo picture, .dg-intro-photo img { display: block; width: 100%; }
	.dg-intro-text { margin-top: 12vw; }
	.dg-intro h2 { text-align: center; }
	.dg-intro p { margin-top: 4vw; }

	.dg-check { padding: 12.67vw 0; }
	.dg-check-in { width: auto; max-width: none; padding: 0 5%; }
	.dg-check-in > h2 { font-size: 6.67vw; }
	.dg-check-lead { margin-top: 6.67vw; font-size: 4vw; text-align: justify; }
	.dg-check-body { margin: 5.33vw auto; }
	.dg-levels { flex-wrap: wrap; justify-content: space-between; gap: 2.67vw; max-width: none; height: auto; padding: 4vw; border-width: .13vw; }
	.dg-levels li { gap: 2.93vw; font-size: 4vw; }
	.dg-levels span { width: 18.67vw; height: 6vw; font-size: 4vw; }
	.dg-sheet { margin: 8vw auto 6.67vw; border-bottom-width: .13vw; }
	.dg-sheet h3 { width: auto; height: 9.33vw; margin-left: 0; font-size: 4.8vw; }
	/* 원본 표처럼 테두리만큼 오른쪽으로 2px 넘친다 */
	.dg-cols { flex-direction: column; width: 100%; margin-top: 0; border-width: 0 .13vw; }
	.dg-cols ul, .dg-cols ul + ul { width: 100%; padding: 6vw 3.73vw 0; border-top: .13vw solid #ddd; }
	.dg-cols ul + ul { padding-top: 2.67vw; padding-bottom: 6vw; border-top: 0; border-left-width: .13vw; }
	.dg-cols li + li { margin-top: 2.67vw; }
	.dg-cols label { align-items: flex-start; gap: .67vw; font-size: 4vw; letter-spacing: -0.05em; text-align: justify; white-space: normal; }
	.dg-cols input { width: 2.67vw; height: 2.67vw; margin-top: 1.33vw; margin-right: 1.33vw; }
	.dg-check-btn { width: 30.67vw; height: 8vw; font-size: 3.47vw; }

	.dg-result-box { min-width: 69.33vw; padding: 4vw; border-width: .13vw; border-radius: 1.33vw; }
	.dg-result-close { top: 1.33vw; right: 1.33vw; font-size: 4vw; }
	.dg-result-box p { gap: 2.67vw; font-size: 4vw; }
	.dg-result-box span { width: 16vw; height: 5.33vw; font-size: 4vw; }

	.dg-expert { padding: 7.33vw 0; background-image: url(../img/m_sub/m_s020401_stc2_bg.png); }
	.dg-expert .dg-expert-mark { font-size: 9.33vw; }
	.dg-expert h2 { margin: 5.33vw auto 6.67vw; font-size: 6.67vw; }
	.dg-expert > p:last-child { max-width: 89.33vw; margin: 0 auto; font-size: 4vw; letter-spacing: normal; text-align: justify; }
	.dg-expert > p:last-child br { display: none; }

	.dg-effect { max-width: 89.33vw; margin: 13.33vw auto; }
	.dg-effect h2 { margin-bottom: 6.67vw; }
	.dg-effect-cols { flex-direction: column; height: auto; }
	.dg-effect-cols > div { width: 100%; min-height: 96.93vw; padding: 8vw 6vw; background-image: url(../img/m_sub/m_s020401_stc3_bg01.png); }
	.dg-effect-cols > div + div { background-image: url(../img/m_sub/m_s020401_stc3_bg02.png); }
	.dg-effect h3 { font-size: 5.33vw; }
	.dg-effect ol::before { width: .13vw; height: 6vw; margin: 4vw auto; }
	.dg-effect li { padding-left: 7.33vw; font-size: 4vw; }
	.dg-effect li + li { margin-top: 6.67vw; }
	.dg-effect li span { width: 5.33vw; height: 5.33vw; font-size: 3.47vw; }

	.dg-miss { margin: 16.67vw auto 13.33vw; padding: 0 0 10vw; background: #f2f3f7; }
	.dg-miss-row { flex-direction: column; max-width: 89.33vw; }
	.dg-miss-row > div { width: 100%; }
	.dg-miss-photo::before { top: 0; left: 50%; width: 200vw; max-width: none; height: 50%; transform: translate(-50%, 0); }
	.dg-miss-photo picture, .dg-miss-photo img { display: block; width: 100%; }
	.dg-miss h2 { margin: 6.67vw auto; line-height: 1; text-align: center; }
	.dg-miss p { margin-top: 0; }

	.dg-process { margin-top: 13.33vw; }
	.dg-process h2 { margin-bottom: 6.67vw; }
	.dg-steps {
		flex-direction: column; width: 100%; max-width: 89.33vw; padding: 0 0 7vw 29.33vw; box-sizing: border-box;
		background: url(../img/m_sub/m_s020401_stc5_bg.png) left top / 27.47vw no-repeat;
	}
	.dg-steps li { display: flex; flex-wrap: wrap; align-items: center; width: 48vw; }
	.dg-steps span { font-size: 4vw; }
	.dg-steps h3 { margin: 0 0 0 2.67vw; padding: 1.33vw 4vw; font-size: 4vw; }
	.dg-steps p { width: 100%; margin-top: 2.67vw; font-size: 4vw; text-align: justify; }
	.dg-steps p br { display: none; }
	.dg-steps li:nth-child(1) { margin: 3vw 0 13.87vw; }
	.dg-steps li:nth-child(2) { margin: 0 0 10vw; }
	.dg-steps li:nth-child(3) { margin: 0 0 9vw; }
	.dg-steps li:nth-child(4) { margin: 0 0 12vw; }
	.dg-steps li:nth-child(5) { margin: 0; }
	.dg-steps li:nth-child(5) p { white-space: pre; }
}
