/**
 * TOP：設計・コンサル向けページ（/guide/）への導線（2026-11-07 作成）
 *
 * 設置先: wp-content/themes/lightning-child-sample/assets/css/top-guide-link.css
 * 読み込み: inc/top-guide-link.php（2026-11-16 から全ページ。ヘッダーと追従バナーが全ページに出るため）
 * 全セレクタを .tsgl（導線ブロック）・.my-site-header-contact-photo（ヘッダーの写真検索ボタン）・.tsg-fbnr-photo（追従バナーの写真検索）の配下に閉じている。
 * 色: 写真検索サイトの水色 #17A2B8（文字に使うときは読みやすさのため濃い #0E7686）
 */

/* -------------------------------------------------------------------------
   ヘッダー右上：製品/設置写真検索ボタン（PCのみ。991px以下とスクロール時は既存CSSでヘッダーごと非表示）
   ------------------------------------------------------------------------- */
.my-site-header-contact-photo {
	display: flex;
	align-items: flex-start;
}
.my-site-header-contact-photo__btn,
.my-site-header-contact-photo__btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 9px 22px;
	border-radius: 4px;
	background: #17A2B8;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.4;
	text-decoration: none;
	transition: filter .2s;
}
.my-site-header-contact-photo__btn:hover,
.my-site-header-contact-photo__btn:focus {
	color: #fff;
	filter: brightness(1.1);
	text-decoration: none;
}
/* 1024〜1279px はヘッダー右上の幅が足りず、このボタン・電話番号・お問い合わせが2行に折れる（2026-11-16 本番反映後に実測）。
   左右の余白と文字を詰めて1行に収める */
@media (max-width: 1279.98px) {
	.my-site-header-contact-photo__btn,
	.my-site-header-contact-photo__btn:visited {
		padding: 10px 12px;
		font-size: 13px;
		letter-spacing: 0;
		white-space: nowrap;
	}
}

/* -------------------------------------------------------------------------
   導線ブロック
   ------------------------------------------------------------------------- */
.tsgl {
	background: #EAF6F8;
	padding: 60px 0;
}
.tsgl .tsgl__inner {
	max-width: 1110px;
	margin: 0 auto;
	padding: 0;
}
.tsgl :where(h2, p, ul, li) {
	margin: 0;
	padding: 0;
}
/* テーマの見出し下余白・段落下余白と、WPのブロック間余白（24px）がブロックの中に効くので打ち消し、
   余白はこのファイルで指定した値だけにする */
.tsgl .tsgl__inner > *,
.tsgl .tsgl__cols > .wp-block-column > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.tsgl .tsgl__inner > .tsgl__sub {
	margin-top: 8px !important;
}
.tsgl .tsgl__inner > .tsgl__cols {
	margin-top: 28px !important;
}
.tsgl .tsgl__cols > .wp-block-column > .tsgl__cap {
	margin-top: 10px !important;
}

/* 見出し（NEW は CSS で付けている。外すときはこの ::before を消す） */
.tsgl .tsgl__title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 0; /* 横の間隔は NEW の右余白で取る（「設計サポート」と括弧の間を空けないため） */
	border: 0;
	background: none;
	box-shadow: none;
	outline: 0;
	color: #0E7686;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .02em;
	text-align: left;
}
.tsgl .tsgl__title::before {
	content: "NEW";
	position: static;
	display: inline-block;
	flex: 0 0 auto;
	width: auto;
	height: auto;
	margin: 0 14px 0 0;
	padding: 3px 10px;
	border: 0;
	border-radius: 3px;
	background: #E60033;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .04em;
}
.tsgl .tsgl__title::after {
	content: none;
	display: none;
}
/* 見出しの括弧書き「（橋梁排水の設計・検討をサポート）」。入りきらない幅では括弧の前で改行する */
.tsgl .tsgl__title-note {
	font-size: .75em;
}
.tsgl .tsgl__sub {
	color: #333;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
}

