/* ヘッダー・フッター
 * Elementor Pro のテーマビルダー（Header / Footer）の見た目を再現している。
 */

.yh,
.yf {
	--yw-primary: #20255f;
	--yw-secondary: #666980;
	--yw-text: #1c1c1c;
	font-family: "Noto Sans JP", sans-serif;
	color: var(--yw-text);
}

.yh *,
.yf * {
	box-sizing: border-box;
}

/* ---------- ヘッダー ---------- */

.yh {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	padding: 24px 40px;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 固定ヘッダーの分だけ本文を下げる。
   Astra は #primary を float させるため、flow-root で本文の中に収める。 */
.yh-content {
	display: flow-root;
	padding-top: 109px;
}

.yh__inner {
	display: flex;
	align-items: center;
	gap: 24px;
}

.yh__logo {
	flex: 0 0 25%;
}

.yh__logo img {
	display: block;
	width: 192px;
	max-width: 100%;
	height: auto;
}

.yh__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-end;
}

.yh__menu {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yh__menu li {
	position: relative;
	margin: 0 20px;
}

.yh__menu a {
	display: block;
	position: relative;
	padding: 16px 0;
	color: var(--yw-text);
	font-size: 1.125em;
	font-weight: 600;
	line-height: 2em;
	text-decoration: none;
	text-transform: capitalize;
	white-space: nowrap;
}

/* ホバー時の下線（Elementor の pointer underline と同じ動き） */
.yh__menu > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 8px;
	width: 100%;
	height: 2px;
	background: #808080;
	transform: scaleX(0);
	transition: transform 0.3s;
}

.yh__menu > li > a:hover::after,
.yh__menu > li.current-menu-item > a::after,
.yh__menu > li.current_page_item > a::after {
	transform: scaleX(1);
}

.yh__menu > li > a:hover,
.yh__menu > li.current-menu-item > a,
.yh__menu > li.current_page_item > a {
	color: #808080;
}

/* 下層メニュー */
.yh__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 200px;
	margin: 0;
	padding: 0;
	border-radius: 4px;
	background: rgba(32, 37, 95, 0.94);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
}

.yh__menu li:hover > .sub-menu,
.yh__menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.yh__menu .sub-menu li {
	margin: 0;
}

.yh__menu .sub-menu a {
	padding: 8px 16px;
	color: #fff;
	font-size: 1em;
	font-weight: 400;
	line-height: 2em;
}

.yh__menu .sub-menu a:hover {
	color: #fff;
	text-decoration: underline;
}

.yh__menu .menu-item-has-children > a .yh__caret {
	display: inline-block;
	width: 0.4em;
	height: 0.4em;
	margin-left: 10px;
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: translateY(-0.2em) rotate(45deg);
}

.yh__cta {
	flex: 0 0 auto;
}

.yh__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 40px;
	border: 2px solid var(--yw-primary);
	border-radius: 32px;
	background: var(--yw-primary);
	color: #fff;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.125em;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.yh__button:hover,
.yh__button:focus-visible {
	background: #fff;
	color: var(--yw-primary);
}

.yh__button .yw-button__arrow {
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

/* ハンバーガー */
.yh__toggle {
	display: none;
	width: 27px;
	height: 27px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--yw-primary);
	cursor: pointer;
}

.yh__toggle-bar,
.yh__toggle-bar::before,
.yh__toggle-bar::after {
	display: block;
	width: 27px;
	height: 3px;
	background: currentColor;
	transition: transform 0.2s, opacity 0.2s;
}

.yh__toggle-bar {
	position: relative;
	margin: 0 auto;
}

.yh__toggle-bar::before,
.yh__toggle-bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.yh__toggle-bar::before {
	top: -9px;
}

.yh__toggle-bar::after {
	top: 9px;
}

.yh__toggle[aria-expanded="true"] .yh__toggle-bar {
	background: transparent;
}

.yh__toggle[aria-expanded="true"] .yh__toggle-bar::before {
	transform: translateY(9px) rotate(45deg);
}

.yh__toggle[aria-expanded="true"] .yh__toggle-bar::after {
	transform: translateY(-9px) rotate(-45deg);
}

/* ---------- フッター ---------- */

.yf {
	clear: both;
	background: #fefefe;
}

.yf__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 1170px;
	margin: 0 auto;
	padding: 80px 0;
}

.yf__brand img {
	display: block;
	height: auto;
	margin-bottom: 16px;
}

.yf__logo {
	width: 60%;
}

.yf__zizou {
	width: 46%;
}

.yf__info,
.yf__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.yf__info li,
.yf__links li {
	display: flex;
	align-items: flex-start;
	margin: 4px 0 0;
	padding: 0 0 4px;
	font-size: 1rem;
	line-height: 1.857em;
}

