/*
Theme Name: NHK Site
Author: Yuto Seki
Description: This theme is used for the robomech factory nhk website.
*/

:root {
	--color-main: #D7FF40;

	/*other colors*/
	--color-bg-white: #FFFFFF;
	--color-bg-black: #000000;
	--color-header-line: #525252;
	--color-header-menu: #000000;

	/*text colors*/
	--color-text-main: #D7FF40;
	--color-text-black: #000000;
	--color-text-white: #FFFFFF;
	--color-text-gray: #EFEFEF;

	/*panel colors*/
	--color-panel-white: #FFFFFF;
	--color-panel-black: #000000;
	--color-panel-gray: #404040;
	--color-panel-dark-gray: #2A2A2A;
	--color-panel-bg-gray: #1B1B1B;
}

body {
	margin: 0;
	padding: 0;
	padding-top: 80px;
	background-color: var(--color-bg-black);
	overflow-x: hidden;
	font-family: "Noto Sans JP", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Color Emoji", "Apple Color Emoji", sans-serif;
}

html {
	overflow-x: hidden;
}

header {
	height: 80px;
	padding: 15px 0;
	box-sizing: border-box;
	background-color: var(--color-main);
	overflow: hidden;
	display: flex;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1002;
}

.header-left {
	margin-left: 20px;
	height: 100%;
	display: flex;
	align-items: center;
}

.header-left a {
	display: block;
	height: 50px;
	line-height: 0;
}

.header-left img {
	display: block;
	height: 50px;
	max-height: 50px;
	width: auto;
	transition: opacity 0.5s ease;
}

.header-logo.is-fading {
	opacity: 0;
}

.header-right {
	margin-left: auto;
	margin-right: 95px;
	display: flex;
	align-items: center;
}

.header-hamburger {
	position: absolute;
	right: 30px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 30px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	z-index: 1003;
}

.header-hamburger .hamburger-bar {
	position: absolute;
	left: 0;
	width: 40px;
	height: 2px;
	background-color: var(--color-text-black);
	transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.header-hamburger .hamburger-bar:nth-child(1) {
	top: 0;
}

.header-hamburger .hamburger-bar:nth-child(2) {
	top: 14px;
}

.header-hamburger .hamburger-bar:nth-child(3) {
	top: 28px;
}

body.menu-open .header-hamburger .hamburger-bar:nth-child(1) {
	transform: translateY(14px) rotate(45deg);
}

body.menu-open .header-hamburger .hamburger-bar:nth-child(2) {
	opacity: 0;
}

body.menu-open .header-hamburger .hamburger-bar:nth-child(3) {
	transform: translateY(-14px) rotate(-45deg);
}

body.menu-open .header-hamburger .hamburger-bar {
	background-color: var(--color-text-white);
}

.header-panel {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100vh;
	background-color: var(--color-panel-bg-gray);
	transform: translateY(-100%);
	transition: transform 0.4s ease;
	z-index: 1000;
}

body.menu-open .header-panel {
	transform: translateY(0);
}

body.menu-open {
	overflow: hidden;
}

body.menu-open header {
	background-color: transparent;
}

body.menu-open #nav-header {
	display: none;
}

.header-panel-inner {
	width: 100%;
	height: 100%;
}

.header-panel-menu {
	padding: 130px 0 0 50px;
	display: flex;
	gap: 210px;
}

.panel-column {
	display: flex;
	flex-direction: column;
}

.panel-item {
	display: flex;
	flex-direction: column;
	gap: 1px;
	text-decoration: none;
	color: var(--color-text-white);
	font-family: "Noto Sans JP", "Noto Sans", sans-serif;
	font-weight: 350;
}

.panel-item+.panel-item {
	margin-top: 30px;
}

.panel-subtitle {
	font-size: 18px;
	font-weight: 350;
}

.panel-title {
	font-size: 36px;
}

.panel-item:hover,
.panel-item:focus {
	color: var(--color-text-main);
}


#nav-header ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
}

#nav-header ul::before,
#nav-header ul::after {
	content: "";
	display: block;
	width: 1px;
	height: 40px;
	background-color: var(--color-header-line);
}