/* 2カラム（左: 3D ／ 右: 探し方＋ボタン） */
.tsgl .tsgl__cols {
	display: flex;
	flex-wrap: nowrap;
	gap: 40px;
	margin: 28px 0 0;
}
.tsgl .tsgl__cols > .wp-block-column {
	margin: 0;
}
.tsgl .tsgl__cols > .wp-block-column:first-child {
	flex: 0 0 45%;
	min-width: 0;
}
.tsgl .tsgl__cols > .wp-block-column:last-child {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* 3Dモデル（写真検索サイトと同じビューア）。サイト共通CSSの上下余白を、このブロックの中だけ0にする。
   ビューアのスクリプトが data-canvas-width（400）から幅を固定するので、枠いっぱいに広げる（ResizeObserver で描き直される） */
.tsgl .tsgl__3d {
	position: relative;
	border: 4px solid #17A2B8;
	background: #fff;
}
/* 3Dの上に重ねるチップ（左上）とヒント（右下）。ドラッグ操作を邪魔しないよう pointer-events: none */
.tsgl .tsgl__3d-chip,
.tsgl .tsgl__3d-hint {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 3px;
	color: #fff;
	line-height: 1.4;
	white-space: nowrap;
	pointer-events: none;
}
.tsgl .tsgl__3d-chip {
	top: 12px;
	left: 12px;
	padding: 5px 12px;
	background: #17A2B8;
	font-size: 13px;
	font-weight: 700;
}
.tsgl .tsgl__3d-hint {
	right: 12px;
	bottom: 12px;
	padding: 4px 10px;
	background: rgba(0, 0, 0, .55);
	font-family: "Noto Sans JP", sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
}
.tsgl .tsgl__3d-chip::before,
.tsgl .tsgl__3d-hint::before {
	font-family: "Font Awesome 7 Free";
	font-weight: 900;
	line-height: 1;
}
.tsgl .tsgl__3d-chip::before {
	content: "\f1b2"; /* cube */
	font-size: 13px;
}
.tsgl .tsgl__3d-hint::before {
	content: "\f2f1"; /* rotate */
	font-size: 11px;
}
.tsgl .tsgl__3d .tospa-three-viewer {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}
.tsgl .tsgl__3d .tospa-three-canvas {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3 !important;
	border-radius: 0;
}
/* キャプションはラフと同じ Noto Sans JP Regular（テーマが Google Fonts で 400/700 を読み込み済み）。
   サイト標準のメイリオだと同じ 400 でも太く見えるため */
.tsgl .tsgl__cap {
	margin-top: 10px;
	color: #555;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.7;
}

/* 右カラム */
.tsgl .tsgl__lead {
	color: #333;
	font-size: 15px;
	line-height: 1.8;
}
.tsgl .tsgl__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none;
}
.tsgl .tsgl__list > li {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}
.tsgl .tsgl__list > li::before,
.tsgl .tsgl__list > li::marker {
	content: none;
	display: none;
}
.tsgl .tsgl__list a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 40px 10px 64px;
	min-height: 56px;
	border: 1px solid #C9E8ED;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	transition: border-color .2s, box-shadow .2s;
}
.tsgl .tsgl__list a:hover,
.tsgl .tsgl__list a:focus {
	border-color: #17A2B8;
	box-shadow: 0 2px 8px rgba(23, 162, 184, .18);
	color: #333;
	text-decoration: none;
}
.tsgl .tsgl__list a strong {
	flex: 0 0 auto; /* 項目名が長いとき番号が「0／1」に折れないように */
	color: #0E7686;
	font-size: 13px;
	font-weight: 700;
}
/* アイコン（丸）と右矢印。アイコンは並び順で決まる（01 事例／02 写真／03 図面・CAD／04 相談） */
.tsgl .tsgl__list a::before {
	content: var(--tsgl-icon, "\f46d");
	position: absolute;
	top: 50%;
	left: 14px;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	border-radius: 50%;
	background: #E2F4F7;
	color: #17A2B8;
	font-family: "Font Awesome 7 Free";
	font-size: 15px;
	font-weight: 900;
	line-height: 36px;
	text-align: center;
}
.tsgl .tsgl__list a::after {
	content: "\f054";
	position: absolute;
	top: 50%;
	right: 16px;
	margin-top: -.5em;
	color: #17A2B8;
	font-family: "Font Awesome 7 Free";
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
}
.tsgl .tsgl__list > li:nth-child(1) a { --tsgl-icon: "\f46d"; }
.tsgl .tsgl__list > li:nth-child(2) a { --tsgl-icon: "\f302"; }
.tsgl .tsgl__list > li:nth-child(3) a { --tsgl-icon: "\f56d"; }
.tsgl .tsgl__list > li:nth-child(4) a { --tsgl-icon: "\f086"; }

