/* ========================================
   MEDTECHG HOME
======================================== */

:root {
	--mtg-home-navy: #0d2a50;
	--mtg-home-blue: #12488c;
	--mtg-home-sky: #12bdf3;
	--mtg-home-purple: #61009e;
	--mtg-header-height: 116px;
}

.mtg-home,
.mtg-home *,
.mtg-home *::before,
.mtg-home *::after {
	box-sizing: border-box;
}

#mtg-home {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

#mtg-home > .mtg-home {
	width: 100%;
	margin: 0;
	padding: 0;
}

.mtg-home {
	color: #1e2737;
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
}

.mtg-home-container {
	width: min(100% - 60px, 1400px);
	margin: 0 auto;
}

.mtg-home-section {
	padding: 90px 0;
}

.mtg-home-heading {
	max-width: 980px;
	margin: 0 auto 54px;
	text-align: center;
}

#top .mtg-home-heading h2,
#top .mtg-home-platform > h3,
#top .mtg-home-values h2 {
	margin: 0;
	padding: 0;
	color: var(--mtg-home-navy);
	font-size: clamp(28px, 2.1vw, 40px);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.02em;
	text-transform: none;
}

.mtg-home-heading p {
	margin: 22px 0 0;
	font-size: clamp(15px, 1.05vw, 18px);
	line-height: 1.9;
}

/* ========================================
   TRANSPARENT ENFOLD HEADER
======================================== */

body:has(#home-hero-section) #header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1000;
	width: 100%;
	background: transparent;
	border: 0;
	box-shadow: none;
}

body.admin-bar:has(#home-hero-section) #header {
	top: 32px;
}

body:has(#home-hero-section) #header_main,
body:has(#home-hero-section) #header_main .container,
body:has(#home-hero-section) #header_main_alternate,
body:has(#home-hero-section) #header .header_bg {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body:has(#home-hero-section) #header_main,
body:has(#home-hero-section) #header_main .container,
body:has(#home-hero-section) #header .main_menu,
body:has(#home-hero-section) #header .main_menu ul:first-child > li > a {
	height: var(--mtg-header-height);
	line-height: var(--mtg-header-height);
}

body:has(#home-hero-section) #header_main .container {
	width: 100%;
	max-width: 1440px;
}

body:has(#home-hero-section) #header .logo,
body:has(#home-hero-section) #header .logo a {
	display: flex;
	align-items: center;
	height: var(--mtg-header-height);
	line-height: normal;
}

body:has(#home-hero-section) #header .logo img {
	content: url("/wp-content/uploads/medtech-logo.png");
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 220px !important;
	max-height: 54px !important;
	margin: 0 !important;
	padding: 0 !important;
	filter: none !important;
	object-fit: contain;
}

body:has(#home-hero-section) #header .av-main-nav > li > a {
	padding: 0 22px;
	background: transparent !important;
	color: #fff !important;
	font-size: 16px;
	letter-spacing: 0.02em;
	text-decoration: none;
}

body:has(#home-hero-section) #header .av-main-nav > li > a .avia-menu-text {
	color: inherit !important;
}

body:has(#home-hero-section) #header .avia-menu-fx {
	display: none !important;
}

body:has(#home-hero-section) #main {
	padding-top: 0 !important;
}

/* ========================================
   HOME HERO — preserves the approved version
======================================== */

#home-hero-section {
	position: relative;
	width: 100%;
	height: clamp(720px, 39vw, 820px);
	min-height: 720px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #071d38;
	background-image:
		linear-gradient(90deg, rgba(3, 22, 45, 0.48) 0%, rgba(5, 30, 60, 0.20) 43%, rgba(3, 15, 30, 0.05) 70%, rgba(0, 8, 18, 0.18) 100%),
		url("/wp-content/uploads/home-hero-bg.webp");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.mtg-home-hero::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	height: 24%;
	background: linear-gradient(to bottom, rgba(2, 17, 35, 0), rgba(2, 17, 35, 0.38));
	pointer-events: none;
}

.mtg-home-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(500px, 1.05fr) minmax(420px, 0.95fr);
	align-items: center;
	gap: clamp(30px, 3vw, 70px);
	width: 100%;
	max-width: 1540px;
	height: 100%;
	margin: 0 auto;
	padding: calc(var(--mtg-header-height) + 30px) 6vw 55px;
}

.mtg-home-hero__content {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 680px;
	min-width: 0;
	color: #fff;
}

#top .mtg-home-hero__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: clamp(43px, 3.3vw, 65px);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.025em;
	text-align: left;
	text-transform: none;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
	word-break: keep-all;
}

#top .mtg-home-hero__description {
	margin: 34px 0 0;
	padding: 0;
	color: #fff;
	font-size: clamp(18px, 1.2vw, 24px);
	font-weight: 500;
	line-height: 1.75;
	letter-spacing: 0.015em;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
	word-break: keep-all;
}

.mtg-home-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	margin-top: 48px;
}

#top .mtg-home-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 17px;
	width: 255px;
	min-height: 58px;
	margin: 0;
	padding: 13px 24px;
	border: 1px solid rgba(255, 255, 255, 0.58);
	border-radius: 0;
	background: rgba(0, 142, 210, 0.38);
	color: #fff !important;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.02em;
	text-decoration: none;
	backdrop-filter: blur(2px);
	transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

#top .mtg-home-hero__button--light {
	background: rgba(255, 255, 255, 0.5);
}

.mtg-home-hero__button::after {
	content: "";
	width: 10px;
	height: 10px;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: rotate(45deg);
}

#top .mtg-home-hero__button:hover {
	border-color: #fff;
	background: rgba(18, 189, 243, 0.72);
	color: #fff !important;
	transform: translateY(-2px);
}

