/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for customizing Astra.
Author: Your Name
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* Add custom styles below */

.custom-site-header {
	padding: 0;
	background-color: #fff;
}

.custom-header-inner {
	align-items: stretch;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: auto 1fr auto;
	margin: 0;
	padding: 0;
	width: 100%;
}

.custom-header-branding {
	display: flex;
	align-items: center;
	margin-left: 40px;
}

.custom-header-branding img {
	height: auto;
	max-width: 140px;
}

.custom-header-logo-link {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.custom-header-center {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	align-items: flex-end;
	text-align: right;
	width: 100%;
}

.custom-header-titles {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.custom-header-title {
	color: #1a1a1a;
	font-size: clamp(1.8rem, 2.8vw, 2.4rem);
	font-weight: 700;
	line-height: 1.1;
	margin: 0;
}

.custom-header-title-link {
	text-decoration: none;
}

.custom-header-tagline {
	color: #555555;
	font-size: 1rem;
	line-height: 1.4;
	margin: 0;
}

.custom-header-nav {
	display: flex;
	justify-content: flex-end;
	padding: 26px 0;
	width: 100%;
}

.custom-header-submenu {
	display: flex;
	justify-content: flex-end;
	width: 100%;
}

.custom-header-submenu-list {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.custom-header-submenu-list a {
	color: #555555;
	font-size: 0.875rem;
	text-decoration: none;
}

.custom-header-submenu-list a:hover,
.custom-header-submenu-list a:focus {
	color: #093893;
}

.custom-header-cta {
	display: flex;
	flex: 0 0 auto;
	justify-content: flex-end;
	margin-left: auto;
	align-self: stretch;
}

.custom-header-cta-link {
	background-color: #093893;
	border-radius: 0;
	color: #ffffff;
	display: flex;
	align-items: center;
	font-weight: 600;
	height: 100%;
	padding: 0 1.5rem;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.custom-header-cta-icon {
	align-items: center;
	display: inline-flex;
	margin-right: 0.5rem;
}

.custom-header-cta-link:hover,
.custom-header-cta-link:focus {
	background-color: #005f87;
	color: #ffffff;
}

.custom-header-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 3rem;
	justify-content: flex-end;
	list-style: none;
	margin: 0;
	padding: 0;
}

.custom-header-menu .sub-menu {
	text-align: left;
}

.custom-header-menu > li {
	position: relative;
}

.custom-header-menu a {
	color: #1a1a1a;
	font-weight: 500;
	text-decoration: none;
}

.custom-header-menu a:hover,
.custom-header-menu a:focus {
	color: #093893;
}

.custom-header-menu .sub-menu {
	background-color: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
	display: none;
	list-style: none;
	margin: 0;
	min-width: 200px;
	padding: 0.75rem 0;
	position: absolute;
	right: 0;
	top: calc(100% + 0.75rem);
	z-index: 1000;
}

.custom-header-menu .sub-menu li {
	margin: 0;
	padding: 0;
}

.custom-header-menu .sub-menu a {
	color: #1a1a1a;
	display: block;
	font-weight: 400;
	padding: 0.45rem 1.25rem;
}

.custom-header-menu .sub-menu a:hover,
.custom-header-menu .sub-menu a:focus {
	background-color: rgba(9, 56, 147, 0.08);
	color: #093893;
}

.custom-header-menu > li:hover > .sub-menu,
.custom-header-menu > li:focus-within > .sub-menu {
	display: block;
}

@media (max-width: 768px) {
	.custom-header-inner {
		display: flex;
		flex-direction: column;
		text-align: center;
		row-gap: 1rem;
	}

	.custom-header-center {
		align-items: center;
		text-align: center;
	}

	.custom-header-cta {
		justify-content: center;
		width: 100%;
	}

	.custom-header-submenu {
		justify-content: center;
	}

	.custom-header-submenu-list {
		flex-wrap: wrap;
		gap: 1rem;
		justify-content: center;
	}

	.custom-header-menu {
		flex-direction: column;
		gap: 1rem;
	}

	.custom-header-menu > li {
		width: 100%;
	}

	.custom-header-menu .sub-menu {
		border: none;
		border-radius: 0;
		box-shadow: none;
		position: static;
		width: 100%;
	}

	.custom-header-menu .sub-menu a {
		padding: 0.5rem 0;
	}
}

/* Google用TOCは構造化だけ残して非表示に */
.wp-block-aioseo-table-of-contents {
	display: none;
}
