/*
 * きょう整形外科 ft_info フッター
 * Cocoon Child Theme 用・整理済み完成版
 *
 * clinic-footer.css の中身をすべて削除し、
 * このファイルへ丸ごと置き換えてください。
 */

:root {
	--kf-white: #ffffff;
	--kf-line: rgba(255, 255, 255, .42);
	--kf-panel: rgba(255, 255, 255, .075);
}

/* Cocoon標準フッターを非表示 */
#footer-container,
#footer,
.footer,
.footer-in,
.footer-bottom,
.footer-bottom-logo,
.footer-bottom-content {
	display: none !important;
}

/* 基本設定 */
.kc-clinic-footer,
.kc-clinic-footer * {
	box-sizing: border-box;
}

.kc-clinic-footer {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: none;
	margin: 0 0 0 -50vw;
	padding: 0;
	color: var(--kf-white);
	font-family:
		"Noto Serif JP",
		"Yu Mincho",
		"YuMincho",
		"Hiragino Mincho ProN",
		serif;
}

.kc-clinic-footer p {
	margin: 0;
}

.kc-clinic-footer img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
	box-shadow: none;
}

.kc-clinic-footer table {
	margin: 0;
	border-collapse: collapse;
	border-spacing: 0;
	box-shadow: none;
}

/* フッター全体背景 */
.kc-clinic-footer .ft_info {
	width: 100%;
	min-height: 770px;
	padding: 80px 25px 0;
	overflow: hidden;
	background:
		linear-gradient(rgba(3, 40, 70, .28), rgba(3, 40, 70, .28)),
		url("https://kyoseikei.com/wp-content/themes/grits_theme/images/ft_bg.jpg")
		center center / cover no-repeat;
    margin-top: 1.5em;
}

/* ========================================
   上段：ロゴ・住所・電話番号
======================================== */

.kc-clinic-footer .ft_info__top {
	width: min(1280px, 100%);
	min-height: 200px;
	margin: 0 auto;
	padding: 38px 75px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 58px;
	background: var(--kf-panel);
	border-radius: 5px;
}

.kc-clinic-footer .ft_logo {
	flex: 0 0 375px;
	padding-right: 55px;
	border-right: 1px solid rgba(255, 255, 255, .5);
}

.kc-clinic-footer .ft_logo a {
	display: inline-block;
	text-decoration: none;
}

.kc-clinic-footer .ft_logo img {
	width: 342px;
	filter: brightness(0) invert(1);
}

.kc-clinic-footer .ft_right {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 12px;
}

.kc-clinic-footer .ft_right .des {
	color: var(--kf-white);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: .055em;
	white-space: nowrap;
}

.kc-clinic-footer .ft_right .des span {
	margin-left: 10px;
}

.kc-clinic-footer .ft_right .tel {
	display: flex;
	align-items: center;
	color: var(--kf-white);
	font-size: 34px;
	font-weight: 500;
	line-height: 1;
}

.kc-clinic-footer .ft_right .tel .icon {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding-left: 46px;
}

.kc-clinic-footer .ft_right .tel .icon::before {
	content: "☎";
	position: absolute;
	left: 0;
	top: 50%;
	color: var(--kf-white);
	font-family: sans-serif;
	font-size: 26px;
	transform: translateY(-52%);
}

/* ========================================
   下段：診療時間・Googleマップ
======================================== */

.kc-clinic-footer .ft_info__bottom {
	width: min(1280px, 100%);
	margin: 88px auto 0;
	padding-bottom: 30px;
	display: grid;
	grid-template-columns: 600px 1fr;
	gap: 80px;
	align-items: start;
}

.kc-clinic-footer .ft_info__details {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* 診療時間表 */
.kc-clinic-footer .time_sheet {
	width: 100%;
}

.kc-clinic-footer .time_sheet__scroll {
	width: 100%;
	overflow: visible;
}

.kc-clinic-footer .time_sheet table {
	width: 100%;
	table-layout: fixed;
	background: transparent;
}

.kc-clinic-footer .time_sheet th,
.kc-clinic-footer .time_sheet td {
	height: 57px;
	padding: 6px 4px;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .28);
	background: transparent !important;
	color: var(--kf-white) !important;
	text-align: center;
	vertical-align: middle;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.35;
}

.kc-clinic-footer .time_sheet thead th {
	height: 62px;
	border-bottom: 0;
	background: #d8effb !important;
	color: #083f68 !important;
	font-size: 18px;
	font-weight: 500;
}

.kc-clinic-footer .time_sheet thead th:first-child {
	border-radius: 5px 0 0 5px;
}

.kc-clinic-footer .time_sheet thead th:last-child {
	border-radius: 0 5px 5px 0;
}

.kc-clinic-footer .time_sheet thead th:first-child,
.kc-clinic-footer .time_sheet tbody th {
	width: 170px;
}

.kc-clinic-footer .time_sheet tbody th {
	padding-left: 20px;
	text-align: left;
	font-size: 20px;
	font-weight: 500;
}

