/*
 * 運営会社ページ（/company/）
 * 読み込みは inc/company-page.php（このページだけ）。
 * 本文はネイティブブロック＋追加CSSクラス（fn-co-*）。装飾とアイコンはここに持たせる。
 */

.fn-co {
	--fn-co-bg: #f6f5f1;
	--fn-co-ink: #2b2b2b;
	--fn-co-sub: #6b6a65;
	--fn-co-line: #e8e6e0;
	background: var(--fn-co-bg);
	border-radius: 16px;
	padding: 24px;
	color: #333;
}

/* クラシックテーマではグループに内側の箱が足されるので、両方を対象にする */
.fn-co > .wp-block-group__inner-container > * + *,
.fn-co > * + * {
	margin-top: 20px;
}

.fn-co .wp-block-group__inner-container > :first-child { margin-top: 0; }
.fn-co .wp-block-group__inner-container > :last-child { margin-bottom: 0; }

/* ---------- 見出し（SWELL の h2 の帯を外す） ---------- */
.post_content .fn-co h2.wp-block-heading,
.post_content .fn-co h3.wp-block-heading {
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--fn-co-ink);
	padding: 0;
	margin: 0;
}

.post_content .fn-co h2.wp-block-heading::before,
.post_content .fn-co h2.wp-block-heading::after,
.post_content .fn-co h3.wp-block-heading::before,
.post_content .fn-co h3.wp-block-heading::after {
	content: none;
	display: none;
}

.post_content .fn-co h2.fn-co-ttl {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.15em;
	margin-bottom: 14px;
}

.post_content .fn-co h2.fn-co-ttl::before {
	content: "";
	display: block;
	position: static;
	width: 4px;
	height: 1.1em;
	border-radius: 2px;
	background: var(--fn-co-ink);
}

.post_content .fn-co h2.fn-co-ttl--out {
	margin: 28px 0 0;
}

/* ---------- 白いカード ---------- */
.fn-co-card,
.fn-co-box,
.fn-co-tile {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.fn-co-box {
	padding: 22px 24px;
}

/* ---------- 名刺カード ---------- */
.fn-co-card {
	padding: 24px;
}

.fn-co-card__cols.wp-block-columns {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	flex-wrap: nowrap;
}

/* コアの .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column より強くする */
.fn-co-card__cols.wp-block-columns > .fn-co-card__logo.wp-block-column {
	flex: 0 0 200px;
}

.fn-co-card__cols.wp-block-columns > .fn-co-card__body.wp-block-column {
	flex: 1 1 auto;
	min-width: 0;
}

.post_content .fn-co-logo {
	margin: 0;
}

.fn-co-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.post_content .fn-co-card__label {
	display: inline-block;
	font-size: .75em;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--fn-co-sub);
	border: 1px solid var(--fn-co-line);
	border-radius: 999px;
	padding: 2px 10px;
	margin: 0 0 8px;
}

.post_content .fn-co h2.fn-co-card__name {
	font-size: 1.45em;
	line-height: 1.35;
	margin: 0 0 6px;
}

.post_content .fn-co-card__meta {
	color: var(--fn-co-sub);
	font-size: .9em;
	margin: 0 0 14px;
}

/* ---------- ボタン ---------- */
.fn-co .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.fn-co .fn-co-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	color: var(--fn-co-ink);
	border: 1px solid var(--fn-co-ink);
	border-radius: 999px;
	font-size: .88em;
	font-weight: 700;
	padding: 8px 18px;
	text-decoration: none;
	transition: background .2s, color .2s;
}

.fn-co .fn-co-btn .wp-block-button__link:hover {
	background: var(--fn-co-ink);
	color: #fff;
}

/* 外部リンクの矢印 */
.fn-co .fn-co-btn .wp-block-button__link[target="_blank"]::after {
	content: "";
	width: .9em;
	height: .9em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6'/%3E%3Cpath d='M11 13l9-9'/%3E%3Cpath d='M15 4h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6'/%3E%3Cpath d='M11 13l9-9'/%3E%3Cpath d='M15 4h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fn-co .fn-co-btn--primary .wp-block-button__link {
	background: var(--fn-co-ink);
	color: #fff;
	font-size: 1em;
	padding: 14px 32px;
}

.fn-co .fn-co-btn--primary .wp-block-button__link:hover {
	opacity: .85;
	background: var(--fn-co-ink);
}

/* ---------- フドナビについて：分野のチップ ---------- */
.fn-co-about p {
	margin: 0 0 14px;
	line-height: 1.85;
}

.post_content ul.fn-co-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.post_content ul.fn-co-chips > li {
	margin: 0;
	padding: 0;
}

.post_content ul.fn-co-chips > li::before,
.post_content ul.fn-co-chips > li::marker {
	content: none;
}

.fn-co-chips a {
	display: inline-block;
	background: var(--fn-co-bg);
	color: var(--fn-co-ink);
	border-radius: 999px;
	font-size: .85em;
	font-weight: 700;
	padding: 6px 14px;
	text-decoration: none;
	transition: background .2s, color .2s;
}

.fn-co-chips a:hover {
	background: var(--fn-co-ink);
	color: #fff;
}

/* ---------- 事業内容のタイル ---------- */
.fn-co-tiles.wp-block-columns {
	display: flex;
	gap: 16px;
	margin: 14px 0 0;
	align-items: stretch;
}

.fn-co-tiles.wp-block-columns > .fn-co-tile.wp-block-column {
	padding: 22px 20px;
	flex: 1 1 0;
	min-width: 0;
}

.fn-co-tile::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	margin-bottom: 14px;
	background-color: var(--fn-co-bg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 24px 24px;
}

.fn-co-tile--seo::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2b2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M21 21l-6-6'/%3E%3Cpath d='M7 10h6M10 7v6'/%3E%3C/svg%3E");
}