.mtg-home-hero__visual {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	padding-top: 15px;
	overflow: hidden;
	pointer-events: none;
}

.mtg-home-hero__diagram {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: min(100%, 560px) !important;
	max-height: 100% !important;
	margin: 0 0 0 auto !important;
	object-fit: contain;
	filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.20));
}

/* ========================================
   BUSINESS
======================================== */

.mtg-home-business__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px;
}

.mtg-home-business-card {
	display: grid;
	grid-template-rows: 1fr 230px;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #00aeff!important;
	border-radius: 28px;
	background: #fff;
}

.mtg-home-business-card__body {
	padding: 36px 34px 28px;
}

#top .mtg-home-business-card h3,
#top .mtg-home-scene h3,
#top .mtg-home-kamagaya h3 {
	margin: 0;
	color: var(--mtg-home-navy);
	font-size: clamp(20px, 1.45vw, 27px);
	line-height: 1.45;
	text-transform: none;
}

.mtg-home-business-card p {
	min-height: 3.5em;
	margin: 18px 0 20px;
	font-size: 16px;
	line-height: 1.75;
}

.mtg-home-business-card a,
.mtg-home-kamagaya a,
.mtg-home-release-card__more {
	color: #00aeff !important;
	font-weight: 600;
	text-decoration: none !important;
}

.mtg-home-business-card > img {
	display: block;
	width: 100%;
	height: 230px;
	margin: 0;
	object-fit: cover;
}

/* ========================================
   HTML PLATFORM
======================================== */

.mtg-home-os {
	padding-top: 65px;
	background: #fbfdff;
}

.mtg-home-platform {
	max-width: 1120px;
	margin: 65px auto 0;
	padding: 55px 60px 48px;
	border-radius: 24px;
	background: #dff8ff;
}

#top .mtg-home-platform > h3 {
	margin-bottom: 42px;
	font-size: clamp(23px, 1.75vw, 32px);
	text-align: center;
}