.yf__info li:first-child,
.yf__links li:first-child {
	margin-top: 0;
}

.yf__info li:last-child,
.yf__links li:last-child {
	padding-bottom: 0;
}

.yf__info a,
.yf__info span:not(.yf__icon),
.yf__links a {
	display: inline-block;
	color: var(--yw-secondary);
	line-height: 1.5em;
	text-decoration: none;
	transition: color 0.3s;
}

.yf__info a:hover,
.yf__links a:hover {
	color: #808080;
}

/* アイコン（Font Awesome を使わず CSS で描く） */
.yf__icon {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin-top: 0.4em;
	margin-right: 16px;
	background: #525266;
}

.yf__icon--map {
	clip-path: path("M8 0C4.7 0 2 2.7 2 6c0 4.5 6 10 6 10s6-5.5 6-10c0-3.3-2.7-6-6-6zm0 8.2A2.2 2.2 0 1 1 8 3.8a2.2 2.2 0 0 1 0 4.4z");
}

.yf__icon--clock {
	clip-path: path("M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14.4A6.4 6.4 0 1 1 8 1.6a6.4 6.4 0 0 1 0 12.8zM8.8 4H7.2v4.8l3.8 2.3.8-1.3-3-1.8z");
}

.yf__icon--phone {
	clip-path: path("M3.2 0.8 1 3a1.6 1.6 0 0 0-.3 1.7c1.4 3.8 4.8 7.2 8.6 8.6a1.6 1.6 0 0 0 1.7-.4l2.2-2.2a.8.8 0 0 0 0-1.1l-2.6-2a.8.8 0 0 0-1 0l-1 .9C7.6 7.6 6 6 5.1 4.4l.9-1a.8.8 0 0 0 0-1L4.3.8a.8.8 0 0 0-1.1 0z");
}

.yf__icon--mobile {
	clip-path: path("M10.5 0h-5A1.5 1.5 0 0 0 4 1.5v13A1.5 1.5 0 0 0 5.5 16h5a1.5 1.5 0 0 0 1.5-1.5v-13A1.5 1.5 0 0 0 10.5 0zM8 15a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm2.5-3.5h-5v-10h5z");
}


.yf__bottom {
	background: #292933;
}

.yf__copyright {
	max-width: 1170px;
	margin: 0 auto;
	padding: 15px 0;
	color: #fff;
	font-family: "Roboto", "Noto Sans JP", sans-serif;
	font-size: 0.875em;
	line-height: 2em;
	text-align: center;
	text-transform: uppercase;
}

/* ---------- タブレット・スマートフォン ---------- */

@media (max-width: 1024px) {
	.yh {
		padding: 8px 16px 16px;
	}

	.yh-content {
		padding-top: 96px;
	}

	.yh__inner {
		flex-wrap: wrap;
		gap: 8px;
	}

	.yh__logo {
		flex: 1 1 auto;
		order: 1;
		text-align: center;
	}

	.yh__logo img {
		width: 80%;
		max-width: 260px;
		margin: 0 auto;
	}

	.yh__nav {
		order: 2;
		flex: 0 0 auto;
	}

	.yh__cta {
		display: none;
	}

	.yh__toggle {
		display: block;
	}

	.yh__menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		padding: 8px 0;
		background: rgba(32, 37, 95, 0.94);
	}

	.yh__menu.is-open {
		display: flex;
	}

	.yh__menu li {
		margin: 0;
	}

	.yh__menu a,
	.yh__menu .sub-menu a {
		padding: 8px 20px;
		color: #fff;
		font-size: 1em;
	}

	.yh__menu > li > a::after {
		display: none;
	}

	.yh__menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		background: none;
		padding-left: 16px;
	}

	.yf__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 20px 20px 0;
	}

	.yf__brand {
		grid-column: 1 / -1;
		margin: 20px;
	}

	.yf__logo {
		width: 50%;
	}

	.yf__zizou {
		width: 38%;
	}

	.yf__brand {
		margin: 20px;
	}

	.yf__info,
	.yf__links {
		margin: 20px 20px 40px;
	}
}

@media (max-width: 767px) {
	.yh {
		padding: 12px 16px;
	}

	.yh-content {
		padding-top: 61px;
	}

	.yh__inner {
		flex-wrap: nowrap;
	}

	.yh__logo {
		order: 0;
		text-align: left;
	}

	.yh__logo img {
		width: 165px;
		margin: 0;
	}

	.yf__inner {
		grid-template-columns: minmax(0, 1fr);
		padding: 20px;
	}

	.yf__logo {
		width: 80%;
	}

	.yf__zizou {
		width: 45%;
	}

	.yf__brand {
		margin: 0 0 24px;
	}

	.yf__info,
	.yf__links {
		margin: 0 0 24px;
	}
}