.kc-clinic-footer .time_sheet tbody td {
	font-family:
		"Noto Serif JP",
		"Yu Mincho",
		serif;
	font-size: 21px;
	font-weight: 500;
}

.kc-clinic-footer .time_sheet tr,
.kc-clinic-footer .time_sheet thead,
.kc-clinic-footer .time_sheet tbody {
	background: transparent !important;
}

/* 注記 */
.kc-clinic-footer .note {
	margin-top: 18px;
	color: var(--kf-white);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.75;
	letter-spacing: .035em;
}

.kc-clinic-footer .note p {
	margin: 0 0 4px;
}

.kc-clinic-footer .note p:first-child span {
	color: var(--kf-white);
}

/* コピーライト */
.kc-clinic-footer .copyright {
	margin-top: 48px;
	padding-top: 22px;
	border-top: 1px solid var(--kf-line);
}

.kc-clinic-footer .copyright__inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 22px;
}

.kc-clinic-footer .copyright__text {
	color: var(--kf-white);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: .06em;
	white-space: nowrap;
}

/* Googleマップ */
.kc-clinic-footer .ft_info__map {
	position: relative;
	width: 100%;
	min-width: 0;
	height: 370px;
	overflow: hidden;
	border-radius: 4px;
	background: #ddd;
}

.kc-clinic-footer .ft_map {
	position: absolute;
	inset: 0;
}

.kc-clinic-footer .ft_map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	border: 0;
	filter: grayscale(1) contrast(.9) brightness(1.08);
}

/* ========================================
   1200px以下
======================================== */

@media screen and (max-width: 1200px) {
	.kc-clinic-footer .ft_info {
		padding-left: 30px;
		padding-right: 30px;
	}

	.kc-clinic-footer .ft_info__top {
		padding-left: 55px;
		padding-right: 55px;
	}

	.kc-clinic-footer .ft_info__bottom {
		grid-template-columns: minmax(0, 1fr) minmax(430px, 1fr);
		gap: 55px;
	}

	.kc-clinic-footer .ft_logo {
		flex-basis: 350px;
	}
}

/* ========================================
   タブレット
======================================== */

@media screen and (max-width: 980px) {
	.kc-clinic-footer .ft_info {
		min-height: 0;
		padding: 55px 30px 0;
	}

	.kc-clinic-footer .ft_info__top {
		padding: 35px 42px;
		gap: 38px;
	}

	.kc-clinic-footer .ft_logo {
		flex: 0 0 310px;
		padding-right: 38px;
	}

	.kc-clinic-footer .ft_logo img {
		width: 280px;
	}

	.kc-clinic-footer .ft_right .des {
		font-size: 15px;
		white-space: normal;
	}

	.kc-clinic-footer .ft_right .des span {
		display: block;
		margin-left: 0;
	}

	.kc-clinic-footer .ft_info__bottom {
		margin-top: 55px;
		grid-template-columns: 1fr;
		gap: 45px;
	}

	.kc-clinic-footer .time_sheet,
	.kc-clinic-footer .copyright {
		max-width: 720px;
		margin-left: auto;
		margin-right: auto;
	}

	.kc-clinic-footer .ft_info__map {
		height: 390px;
	}
}

