/**
 * Success case single page layout fixes.
 *
 * @package AriawellTheme
 */

body.ms-case-read {
	background: #fff;
}

body.ms-case-read #header {
	position: sticky;
}

body.ms-case-read #main-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.ms-case-read #wrap > .container.wrap-medium,
body.ms-case-read .container.wrap-medium {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.ms-case-read .wrap-medium {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.ms-case-read .main-contents-inner {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

@media screen and (max-width: 1240px) {
	body.ms-case-read .main-contents-inner {
		padding: 0 20px;
	}
}

body.ms-case-read .default-container {
	padding: 120px 20px 0;
}

body.ms-case-read .xans-board-readpackage {
	width: 100%;
	max-width: 1200px;
	margin: 120px auto 0;
	padding: 0;
}

body.ms-case-read .board-read__title {
	font-weight: 700;
	font-size: 24px;
	color: #111;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

body.ms-case-read .board-read__info > span {
	color: #666;
}

/*
 * reference-optimizer-user.css forces:
 *   .board-read__detail .fr-view > * { font-size: 14rem !important; }
 * so article typography must use !important to take effect.
 */
body.ms-case-read .board-read__detail .fr-view {
	font-size: 18px;
	line-height: 1.8;
	color: #333;
}

body.ms-case-read .board-read__detail .fr-view > * {
	font-size: inherit !important;
}

body.ms-case-read .board-read__detail .fr-view p {
	margin: 0 0 16px;
	font-size: 18px !important;
	line-height: 1.8 !important;
	color: #333 !important;
}

body.ms-case-read .board-read__detail .fr-view h1,
body.ms-case-read .board-read__detail .fr-view h2,
body.ms-case-read .board-read__detail .fr-view h3,
body.ms-case-read .board-read__detail .fr-view h4,
body.ms-case-read .board-read__detail .fr-view h5,
body.ms-case-read .board-read__detail .fr-view h6 {
	font-weight: 600 !important;
	color: #000 !important;
}

body.ms-case-read .board-read__detail .fr-view h1 {
	margin: 40px 0 16px;
	font-size: 32px !important;
	line-height: 1.4 !important;
}

body.ms-case-read .board-read__detail .fr-view h2 {
	margin: 40px 0 16px;
	font-size: 24px !important;
	line-height: 1.4 !important;
}

body.ms-case-read .board-read__detail .fr-view h3 {
	margin: 32px 0 14px;
	font-size: 22px !important;
	line-height: 1.4 !important;
}

body.ms-case-read .board-read__detail .fr-view h4 {
	margin: 28px 0 12px;
	font-size: 20px !important;
	line-height: 1.5 !important;
}

body.ms-case-read .board-read__detail .fr-view h5,
body.ms-case-read .board-read__detail .fr-view h6 {
	margin: 24px 0 12px;
	font-size: 19px !important;
	line-height: 1.5 !important;
}

body.ms-case-read .board-read__detail .fr-view h1:first-child,
body.ms-case-read .board-read__detail .fr-view h2:first-child,
body.ms-case-read .board-read__detail .fr-view h3:first-child,
body.ms-case-read .board-read__detail .fr-view h4:first-child,
body.ms-case-read .board-read__detail .fr-view h5:first-child,
body.ms-case-read .board-read__detail .fr-view h6:first-child {
	margin-top: 0;
}

body.ms-case-read .board-read__detail .fr-view img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 24px;
}

body.ms-case-read .board-read__detail .fr-view ul,
body.ms-case-read .board-read__detail .fr-view ol {
	margin: 0 0 16px;
	padding-left: 20px;
}

body.ms-case-read .board-read__detail .fr-view li {
	margin-bottom: 8px;
}

body.ms-case-read .xans-board-movement > ul > li.empty .empty-text {
	color: #999;
}

body.ms-case-read .case-read__button-wrap {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin: 30px 0 100px;
}

body.ms-case-read .case-read__button-wrap .ms-button.review-list {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 100px;
	padding: 12px 24px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	font-weight: 500;
	font-size: 14px;
	color: #333;
	text-decoration: none;
	transition: 0.2s;
}

body.ms-case-read .case-read__button-wrap .ms-button.review-list:hover {
	border-color: #111;
	color: #111;
}

#contact-section.default-container.main-page-none {
	display: block !important;
}

@media all and (max-width: 1023px) {
	body.ms-case-read .default-container {
		padding-top: 70px;
	}

	body.ms-case-read .board-read__title {
		font-size: 20px;
	}

	body.ms-case-read .board-read__detail .fr-view h1 {
		font-size: 28px !important;
	}
}

@media all and (max-width: 660px) {
	body.ms-case-read .case-read__button-wrap {
		margin-bottom: 60px;
	}
}
