/*header */
.mv {
	position: relative;
	width: 100vw;
	min-height: 100vh;
	display: grid;
	background-image: url("../image/mv.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.mv-cont {
	place-self: center;
	display: flex;
	gap: 7em;
	flex-direction: column;
	justify-content: center;
	height: 80vh;
}

.mv-cont h2 {
	font-size: 1.25rem;
	font-size: clamp(1.25rem, 0.634rem + 2.63vw, 3rem);
}

.mv-cont-sub-txt {
	font-size: 0.875rem;
	font-size: clamp(0.875rem, 0.655rem + 0.94vw, 1.5rem);
}

.mv-contact {
	background-color: #1c7fae;
	width: fit-content;
	padding: 0.4em 1.5em;
	font-size: 1.25rem;
	font-size: clamp(1.25rem, 0.81rem + 1.88vw, 2.5rem);
	margin: 0 auto;
	border-radius: 50px;
	box-shadow: 6px 8px 0px rgb(16, 67, 91);
	transition: box-shadow 0.15s ease, translate 0.15s ease;
}

.mv-contact:hover {
	box-shadow: 0px 0px 0px rgb(16, 67, 91);
	translate: 6px 8px;
}

@media (max-width: 767px) {
	.mv {
		min-height: 50vh;
		width: 100%;
	}

	.mv-cont {
		gap: 2em;
		height: 50vh;
	}
}


.worry-item01-inner {
	margin-top: 40px;
	grid-template-columns: 60% 1fr;
}

.worry-item01-wrap {
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 1em 2em;
}

.worry-item01 {
	position: relative;
	padding: 1em;
	border: 1px solid #112d52;
	border-radius: 10px;
}

.worry-item01-ttl {
	border-bottom: 1px solid #333;
	padding-bottom: 5px;
	margin-bottom: 10px;
}

.worry-item01-img {
	position: absolute;
	bottom: 5px;
	right: 5px;
	width: 60px;
}

.worry-item02-inner {
	margin-top: 40px;
}

.worry-map-img {
	position: absolute;
	bottom: 0;
	right: 0;
	max-width: 375px;
}

.worry-conclusion {
	margin-top: 40px;
	padding: 1.2em 2em;
	border-radius: 30px;
	background-color: #1f7fad;
	background-image:
		linear-gradient(100deg,
			transparent 0%,
			transparent 10%,
			rgba(255, 255, 255, 0.5) 18%,
			transparent 26%,
			transparent 55%,
			rgba(255, 255, 255, 0.35) 63%,
			transparent 71%,
			transparent 100%);
	background-size: 100% 100%;
}

@media (max-width: 767px) {
	.worry-item01-inner {
		grid-template-columns: repeat(1, 1fr);
	}

	.worry-item01-wrap {
		grid-template-columns: repeat(1, 1fr);
	}

	.worry-item02-inner {
		grid-gap: 20px;
	}

	.worry-map-img {
		position: absolute;
		bottom: inherit;
		top: 50px;
		right: 0;
		max-width: 265px;
	}

	.worry-map-arrow {
		width: 100px;
		margin: 80px auto 0;
	}

	.worry-conclusion {
		padding: 0.5em 0.75em;
	}
}

.flow-item-wrap {
	margin-top: 40px;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 20px;
}

.flow-item {
	position: relative;
	background-color: #fff;
	border-radius: 15px;
	box-shadow: 4px 6px 5px rgba(16, 67, 91, 0.4);
}

.flow-item img {
	border-radius: 0 0 15px 15px;
}

.flow-item::after {
	position: absolute;
	top: 50%;
	right: -50px;
	translate: -50% -50%;
	content: "";
	display: inline-block;
	width: 40px;
	height: 40px;
	background-image: url("../image/flow-arrow.svg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	z-index: 2;
}

.flow-item:last-child::after {
	content: none;
}

.flow-item-inner {
	padding: 1em;
}

.flow-item-number {
	font-size: 32px;
	line-height: 1;
}

.flow-item-ttl {
	font-size: 1.25rem;
	font-size: clamp(1.25rem, 1.162rem + 0.38vw, 1.5rem);
}

@media (max-width: 767px) {
	.flow-item-wrap {
		grid-template-columns: repeat(1, 1fr);
	}

	.flow-item::after {
		top: inherit;
		bottom: -7px;
		right: inherit;
		left: 50%;
		translate: -50% 50%;
		rotate: 90deg;
	}
}

.support-inner {
	margin-top: 40px;
	grid-template-columns: 37% 1fr;
}

.support-item-wrap {
	grid-template-columns: repeat(2, 1fr);
}

.support-item {
	display: grid;
	grid-template-columns: 70px 1fr;
}

.support-item-ttl {
	font-size: 0.875rem;
	font-size: clamp(0.875rem, 0.655rem + 0.94vw, 1.5rem);
	text-align: center;
}

.contact-link01 {
	border-radius: 15px;
	width: 300px;
	margin: 40px auto 0;
	text-align: center;
	padding: 0.5em;
	font-size: 1.25rem;
	font-size: clamp(1.25rem, 1.162rem + 0.38vw, 1.5rem);
}

.contact-link01:hover {
	opacity: 0.8;
}

@media (max-width: 767px) {
	.support-inner {
		grid-template-columns: repeat(1, 1fr);
	}

	.support-img {
		order: 2;
	}

	.support-inner {
		order: 1;
	}

	.support-item-wrap {
		width: fit-content;
		margin: 0 auto;
		grid-template-columns: repeat(1, 1fr);
	}

	.support-item {
		grid-template-columns: 50px 1fr;
	}

	.support-item-ttl {
		text-align: left;
		width: fit-content;
	}
}



.change-item-wrap {
	margin-top: 40px;
}

.change-item-left {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.change-item-left .jp-s {
	margin-top: 6px;
}

.change-item-left-inner {
	border-radius: 15px;
	border: 1px solid #333;
	padding: 1em;
	background-color: #fff;
	box-shadow: 3px 5px 5px rgba(16, 67, 91, 0.4);
}

.change-item-number {
	font-size: 32px;
	line-height: 1;
}

.change-item-head {
	display: flex;
	gap: 0.5em;
}

.change-item-right {
	position: relative;
	padding: 0.5em 1em;
	border-radius: 15px;
	box-shadow: 3px 5px 5px rgba(16, 67, 91, 0.4);
}

.change-item-right::after {
	position: absolute;
	bottom: 0;
	left: 50%;
	translate: -50% 100%;
	content: "";
	display: inline-block;
	width: 18px;
	height: 25px;
	background-image: url("../image/change-arrow.svg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	z-index: 2;
}

.change-item-right:last-child::after {
	content: none;
}

.change-item-right+.change-item-right {
	margin-top: 25px;
}

@media (max-width: 767px) {

	.change-ttl,
	.change-ttl-sub {
		text-align: center;
	}

	.change-item-left {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.change-item-left-inner {
		width: 100%;
		padding: 0.5em;
		background: #fff;
		border: 1px solid #333;
		border-radius: 16px;
		box-sizing: border-box;

		display: flex;
		justify-content: center;
	}

	.change-item-content {
		width: min(100%, 360px);
		text-align: left;
	}

	.change-item-head {
		display: grid;
		grid-template-columns: 64px 1fr;
		column-gap: 16px;
		align-items: center;
	}

	.change-item-number,
	.change-item-ttl,
	.change-item-left .jp-s {
		margin: 0;
	}

	.change-item-number {
		text-align: right;
		line-height: 1;
	}

	.change-item-left .jp-s {
		margin-top: 6px;
		padding-left: 28px;
		text-align: left;
	}

	.change-item-right {
		flex-direction: column;

	}
}

.ability-item-wrap {
	margin-top: 40px;
}

.ability-item {
	padding: 1em;
	border: 2px solid #c2da69;
	box-shadow: 3px 5px 0px #c2da69;
}

.ability-item-ttl {
	margin-bottom: 10px;
}

.ability-before,
.ability-after {
	border-radius: 20px;
	padding: 0.5em 0.2em;
}

.ability-before {
	background-color: #555555;
}

.ability-after {
	background-color: #0c7fae;
	margin: 10px 0 20px;
	width: 50%;
}

.ability-result {
	font-size: 30px;
	letter-spacing: 0.05em;
	line-height: 1;
}

.ability-result span {
	font-size: 1.6em;
}

@media (max-width: 767px) {

	.ability-ttl,
	.ability-ttl-sub {
		text-align: center;
	}

	.ability-item-ttl {
		text-align: center;
	}

	.ability-notion {
		text-align: left;
	}
}


.result-item-wrap {
	margin-top: 40px;
}

.result-item {
	border: 1px solid #333;
	border-radius: 30px;
	overflow: hidden;
}

.result-item-inner {
	padding: 0.2em 1em 1.5em;
}

.result-item-hour,
.result-item-volume {
	width: 120px;
	border-radius: 5px;
	padding: 0.2em;
}

.result-item-hour-ttl,
.result-item-volume-ttl {
	font-size: 24px;
}

.result-item-hour-txt,
.result-item-volume-txt {
	font-size: 12px;
}

@media (max-width: 767px) {

	.result-ttl,
	.result-ttl-sub {
		text-align: center;
	}

	.result-item-wrap {
		grid-gap: 20px;
	}

	.result-notion {
		text-align: left;
	}
}

#contact form {
	margin-top: 40px;
	padding: 40px 2em;
	border-radius: 30px;
	box-shadow: 6px 8px 5px rgba(16, 67, 91, 0.4);
}

#contact table {
	width: 100%;
	border-collapse: collapse;
}

#contact table td,
#contact table th {
	display: block;
	border-top: none;
	width: auto;
	margin-bottom: 0.5em
}

#contact table td {
	display: block;
	width: auto;
	margin-bottom: 1em;
}

#contact tr {
	margin-block: 0;
}