#nav-header ul::before {
	margin-right: 10px;
}

#nav-header ul::after {
	margin-left: 10px;
}

#nav-header li {
	display: flex;
	align-items: center;
}

#nav-header li::after {
	content: "";
	display: block;
	width: 1px;
	height: 40px;
	background-color: var(--color-header-line);
	margin: 0 10px;
}

#nav-header li:last-child::after {
	content: none;
}

#nav-header a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	font-family: "Noto Sans JP", "Noto Sans", sans-serif;
	font-size: 16px;
	font-weight: 350;
	color: var(--color-text-black);
	text-decoration: none;
	line-height: 1;
	width: 100px;
	text-align: center;
}

#nav-header img {
	width: 25px;
	height: 25px;
}

@media (max-width: 1049px) {
	#nav-header {
		display: none;
	}

	.header-panel-menu {
		padding: 110px 0 0 30px;
		display: block;
	}

	.panel-column {
		display: block;
		margin: 0;
		padding: 0;
	}

	.panel-column+.panel-column {
		margin-top: 25px;
	}

	.panel-item+.panel-item {
		margin-top: 25px;
	}

	.panel-title {
		font-size: 26px;
	}

	.panel-subtitle {
		font-size: 12px;
	}
}

/* Footer */
.site-footer {
	background-color: var(--color-panel-bg-gray);
	color: var(--color-text-white);
	font-family: "Noto Sans JP", "Noto Sans", sans-serif;
}

.site-footer a {
	color: inherit;
	text-decoration: none;
	font-weight: 300;
}

.site-footer a.footer-contact-button {
	color: var(--color-text-black);
	font-weight: 300;
}

.site-footer img {
	display: block;
}

.footer-inner {
	max-width: 1100px;
	margin: 0;
	padding: 30px 30px 30px 40px;
	box-sizing: border-box;
}

.footer-desktop {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
}

.footer-mobile {
	display: none;
	flex-direction: column;
	gap: 20px;
	padding: 30px 20px 15px;
}

.footer-brand {
	width: fit-content;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer-logo img {
	height: 50px;
	width: auto;
	max-width: none;
}

.footer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 21px;
	font-size: 12px;
	font-weight: 300;
	color: var(--color-text-white);
}

.footer-nav a {
	line-height: 1.4;
}

.footer-copy {
	margin: 0;
	font-size: 10px;
	font-weight: 300;
	text-align: center;
	color: var(--color-text-gray);
}

.footer-links {
	width: 304px;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.footer-heading {
	margin: 0;
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
	color: var(--color-text-white);
}

.footer-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.footer-social li {
	min-width: 60px;
}

.footer-social a:hover {
	opacity: 0.8;
}

/* パンくずリストブロック (Breadcrumbs) */
.wp-block-post-breadcrumbs a,
.wp-block-yoast-seo-breadcrumbs a {
	color: var(--color-text-white, #FFFFFF);
	text-decoration: none;
	transition: color 0.2s ease;
}

.wp-block-post-breadcrumbs a:hover,
.wp-block-yoast-seo-breadcrumbs a:hover {
	color: var(--color-main, #D7FF40);
}

.footer-social a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 9px;
	font-weight: 300;
	text-align: center;
	color: var(--color-text-white);
}

.footer-social img {
	width: 24px;
	height: 24px;
}

.footer-social-label {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.footer-contact {
	width: 250px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer-contact-button {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	padding: 10px 30px;
	border-radius: 42px;
	background-color: var(--color-main);
	color: var(--color-text-black);
	font-size: 24px;
	font-weight: 300;
}

.footer-contact-text {
	font-weight: 300;
}

.footer-contact-icon {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-contact-icon img {
	width: 18px;
	height: 18px;
}

.footer-mobile .footer-social {
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	justify-content: space-between;
}

.footer-mobile .footer-nav {
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 20px;
	font-size: 10px;
}

.footer-mobile .footer-copy {
	width: 100%;
}

@media (max-width: 1100px) {
	.footer-desktop {
		display: none;
	}

	.footer-mobile {
		display: flex;
	}
}