/**
 * Site header / logo (h_logo_n) — formerly in TCD theme option css_code.
 */

.head_logo .logo.logo-image {
	position: relative;
	top: auto;
	left: auto;
	height: auto;
	max-width: 100%;
}

.h_logo_n {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	text-decoration: none;
	color: inherit;
}

.h_logo_n:hover,
.h_logo_n:focus-visible {
	text-decoration: none;
	color: inherit;
}

.h_logo_n_img {
	flex: 0 0 auto;
	width: 56px;
	max-width: 56px;
	height: auto;
}

.h_logo_n_0 {
	flex: 1 1 auto;
	min-width: 0;
}

.h_logo_n_0 h1 {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1.25;
}

.h_logo_n_0_1 {
	margin: 0 0 4px;
	color: #2d9be1;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
}

.h_logo_n_0 > img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 44px;
}

/* Desktop: logo + tel/mail on one row, vertically centered */
@media screen and (min-width: 1200px) {
	.header-bar .head_top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 20px;
	}

	.head_logo {
		float: none !important;
		flex: 1 1 auto;
		max-width: 58%;
		min-width: 0;
	}

	.head_logo .logo.logo-image {
		top: 0 !important;
	}

	.head_logo .logo {
		height: auto !important;
		line-height: normal;
	}

	.head_info.head_info_pc {
		float: none !important;
		flex: 0 0 auto;
		width: auto !important;
		max-width: 42%;
		padding-top: 0 !important;
		gap: 12px;
		justify-content: flex-end;
	}

	.head_info.head_info_pc .head_info01,
	.head_info.head_info_pc .head_info02,
	.head_info.head_info_pc .head_info03 {
		width: auto !important;
		flex: 0 0 auto;
	}

	.h_logo_n_img {
		width: 64px;
		max-width: 64px;
	}

	.h_logo_n_0_1 {
		font-size: 13px;
	}

	.h_logo_n_0 > img {
		max-height: 48px;
	}

	/* AUN: global nav — shorter row, looser spacing, single line */
	.global-nav {
		max-width: 100% !important;
		width: calc(100% - 16px) !important;
	}

	.global-nav ul.menu {
		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: stretch;
		width: 100%;
	}

	.global-nav > ul > li {
		float: none;
		display: block;
		flex: 0 0 auto;
		margin: 0;
	}

	.global-nav > ul > li > a {
		line-height: 28px !important;
		padding: 4px 26px !important;
		font-size: 14px;
		white-space: nowrap;
	}

	.global-nav > ul > li > a span {
		line-height: inherit;
	}

	/* Nav was short but header stayed 160px — trim space below menu */
	:root {
		--wr-pc-header-offset: 128px;
	}

	.header-bar {
		height: auto !important;
		padding-top: 20px !important;
		padding-bottom: 10px !important;
		box-sizing: border-box;
	}

	.head_top {
		height: auto !important;
		min-height: 0 !important;
		padding-bottom: 4px !important;
	}

	.global-nav {
		margin-top: 6px !important;
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
	}

	.header-bar-inner {
		padding-bottom: 0 !important;
	}

	.mv,
	.header-bar-fixed ~ .signage,
	.header-bar-fixed ~ .top-slider-wrapper {
		margin-top: var(--wr-pc-header-offset) !important;
	}

	a.scroll_point {
		margin-top: calc(-1 * var(--wr-pc-header-offset)) !important;
		padding-top: var(--wr-pc-header-offset) !important;
	}
}

/* Mobile / tablet */
@media only screen and (max-width: 1200px) {
	.header-bar {
		padding-top: 20px !important;
		box-sizing: border-box;
	}

	.mv,
	.header-bar-fixed ~ .signage,
	.header-bar-fixed ~ .top-slider-wrapper {
		margin-top: 75px !important;
	}

	a.scroll_point {
		margin-top: -75px !important;
		padding-top: 75px !important;
	}

	.header-bar-inner {
		position: relative;
	}

	.header-bar .head_top {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		width: 100%;
		height: 55px;
		min-height: 55px;
		padding: 0 218px 0 15px;
		box-sizing: border-box;
	}

	.head_logo {
		flex: 1 1 auto;
		min-width: 0;
		max-width: 100%;
		float: none !important;
	}

	.head_logo .logo.logo-image {
		top: 0 !important;
		float: none !important;
		width: auto !important;
		max-width: 100%;
		margin-left: 0 !important;
		line-height: normal !important;
		height: auto !important;
	}

	.head_logo .logo img.h_logo_n_img {
		width: 40px !important;
		max-width: 40px !important;
	}

	.h_logo_n {
		gap: 6px;
	}

	.h_logo_n_0_1 {
		font-size: 10px;
		margin-bottom: 2px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.h_logo_n_0 > img {
		max-width: min(148px, 100%);
		max-height: 26px;
	}

	.head_info.head_info_sp {
		position: absolute;
		top: 50% !important;
		right: 56px !important;
		transform: translateY(-50%);
		width: auto;
		max-width: calc(100% - 72px);
		margin: 0;
		gap: 10px;
		justify-content: flex-end;
	}

	.head_info.head_info_sp .head_info01,
	.head_info.head_info_sp .head_info02,
	.head_info.head_info_sp .head_info03 {
		width: auto !important;
		flex: 0 0 auto;
	}

	.head_info.head_info_sp img {
		display: block;
		width: 40px;
		height: 40px;
		object-fit: contain;
	}

	/* Without top:0 the button sits below .head_top (flow position) */
	#global-nav-button.global-nav-button {
		position: absolute;
		top: 0;
		right: 0;
		height: 55px;
		width: 56px;
		line-height: 55px;
	}
}
