/* =============================================================
   サイト共通ヘッダー（parts/site-header.php）
   - 全ページで functions.php 25. から読み込む。SWELL のヘッダーは非表示にして置き換える
   - デザイントークンは top.css と同じ値
   ============================================================= */

/* 数字用 Outfit 700（SIL OFL 1.1）。Google Fonts から ASCII だけに絞って自前ホスト（2026-10-10） */
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/outfit-700.woff2?v=c3c38800f2) format("woff2");
	unicode-range: U+0020-007E;
}

:root {
	--t-navy:      #0e2b4d;
	--t-navy-2:    #143a66;
	--t-blue:      #1a6fbd;
	--t-blue-deep: #0f4f8f;
	--t-cyan:      #2fa8e0;
	--t-sky:       #eef5fb;
	--t-sky-2:     #dbe9f5;
	--t-ink:       #1c2733;
	--t-muted:     #5f6f80;
	--t-line:      #d8e3ee;
	--t-white:     #ffffff;
	--t-star:      #f2b01e;
	--t-font:      "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, sans-serif;
	--t-font-num:  "Outfit", "Helvetica Neue", Arial, sans-serif;
	--t-container: 1160px;
	--t-radius:    10px;
	--t-radius-s:  6px;
	--t-header-h:  96px;
}

/* SWELL ヘッダー・旧フッターを隠し、custom.css が付けていたヘッダー分の上余白を消す */
.l-header,
.l-fixHeader,
.l-footer,
.kabi-footer,
#fix_bottom_menu {
	display: none !important;
}
body.admin-bar .l-content,
body:not(.admin-bar) .l-content {
	padding-top: 0 !important;
}
/* custom.css の body{overflow-x:hidden} は body をスクロールコンテナにして sticky を殺すので clip に置き換える */
body {
	overflow: visible !important;
	overflow-x: clip !important;
}
body.top2-drawer-open {
	overflow: hidden !important;
}

.top2-header,
.top2-header *,
.top2-drawer,
.top2-drawer * {
	box-sizing: border-box;
}
.top2-header,
.top2-drawer {
	font-family: var(--t-font);
	text-align: left;
	line-height: 1.5;
}
.top2-header a,
.top2-drawer a {
	text-decoration: none;
}
.top2-header img {
	display: block;
	max-width: 100%;
}

/* =============================================================
   ヘッダー
   ============================================================= */
.top2-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.admin-bar .top2-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .top2-header { top: 46px; } }
.top2-header.is-scrolled { border-bottom-color: var(--t-line); }
.top2-header__inner {
	max-width: var(--t-container);
	margin: 0 auto;
	padding: 0 20px;
	height: var(--t-header-h);
	display: flex;
	align-items: center;
	gap: 28px;
}
.top2-logo {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}
.top2-logo img {
	height: 78px;  /* 52px の 1.5 倍 */
	width: 266px;  /* 471×138 の比率で固定（auto だと Safari が引き伸ばす） */
	flex-shrink: 0;
	object-fit: contain;
}
.top2-logo__tag {
	font-size: 12px;
	color: var(--t-muted);
	letter-spacing: .04em;
	line-height: 1.5;
	padding-left: 8px;
	transform: translateY(6px);
}
.top2-nav {
	display: flex;
	gap: 22px;
	margin-left: auto;
	font-size: 13.5px;
	font-weight: 500;
	white-space: nowrap;
}
@media (max-width: 1279px) {
	.top2-logo__tag { display: none; }
}
.top2-nav a {
	position: relative;
	padding: 4px 0;
	color: var(--t-ink);
}
.top2-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 2px;
	background: var(--t-blue);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s;
}
.top2-nav a:hover::after { transform: scaleX(1); }
.top2-header__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--t-blue);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	flex-shrink: 0;
	transition: background .2s;
}
.top2-header__cta:hover { background: var(--t-blue-deep); color: #fff; }

.top2-menu-btn {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	padding: 6px 4px;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--t-navy);
}
.top2-menu-btn span {
	display: block;
	width: 26px;
	height: 2px;
	background: currentColor;
	transition: transform .25s, opacity .25s;
}
.top2-menu-btn small { font-size: 9px; letter-spacing: .1em; line-height: 1; }
.top2-header.is-open .top2-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top2-header.is-open .top2-menu-btn span:nth-child(2) { opacity: 0; }
.top2-header.is-open .top2-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.top2-drawer {
	position: fixed;
	inset: var(--t-header-h) 0 0 0;
	background: var(--t-white);
	padding: 12px 20px 32px;
	overflow-y: auto;
	z-index: 99;
}
.admin-bar .top2-drawer { top: calc(var(--t-header-h) + 46px); }
.top2-drawer nav { display: flex; flex-direction: column; }
.top2-drawer a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 4px;
	border-bottom: 1px solid var(--t-line);
	font-weight: 700;
	font-size: 16px;
	color: var(--t-navy);
}
.top2-drawer a i { color: var(--t-blue); width: 18px; text-align: center; }

@media (max-width: 1023px) {
	.top2-nav { display: none; }
}
@media (max-width: 767px) {
	:root { --t-header-h: 68px; }
	.top2-header__cta { display: none; }
	.top2-menu-btn { display: flex; }
	.top2-logo { gap: 0; }
	.top2-logo img { height: 46px; width: 157px; }
	.top2-logo__tag { display: none; } /* スマホは幅が足りないので非表示 */
}


/* =============================================================
   サイト共通フッター（parts/site-footer.php）
   ============================================================= */
.top2-footer, .top2-footer * { box-sizing: border-box; }
.top2-footer { font-family: var(--t-font); text-align: left; line-height: 1.7; width: 100vw; margin-left: calc(50% - 50vw); }
.top2-footer a { text-decoration: none; color: inherit; }
.top2-footer img { display: block; max-width: 100%; height: auto; }
.top2-footer h3 { margin: 0; padding: 0; border: 0; background: none; }
.top2-footer h3::before { display: none; }
.top2-footer p { margin: 0; }
.top2-footer .top2-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
/* =============================================================
   フッター
   ============================================================= */
.top2-footer {
	background: #0a1f38;
	color: rgba(255, 255, 255, .85);
	padding: 56px 0 24px;
	font-size: 13px;
}
.top2-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
}
.top2-footer__brand img { width: 220px; }
.top2-footer__brand p { margin-top: 12px; font-size: 12px; opacity: .7; }
.top2-footer__col { display: flex; flex-direction: column; gap: 10px; }
.top2-footer .top2-footer__col h3 {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	margin-bottom: 6px;
}
.top2-footer__col a { opacity: .8; transition: opacity .2s; }
.top2-footer__col a:hover { opacity: 1; color: #fff; }
.top2-footer .top2-footer__copy {
	max-width: var(--t-container);
	margin: 40px auto 0;
	padding: 20px 20px 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
	text-align: center;
	font-size: 11px;
	opacity: .6;
}
@media (max-width: 1023px) {
	.top2-footer__grid { grid-template-columns: 1fr 1fr; }
	.top2-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	.top2-footer { padding-top: 40px; }
	.top2-footer__grid { grid-template-columns: 1fr; gap: 24px; }
	.top2-footer__brand img { width: 180px; }
}

