/* ==========================================================
   フレイル予防ページ（page-frailty.php）専用スタイル
   スコープ：#frailty 配下のみ。他ページへの影響なし。
   ========================================================== */

#frailty {
	--fr-green-deep: #3d6935;
	--fr-green-soft: #586353;
	--fr-green-light: #acc5a2;
	--fr-cream: #f8f5ea;
	--fr-border: #e4e4e4;
	color: #202020;
}

#frailty .inner {
	width: 92%;
	max-width: 88rem;
	margin: 0 auto;
}

#frailty section {
	padding: 6rem 0;
}

#frailty section:nth-of-type(odd) {
	background: var(--fr-cream);
}

#frailty h2 {
	position: relative;
	margin-bottom: 3rem;
	padding: 0;
	text-align: center;
	font-size: 2.8rem;
	font-weight: 600;
	color: var(--fr-green-deep);
	background: none;
	letter-spacing: 0.1rem;
}

#frailty h2:after {
	content: "";
	display: block;
	margin: 1.5rem auto 0;
	width: 6rem;
	height: 0.2rem;
	background: var(--fr-green-light);
}

#frailty .desc {
	max-width: 76rem;
	margin: 0 auto 4rem;
	text-align: center;
	line-height: 1.9;
}

#frailty .flex {
	display: flex;
}

/* ---------- ファーストビュー #lead ---------- */
#frailty #lead {
	background: #fff;
	padding-top: 5rem;
}

#frailty #lead .intro {
	max-width: 76rem;
	margin: 0 auto 3.5rem;
	text-align: center;
	line-height: 2;
}

#frailty .cta-row {
	justify-content: center;
	flex-wrap: wrap;
	gap: 1.6rem;
}

#frailty .btn-cta {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 22rem;
	padding: 1.6rem 2.4rem;
	border-radius: 0.6rem;
	background: var(--fr-green-deep);
	color: #fff;
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-align: center;
	transition: opacity 0.3s;
}

#frailty .btn-cta:hover {
	opacity: 0.8;
}

#frailty .btn-cta.document {
	background: var(--fr-green-soft);
}

#frailty .btn-cta.tel {
	background: #fff;
	color: var(--fr-green-deep);
	border: 0.2rem solid var(--fr-green-deep);
}

#frailty .btn-cta .num {
	font-size: 2rem;
}

#frailty .btn-cta .sub {
	margin-top: 0.4rem;
	font-size: 1.2rem;
	font-weight: 400;
}

/* ---------- フレイルとは #about ---------- */
#frailty #about {
	background: #fff;
}

#frailty .flow-diagram {
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	margin-bottom: 2rem;
}

#frailty .flow-diagram .stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16rem;
	height: 16rem;
	border-radius: 50%;
	font-size: 2rem;
	font-weight: 600;
	text-align: center;
	color: #fff;
}

#frailty .flow-diagram .stage small {
	display: block;
	font-size: 1.3rem;
	font-weight: 400;
}

#frailty .flow-diagram .stage.healthy {
	background: var(--fr-green-deep);
}

#frailty .flow-diagram .stage.frail {
	background: #c9963a;
}

#frailty .flow-diagram .stage.care {
	background: #a04b3f;
}

#frailty .flow-diagram .arrows {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 1.3rem;
	color: var(--fr-green-soft);
	line-height: 1.8;
}

#frailty .recover-note {
	text-align: center;
	font-size: 1.8rem;
	font-weight: 600;
	color: var(--fr-green-deep);
}

/* ---------- 三大要素 #habits ---------- */
#frailty .habits-photo {
	margin-bottom: 4rem;
	text-align: center;
}

#frailty .habits-photo img {
	width: 100%;
	max-width: 70rem;
	border-radius: 0.6rem;
}

#frailty .habit-grid {
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
}

#frailty .habit-item {
	width: calc((100% - 4rem) / 3);
	min-width: 24rem;
	padding: 3rem 2.4rem;
	border-radius: 0.6rem;
	background: #fff;
	box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.06);
}