/* ボタン */
.tsgl .tsgl__btns {
	margin: 0;
}
.tsgl .tsgl__btns .wp-block-button {
	width: 100%;
	margin: 0;
}
.tsgl .tsgl__btns .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 60px;
	padding: 12px 20px;
	border: 0;
	border-radius: 4px;
	background: #17A2B8;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: filter .2s;
}
.tsgl .tsgl__btns .wp-block-button__link::after {
	content: "\f054";
	font-family: "Font Awesome 7 Free";
	font-size: 14px;
	font-weight: 900;
}
.tsgl .tsgl__btns .wp-block-button__link:hover,
.tsgl .tsgl__btns .wp-block-button__link:focus {
	color: #fff;
	filter: brightness(1.1);
}

/* -------------------------------------------------------------------------
   タブレット・スマホ（991px以下は1カラム: 見出し → 3D → 探し方 → ボタン）
   ------------------------------------------------------------------------- */
@media (max-width: 1140px) {
	.tsgl {
		padding-left: 15px;
		padding-right: 15px;
	}
}
@media (max-width: 991px) {
	.tsgl {
		padding-top: 48px;
		padding-bottom: 48px;
	}
	.tsgl .tsgl__title {
		font-size: 24px;
	}
	.tsgl .tsgl__sub {
		font-size: 16px;
	}
	.tsgl .tsgl__cols {
		flex-direction: column;
		gap: 24px;
	}
	.tsgl .tsgl__inner > .tsgl__cols {
		margin-top: 20px !important;
	}
	.tsgl .tsgl__cols > .wp-block-column:first-child,
	.tsgl .tsgl__cols > .wp-block-column:last-child {
		flex: 1 1 auto;
		width: 100%;
	}
}
@media (max-width: 575px) {
	.tsgl .tsgl__title {
		font-size: 21px;
	}
	.tsgl .tsgl__title-note {
		font-size: 16px;
	}
	.tsgl .tsgl__list a {
		font-size: 14px;
		padding-left: 60px;
	}
}

/* -------------------------------------------------------------------------
   右下の追従バナー（PCのみ）に足した「製品・設置写真検索」（2026-11-09 先方案）
   バナー本体（ウィジェット）の幅 290px・既存ボタン幅 214px に合わせ、高さを増やしすぎない
   色はヘッダーの写真検索ボタンと同じ水色、アイコンは虫眼鏡
   ------------------------------------------------------------------------- */
.pc-floating-bnr .tsg-fbnr-photo {
	width: 270px;
	margin: 10px auto 0;
	padding-top: 10px;
	border-top: 1px solid #DDD;
	text-align: center;
}
/* サイト共通の段落の下余白（24px）が勝つので !important。1行に収める（12px×21字＋前後の記号で約260px） */
.pc-floating-bnr .tsg-fbnr-photo .tsg-fbnr-photo__lead {
	margin: 0 0 6px !important;
	padding: 0;
	color: #333;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
	white-space: nowrap;
}
.pc-floating-bnr .tsg-fbnr-photo__lead::before {
	content: "＼";
	margin-right: .3em;
}
.pc-floating-bnr .tsg-fbnr-photo__lead::after {
	content: "／";
	margin-left: .3em;
}
.pc-floating-bnr .tsg-fbnr-photo__btn,
.pc-floating-bnr .tsg-fbnr-photo__btn:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	width: 214px;
	height: 40px;
	margin: 0 auto;
	border-radius: 4px;
	background: #17A2B8;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.2;
	text-decoration: none;
	transition: filter .2s;
}
.pc-floating-bnr .tsg-fbnr-photo__btn::after {
	content: "\f054";
	margin-left: 4px;
	font-family: "Font Awesome 7 Free";
	font-size: 11px;
	font-weight: 900;
}
.pc-floating-bnr .tsg-fbnr-photo__btn:hover,
.pc-floating-bnr .tsg-fbnr-photo__btn:focus {
	color: #fff;
	filter: brightness(1.1);
	text-decoration: none;
}
