/**
 * SP ハンバーガーメニュー: コーポレートサイト向けデザイン
 */
:root {
	--swell-child-sp-menu-blue: #0f54b3;
	--swell-child-sp-menu-blue-bright: #2b94eb;
	--swell-child-sp-menu-blue-deep: #04384c;
	--swell-child-sp-menu-blue-mid: #0e4173;
	--swell-child-sp-menu-bg-soft: #f5f8fd;
	--swell-child-sp-menu-border: #dce6f2;
	--swell-child-sp-menu-text-muted: #5a7e9d;
	--swell-child-sp-menu-accent: #f5c518;
}

@media (max-width: 959px) {
	/* メニュー開閉時: 背面のグロナビ・ヘッダーロゴが重なって見えないようにする */
	[data-spmenu="opened"] #gnav,
	[data-spmenu="opened"] #fix_header,
	[data-spmenu="opened"] .l-header__spNav,
	[data-spmenu="opened"] #header .l-header__logo,
	[data-spmenu="opened"] #header .l-header__menuBtn {
		display: none !important;
		pointer-events: none !important;
	}

	.swell-child-spMenu .p-spMenu__inner {
		background: #fff;
		box-shadow: 0 0 40px rgba(4, 56, 76, 0.18);
		display: flex;
		flex-direction: column;
		padding-top: 0;
		width: min(100vw, 24rem);
	}

	.swell-child-spMenu .p-spMenu__inner::before {
		display: none !important;
	}

	.swell-child-spMenu .p-spMenu__overlay {
		background: rgba(4, 56, 76, 0.52);
	}

	.swell-child-spMenu__head {
		align-items: flex-start;
		background: linear-gradient(135deg, var(--swell-child-sp-menu-blue-deep) 0%, var(--swell-child-sp-menu-blue-mid) 58%, var(--swell-child-sp-menu-blue) 100%);
		display: flex;
		flex-shrink: 0;
		justify-content: space-between;
		padding: 1.25rem 1rem 1.5rem;
		position: relative;
	}

	.swell-child-spMenu__head::after {
		background: linear-gradient(90deg, var(--swell-child-sp-menu-accent) 0%, rgba(245, 197, 24, 0.2) 100%);
		bottom: 0;
		content: '';
		height: 3px;
		left: 0;
		position: absolute;
		width: 100%;
	}

	.swell-child-spMenu__brand {
		flex: 1;
		min-width: 0;
		padding-right: 0.75rem;
	}

	.swell-child-spMenu__logo {
		line-height: 1;
	}

	.swell-child-spMenu__logo .c-headLogo__img {
		display: block;
		height: auto;
		max-height: 2.5rem;
		width: auto;
	}

	.swell-child-spMenu__tagline {
		color: rgba(255, 255, 255, 0.78);
		font-family: var(--swl-font_caveat, cursive);
		font-size: 0.95rem;
		line-height: 1.2;
		margin: 0.45rem 0 0;
	}

	.swell-child-spMenu .p-spMenu__closeBtn {
		height: auto;
		position: static;
		width: auto;
	}

	.swell-child-spMenu__close {
		align-items: center;
		background: rgba(255, 255, 255, 0.14);
		border: 1px solid rgba(255, 255, 255, 0.28);
		border-radius: 999px;
		display: inline-flex;
		height: 2.5rem;
		justify-content: center;
		width: 2.5rem;
	}

	.swell-child-spMenu__close .c-iconBtn__icon {
		color: #fff;
		font-size: 1.1rem;
	}

	.swell-child-spMenu .p-spMenu__body {
		display: flex;
		flex: 1;
		flex-direction: column;
		min-height: 0;
		overflow-y: auto;
		padding: 1.25rem 1rem 1.75rem;
	}

	.swell-child-spMenu .c-widget__title.-spmenu {
		display: none;
	}

	.swell-child-spMenu .p-spMenu__nav {
		margin-top: 0;
		padding-bottom: 0;
	}

	.swell-child-spMenu__list {
		margin: 0;
	}

	/* SWELL 標準の左矢印アイコン（重なりの原因）を無効化 */
	.swell-child-spMenu__list a::before {
		display: none !important;
	}

	.swell-child-spMenu__list > .menu-item {
		border-top: 1px solid var(--swell-child-sp-menu-border);
	}

	.swell-child-spMenu__list > .menu-item:first-child {
		border-top: none;
	}

	/* フッターCTAと重複するため CONTACT はナビから非表示 */
	.swell-child-spMenu__list > .menu-item:last-child {
		display: none;
	}

	.swell-child-spMenu__list > .menu-item > a {
		align-items: flex-start;
		border-bottom: none;
		color: var(--swell-child-sp-menu-blue-deep);
		display: flex;
		flex-direction: column;
		gap: 0.2rem;
		padding: 1rem 2.25rem 1rem 0;
		position: relative;
		text-decoration: none;
		transition: color 0.25s ease, background-color 0.25s ease;
	}

	.swell-child-spMenu__list > .menu-item > a::after {
		border-right: 2px solid currentColor;
		border-top: 2px solid currentColor;
		content: '';
		height: 0.55rem;
		opacity: 0.55;
		position: absolute;
		right: 0.35rem;
		top: 50%;
		transform: translateY(-65%) rotate(45deg);
		width: 0.55rem;
	}

	.swell-child-spMenu__list > .menu-item > a:hover,
	.swell-child-spMenu__list > .menu-item > a:focus-visible {
		background: var(--swell-child-sp-menu-bg-soft);
		color: var(--swell-child-sp-menu-blue);
	}

	.swell-child-spMenu__list > .menu-item > a .ttl {
		display: block;
		font-size: 0.82rem;
		font-weight: 700;
		letter-spacing: 0.14em;
		line-height: 1.2;
	}

	.swell-child-spMenu__list > .menu-item > a .c-smallNavTitle.desc {
		display: block;
		font-size: 0.95rem;
		font-weight: 500;
		letter-spacing: 0.04em;
		line-height: 1.35;
		margin-left: 0;
		opacity: 1;
	}

	.swell-child-spMenu__list > .menu-item > a .c-submenuToggleBtn {
		display: none;
	}

	.swell-child-spMenu__list .sub-menu {
		background: transparent;
		border: none;
		margin: 0 0 0.5rem;
		padding: 0.15rem 0 0.35rem 0.75rem;
	}

	.swell-child-spMenu__list .sub-menu .menu-item {
		border-top: none;
	}

	.swell-child-spMenu__list .sub-menu .menu-item a {
		background: transparent;
		border: none;
		border-radius: 0;
		box-shadow: none;
		color: var(--swell-child-sp-menu-blue-mid);
		display: block;
		font-size: 0.84rem;
		font-weight: 500;
		padding: 0.55rem 0 0.55rem 1rem;
		position: relative;
	}

	.swell-child-spMenu__list .sub-menu .menu-item a::after {
		border: none;
		color: var(--swell-child-sp-menu-blue-bright);
		content: '›';
		font-size: 0.95rem;
		font-weight: 700;
		height: auto;
		left: 0;
		line-height: 1;
		opacity: 0.8;
		position: absolute;
		right: auto;
		top: 50%;
		transform: translateY(-52%);
		width: auto;
	}

	.swell-child-spMenu__list .sub-menu .menu-item a:hover,
	.swell-child-spMenu__list .sub-menu .menu-item a:focus-visible {
		background: transparent;
		color: var(--swell-child-sp-menu-blue);
	}

	.swell-child-spMenu__list .sub-menu .c-smallNavTitle.desc {
		display: none;
	}

	.swell-child-spMenu__list > .menu-item.menu-item-has-children > a::after {
		transform: translateY(-50%) rotate(135deg);
	}

	.swell-child-spMenu__footer {
		border-top: 1px solid var(--swell-child-sp-menu-border);
		margin-top: 1.25rem;
		padding-top: 1.25rem;
	}

	.swell-child-spMenu__cta {
		align-items: center;
		background: linear-gradient(135deg, var(--swell-child-sp-menu-blue-deep) 0%, var(--swell-child-sp-menu-blue) 100%);
		border-radius: 999px;
		box-shadow: 0 10px 24px rgba(15, 84, 179, 0.22);
		color: #fff;
		display: flex;
		flex-direction: column;
		gap: 0.15rem;
		justify-content: center;
		min-height: 3.25rem;
		padding: 0.75rem 1.25rem;
		text-align: center;
		text-decoration: none;
		transition: transform 0.25s ease, box-shadow 0.25s ease;
	}

	.swell-child-spMenu__cta::before,
	.swell-child-spMenu__cta::after {
		display: none !important;
	}

	.swell-child-spMenu__cta:hover,
	.swell-child-spMenu__cta:focus-visible {
		box-shadow: 0 14px 28px rgba(15, 84, 179, 0.3);
		color: #fff;
		transform: translateY(-1px);
	}

	.swell-child-spMenu__cta-en,
	.swell-child-spMenu__cta-ja {
		color: #fff;
	}

	.swell-child-spMenu__cta-en {
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.16em;
		line-height: 1;
	}

	.swell-child-spMenu__cta-ja {
		font-size: 0.95rem;
		font-weight: 600;
		line-height: 1.2;
	}

	.swell-child-spMenu__widgets {
		margin-top: 1.25rem;
	}
}
