/* お問い合わせにつなぐ表示（v1.3.0） */

.csw-type,
.csw-bar,
.csw-cta {
	--csw-blue: #036EB7;
	--csw-blue-d: #02568F;
	--csw-blue-t: #EEF5FB;
	--csw-ink: #333333;
	--csw-sub: #555555;
}

.csw-type,
.csw-cta {
	line-break: strict;
	word-break: auto-phrase;
}
.csw-type__name,
.csw-type__note,
.csw-cta__title {
	text-wrap: balance;
	font-feature-settings: "palt";
}

/* 業種ごとの色（濃い色＝白い文字が読める濃さ／薄い色＝背景） */
.is-c1 { --c: #157CAF; --t: #E9F5FC; }
.is-c2 { --c: #D23F5C; --t: #FEEFF2; }
.is-c3 { --c: #0067B6; --t: #E8F1F9; }
.is-c4 { --c: #AF6100; --t: #FDF2E4; }
.is-c5 { --c: #8645E6; --t: #F4EEFF; }
.is-c6 { --c: #3E8432; --t: #EDF6EA; }

/* ---------- ボタン ---------- */
.csw-btn,
.csw-cta a.csw-btn {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2px 10px;
	min-height: 56px;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s, transform .1s;
}
.csw-btn:active { transform: translateY(1px); }
.csw-btn--mail,
.csw-cta a.csw-btn--mail {
	flex: 1 1 260px;
	background: var(--csw-blue);
	color: #FFFFFF;
}
.csw-btn--tel,
.csw-cta a.csw-btn--tel {
	flex: 1 1 240px;
	background: #FFFFFF;
	color: var(--csw-blue);
}
.csw-btn__num {
	font-size: 18px;
	letter-spacing: .02em;
	white-space: nowrap;
}
@media (hover: hover) {
	.csw-btn--mail:hover, .csw-cta a.csw-btn--mail:hover { background: var(--csw-blue-d); color: #FFFFFF; }
	.csw-btn--tel:hover, .csw-cta a.csw-btn--tel:hover { background: #DCEBF6; color: var(--csw-blue); }
}
.csw-btn:focus-visible,
.csw-type__link:focus-visible,
.csw-type__tab:focus-visible,
.csw-bar__item:focus-visible {
	outline: 3px solid #F2A900;
	outline-offset: 2px;
}

/* ---------- 対応業種（トップページ） ---------- */
.csw-type {
	padding: 80px 0 88px;
	color: var(--csw-ink);
}
.csw-type__heading { margin: 0; }
.csw-type__lead {
	margin: 20px 0 32px;
	font-size: 16px;
	line-height: 1.8;
	text-align: center;
}

.csw-type__tabs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}
.csw-type__tab {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 16px 6px 18px;
	border: 0;
	border-radius: 12px;
	background: var(--t);
	color: var(--c);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.csw-type__tab-img {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}
.csw-type__tab-name {
	display: flex;
	align-items: center;
	min-height: 2.8em;
}
.csw-type.is-tabs .csw-type__tab[aria-selected="true"] {
	background: var(--c);
	color: #FFFFFF;
}
.csw-type.is-tabs .csw-type__tab[aria-selected="true"]::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -10px;
	margin-left: -10px;
	border-width: 10px 10px 0;
	border-style: solid;
	border-color: var(--c) transparent transparent;
}
@media (hover: hover) {
	.csw-type__tab[aria-selected="false"]:hover { background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--c); }
}

.csw-type__panels { margin-top: 20px; }
.csw-type__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
	gap: 0 36px;
	padding: 32px 36px;
	border-top: 6px solid var(--c);
	border-radius: 16px;
	background: var(--t);
}
.csw-type__panel[hidden] { display: none !important; }
.csw-type:not(.is-tabs) .csw-type__panel + .csw-type__panel { margin-top: 20px; }

.csw-type__name {
	margin: 0 0 8px;
	color: var(--c);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.4;
}
.csw-type__desc {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.8;
}

.csw-type__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.csw-type__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	min-height: 76px;
	padding: 14px 44px 14px 14px;
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--csw-ink);
	text-decoration: none;
	transition: box-shadow .2s;
}
.csw-type__link::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 9px;
	height: 9px;
	margin-top: -5px;
	border-top: 2px solid var(--c);
	border-right: 2px solid var(--c);
	transform: rotate(45deg);
}
@media (hover: hover) {
	.csw-type__link:hover { box-shadow: inset 0 0 0 2px var(--c); }
}
.csw-type__link-icon {
	flex: none;
	width: 44px;
	height: 44px;
}
.csw-type__link-body { min-width: 0; }
.csw-type__link-title {
	display: block;
	color: var(--c);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.5;
}
.csw-type__link-sub {
	display: block;
	margin-top: 2px;
	color: var(--csw-sub);
	font-size: 14px;
	line-height: 1.6;
}

.csw-type__others { margin-top: 20px; }
.csw-type__others-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 500;
}
.csw-type__others-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.csw-type__others-list li {
	position: relative;
	padding-left: 14px;
	font-size: 15px;
	line-height: 1.8;
}
.csw-type__others-list li::before {
	content: "";
	position: absolute;
	top: .75em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c);
}

