/**
 * 会員詳細（Phase 8-F）スタイル — モック detail-mock.html 準拠
 *
 * 配色：炉種 #144a6c／製品大分類 #4b5563／賛助識別 #2f6b4f
 *
 * @package Jifma_v3
 */

.single-member {
	--sm-muted: #9ca3af;
	font-feature-settings: "palt";
	color: #1f2937;
	/* 会員詳細は .second 枠ではなく上余白が付かないため、検索ページ（.archive-member）と
	   同様にコンテナ自身へ上余白を与える。margin だと先頭の .sm-toolbar から相殺されて
	   ナビにめり込むため、相殺しない padding で確保する。 */
	padding-top: 10px;
}

/* ツールバー */
.sm-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 4px 0 14px;
}
.sm-back { font-size: 13px; color: #6b7280; text-decoration: none; }
.sm-back:hover { text-decoration: underline; }
.sm-edit {
	font-size: 13px;
	background: #6b7280;
	color: #fff;
	padding: 6px 16px;
	border-radius: 5px;
	text-decoration: none;
}
.sm-edit:hover { background: #4b5563; }

/* カード */
.sm-card {
	/* 背景・枠線・角丸は main.css の共通カード面に集約（影だけは詳細用に 4px を維持） */
	box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
	overflow: hidden;
}

/* ヘッダー */
.sm-header {
	position: relative;
	padding: 18px 24px;
	border-bottom: 1px solid #d4d4d4;
	display: flex;
	gap: 18px;
	align-items: flex-start;
}
.sm-logo { flex-shrink: 0; max-width: 200px; align-self: center; }
.sm-logo img { max-width: 100%; height: auto; display: block; background: #fff; border-radius: 4px; }
.sm-headmain { min-width: 0; flex: 1; }
.sm-name { font-size: 22px; font-weight: 700; letter-spacing: .04em; line-height: 1.25; margin: 0 0 4px; padding-right: 84px; }
.sm-en { font-size: 12px; color: #6b7280; letter-spacing: .04em; margin: 0 0 10px; white-space: nowrap; }
.sm-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sm-ceo { font-size: 14px; font-weight: 700; color: #374151; }
/* 会員種別バッジ：印刷版に寄せて角丸なし・少し大きめ */
.sm-badge { font-size: 14px; background: var(--jifma-cat); color: #fff; padding: 3px 12px; border-radius: 0; white-space: nowrap; }
/* 会員種別＝社名の右／炉種・賛助識別・大分類＝英字の右に右寄せ（印刷版と同様） */
.sm-name-row, .sm-en-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sm-cat { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
/* 会員種別バッジはヘッダー右上の角に固定（余白を超えて寄せる・印刷版に合わせる） */
.sm-cat--type { position: absolute; top: 0; right: 0; z-index: 2; }
.sm-cat--items { max-width: 70%; }

/* タグ（dl: 分類ラベル＋タグリスト） */
.sm-tags {
	margin: 0;
	padding: 12px 24px;
	border-bottom: 1px solid #f3f4f6;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: baseline;
}
.sm-tag-label { font-size: 11px; color: var(--sm-muted); align-self: center; }
.sm-tags dd { margin: 0; }
.sm-taglist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 5px;
}
/* .sm-tag のベース形状は main.css に共通化（.ms-tag と一元管理）。ここは色のみ。 */
.sm-tag--furnace { color: var(--jifma-furnace); }
.sm-tag--cat { color: var(--jifma-cat); }
.sm-tag--support { color: var(--jifma-support); }
/* 取り扱い製品（製品大分類）のチップ一覧 */
.sm-prodcat { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* セクション */
.sm-section { padding: 16px 24px; border-bottom: 1px solid #f3f4f6; }
.sm-section:last-child { border-bottom: 0; }
.sm-h {
	font-size: 12px;
	font-weight: 700;
	color: var(--sm-muted);
	letter-spacing: .06em;
	margin: 0 0 10px;
}

/* 本社情報 */
.sm-grid {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 4px 12px;
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
}
.sm-grid dt { color: var(--sm-muted); font-size: 13px; }
.sm-grid dd { margin: 0; color: #1f2937; word-break: break-word; }
.sm-grid a { color: #2563eb; text-decoration: none; }
.sm-grid a:hover { text-decoration: underline; }

.sm-intro { font-size: 13px; color: #4b5563; line-height: 1.9; }

/* 拠点（section > h3 + ul） */
.sm-bgroup { margin-bottom: 14px; }
.sm-bgroup:last-child { margin-bottom: 0; }
.sm-bglabel {
	font-size: 12px;
	font-weight: 700;
	color: #6b7280;
	margin: 0 0 6px;
	padding-bottom: 4px;
	border-bottom: 1px solid #f3f4f6;
}
.sm-blist { list-style: none; margin: 0; padding: 0; }
.sm-bitem {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 2px 12px;
	font-size: 13px;
	line-height: 1.7;
	padding: 5px 0;
	border-bottom: 1px dotted #f3f4f6;
}
.sm-bitem:last-child { border-bottom: 0; }
/* 名称のみ／住所のみの拠点は2カラムを解除して横いっぱい */
.sm-bitem--full { grid-template-columns: 1fr; }
.sm-bname { font-weight: 700; color: #374151; }
.sm-binfo { min-width: 0; }
.sm-baddr { color: #4b5563; margin: 0; }
.sm-bcontact { color: var(--sm-muted); font-size: 12px; margin: 0; }
/* 拠点・本社の項目別タグ（CSSで個別指定しやすく） */
.sm-bzip { margin-right: 0.5em; }
.sm-bcontact .sm-btel { margin-right: 1em; white-space: nowrap; }
.sm-bcontact .sm-bfax { white-space: nowrap; }
.sm-bcontact .sm-lbl { font-weight: 400; margin-right: 0.3em; }
.sm-hq-zip { margin-right: 0.5em; }
.sm-hq-fax::before { content: "／"; margin: 0 0.4em; color: var(--sm-muted); }

/* 製造・販売品目 */
.sm-products { font-size: 14px; color: #1f2937; line-height: 1.8; }
.sm-products .pr-hd { font-weight: 700; margin-top: 10px; }
.sm-products .pr-main { font-weight: 700; margin-top: 4px; }
.sm-products .pr-sub { padding-left: 1.5em; }
.sm-products .pr-sub2 { padding-left: 2.5em; }

/* レスポンシブ */
@media (max-width: 700px) {
	.sm-header { flex-direction: column; }
	.sm-name { padding-right: 0; } /* スマホ時は社名の右余白は不要 */
	.sm-en-row { padding-right: 0; }
	.sm-en-row .sm-cat--items { max-width: 100%; } /* スマホ時は英字行も右余白なし・全幅 */
	.sm-bitem { grid-template-columns: 1fr; }
	.sm-grid { grid-template-columns: 1fr; } /* スマホ時は本社情報も1カラムに */
	.sm-grid dt { margin-top: 8px; }
	.sm-grid dd { margin: 0 0 2px; }
	.sm-products { font-size: 13px; } /* スマホ時は品目を少し小さく */
	/* .sm-tag のスマホ縮小は main.css の共通 @media に集約 */
}