.fn-co-tile--web::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2b2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='1.5'/%3E%3Cpath d='M7 20h10M9 16v4M15 16v4'/%3E%3Cpath d='M8 11l2.5-2.5 2 2L16 7'/%3E%3C/svg%3E");
}

.fn-co-tile--media::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2b2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 6h3a1 1 0 0 1 1 1v11a2 2 0 0 1-4 0V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v12a3 3 0 0 0 3 3h11'/%3E%3Cpath d='M8 8h4M8 12h4M8 16h4'/%3E%3C/svg%3E");
}

.post_content .fn-co h3.fn-co-tile__ttl {
	font-size: 1.02em;
	line-height: 1.45;
	margin: 0 0 8px;
}

.post_content .fn-co-tile__txt {
	color: #555;
	font-size: .88em;
	line-height: 1.75;
	margin: 0 0 12px;
}

.post_content ul.fn-co-tile__list {
	list-style: none;
	padding: 12px 0 0;
	margin: 0;
	border-top: 1px solid var(--fn-co-line);
}

.post_content ul.fn-co-tile__list > li {
	font-size: .86em;
	line-height: 1.6;
	margin: 0 0 6px;
	padding-left: 1.3em;
}

.post_content ul.fn-co-tile__list > li::before {
	content: "";
	position: absolute;
	left: .2em;
	top: .55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--fn-co-ink);
}

/* ---------- 会社概要の表 ---------- */
.post_content .fn-co-table {
	margin: 0;
}

.post_content .fn-co-table table {
	border-top: 1px solid var(--fn-co-line);
}

.post_content .fn-co-table td {
	border: 0;
	border-bottom: 1px solid var(--fn-co-line);
	padding: 14px 8px;
	font-size: .92em;
	line-height: 1.75;
	vertical-align: top;
}

.post_content .fn-co-table td:first-child {
	width: 26%;
	color: var(--fn-co-sub);
	font-weight: 700;
	white-space: nowrap;
}

/* ---------- お問い合わせ ---------- */
.fn-co-cta {
	background: #fff;
	border: 1px solid var(--fn-co-line);
	border-radius: 12px;
	padding: 24px;
	text-align: center;
}

.post_content .fn-co-cta__txt {
	font-weight: 700;
	margin: 0 0 14px;
}

.fn-co .fn-co-cta__btns {
	justify-content: center;
}

/* ---------- スマホ ----------
 * style.css の 900px 以下に `.post_content .wp-block-group{padding:0}` と
 * `.post_content ul.wp-block-list{padding:… !important}` があるため、
 * このページのグループとリストは .post_content を付けて同じ強さ以上で戻す */
@media (max-width: 900px) {
	.post_content .fn-co.wp-block-group {
		margin: 0;
		padding: 14px;
		border-radius: 12px;
	}

	.post_content .fn-co-card.wp-block-group {
		margin: 0;
		padding: 20px 18px;
	}

	.post_content .fn-co-box.wp-block-group {
		margin: 16px 0 0;
		padding: 18px 16px;
	}

	.post_content .fn-co-cta.wp-block-group {
		margin: 16px 0 0;
		padding: 20px 16px;
	}

	.post_content ul.fn-co-chips.wp-block-list {
		padding: 0 !important;
	}

	.post_content ul.fn-co-tile__list.wp-block-list {
		padding: 12px 0 0 !important;
	}
}

@media (max-width: 781px) {

	.fn-co-card__cols.wp-block-columns {
		flex-wrap: wrap;
		gap: 14px;
	}

	.fn-co-card__cols.wp-block-columns > .fn-co-card__logo.wp-block-column {
		flex: 0 0 140px;
		flex-basis: 140px !important;
	}

	.fn-co-card__cols.wp-block-columns > .fn-co-card__body.wp-block-column {
		flex-basis: 100% !important;
	}

	.post_content .fn-co h2.fn-co-card__name {
		font-size: 1.25em;
	}

	/* 「従業員 10名」が数字と単位の間で折り返さないよう、1行に収める */
	.post_content .fn-co-card__meta {
		font-size: .8em;
		letter-spacing: 0;
	}

	.fn-co-tiles.wp-block-columns {
		flex-direction: column;
		gap: 12px;
	}

	.fn-co-tiles.wp-block-columns > .fn-co-tile.wp-block-column {
		flex-basis: auto !important;
	}

	.post_content .fn-co-table td {
		display: block;
		width: auto;
		padding: 0 4px 12px;
		border-bottom: 1px solid var(--fn-co-line);
	}

	.post_content .fn-co-table td:first-child {
		width: auto;
		padding: 12px 4px 2px;
		border-bottom: 0;
		font-size: .8em;
	}

	.fn-co .fn-co-btn--primary .wp-block-button__link {
		padding: 12px 20px;
	}
}