.csw-type__cta {
	padding: 24px;
	border-radius: 12px;
	background: #FFFFFF;
}
.csw-type__note {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
}
.csw-type__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.csw-type__cta .csw-type__buttons { flex-direction: column; }
.csw-type__cta .csw-btn { flex: none; width: 100%; }
.csw-type__cta .csw-btn--tel { background: var(--csw-blue-t); }
.csw-type__hours {
	margin: 12px 0 0;
	color: var(--csw-sub);
	font-size: 13px;
	line-height: 1.7;
}
.csw-type__works {
	margin: 20px 0 0;
	font-size: 15px;
}
.csw-type__works a {
	color: var(--c);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 1024px) {
	.csw-type__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.csw-type.is-tabs .csw-type__tab[aria-selected="true"]::after { display: none; }
	.csw-type__panel { grid-template-columns: minmax(0, 1fr); padding: 28px; }
	.csw-type__cta { margin-top: 24px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
	.csw-type__br { display: none; }
}
@media (max-width: 768px) {
	.csw-type { padding: 56px 0 64px; }
	.csw-type__lead { margin: 16px 0 24px; font-size: 15px; }
	.csw-type__tabs { gap: 8px; }
	.csw-type__tab {
		gap: 6px;
		padding: 12px 4px 10px;
		border-radius: 10px;
		font-size: 14px;
	}
	.csw-type__tab-img { width: 52px; height: 52px; }
	.csw-type__panels { margin-top: 16px; }
	.csw-type__panel { padding: 22px 16px 16px; border-radius: 12px; }
	.csw-type__cta { padding: 18px 16px; }
	.csw-type__name { font-size: 20px; }
	.csw-type__desc { margin-bottom: 16px; font-size: 15px; }
	.csw-type__links { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.csw-type__link { min-height: 68px; padding: 12px 40px 12px 12px; gap: 12px; }
	.csw-type__link-icon { width: 40px; height: 40px; }
	.csw-type__link-title { font-size: 16px; }
	.csw-type__link-sub { font-size: 13px; }
	.csw-type__others-list li { font-size: 14px; }
}

/* ---------- 記事の下の「ご相談はこちら」 ---------- */
.csw-cta {
	margin: 48px 0 0;
	padding: 28px 28px 24px;
	border-radius: 12px;
	background: var(--csw-blue-t);
	color: var(--csw-ink);
}
.csw-cta p.csw-cta__title {
	margin: 0 0 8px;
	color: var(--csw-blue);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
}
.csw-cta p.csw-cta__text {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.8;
}
.csw-cta p.csw-cta__more {
	margin: 14px 0 0;
	font-size: 15px;
}
.csw-cta p.csw-cta__more a {
	color: var(--csw-blue);
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 3px;
}
@media (max-width: 768px) {
	.csw-cta { margin-top: 36px; padding: 22px 16px 20px; }
	.csw-cta p.csw-cta__title { font-size: 18px; }
}

/* ---------- スマホの画面下の固定ボタン ---------- */
.csw-bar { display: none; }
@media (max-width: 820px) {
	.csw-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 150;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		padding-bottom: env(safe-area-inset-bottom);
		background: #FFFFFF;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, .12);
	}
	.csw-bar__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		height: 60px;
		color: var(--csw-blue);
		font-size: 13px;
		font-weight: 500;
		line-height: 1.2;
		text-decoration: none;
	}
	.csw-bar__item svg { fill: currentColor; }
	.csw-bar__item--tel { background: var(--csw-blue); color: #FFFFFF; }
	.csw-bar__item--mail { background: var(--csw-blue-d); color: #FFFFFF; }
	.csw-bar__item:active { opacity: .8; }
}

@media (prefers-reduced-motion: reduce) {
	.csw-type__tab,
	.csw-type__link,
	.csw-btn { transition: none; }
}
