@charset "utf-8";
/* =========================================================
   空き倉庫情報 一覧／詳細 追加スタイル（新機能専用）
   ※メインCSS(styles.min.css)とは別ファイルで完結
   ========================================================= */

/* --- おすすめ空き倉庫情報 見出し ------------------------- */
.warehouses_recommend { margin-bottom: 48px; }

/* --- カードグリッド ------------------------------------- */
.warehouse_cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.warehouse_cards--recommend {
	grid-template-columns: repeat(2, 1fr);
}
/* 旧一覧デザインの li 個別スタイル（区切り線・上下padding・1店舗目だけの差）を打ち消し、全カードを同サイズに揃える */
.warehouses_list .warehouse_cards li,
.warehouses_list .warehouse_cards li:first-child { border-top: 0; padding: 0; }

/* --- パンくず下：余白詰め（このページのみ。共通の margin-bottom:80px を上書き）。リード文の上を50pxに --- */
#breadcrumb:has(~ .warehouses_intro) { margin-bottom: 50px; }

/* --- パンくず下：リード文（上下50px） ------------------ */
.warehouses_intro .warehouse_lead { font-size: 15px; line-height: 1.9; margin: 0 0 50px; }
/* おすすめ空き倉庫情報セクションの上を50pxに（共通の .content+.content 120px を上書き） */
.content + .warehouses_recommend.margin_inherit { margin-top: 50px; }
/* ボタンはテーマ既存の .button_typeB を使用（お問い合わせページと同一デザイン）。横幅いっぱい＋テキスト中央 */
.warehouses_intro .buttons_center { display: block; }
.warehouses_intro .button_typeB { display: block; width: 100%; }

/* --- カード本体（枠全体がリンク） ----------------------- */
.warehouse_card_item { display: flex; }
.warehouse_card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border: 2px solid #0e4595;
	border-radius: 10px;
	padding: 20px;
	text-decoration: none;
	color: #000;
	transition: box-shadow .2s ease, border-color .2s ease;
}
.warehouse_card:hover {
	/* BOX自体は動かさず、影を強めに＋青い枠線をハイライト */
	border-color: #1a6cf0;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .28), 0 0 0 3px rgba(26, 108, 240, .3);
}

/* --- カード上部（坪数バッジ＋TEL box） ------------------ */
.warehouse_card_head {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: 10px;
	margin-bottom: 14px;
}
.warehouse_card_space {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f94c4c;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
	padding: 8px 16px;
	border-radius: 999px;
	white-space: nowrap;
}
.warehouse_card_tel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	background: #000;
	color: #fff;
	padding: 6px 14px;
	text-align: center;
	white-space: nowrap;
}
.warehouse_card_tel .dest { font-size: 11px; line-height: 1.2; }
.warehouse_card_tel .num { font-size: 16px; font-weight: 700; line-height: 1.2; }
.warehouse_card_tel .num i { margin-right: 4px; }