#frailty .habit-item h3 {
	margin-bottom: 1.2rem;
	font-size: 1.9rem;
	font-weight: 600;
	color: var(--fr-green-deep);
}

#frailty .habit-item h3 span {
	display: block;
	margin-top: 0.3rem;
	font-size: 1.3rem;
	font-weight: 400;
	color: var(--fr-green-soft);
}

#frailty .habit-item p {
	line-height: 1.8;
}

/* ---------- セルフチェック #selfcheck ---------- */
#frailty #selfcheck {
	background: #fff;
}

#frailty .check-block {
	max-width: 80rem;
	margin: 0 auto 5rem;
}

#frailty .check-block:last-child {
	margin-bottom: 0;
}

#frailty .check-block h3 {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2rem;
	font-size: 2rem;
	font-weight: 600;
	color: var(--fr-green-deep);
}

#frailty .check-block h3 span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.6rem;
	height: 3.6rem;
	border-radius: 50%;
	background: var(--fr-green-deep);
	color: #fff;
	font-size: 1.6rem;
}

#frailty .check-options {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

#frailty .check-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.6rem 2.2rem;
	border: 0.1rem solid var(--fr-border);
	border-radius: 0.6rem;
	background: var(--fr-cream);
}

#frailty .check-option .qtext {
	font-weight: 500;
}

#frailty .check-option .result {
	flex-shrink: 0;
	padding: 0.6rem 1.6rem;
	border-radius: 2rem;
	color: #fff;
	font-size: 1.4rem;
	font-weight: 600;
	white-space: nowrap;
}

#frailty .check-option .result.healthy {
	background: var(--fr-green-deep);
}

#frailty .check-option .result.prefrail {
	background: #c9963a;
}

#frailty .check-option .result.frail {
	background: #a04b3f;
}

#frailty .check-table {
	width: 100%;
	margin-bottom: 3rem;
	border-collapse: collapse;
	table-layout: fixed;
}

#frailty .check-table th,
#frailty .check-table td,
#frailty .check-table tbody th,
#frailty .check-table tbody td {
	display: table-cell;
	padding: 1.4rem 1.6rem;
	border: 0.1rem solid var(--fr-border);
	text-align: left;
	font-size: 1.5rem;
	font-weight: 600;
	color: #202020;
	width: auto;
}

#frailty .check-table th {
	width: 16rem;
	background: var(--fr-cream);
}

#frailty .check-photo {
	margin-top: 2.4rem;
	text-align: center;
}

#frailty .check-photo img {
	width: 100%;
	max-width: 60rem;
	border-radius: 0.6rem;
}

#frailty .test-grid {
	flex-wrap: wrap;
	gap: 2rem;
}

#frailty .test-item {
	flex: 1 1 20rem;
	padding: 2.4rem 2rem;
	border: 0.1rem solid var(--fr-border);
	border-radius: 0.6rem;
	background: var(--fr-cream);
}

#frailty .test-item h4 {
	margin-bottom: 1rem;
	font-size: 1.7rem;
	color: var(--fr-green-deep);
}

#frailty .voice-grid {
	flex-wrap: wrap;
	gap: 1.6rem;
	margin-top: 2rem;
}

#frailty .voice-item {
	flex: 1 1 20rem;
	padding: 1.6rem 2rem;
	border-radius: 0.6rem;
	background: var(--fr-cream);
	text-align: center;
}

#frailty .voice-item .who {
	margin-right: 0.8rem;
	font-weight: 600;
}

#frailty .voice-item .sec {
	margin-right: 0.4rem;
	color: var(--fr-green-deep);
	font-weight: 600;
}

/* ---------- サポートの流れ #support-flow ---------- */
#frailty .flow-main {
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 5rem;
}

#frailty .flow-item {
	width: calc((100% - 6rem) / 4);
	min-width: 18rem;
	padding: 2.6rem 1.8rem;
	border-radius: 0.6rem;
	background: #fff;
	text-align: center;
	box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.06);
}

