/* ========================================
   pages/top.css
   トップページ専用スタイル
======================================== */

/* ----- FV ----- */
.top_fv_sec {
	position: relative;
	padding: 0;
	background: #d8eefb;
	overflow: hidden;
}

.top_fv_inner {
	padding: clamp(24px, 9vw, 120px) 4% clamp(24px, 11vw, 130px);
	z-index: 10;
}

.top_fv_copy {
	max-width: 560px;
}

.top_fv_badge {
	display: inline-block;
	margin: 0 0 20px;
	padding: 6px 16px;
	border: 1px solid var(--color_text);
	font-size: 14.4px;
	font-weight: 700;
}

.top_fv_title {
	margin: 0 0 20px;
	font-size: clamp(30px, 4.5vw, 48px);
	font-weight: 700;
	line-height: 1.17;
}

.top_fv_title_line {
	display: block;
}

.top_fv_lead {
	margin: 0 0 28px;
	font-size: clamp(15px, 1.7vw, 17.6px);
	line-height: 1.8;
}

.top_fv_visual {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.top_fv_visual img {
	max-width: none;
	height: auto;
	min-height: clamp(240px, 38vw, 440px);
	object-fit: cover;
	object-position: left center;
	display: block;
}

/* ----- 理念 ----- */
.top_philosophy_sec {
	padding: clamp(56px, 8vw, 96px) 0;
}

.top_philosophy_sec .res_heading_grad {
	margin: 0 auto 28px;
}

.top_philosophy_body {
	max-width: 840px;
	margin: 0 auto;
	text-align: center;
	font-size: 16px;
	line-height: 1.8;
}

.top_philosophy_body p {
	margin: 0 0 1em;
}

.top_philosophy_body p:last-child {
	margin-bottom: 0;
}

/* ----- 3つの理由 ----- */
.top_reasons_sec {
	padding: clamp(56px, 8vw, 88px) 0;
	background: var(--res_reason_band);
	border-radius: 40px 40px 0 0;
}

.top_reasons_sec .res_heading_grad {
	margin: 0 auto 40px;
}

.top_reasons_grid {
	margin-bottom: 40px;
	align-items: stretch;
}

.page_top .top_reasons_grid > .res_reason_card {
	display: flex;
	flex-direction: column;
	flex: 1 1 calc(33.333% - var(--grid_gap) * 2 / 3);
	align-self: stretch;
	height: auto;
	box-sizing: border-box;
}

.top_reasons_grid .res_reason_card_body {
	flex: 1 1 auto;
}

.top_reasons_more {
	text-align: center;
}

/* グラデーション枠線ボタン（白抜き・太字） */
.page_top .top_reasons_more .res_more_btn {
	border: 2px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(90deg, #73b9ef 0%, #40c6b3 50%, #1f8a7b 100%) border-box;
	font-weight: 700;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

.page_top .top_reasons_more .res_more_btn:hover {
	border: 2px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(90deg, #73b9ef 0%, #40c6b3 50%, #1f8a7b 100%) border-box;
	color: var(--color_text);
}

.page_top .top_daily_more .res_more_btn,
.page_top .top_instagram_more .res_more_btn,
.page_top .top_news_sec .res_more_btn {
	background: #fff;
	border: 2px solid var(--res_btn_outline);
	font-weight: 700;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

.page_top .res_btn_stack .res_more_btn {
	background: #fff;
	border: 2px solid var(--res_btn_outline);
	font-weight: 700;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

/* ----- 数字で見る成果 ----- */
.top_stats_sec {
	padding: clamp(56px, 8vw, 88px) 0;
}

.top_stats_sec .res_heading_grad {
	margin: 0 auto 12px;
}

.top_stats_note {
	margin: 0 0 32px;
	text-align: center;
	font-size: 12px;
	color: #aaa;
}

.top_stats_grid {
	max-width: 840px;
	margin: 0 auto;
	align-items: stretch;
}

.top_stats_card {
	padding: 15px 16px 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
	box-sizing: border-box;
	height: 100%;
}

.top_stats_card_head {
	margin: 0 0 12px;
	text-align: center;
}

.wrap .top_stats_card_label {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.4;
}

.wrap.top_stats_card_sub {
	margin: 2px 0 0;
	font-size: 11px;
	color: #888;
	line-height: 1.4;
}

.top_stats_chart {
	position: relative;
	width: min(280px, 78vw);
	height: min(220px, 58vw);
	margin: 0 auto;
	display: block;
}

.top_stats_donut {
	position: absolute;
	left: 50%;
	top: 54%;
	transform: translate(-50%, -50%);
	width: min(197px, 52vw);
	height: min(197px, 52vw);
	border-radius: 50%;
	flex-shrink: 0;
}

.top_stats_donut--dasc21 {
	background: conic-gradient(from 0deg, #2f7bdb 0% 94%, #5e9bef 94% 100%);
}

.top_stats_donut--sleep {
	background: conic-gradient(from 0deg, #0d5dc4 0% 47%, #6ba8ff 47% 76%, #307eeb 76% 100%);
}

.top_stats_donut--fab {
	background: conic-gradient(from 0deg, #0d5dc4 0% 40%, #6ba8ff 40% 70%, #307eeb 70% 100%);
}

.top_stats_donut--mmse {
	background: conic-gradient(from 0deg, #0d5dc4 0% 59%, #307eeb 59% 65%, #6ba8ff 65% 100%);
}

.top_stats_donut_center {
	position: absolute;
	inset: 18%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 50%;
	text-align: center;
}

.top_stats_donut_pct {
	font-size: clamp(24px, 4vw, 32px);
	font-weight: 700;
	color: #0d5dc4;
	line-height: 1.1;
}

.top_stats_donut_txt {
	margin-top: 2px;
	font-size: 14px;
	color: #aaa;
	line-height: 1.2;
}

.top_stats_legend {
	list-style: none;
	margin: 0;
	padding: 0;
}

.top_stats_legend_item {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	line-height: 1.2;
}

.top_stats_legend_val {
	font-size: 17px;
	font-weight: 700;
	color: #0d5dc4;
}

.top_stats_legend_lbl {
	font-size: 9px;
	color: #999;
}

.top_stats_legend_item--tl {
	top: 14%;
	left: 8%;
}

.top_stats_legend_item--tl .top_stats_legend_val {
	color: #6ba8ff;
}

.top_stats_legend_item--bl {
	bottom: 10%;
	left: 8%;
}

.top_stats_legend_item--bl .top_stats_legend_val {
	color: #307eeb;
}

.top_stats_legend_item--tr {
	top: 28%;
	right: 6%;
}

/* ----- 2つのサービス ----- */
.top_services_sec {
	padding: clamp(56px, 8vw, 88px) 0;
}

.top_services_sec .res_heading_grad {
	margin: 0 auto 40px;
}

.top_services_cards {
	margin-bottom: 50px;
}

.top_service_card {
	position: relative;
	border-radius: 10px;
	padding: 50px 31px 40px;
	box-sizing: border-box;
	min-height: 287px;
	background-repeat: no-repeat;
	background-size: min(200px, 38%);
}

.top_service_card--gh {
	background-color: var(--res_service_gh_bg);
	background-image: url('../../img/top/service_gh.webp');
	background-position: right 20px top 28px;
}

.top_service_card--smms {
	background-color: var(--res_service_smms_bg);
	background-image: url('../../img/top/service_smms.webp');
	background-position: right 20px top 15px;
    background-size: min(130px, 31%);
}

.top_service_card_head {
	min-height: 65px;
	padding-right: 35%;
	margin: 0 0 16px;
}

.top_service_card_title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
}

.top_service_card_sub {
	margin: 0;
	font-size: 14.4px;
}

.top_service_card_body {
	margin: 0;
	font-size: 16px;
	line-height: 1.8;
}

.top_services_lead {
	margin: 0 0 20px;
	text-align: center;
	font-size: 18.7px;
	font-weight: 700;
}

.top_services_btns > * {
	min-height: 138px;
}

.top_service_btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 138px;
	padding: 24px 72px 24px 24px;
	border-radius: 100px;
	color: #fff;
	text-decoration: none;
	position: relative;
	box-sizing: border-box;
	transition: transform var(--transition_base), box-shadow var(--transition_base);
}

.top_service_btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	color: #fff;
	text-decoration: none;
	opacity: 1;
}

.top_service_btn--gh {
	background: var(--res_service_gh_btn);
}

.top_service_btn--smms {
	background: var(--res_service_smms_btn);
}

.top_service_btn_sub {
	margin: 0 0 6px;
	font-size: 14.4px;
	font-weight: 500;
}

.top_service_btn_main {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
}

.top_service_btn_ico {
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	font-size: 1.1em;
	line-height: 1;
}

.top_service_btn--gh .top_service_btn_ico {
	color: var(--res_service_gh_btn);
}

.top_service_btn--smms .top_service_btn_ico {
	color: var(--res_service_smms_btn);
}

.top_service_btn:hover .top_service_btn_ico {
	transform: translateY(-50%);
}

/* ----- 日常 ----- */
.top_daily_sec {
	padding: clamp(56px, 8vw, 88px) 0;
}

.top_daily_sec .res_heading_grad {
	margin: 0 auto 16px;
}

.top_daily_sec .res_section_lead {
	max-width: none;
	width: 100%;
}

.top_daily_grid {
	margin: 32px 0 40px;
}

.top_daily_grid img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

@media (max-width: 767px) {
	.top_daily_grid.grid_col4 > * {
		width: calc(50% - var(--grid_gap) / 2);
	}
}

.top_daily_more {
	text-align: center;
}

/* ----- 採用 ----- */
.top_recruit_sec {
	position: relative;
	padding: clamp(72px, 10vw, 120px) 0;
	color: #fff;
	text-align: center;
	background: #555 center / cover no-repeat;
}

.top_recruit_sec::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(51, 51, 51, 0.38);
}

.top_recruit_inner {
	position: relative;
	z-index: 1;
	max-width: none;
	margin: 0 auto;
}

.top_recruit_label {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: #fff;
	text-shadow: 0 2px 1px rgba(0, 0, 0, 0.25);
}

.top_recruit_sec .top_recruit_title {
	margin: 0 0 24px;
	font-size: clamp(26px, 3.5vw, 32px);
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
	text-shadow: 0 2px 1px rgba(0, 0, 0, 0.25);
}

.top_recruit_body {
	margin: 0 0 32px;
	font-size: 16px;
	line-height: 1.8;
	max-width: none;
}

.top_recruit_btn_wrap {
	display: flex;
	justify-content: center;
}

.top_recruit_btn {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 20px;
	min-height: 107px;
	padding: 20px 20px 20px 40px;
	border-radius: 70px;
	font-weight: 700;
	color: var(--color_text);
	text-decoration: none;
	background: linear-gradient(90deg, #d4facd 0%, #fbeafd 50%, #fff5fc 100%);
	box-shadow: var(--res_card_shadow);
	max-width: 520px;
	width: 100%;
	box-sizing: border-box;
	transition: transform var(--transition_base), box-shadow var(--transition_base);
}

.top_recruit_btn_body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: left;
}

.top_center {
	text-align: center;
}

.top_recruit_btn_sub {
	font-size: 19px;
}

.top_recruit_btn_main {
	font-size: 14.5px;
	font-weight: 700;
}

.top_recruit_btn_ico {
	flex: 0 0 25px;
	width: 25px;
	height: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #7cb638;
	color: #fff;
}

.top_recruit_btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	color: var(--color_text);
	text-decoration: none;
	opacity: 1;
}

/* ----- お知らせ ----- */
.top_news_sec {
	padding: clamp(56px, 8vw, 88px) 0;
}

.top_news_sec .res_heading_grad {
	margin: 0 auto 40px;
}

/* ----- Instagram ----- */
.top_instagram_sec {
	padding: clamp(56px, 8vw, 88px) 0;
}

.top_instagram_sec .res_heading_grad {
	margin: 0 auto 12px;
}

.top_instagram_embed {
	max-width: 900px;
	margin: 32px auto 40px;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
}

.top_instagram_iframe {
	display: block;
	width: 100%;
	height: 480px;
	border: none;
	overflow: hidden;
}

.top_instagram_more {
	text-align: center;
}

/* ----- SP ----- */
@media (max-width: 1023px) {
	.top_service_card {
		background-size: min(180px, 38%);
	}
}

@media (max-width: 767px) {
	.top_fv_sec {
		padding-bottom: 31vw;
	}

	.top_fv_visual {
		top: 83%;
		left: 40%
	}

	.top_fv_visual img {
		width: 100vw;
    	min-height: clamp(220px, 38vw, 440px);
	}

	.top_fv_inner {
		padding: clamp(24px, 6vw, 120px) 4% clamp(24px, 20vw, 130px);
	}

	.res_btn_primary {
		font-size: 0.95em;
		min-height: 65px;
	}

	.top_reasons_sec {
		border-radius: 24px 24px 0 0;
	}

	.page_top .top_reasons_grid > .res_reason_card {
		flex: 1 1 100%;
	}

	.top_service_card {
		background-position: right 16px top 24px;
		background-size: min(140px, 36%);
	}

	.top_service_card_head {
		padding-right: 38%;
		min-height: 72px;
	}

	.top_stats_legend_item--tl {
		left: 0;
	}

	.top_stats_legend_item--bl {
		left: 0;
	}

	.top_stats_legend_item--tr {
		right: 0;
	}

	.top_instagram_iframe {
		height: 420px;
	}

	.top_service_btn_ico {
		width: 26px;
		height: 26px;
	}

	.top_service_btn_main {
		font-size: 18px;
	}

	.top_service_btn {
		padding: 20px 24px 20px 24px;
	}

	.top_recruit_sec {
		padding: clamp(55px, 10vw, 120px) 0;
		background-position: 74%;
	}

	.top_recruit_sec::before {
		background: rgba(51, 51, 51, 0.5);
	}
}