/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 767px) {
	html,
	body {
		max-width: 100%;
		overflow-x: hidden;
	}

	.kc-clinic-footer {
		position: relative;
		left: 50%;
		width: 100vw;
		max-width: none;
		margin: 0 0 0 -50vw;
		padding: 0;
	}

	.kc-clinic-footer .ft_info {
		width: 100%;
		min-height: 0;
		margin: 0;
		padding: 20px 15px 0;
		background:
			linear-gradient(rgba(3, 40, 70, .22), rgba(3, 40, 70, .22)),
			url("https://kyoseikei.com/wp-content/themes/grits_theme/images/ft_bg.jpg")
			center top / auto 100% no-repeat;
	}

	/* ロゴ・住所・電話番号 */
	.kc-clinic-footer .ft_info__top {
		width: 100%;
		min-height: 0;
		margin: 0;
		padding: 22px 20px 20px;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		background: rgba(255, 255, 255, .075);
		border-radius: 4px;
	}

	.kc-clinic-footer .ft_logo {
		flex: none;
		width: 100%;
		margin: 0;
		padding: 0 0 20px;
		display: flex;
		justify-content: center;
		align-items: center;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .42);
	}

	.kc-clinic-footer .ft_logo a {
		display: block;
	}

	.kc-clinic-footer .ft_logo img {
		width: 250px;
		max-width: 100%;
		height: auto;
		margin: 0 auto;
	}

	.kc-clinic-footer .ft_right {
		width: 100%;
		margin: 0;
		padding: 17px 0 0;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 9px;
	}

	.kc-clinic-footer .ft_right .des {
		margin: 0 auto;
		color: var(--kf-white);
		font-size: 16px;
		font-weight: 500;
		line-height: 1.65;
		letter-spacing: .02em;
		white-space: normal;
	}

	.kc-clinic-footer .ft_right .des span {
		display: inline;
		margin-left: 6px;
	}

	.kc-clinic-footer .ft_right .tel {
		margin: 0 auto;
		color: var(--kf-white);
		font-size: 28px;
		font-weight: 500;
		line-height: 1.2;
		letter-spacing: .02em;
	}

	.kc-clinic-footer .ft_right .tel .icon {
		display: flex;
		align-items: center;
		padding-left: 0;
	}

	.kc-clinic-footer .ft_right .tel .icon::before,
	.kc-clinic-footer .ft_right .tel .icon::after {
		display: none;
		content: none;
	}

	/* 地図を診療時間より上に配置 */
	.kc-clinic-footer .ft_info__bottom {
		width: 100%;
		margin: 24px 0 0;
		padding: 0 0 20px;
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.kc-clinic-footer .ft_info__map {
		order: 1;
		position: relative;
		width: 100%;
		height: 225px;
		min-height: 225px;
		margin: 0;
		padding: 0;
		overflow: hidden;
		border-radius: 4px;
	}

	.kc-clinic-footer .ft_info__details {
		order: 2;
		width: 100%;
		min-height: 0;
		margin: 0;
		padding: 0;
		background: transparent;
	}

	.kc-clinic-footer .ft_map,
	.kc-clinic-footer .ft_map iframe {
		width: 100%;
		height: 100%;
		min-height: 0;
	}

	/* 診療時間表 */
	.kc-clinic-footer .time_sheet {
		width: 100%;
		max-width: none;
		margin: 0;
	}

	.kc-clinic-footer .time_sheet__scroll {
		width: 100%;
		overflow: visible;
	}

	.kc-clinic-footer .time_sheet table {
		width: 100%;
		min-width: 0;
		table-layout: fixed;
	}

	.kc-clinic-footer .time_sheet th,
	.kc-clinic-footer .time_sheet td {
		height: 43px;
		padding: 3px 1px;
		font-size: 12px;
		line-height: 1.2;
	}

	.kc-clinic-footer .time_sheet thead th:first-child,
	.kc-clinic-footer .time_sheet tbody th {
		width: 84px;
	}

	.kc-clinic-footer .time_sheet thead th {
		height: 40px;
		padding: 3px 1px;
		font-size: 14px;
	}

	.kc-clinic-footer .time_sheet tbody th {
		padding-left: 5px;
		font-size: 14px;
		text-align: left;
		white-space: nowrap;
	}

	.kc-clinic-footer .time_sheet tbody td {
		font-size: 14px;
	}

	/* 注記 */
	.kc-clinic-footer .note {
		margin-top: 14px;
		color: var(--kf-white);
		font-size: 14px;
		font-weight: 500;
		line-height: 1.75;
		letter-spacing: 0;
	}

	.kc-clinic-footer .note p {
		margin: 0 0 5px;
	}

	.kc-clinic-footer .note p span {
		display: inline;
	}

	/* コピーライト */
	.kc-clinic-footer .copyright {
		width: 100%;
		max-width: none;
		margin: 25px 0 0;
		padding: 15px 0 0;
		border-top: 1px solid rgba(255, 255, 255, .38);
	}

	.kc-clinic-footer .copyright__inner {
		width: 100%;
		margin: 0;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 22px;
		border: 0;
	}

	.kc-clinic-footer .copyright__text {
		margin: 0;
		color: var(--kf-white);
		font-size: 12px;
		letter-spacing: .04em;
		white-space: normal;
	}

	.kc-clinic-footer .ft_map {
		position: absolute;
		inset: 0;
	}

	.kc-clinic-footer .ft_map iframe {
		display: block;
		margin: 0;
		border: 0;
	}
}

@media screen and (max-width: 420px) {
	.kc-clinic-footer .copyright__inner {
		flex-wrap: wrap;
	}
}

@media screen and (max-width: 374px) {
	.kc-clinic-footer .ft_info {
		padding-left: 12px;
		padding-right: 12px;
	}

	.kc-clinic-footer .ft_info__top {
		padding-left: 17px;
		padding-right: 17px;
	}

	.kc-clinic-footer .ft_logo img {
		width: 225px;
	}

	.kc-clinic-footer .ft_right .des {
		font-size: 11px;
	}

	.kc-clinic-footer .ft_right .tel {
		font-size: 25px;
	}

	.kc-clinic-footer .time_sheet thead th:first-child,
	.kc-clinic-footer .time_sheet tbody th {
		width: 78px;
	}

	.kc-clinic-footer .time_sheet th,
	.kc-clinic-footer .time_sheet td {
		font-size: 11px;
	}

	.kc-clinic-footer .time_sheet tbody td {
		font-size: 13px;
	}
}
.copyright__inner{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:18px;
}

.footer-links{
	display:flex;
	align-items:center;
}

.footer-links::after{
	content:"｜";
	color:rgba(255,255,255,.7);
	margin:0 4px 0 18px;
}

.footer-links a{
	color:#fff;
	text-decoration:none;
	font-size:14px;
	transition:opacity .3s;
}

.footer-links a:hover{
	opacity:.7;
}

.copyright__text{
	margin:0;
	color:#fff;
	font-size:12px;
}