/*
Theme Name: Infratec
Description: インフラテック株式会社 コーポレートサイト（旧 Joomla テンプレート infratec20161129 のデザインを引き継いだテーマ）
Version: 1.0.4
Requires at least: 7.0
Requires PHP: 8.3
Text Domain: infratec
*/

/* 旧テンプレートの CSS（assets/css）に足りない分だけをここに書く */

/* SEBLOD の画像ポップアップ（jcepopup）の代わり */
.infratec-lightbox {
	position: fixed; inset: 0; z-index: 2000;
	display: flex; align-items: center; justify-content: center; flex-direction: column;
	background: rgba(0, 0, 0, .8); cursor: zoom-out;
}
.infratec-lightbox img { max-width: 92vw; max-height: 84vh; background: #fff; }
.infratec-lightbox p { margin: 10px 0 0; color: #fff; text-align: center; }

/* 投稿一覧（旧 Joomla のカテゴリ一覧の見た目に合わせる） */
.infratec-list { list-style: none; margin: 0 0 30px; padding: 0; }
.infratec-list li { padding: 10px 0; border-bottom: 1px dotted #ccc; }
.infratec-list .date-string { display: inline-block; min-width: 7em; color: #666; }
.infratec-pagination { margin: 20px 0 40px; text-align: center; }
.infratec-pagination .page-numbers { display: inline-block; padding: 4px 10px; margin: 0 2px; border: 1px solid #ddd; }
.infratec-pagination .current { background: #337ab7; border-color: #337ab7; color: #fff; }

/* 総合カタログ検索 */
/* 地区のボタン（旧サイトでは SEBLOD の CSS が横並びにしていた） */
#cat-catalog fieldset.radios { padding: 4px 0; }
#cat-catalog fieldset.radios label { display: inline-block; margin: 0; line-height: 1.4; cursor: pointer; }
.catalog-result td, .catalog-result th { vertical-align: middle !important; }

/* サイト内検索の結果（旧 CSS の dt.result-title は旧サイトの2列表示用なので打ち消す） */
#cat-search dl.search-results { margin: 0 0 30px; border-top: 1px dotted #ccc; }
#cat-search dl.search-results dt.result-title { float: none; width: auto; white-space: normal; padding: 15px 0 5px; font-size: 16px; }
#cat-search dl.search-results dd.result-text { margin: 0; padding: 0 0 15px; border-bottom: 1px dotted #ccc; color: #555; line-height: 1.7; }

/* 事業所案内の上のボタン（btn-group でくっついているのを 6px 離し、角もそれぞれ丸める） */
#content-top .btn-group > .btn { border-radius: 4px; margin-right: 6px; }
#content-top .btn-group > .btn + .btn { margin-left: 0; }
#content-top .btn-group { margin-bottom: 40px; }

/* 事業所の地図 */
.office-map iframe { width: 100%; height: 360px; border: 0; }

/* 管理バー表示時に固定ヘッダーが重ならないようにする */
body.admin-bar #header { top: 32px; }