#contact label,
input,
select,
textarea {
	width: 100%;
	max-width: 700px;
}


#contact td {
	border: 0.5px solid #b4b4b4;
	border-radius: 5px;
	padding: 0.25em 0.5em;
}

#contact th {
	vertical-align: middle;
}

#contact td {
	background-color: #e8e8e8;
}

.submit-btn {
	display: block;
	text-align: center;
	margin: 40px auto 0;
	color: #fff;
	padding: 0.5em 2em;
	width: 100%;
	transition: 0.3s ease-out;
	border-radius: 30px;
	font-size: 24px;
}

.submit-btn:hover {
	opacity: 0.8;
}

#contact input {
	font-size: 1em;
	font-family: inherit;
	letter-spacing: inherit;
}




.sns-item-wrap {
	margin-top: 40px;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 1.5em 3em;
}

.sns-item-ttl {
	display: block;
	border-radius: 30px;
	max-width: 400px;
	font-weight: 700;
}

.sns-item:nth-child(1) .sns-item-ttl {
	background-color: #6820f5;
}

.sns-item:nth-child(2) .sns-item-ttl {
	background-color: #0866ff;
}

.sns-item:nth-child(3) .sns-item-ttl {
	background-color: #fe3b30;
}

.sns-item:nth-child(4) .sns-item-ttl {
	background-color: #2cceca;
}