/* --- テキスト ------------------------------------------- */
.warehouse_card_name { font-size: 21px; font-weight: 700; line-height: 1.4; margin: 0 0 4px; }
.warehouse_card_belong { font-size: 13px; color: #333; margin: 0 0 10px; }
.warehouse_card_address { font-size: 14px; line-height: 1.6; margin: 0 0 14px; }

/* --- サムネイル写真（1枚目） ---------------------------- */
.warehouse_card_thumb {
	margin-top: auto;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f2f2f2;
}
.warehouse_card_thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* =========================================================
   エリアカード（--area）：縦積みレイアウト
   バッジ → 倉庫名 → 支店名 → 住所 → TEL(全幅) → 画像
   ========================================================= */
.warehouse_card--area .warehouse_card_space {
	width: 100%;
	height: 36px;
	padding: 0 14px;
	margin-bottom: 12px;
	font-size: 16px;
}
.warehouse_card--area .warehouse_card_name { font-size: 16px; margin: 0 0 4px; }
.warehouse_card--area .warehouse_card_belong { font-size: 11px; margin: 0 0 8px; }
.warehouse_card--area .warehouse_card_address { font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.warehouse_card--area .warehouse_card_tel {
	width: 100%;
	min-height: 45px;
	justify-content: center;
	margin-bottom: 14px;
}
.warehouse_card--area .warehouse_card_tel .dest { font-size: 10px; }
.warehouse_card--area .warehouse_card_thumb { margin-top: 0; }

/* --- レスポンシブ --------------------------------------- */
@media screen and (max-width: 900px) {
	.warehouse_cards,
	.warehouse_cards--recommend { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media screen and (max-width: 600px) {
	.warehouse_cards,
	.warehouse_cards--recommend { grid-template-columns: 1fr; }

	/* スマホ：エリアカードは「左にテキスト・右に画像、下にTEL」の横並び（おすすめは対象外） */
	.warehouse_card--area {
		display: grid;
		grid-template-columns: 1fr 42%;
		grid-template-areas:
			"space   thumb"
			"name    thumb"
			"belong  thumb"
			"address thumb"
			"tel     tel";
		column-gap: 14px;
		align-items: start;
	}
	.warehouse_card--area .warehouse_card_space {
		grid-area: space;
		width: auto;
		justify-self: start;
		height: 27px;
		font-size: 15px;
		margin: 0 0 8px;
	}
	.warehouse_card--area .warehouse_card_name { grid-area: name; font-size: 18px; margin: 0 0 4px; }
	.warehouse_card--area .warehouse_card_belong { grid-area: belong; margin: 0 0 6px; }
	.warehouse_card--area .warehouse_card_address { grid-area: address; margin: 0; }
	.warehouse_card--area .warehouse_card_thumb {
		grid-area: thumb;
		align-self: stretch;
		margin: 0;
		height: 100%;
		aspect-ratio: auto;
	}
	.warehouse_card--area .warehouse_card_tel {
		grid-area: tel;
		width: auto;
		max-width: 220px;
		justify-self: start;
		margin: 12px 0 0;
	}
}

/* =========================================================
   詳細ページ：ヘッダー情報部（倉庫名・空き坪数・キャッチ・TEL・メール）
   ========================================================= */
.warehouse_detail_block { margin-top: 40px; }

/* 倉庫名（単独・右は空ける） */
.warehouse_detail_title { font-size: 36px; font-weight: 700; line-height: 1.4; margin: 0; }
.warehouse_detail_title .belong { font-size: 16px; font-weight: 700; margin-left: 8px; }
/* 名前の下：左（空き坪数＋キャッチ）／右（TEL＋メール）をトップ揃えで横並び */
.warehouse_detail_row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 20px;
}
.warehouse_detail_left { flex: 1 1 auto; min-width: 0; }

.warehouse_detail_contact {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	flex: 0 0 auto;
}
/* TEL黒box（SPはタップ発信／PCは非クリック表示） */
.warehouse_detail_tel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	background: #000;
	color: #fff;
	padding: 8px 18px;
	text-decoration: none;
	white-space: nowrap;
	pointer-events: none;
}
.warehouse_detail_tel .dest { font-size: 11px; }
.warehouse_detail_tel .num { font-size: 18px; font-weight: 700; }
.warehouse_detail_tel .num i { margin-right: 6px; }
/* メールボタン（テーマの button_typeB をそのまま流用。一覧ページの「ご相談」ボタンと同じ見た目に） */
.warehouse_detail_mail { width: 100%; }
.warehouse_detail_mail span i { margin-right: 8px; }

/* 空き坪数（明快に大きく） */
.warehouse_detail_space {
	display: inline-block;
	background: #f94c4c;
	color: #fff;
	font-weight: 900;
	font-size: 32px;
	line-height: 1.3;
	padding: 8px 30px;
	border-radius: 20px;
	margin: 0;
}
/* キャッチコピー */
.warehouse_detail_catch { font-size: 20px; font-weight: 500; line-height: 1.5; margin: 20px 0 0; }

@media screen and (max-width: 600px) {
	.warehouse_detail_head_top { gap: 16px; }
	.warehouse_detail_title { font-size: 22px; }
	.warehouse_detail_contact { width: 100%; }
	.warehouse_detail_tel { pointer-events: auto; flex: 1; }
	.warehouse_detail_space { font-size: 18px; padding: 6px 18px; }
}

/* YouTube：横幅いっぱい（16:9。PCの600px固定を上書き） */
.warehouse_detail_block .button_typeF.large { width: 100%; height: 0; padding-top: 56.25%; }

/* =========================================================
   詳細ページ：写真ギャラリー（メイン＋サムネ左右スクロール＋クリック拡大）
   ========================================================= */
.warehouse_gallery { position: relative; }

/* メイン写真（大きく表示） */
.warehouse_gallery_main { border-radius: 8px; overflow: hidden; background: #f2f2f2; }
.warehouse_gallery_main .swiper-slide { aspect-ratio: 16 / 10; }
.warehouse_gallery_main .swiper-zoom-container { width: 100%; height: 100%; }
.warehouse_gallery_main .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.warehouse_gallery_main .swiper-button-next,
.warehouse_gallery_main .swiper-button-prev {
	color: #fff;
	width: 40px;
	height: 40px;
	background: rgba(14, 69, 149, .65);
	border-radius: 50%;
}
.warehouse_gallery_main .swiper-button-next::after,
.warehouse_gallery_main .swiper-button-prev::after { font-size: 16px; font-weight: 900; }

/* サムネイル列（左右スクロール＋矢印） */
.warehouse_gallery_thumbs_wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}
.warehouse_gallery_thumbs { flex: 1; overflow: hidden; }
.warehouse_gallery_thumbs .swiper-slide {
	width: 96px;
	aspect-ratio: 16 / 10;
	opacity: .5;
	cursor: pointer;
	border-radius: 4px;
	overflow: hidden;
	transition: opacity .2s ease;
}
.warehouse_gallery_thumbs .swiper-slide-thumb-active { opacity: 1; outline: 2px solid #0e4595; outline-offset: -2px; }
.warehouse_gallery_thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.warehouse_gallery_thumbs_prev,
.warehouse_gallery_thumbs_next {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: #0e4595;
	color: #fff;
	cursor: pointer;
	font-size: 12px;
	line-height: 1;
}
.warehouse_gallery_thumbs_prev:disabled,
.warehouse_gallery_thumbs_next:disabled { opacity: .3; cursor: default; }

/* =========================================================
   詳細ページ：Googleマップ
   SP時(700px以下)、埋め込みiframeが固定幅で右にはみ出すのを防ぎ、
   コンテナ幅いっぱい＝他ブロックと同じ左右余白に収め、中央寄せする
   ========================================================= */
@media screen and (max-width: 700px) {
	.warehouse_detail_block .src_googlemaps .source {
		position: relative;
		width: 100%;
		margin-left: auto;
		margin-right: auto;
		padding-top: 75%; /* 4:3 のレスポンシブ枠 */
	}
	.warehouse_detail_block .src_googlemaps .source iframe {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		height: 100%;
		margin: 0 auto;
		border: 0;
	}
}