.mtg-home-platform__layers {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	justify-items: center;
	gap: 38px;
	max-width: 900px;
	margin: 0 auto 24px;
}

.mtg-home-platform__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: min(100%, 250px);
	aspect-ratio: 1;
	padding: 24px;
	border: 2px solid currentColor;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.96);
	text-align: center;
}

.mtg-home-platform__item--loop { color: #03aada; }
.mtg-home-platform__item--idx { color: #61009e; }
.mtg-home-platform__item--pmo { color: #12488c; }

.mtg-home-platform__number,
.mtg-home-platform__lead,
.mtg-home-platform__item h4,
.mtg-home-platform__item ul {
	margin: 0;
}

.mtg-home-platform__number {
	font-size: 12px;
}

.mtg-home-platform__lead {
	margin-top: 4px;
	font-size: 14px;
	font-weight: 600;
}

#top .mtg-home-platform__item h4 {
	margin: 6px 0 10px;
	color: currentColor;
	font-size: clamp(16px, 1.15vw, 20px);
	line-height: 1.35;
	text-transform: none;
}

.mtg-home-platform__item ul {
	padding: 0;
	color: #243348;
	font-size: 12px;
	line-height: 1.55;
	list-style: none;
}

.mtg-home-platform__base {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 880px;
	margin: 0 auto;
	padding: 20px 35px;
	border: 2px solid #03aada;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.97);
	color: #0879a4;
}

.mtg-home-platform__base ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 28px;
	margin: 10px 0 0;
	padding: 0;
	font-size: 13px;
	list-style: none;
}

.mtg-home-platform__base li::before {
	content: "・";
}

/* ========================================
   VALUES
======================================== */

.mtg-home-values {
	padding: 55px 0 70px;
	background: #fff;
	color: #fff;
	text-align: center;
}

.mtg-home-values > .mtg-home-container {
	padding: 55px 48px 42px;
	border-radius: 24px;
	background: var(--mtg-home-blue);
}

#top .mtg-home-values h2 {
	color: #fff;
}

.mtg-home-values__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 28px;
	margin-top: 44px;
}

.mtg-home-value {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 190px;
	padding: 25px 16px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.18);
}

.mtg-home-value span {
	color: #fff !important;
	font-size: 16px;
}

.mtg-home-value strong {
	margin: 10px 0;
	font-size: clamp(30px, 2.6vw, 48px);
	font-weight: 500;
	line-height: 1.2;
	color: #fff !important;
}

.mtg-home-value strong small {
	font-size: 0.5em;
}

.mtg-home-value em {
	color: #fff !important;
	font-size: 14px;
	font-style: normal;
}

.mtg-home-values__note {
	margin: 30px 0 0;
	font-size: 16px;
	font-weight: 600;
}

/* ========================================
   SCENES AND KAMAGAYA
======================================== */

.mtg-home-scenes__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
}

.mtg-home-scene {
	overflow: hidden;
	border: 1px solid #00aeff!important;
	border-radius: 0 0 25px 25px;
	background: #fff;
}

.mtg-home-scene > img {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
}

.mtg-home-scene > div {
	padding: 28px 22px 32px;
}

#top .mtg-home-scene h3 {
	font-size: 21px;
}

.mtg-home-scene p {
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 1.75;
}

.mtg-home-kamagaya {
	display: grid;
	grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.35fr);
	align-items: center;
	gap: 34px;
	margin-top: 75px;
	padding: 0;
	overflow: hidden;
	border: 1px solid #1688c0;
	border-radius: 26px;
	background: #e3f8ff;
}

.mtg-home-kamagaya__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 310px;
	max-height: 360px;
	object-fit: contain;
}

.mtg-home-kamagaya__content {
	padding: 32px 38px 32px 0;
}

.mtg-home-kamagaya__name {
	margin: 0 0 9px;
	color: var(--mtg-home-navy);
	font-size: 15px;
}