.sns-item:nth-child(5) .sns-item-ttl {
	background-color: #5bb74b;
}

.sns-item-link {
	padding: 0 2em 2em;
	grid-template-columns: 30% 1fr;
	grid-gap: 1em;
}

@media (max-width: 767px) {
	.sns-item-wrap {
		width: min(70%, 250px);
		margin: 0 auto;
		grid-template-columns: repeat(1, 1fr);
	}
}


#overview {
	width: min(80%, 360px);
	margin: 0 auto;
}

.footer-inner {
	padding: 60px 40px;
}

.copyright {
	font-size: 10px;
	margin-top: auto;
}

.back-to-top {
	position: fixed;
	bottom: 40px;
	right: 40px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #1c7fae;
	border-radius: 50%;
	z-index: 100;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, background-color 0.3s ease;
}

.back-to-top.is-show {
	opacity: 1;
	pointer-events: auto;
}

.back-to-top:hover {
	background-color: #156592;
}

@media (max-width: 767px) {
	.footer-inner {
		flex-direction: column;
		padding: 60px 20px 20px;
	}

	.company-info {
		grid-template-columns: repeat(1, 1fr);
	}

	.footer-logo {
		width: 200px;
		margin: 0 auto;
	}

	.footer-company-name {
		text-align: center;
	}

	.copyright {
		font-size: 10px;
		margin-top: 40px;
	}

	.back-to-top {
		bottom: 20px;
		right: 20px;
	}
}

/* =========================================
   worryセクション：画像を文字より背面にする
========================================= */

/* ---------- 4つの悩みカード ---------- */
#worry .worry-item01 {
	position: relative;
	isolation: isolate;
	overflow: hidden;

	/* 右下の画像と文章が重ならないように、
	   カード下部に画像分のスペースを確保 */
	padding-bottom: 35px;
}

/* 見出しと文章を画像より前面へ */
#worry .worry-item01-ttl,
#worry .worry-item01>p {
	position: relative;
	z-index: 2;
}

/* 画像はカード内の背面へ */
#worry .worry-item01-img {
	z-index: 1;
	pointer-events: none;
}


/* ---------- AIツール導入でよくある失敗 ---------- */

/* この範囲だけで重なり順を管理 */
#worry .worry-item02-inner>.relative {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

/* タイトルとリストを画像より前面へ */
#worry .worry-item02-inner>.relative>h2,
#worry .worry-failure {
	position: relative;
	z-index: 2;
}

/* worry-map.pngを文字より背面へ */
#worry .worry-map-img {
	z-index: 1;
	pointer-events: none;
}

/* スマホ用矢印は画像より前面に表示 */
#worry .worry-map-arrow {
	position: relative;
	z-index: 2;
}