#frailty .flow-item .number {
	margin-bottom: 1rem;
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--fr-green-light);
	letter-spacing: 0.1em;
}

#frailty .flow-item .ttl {
	margin-bottom: 0.8rem;
	font-size: 1.8rem;
	font-weight: 600;
	color: var(--fr-green-deep);
}

#frailty .clinic-link {
	align-items: center;
	flex-wrap: wrap;
	gap: 3rem;
	max-width: 90rem;
	margin: 0 auto;
	padding: 3rem;
	border-radius: 0.6rem;
	background: #fff;
}

#frailty .clinic-link .img {
	flex: 1 1 32rem;
}

#frailty .clinic-link .img img {
	width: 100%;
	border-radius: 0.6rem;
}

#frailty .clinic-link .txts {
	flex: 1 1 32rem;
}

#frailty .clinic-link h3 {
	margin-bottom: 1.2rem;
	font-size: 1.9rem;
	color: var(--fr-green-deep);
}

#frailty .clinic-link p {
	margin-bottom: 1.6rem;
	line-height: 1.8;
}

#frailty .clinic-link ul {
	margin-bottom: 2rem;
}

#frailty .clinic-link ul li {
	margin-bottom: 1rem;
	line-height: 1.7;
}

#frailty .btn.arrow {
	display: inline-block;
}

#frailty .btn.arrow a {
	position: relative;
	display: inline-block;
	padding: 1.2rem 3.2rem 1.2rem 2rem;
	border: 0.1rem solid var(--fr-green-deep);
	border-radius: 0.4rem;
	background: var(--fr-green-deep);
	color: #fff;
	font-size: 1.5rem;
	font-weight: 600;
}

#frailty .btn.arrow a:after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1.4rem;
	width: 0.7rem;
	height: 0.7rem;
	border-top: 0.2rem solid #fff;
	border-right: 0.2rem solid #fff;
	transform: translateY(-50%) rotate(45deg);
}

/* ---------- 入居者様の日常 #daily ---------- */
#frailty #daily {
	background: #fff;
}

#frailty #daily .img {
	max-width: 70rem;
	margin: 0 auto 3rem;
}

#frailty #daily .img img {
	width: 100%;
	border-radius: 0.6rem;
}

#frailty .sns-link {
	justify-content: center;
	flex-wrap: wrap;
	gap: 1.2rem;
}

#frailty .sns-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	padding: 1.2rem 3rem;
	border-radius: 3rem;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 600;
}

#frailty .sns-btn.instagram {
	background: linear-gradient(45deg, #4f5bd5, #962fbf, #d62976, #fa7e1e, #feda75);
}

#frailty .sns-btn.tiktok {
	background: #000;
}

#frailty .clinic-link h3.nowrap {
	white-space: nowrap;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
	#frailty .habit-item {
		width: calc((100% - 2rem) / 2);
	}

	#frailty .flow-item {
		width: calc((100% - 2rem) / 2);
	}
}

@media (max-width: 750px) {
	#frailty section {
		padding: 4.5rem 0;
	}

	#frailty h2 {
		font-size: 2.2rem;
	}

	#frailty .desc {
		text-align: left;
		margin-bottom: 3rem;
	}

	#frailty .flow-diagram .stage {
		width: 11rem;
		height: 11rem;
		font-size: 1.6rem;
	}

	#frailty .habit-item,
	#frailty .flow-item {
		width: 100%;
	}

	#frailty .clinic-link {
		padding: 2rem;
	}

	#frailty .check-option {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.8rem;
	}

	#frailty .check-table th {
		width: 9rem;
		padding: 1rem 0.8rem;
		font-size: 1.3rem;
	}

	#frailty .check-table td {
		padding: 1rem 0.8rem;
		font-size: 1.3rem;
	}

	#frailty .btn-cta {
		width: 100%;
	}
}