.mtg-home-kamagaya__label {
	margin: 22px 0 7px;
	font-weight: 600;
}

.mtg-home-kamagaya ul {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3px;
	margin: 0 0 23px;
	padding: 0;
	font-size: 14px;
	list-style: none;
}

.mtg-home-kamagaya li {
	position: relative;
	margin: 0;
	padding: 0 0 0 1em;
}

.mtg-home-kamagaya li::before {
	content: "・";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--mtg-home-blue);
	font-weight: 700;
}

/* ========================================
   HOME RELEASE CARDS
======================================== */

.mtg-home-releases__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

/* 평상시 테두리는 투명 */
.mtg-home-release-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 20px;
	border: 1px solid transparent;
	background: transparent;
	transition:
		border-color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.25s ease,
		background-color 0.25s ease;
}

.mtg-home-release-card__date {
	display: block;
	margin: 0 0 16px;
	color: #0068b7;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

/* 이미지 */

.mtg-home-release-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: 0;
	overflow: hidden;
	background: #092d5c;
}

.mtg-home-release-card__image,
.mtg-home-release-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 0.35s ease;
}

/* 제목 */

#top .mtg-home-release-card__title {
	display: -webkit-box;
	min-height: 3.2em;
	margin: 22px 0 0;
	padding: 0;
	overflow: hidden;
	color: #0d2a50;
	font-family:
		"Hiragino Mincho ProN",
		"Hiragino Mincho Pro",
		"Yu Mincho",
		YuMincho,
		"Noto Serif JP",
		serif;
	font-size: 20px !important;
	font-weight: 600;
	line-height: 1.6;
	text-transform: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

#top .mtg-home-release-card__title a {
	color: #0d2a50 !important;
	text-decoration: none !important;
}

/* 요약문 */

.mtg-home-release-card__summary {
	display: -webkit-box;
	min-height: 3.5em;
	margin: 14px 0 0;
	overflow: hidden;
	color: #6d7888;
	font-size: 16px;
	line-height: 1.75;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* 더보기 */

.mtg-home-release-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 20px;
	color: #0068b7 !important;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none !important;
}

.mtg-home-release-card__more span {
	transition: transform 0.25s ease;
}

/* PC 마우스 오버 액션 */

@media (hover: hover) {
	.mtg-home-release-card:hover,
	.mtg-home-release-card:focus-within {
		border-color: rgba(0, 104, 183, 0.45);
		background: #fff;
		box-shadow: 0 16px 35px rgba(13, 42, 80, 0.1);
		transform: translateY(-5px);
	}

	.mtg-home-release-card:hover
	.mtg-home-release-card__image,
	.mtg-home-release-card:focus-within
	.mtg-home-release-card__image {
		transform: scale(1.025);
	}

	.mtg-home-release-card:hover
	.mtg-home-release-card__more span,
	.mtg-home-release-card:focus-within
	.mtg-home-release-card__more span {
		transform: translateX(4px);
	}
}

/* 태블릿 */

@media only screen and (max-width: 989px) {
	.mtg-home-releases__grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
		gap: 25px;
	}
}

/* 모바일 */

@media only screen and (max-width: 767px) {
	.mtg-home-releases__grid {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.mtg-home-release-card {
		padding: 14px;
	}

	.mtg-home-release-card__date {
		margin-bottom: 12px;
		font-size: 15px;
	}

	#top .mtg-home-release-card__title {
		min-height: 0;
		margin-top: 16px;
		font-size: 18px !important;
		line-height: 1.55;
	}

	.mtg-home-release-card__summary {
		min-height: 0;
		margin-top: 10px;
		font-size: 14px;
		line-height: 1.7;
	}

	.mtg-home-release-card__more {
		margin-top: 0;
		padding-top: 15px;
		font-size: 14px;
	}
}
/* ========================================
   RESPONSIVE
======================================== */

