/* [css] */

/* Reset & Basic Settings */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul,
dl,
dt,
dd {
	margin: 0;
	padding: 0;
}

/* WP */
/* #wpadminbar {
	display: none;
} */

body {
	/* font-family: "Noto Sans JP", sans-serif; */
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
		"Noto Sans JP", sans-serif;
	color: #333;
	background-color: #ffffff;
	line-height: 1.8;
}

main {
	/* max-width: 1440px; */
	width: 100%;
	margin: 0 auto;
	background-color: #fafafa;
	overflow: hidden;
	/* padding-top: 100px; */
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* Common */
.container {
	max-width: 1140px;
	width: 100%;
	height: auto;
	margin: 0 auto;
	/* padding: 0 20px; */
}

.section-title {
	text-align: center;
	margin-bottom: 50px;
}

.section-title-en {
	display: block;
	font-size: 16px;
	color: #cb2020;
	margin-bottom: 8px;
	font-weight: bold;
}

.section-title-ja {
	font-size: 32px;
	font-weight: bold;
}

.btn {
	display: inline-block;
	padding: 12px 40px;
	border-radius: 50px;
	font-weight: bold;
	text-align: center;
	transition: opacity 0.3s;
}

.btn:hover {
	opacity: 0.8;
}

.btn-white {
	background-color: #fff;
	color: #333;
}

/* Header */
.header {
	position: fixed;
	top: 20px;
	left: 2%;
	/* left: 28px; */
	right: 2%;
	/* right: 28px; */
	width: 96%;
	/* max-width: 1400px; */
	max-width: 1880px;
	/* aspect-ratio: 1400/80; */
	margin: 0 auto;
	z-index: 100;
	background-color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 15px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	padding: 0 30px;
}

body.admin-bar .header {
	top: calc(20px + 32px);
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 80px;
}

.header-logo a {
	display: inline-block;
	vertical-align: middle;
}

.header-logo img {
	width: 151px;
	display: block;
}

.header-nav {
	margin-left: auto;
}

.header-nav ul {
	display: flex;
	justify-content: center;
	gap: 49px;
}

.header-nav a {
	color: #333;
	font-weight: 500;
	font-size: 15px;
	transition: all 0.3s ease;
}
.header-nav a:hover {
	/* color: #000; */
	opacity: 0.7;
}

a.header-button {
	background-color: #1a1a1a;
	color: #fff;
	padding: 12px 30px;
	border-radius: 50px;
	font-weight: bold;
	font-size: 14px;
	transition: all 0.3s ease;
}
a.header-button:hover {
	opacity: 0.7;
}

/* sp */

/* Hamburger Menu Button (Default: hidden) */
.hamburger-menu {
	display: none !important; /* PCでは非表示 */
	background-color: #1a1a1a;
	border: none;
	padding: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 110; /* ヘッダーより手前に */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
}

.hamburger-line {
	display: block;
	width: 24px;
	height: 2px;
	background-color: #fff;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive Styles for Tablet & Mobile */
@media (max-width: 1219px) {
	/* --- Header for SP --- */
	.header {
		padding: 0 20px;
		top: 10px;
		left: 2.5%;
		right: 2.5%;
		width: 95%;
	}

	.header-inner {
		height: 64px;
		justify-content: space-between;
	}

	.header-logo {
		flex: none; /* flex-growを解除 */
	}
	.header-logo img {
		width: 115px;
	}

	/* Hide PC navigation and button */
	.header-nav {
		display: none;
	}

	/* Show Hamburger Menu */
	.hamburger-menu {
		display: flex !important; /* SPでは表示 */
	}
}

/* --- Modal Menu --- */

/* 背景スクロール禁止 */
body.is-menu-open {
	overflow: hidden;
}

.modal-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 200;
	display: flex;
	justify-content: center;
	align-items: start;
	padding: 80px 20px;

	/* 初期状態（非表示） */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-menu.is-open {
	/* 表示状態 */
	opacity: 1;
	visibility: visible;
}

.modal-menu__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.modal-menu__content {
	position: relative;
	background-color: #fff;
	border-radius: 10px;
	width: 77%;
	max-width: 400px;
	min-width: 303px;
	padding: 67.5px 40px;
	text-align: justify;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);

	/* アニメーションの初期状態 */
	transform: scale(0.95) translateY(10px);
	opacity: 0;
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.modal-menu.is-open .modal-menu__content {
	/* アニメーションの表示状態 */
	transform: scale(1) translateY(0);
	opacity: 1;
}

.modal-menu__nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	width: 154px;
	margin: 0 auto;
}

.modal-menu__nav li {
	margin-bottom: 35px;
	/* アニメーションの初期状態 */
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* メニュー項目が順番に表示されるアニメーション */
.modal-menu.is-open .modal-menu__nav li {
	opacity: 1;
	transform: translateY(0);
}
.modal-menu.is-open .modal-menu__nav li:nth-child(1) {
	transition-delay: 0.1s;
}
.modal-menu.is-open .modal-menu__nav li:nth-child(2) {
	transition-delay: 0.15s;
}
.modal-menu.is-open .modal-menu__nav li:nth-child(3) {
	transition-delay: 0.2s;
}
.modal-menu.is-open .modal-menu__nav li:nth-child(4) {
	transition-delay: 0.25s;
}

.modal-menu__nav a {
	font-size: 16px;
	font-weight: 500;
	color: #333;
	text-decoration: none;
}

.modal-menu__button {
	display: inline-block;
	background-color: #1a1a1a;
	color: #fff !important;
	padding: 16px 32px;
	border-radius: 50px;
	font-weight: bold;
	font-size: 15px !important;
	text-decoration: none;
	transition: opacity 0.3s;
}
.modal-menu__button:hover {
	opacity: 0.8;
}

.modal-menu__close-button {
	position: absolute;
	top: 677px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0) !important;
	border: 0px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 36px;
	line-height: 44px;
	cursor: pointer;
	transition: transform 0.3s ease, background-color 0.3s ease;
}
.modal-menu__close-button:hover {
	transform: translateX(-50%) scale(1.1);
	background: rgba(255, 255, 255, 0.3);
}

/* --- Hamburger Button Active State (×) --- */
.hamburger-menu.is-open {
	gap: 0;
}
.hamburger-menu.is-open .hamburger-line:nth-child(1) {
	transform: translateY(1px) rotate(45deg);
}
.hamburger-menu.is-open .hamburger-line:nth-child(2) {
	transform: translateY(-1px) rotate(-45deg);
}

/* Fade Up Animation */
.fade {
	opacity: 0;
	transform: translateY(5px);
	/* transform: translateX(80px); */
	/* transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
		transform 1s cubic-bezier(0.25, 1, 0.5, 1); */
	transition: opacity 1s ease-in-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade.is-visible {
	opacity: 1;
	transform: translateY(0);
	/* transform: translateX(0); */
}
