/*
Theme Name: SELECT.ARCHIVE
Theme URI: https://select-archive.rys-corp.com/
Template: twentytwentyfive
Author: 合同会社R.Y.S
Description: SELECT.ARCHIVE / ヴァンガード本店 共通の子テーマ。ヘッダー・フッター・トップページを店（EC）の形にします。中身の機能はプラグイン「SELECT.ARCHIVE 拡張」が受け持ちます。
Version: 1.2.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: select-archive-child
*/

/* ヘッダー：サイト名／検索窓／アイコン の3つを1行に置き、高さをそろえる（D-205）
   3つとも同じ高さ（48px）の箱にして、上下の中央でそろえる。 */
.saex-header{
	display:flex;
	align-items:center;
	gap:24px;
	min-height:48px;
}
.saex-header__brand,
.saex-header__search,
.saex-header__icons{
	display:flex;
	align-items:center;
	min-height:48px;
}
/* WordPress は「並び順＝流し込み」のグループの2つ目以降に、上の余白（block gap）を
   自動で足す。これが入ると中央そろえが崩れるため、ヘッダーの中だけ打ち消す（2026-09-13 実測） */
.saex-header > *{margin-top:0 !important;margin-block-start:0 !important;}
.saex-header__brand{flex:0 0 auto;}
.saex-header__brand .wp-block-site-title{margin:0;line-height:1.2;}
.saex-header__brand .wp-block-site-title a{text-decoration:none;}
.saex-header__search{flex:1 1 auto;min-width:0;justify-content:center;}
.saex-header__icons{flex:0 0 auto;justify-content:flex-end;}

/* 検索窓を出さないページでは、真ん中の箱が空になる。幅だけ残して高さは崩さない。 */
.saex-header__search:empty{min-height:0;}

/* 画面が狭いときは、検索窓を2段目へ回す */
@media (max-width:781px){
	.saex-header{flex-wrap:wrap;gap:12px 16px;}
	.saex-header__brand{flex:1 1 auto;}
	.saex-header__icons{order:2;}
	.saex-header__search{order:3;flex:1 0 100%;}
}

/* フッター：テーマ側には何も出さない（D-205）。
   法令のリンク帯と著作権表示は、自作プラグインがページの最後に出す。 */