@media only screen and (max-width: 1199px) {
	:root { --mtg-header-height: 90px; }

	body:has(#home-hero-section) #header_main,
	body:has(#home-hero-section) #header_main .container,
	body:has(#home-hero-section) #header .main_menu,
	body:has(#home-hero-section) #header .main_menu ul:first-child > li > a {
		height: var(--mtg-header-height);
		line-height: var(--mtg-header-height);
	}

	body:has(#home-hero-section) #header_main .container {
		padding-right: 30px;
		padding-left: 30px;
	}

	body:has(#home-hero-section) #header .logo,
	body:has(#home-hero-section) #header .logo a { height: var(--mtg-header-height); }
	body:has(#home-hero-section) #header .logo img { max-width: 190px !important; max-height: 46px !important; }
	body:has(#home-hero-section) #header .av-main-nav > li > a { padding: 0 11px; font-size: 14px; }

	.mtg-home-section { padding: 75px 0; }
	.mtg-home-business__grid { gap: 22px; }
	.mtg-home-business-card { grid-template-rows: 1fr 190px; }
	.mtg-home-business-card__body { padding: 28px 24px 22px; }
	.mtg-home-business-card > img { height: 190px; }
	.mtg-home-platform { padding-right: 35px; padding-left: 35px; }
	.mtg-home-platform__layers { gap: 28px; }
	.mtg-home-platform__item { width: min(100%, 230px); }
	.mtg-home-values__grid { gap: 16px; }
	.mtg-home-scenes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
	.mtg-home-hero { height: clamp(680px, 72vw, 780px); min-height: 680px; }
	.mtg-home-hero__inner {
		grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
		gap: clamp(15px, 3vw, 45px);
		padding: calc(var(--mtg-header-height) + 30px) clamp(30px, 5vw, 60px) 45px;
	}
	.mtg-home-hero__content { max-width: 590px; }
	#top .mtg-home-hero__title { font-size: clamp(40px, 5vw, 52px); }
	#top .mtg-home-hero__description { margin-top: 28px; font-size: clamp(16px, 2vw, 19px); }
	.mtg-home-hero__buttons { gap: 14px; margin-top: 38px; }
	#top .mtg-home-hero__button { width: clamp(185px, 21vw, 220px); min-height: 54px; padding: 12px 16px; font-size: clamp(14px, 1.6vw, 16px); }
	.mtg-home-hero__visual { padding-top: 35px; }
	.mtg-home-hero__diagram { max-width: 100% !important; }
}

@media only screen and (max-width: 989px) {
	:root { --mtg-header-height: 80px; }

	html.responsive #top #wrap_all #header {
		position: absolute !important;
		top: 0 !important;
		right: 0 !important;
		left: 0 !important;
		width: 100% !important;
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
	}

	html.responsive #top.admin-bar #wrap_all #header {
		top: 32px !important;
	}

	html.responsive #top #wrap_all #header_main,
	html.responsive #top #wrap_all #header_main .container,
	html.responsive #top #wrap_all #header .header_bg {
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
	}

	html.responsive #top #wrap_all #main {
		padding-top: 0 !important;
	}

	body:has(#home-hero-section) #header_main,
	body:has(#home-hero-section) #header_main .container,
	body:has(#home-hero-section) #header .logo,
	body:has(#home-hero-section) #header .logo a { height: var(--mtg-header-height); }
	body:has(#home-hero-section) #header .logo img { max-width: 170px !important; max-height: 42px !important; }
	body:has(#home-hero-section) #header .av-burger-menu-main a { color: #fff !important; }
	body:has(#home-hero-section) #header .av-hamburger-inner,
	body:has(#home-hero-section) #header .av-hamburger-inner::before,
	body:has(#home-hero-section) #header .av-hamburger-inner::after { background-color: #fff !important; }
	body:has(#home-hero-section) #header .av-hamburger.is-active .av-hamburger-inner,
	body:has(#home-hero-section) #header .av-hamburger.is-active .av-hamburger-inner::after { background-color: #333 !important; }

	.mtg-home-business-card p br,
	.mtg-home-scene p br { display: none; }
	.mtg-home-platform__layers { gap: 16px; }
	.mtg-home-platform__item { width: min(100%, 205px); padding: 18px 14px; }
	.mtg-home-values__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mtg-home-releases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 24px; }
}

@media only screen and (max-width: 767px) {
	.mtg-home-container { width: min(100% - 44px, 1400px); }
	.mtg-home-section { padding: 62px 0; }
	.mtg-home-heading { margin-bottom: 38px; }
	.mtg-pc-only { display: none; }

	.mtg-home-hero { height: auto; min-height: 0; background-position: 58% center; }
	.mtg-home-hero__inner {
		display: block;
		width: 100%;
		height: auto;
		min-height: max(100svh, 720px);
		padding: calc(var(--mtg-header-height) + 105px) clamp(22px, 5vw, 44px) 330px;
	}
	.mtg-home-hero__content { z-index: 4; max-width: none; }
	#top .mtg-home-hero__title { font-size: clamp(38px, 8.2vw, 52px); line-height: 1.65; letter-spacing: 0; }
	#top .mtg-home-hero__description { margin-top: 38px; font-size: clamp(16px, 3.8vw, 20px); line-height: 1.9; }
	.mtg-home-hero__buttons { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr; gap: 14px; width: 100%; margin-top: 42px; }
	#top .mtg-home-hero__button { width: 100%; min-height: 62px; padding: 14px 30px; font-size: 17px; }
	.mtg-home-hero__visual {
		position: absolute;
		right: clamp(18px, 5vw, 42px);
      bottom: 500px;
		z-index: 5;
		display: block;
		width: min(43vw, 315px);
		height: auto;
		padding: 0;
		overflow: visible;
		opacity: 0.5;
	}
	.mtg-home-hero__diagram { width: 100% !important; height: auto !important; max-width: 100% !important; max-height: none !important; margin: 0 !important; }

	.mtg-home-business__grid { grid-template-columns: 1fr; }
	.mtg-home-business-card { grid-template-rows: auto 210px; }
	.mtg-home-business-card > img { height: 210px; }
	.mtg-home-platform { margin-top: 48px; padding: 35px 18px 25px; }
	.mtg-home-platform__layers { grid-template-columns: 1fr; gap: 14px; max-width: 205px; margin-bottom: 22px; }
	.mtg-home-platform__item { width: 190px; min-height: 0; aspect-ratio: 1; padding: 17px 13px; }
	.mtg-home-platform__number { font-size: 10px; }
	.mtg-home-platform__lead { margin-top: 2px; font-size: 12px; }
	#top .mtg-home-platform__item h4 { margin: 4px 0 6px; font-size: 15px; }
	.mtg-home-platform__item ul { font-size: 10px; line-height: 1.45; }
	.mtg-home-platform__base { max-width: 300px; border-radius: 22px; padding: 18px 15px; text-align: center; }
	.mtg-home-platform__base ul { flex-direction: column; gap: 3px; margin-top: 7px; font-size: 10px; }
	.mtg-home-values { padding: 42px 0 58px; }
	.mtg-home-values > .mtg-home-container { padding: 42px 18px 32px; border-radius: 20px; }
	.mtg-home-values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 35px; }
	.mtg-home-value { min-height: 160px; padding: 20px 10px; }
	.mtg-home-scenes__grid { grid-template-columns: 1fr; }
	.mtg-home-scene > img { height: 220px; }
	.mtg-home-kamagaya { grid-template-columns: 1fr; gap: 0; margin-top: 50px; }
	.mtg-home-kamagaya__image { height: auto; min-height: 0; max-height: 280px; padding: 22px 18px 0; }
	.mtg-home-kamagaya__content { padding: 24px 24px 30px; }
	.mtg-home-kamagaya ul { grid-template-columns: 1fr; }
	.mtg-home-releases__grid { grid-template-columns: 1fr; gap: 34px; }
	.mtg-home-release-card { grid-template-rows: auto auto auto auto;  }
	#top .mtg-home-release-card__title { min-height: 0; margin-top: 18px; font-size: 18px; }
}

@media only screen and (max-width: 540px) {
	html.responsive #top.admin-bar #wrap_all #header,
	body.admin-bar:has(#home-hero-section) #header { top: 46px !important; }
	body:has(#home-hero-section) #header_main .container { padding-right: 20px; padding-left: 20px; }
	body:has(#home-hero-section) #header .logo img { max-width: 155px !important; max-height: 38px !important; }
	.mtg-home-hero { background-position: 57% center; }
	.mtg-home-hero__inner { min-height: clamp(820px, 185vw, 900px); padding: calc(var(--mtg-header-height) + 100px) 22px 260px; }
	#top .mtg-home-hero__title { font-size: 36px; line-height: 1.65; }
	#top .mtg-home-hero__description { font-size: 16px; line-height: 1.85; }
	#top .mtg-home-hero__button { min-height: 58px; font-size: 16px; }
	.mtg-home-hero__visual { right: 18px; bottom: 220px; width: 200px; }
	.mtg-home-releases__action a { min-width: 0; width: 100%; }
}

@media only screen and (max-width: 350px) {
	.mtg-home-hero__visual { bottom: -100px; width: 160px;}
	.mtg-home-hero__inner { min-height: 0; padding: 80px 20px; }
}


/* 모바일 플랫폼 크기·간격 조정 */
@media only screen and (max-width: 767px) {
	.mtg-home-platform {
		padding: 32px 16px 26px;
	}

	#top .mtg-home-platform > h3 {
		margin-bottom: 30px;
		font-size: 26px;
	}

	.mtg-home-platform__layers {
		grid-template-columns: 1fr;
		gap: 22px;
		width: 100%;
		max-width: 180px;
		margin: 0 auto 28px;
	}

	.mtg-home-platform__item {
		width: 170px;
		min-height: 0;
		aspect-ratio: 1;
		padding: 16px 12px;
	}

	.mtg-home-platform__number {
		font-size: 10px;
		line-height: 1.3;
	}

	.mtg-home-platform__lead {
		margin-top: 3px;
		font-size: 12px;
		line-height: 1.4;
	}

	#top .mtg-home-platform__item h4 {
		margin: 5px 0 7px;
		font-size: 14px !important;
		line-height: 1.3;
	}

	.mtg-home-platform__item ul {
		font-size: 10px;
		line-height: 1.4;
	}

	.mtg-home-platform__base {
		width: 100%;
		max-width: 280px;
		padding: 20px 18px;
	}

	.mtg-home-platform__base ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px 12px;
		width: 100%;
		margin-top: 12px;
		font-size: 10px;
		text-align: left;
	}
}


/* 最新リリース 하단 버튼 */

.mtg-home-releases__action {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 55px;
}

#top .mtg-home-releases__action a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;

	width: 380px;
	min-height: 58px;
	padding: 14px 30px;

	color: #fff;
	background-color: #315789;
	border: 1px solid #315789;
	text-decoration: none;
	transition:
		background-color 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

#top .mtg-home-releases__action a:hover {
	color: #fff;
	background-color: #173f73;
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(17, 46, 98, 0.18);
}

#top .mtg-home-releases__action a span {
	transition: transform 0.25s ease;
}

#top .mtg-home-releases__action a:hover span {
	transform: translateX(5px);
}

@media only screen and (max-width: 767px) {
	.mtg-home-releases__action {
		margin-top: 35px;
	}

	#top .mtg-home-releases__action a {
		width: 100%;
		min-width: 0;
	}
}