@charset "UTF-8";
/*
 * ヘッダー / フッター リニューアル用スタイル
 *
 * style.css（src/sass のビルド成果物）のあとに読み込み、
 * 新デザインのヘッダー・フッターに必要な指定を上書き・追加する。
 *
 * Figma: Coサイト / nextorage_co_header（メガメニュー展開時）
 *
 * 数値は Figma の実測値（px）をそのまま使う。
 * ルート font-size が可変（15px〜16px）のため、rem だと Figma と一致しないため。
 */

/*--------------------------------------------------------------
# Header : レイアウト
--------------------------------------------------------------*/

.nx-header .site-header {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 40px;
	justify-content: space-between;
	align-items: center;
}

@media screen and (max-width: 767px) {
	.nx-header .site-header {
		padding: 0 24px;
	}
}

/* ロゴ */

.nx-header .site-header-title {
	display: flex;
	align-items: center;
}

.nx-header .site-logo img {
	height: 40px;
	max-height: 40px;
	width: auto;
}

@media screen and (max-width: 767px) {
	.nx-header .site-logo img {
		height: 32px;
		max-height: 32px;
	}
}

/* ナビゲーション全体 */

.nx-header__nav {
	display: flex;
	align-items: center;
	align-self: stretch;
	gap: 16px;
	margin-left: auto;
}

@media screen and (max-width: 767px) {
	.nx-header__nav {
		display: none;
	}
}

.nx-header__utility {
	display: flex;
	align-items: center;
	align-self: stretch;
	gap: 40px;
}

/*--------------------------------------------------------------
# Header : 製品ナビゲーション
--------------------------------------------------------------*/

.nx-product-nav {
	display: flex;
	align-self: stretch;
}

.nx-product-nav__list {
	display: flex;
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nx-product-nav__item {
	display: flex;
	align-items: stretch;
}

.nx-product-nav__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 0 16px;
	color: #000;
	font-size: 16px;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	background-color: transparent;
	transition: background-color 0.2s ease;
}

.nx-product-nav__link:hover,
.nx-product-nav__link:focus {
	color: #000;
	text-decoration: none;
}

.nx-product-nav__item.is-open > .nx-product-nav__link,
.nx-product-nav__item.is-current > .nx-product-nav__link,
.nx-product-nav__link:hover,
.nx-product-nav__link:focus-visible {
	background-color: rgba(0, 136, 205, 0.08);
}

.nx-product-nav__icon {
	display: block;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	overflow: hidden;
}

.nx-product-nav__icon img {
	display: block;
	width: 100%;
	height: 100%;
}

/*--------------------------------------------------------------
# Header : メガメニュー
--------------------------------------------------------------*/

.nx-mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 9;
	padding: 40px 40px 64px;
	background-color: #fff;
	border-top: 1px solid #0088cd;
}

.nx-mega__inner {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
}

.nx-mega__column {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 200px;
	flex-shrink: 0;
}

.nx-mega__thumb {
	display: block;
	width: 200px;
	height: 80px;
	overflow: hidden;
}

.nx-mega__thumb-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-mega__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nx-mega__title {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 4px;
	color: #000;
	font-size: 18px;
	line-height: 1.5;
	text-decoration: none;
}

.nx-mega__title:hover,
.nx-mega__title:focus {
	color: #000;
	text-decoration: none;
	opacity: 0.7;
}

.nx-mega__title-arrow {
	display: block;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.nx-mega__links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* li を flex にして、インラインブロックのベースライン分の余白が入らないようにする */
.nx-mega__links-item {
	display: flex;
}

.nx-mega__link {
	display: inline-block;
	color: #000;
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
	border-bottom: 1px solid #000;
}

.nx-mega__link:hover,
.nx-mega__link:focus {
	color: #000;
	text-decoration: none;
	opacity: 0.7;
}

/* グループラベル（法人向け製品・サポートの列見出し） */

.nx-mega__label {
	margin: 0;
	color: #777;
	font-size: 12px;
	line-height: 1.5;
}

/*
 * 画像なしの列（サポート）は幅を内容にあわせ、列間を40pxにする
 */

.nx-mega--text .nx-mega__inner {
	gap: 40px;
}

.nx-mega--text .nx-mega__column {
	width: auto;
}

/* メガメニュー展開時の背景オーバーレイ */

.nx-mega-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 7;
	background-color: rgba(0, 0, 0, 0.2);
}

/*--------------------------------------------------------------
# Header : サブナビゲーション
--------------------------------------------------------------*/

.nx-sub-nav {
	display: flex;
	align-self: stretch;
}

.nx-sub-nav__list {
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 製品ナビゲーションとの区切り */
.nx-sub-nav__list::before {
	content: "｜";
	color: #aaa;
	font-size: 16px;
	line-height: 1.5;
}

.nx-sub-nav__item {
	display: flex;
	align-items: center;
	align-self: stretch;
}

.nx-sub-nav__link {
	display: flex;
	align-items: center;
	color: #000;
	font-size: 16px;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
}

.nx-sub-nav__link:hover,
.nx-sub-nav__link:focus {
	color: #000;
	text-decoration: underline;
}

.nx-sub-nav__item.is-current > .nx-sub-nav__link {
	text-decoration: underline;
}

/*--------------------------------------------------------------
# Header : 言語切り替え
--------------------------------------------------------------*/

.nx-lang {
	position: relative;
	display: flex;
	align-items: center;
	align-self: stretch;
}

.nx-lang__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 64px;
	height: 24px;
	padding: 0;
	color: #000;
	font-size: 14px;
	line-height: 1.5;
	background-color: transparent;
	border: 1px solid #0088cd;
	border-radius: 99999px;
	cursor: pointer;
}

.nx-lang__chevron {
	display: block;
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	transform: rotate(90deg);
	transition: transform 0.2s ease;
}

.nx-lang.is-open .nx-lang__chevron {
	transform: rotate(-90deg);
}

.nx-lang__list {
	position: absolute;
	top: calc(50% + 16px);
	right: 0;
	z-index: 10;
	width: 120px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background-color: #fff;
	border: 1px solid #0088cd;
	border-radius: 8px;
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.12));
}

/* 項目の間に 8px + 区切り線 + 8px の余白をとる */
.nx-lang__item + .nx-lang__item {
	position: relative;
	margin-top: 16px;
}

.nx-lang__item + .nx-lang__item::before {
	content: "";
	position: absolute;
	top: -8px;
	right: 0;
	left: 0;
	border-top: 1px solid #e6e6e6;
}

.nx-lang__link {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	padding: 0 24px;
	color: #000;
	font-size: 16px;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
}

.nx-lang__link:hover,
.nx-lang__link:focus {
	color: #000;
	text-decoration: underline;
}

/*--------------------------------------------------------------
# Header : 会員メニュー（新デザインに指定なし。既存機能を維持するための最小調整）
--------------------------------------------------------------*/

.nx-header__utility .header-menu-wrapper {
	width: auto;
	margin-left: 0;
	align-self: center;
}

.nx-header__utility ul.header-menu {
	width: auto;
}

.nx-header__utility .header-menu > li {
	margin: 0;
}

.nx-header__utility .menu-item.has-account-menu-button {
	margin-left: 0;
}

/*--------------------------------------------------------------
# Header : SP（言語ピル＋ハンバーガー）
--------------------------------------------------------------*/

.nx-header__mobile {
	display: flex;
	align-items: center;
	gap: 32px;
	margin-left: auto;
}

@media screen and (min-width: 768px) {
	.nx-header__mobile {
		display: none;
	}
}

@media screen and (max-width: 767px) {
	/* ドロップダウンをピルの直下に出すため、高さをピルに合わせる */
	.nx-lang.nx-lang--sp {
		align-self: center;
	}

	.nx-lang--sp .nx-lang__list {
		width: 180px;
		top: calc(100% + 8px);
		padding: 16px 0;
	}

	.nx-lang--sp .nx-lang__item + .nx-lang__item {
		margin-top: 32px;
	}

	.nx-lang--sp .nx-lang__item + .nx-lang__item::before {
		top: -16px;
	}
}

/*--------------------------------------------------------------
# Mobile Menu
--------------------------------------------------------------*/

.nx-mobile-menu {
	border-top: 1px solid #e6e6e6;
}

.nx-mobile-menu ul.mobile-menu {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 24px 16px;
}

/*
 * 既存のモバイルメニューの区切り線・余白をリセットする。
 * 既存ルールの詳細度が高いため、セレクタを合わせて上書きしている。
 */
.nx-mobile-menu ul.mobile-menu li.menu-item,
.nx-mobile-menu ul.mobile-menu li.menu-item:first-child {
	border: none;
	padding: 0;
}

.nx-mobile-menu ul.mobile-menu li.menu-item a {
	display: block;
	width: auto;
	padding: 0;
}

.nx-mobile-menu ul.mobile-menu li.menu-item a.nx-m-link {
	display: flex;
}

.nx-mobile-menu ul.mobile-menu li.menu-item a.nx-m-card__title {
	display: inline-flex;
}

.nx-mobile-menu ul.mobile-menu li.menu-item a.nx-m-card__link {
	display: inline-block;
}

.nx-mobile-menu .ancestor-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 0 16px;
}

.nx-m-link {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 24px;
	color: #000;
	font-size: 16px;
	line-height: 1.5;
	text-decoration: none;
}

.nx-m-link:hover,
.nx-m-link:focus {
	color: #000;
	text-decoration: none;
}

.nx-m-link__icon {
	display: block;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.nx-m-link__icon img {
	display: block;
	width: 100%;
	height: 100%;
}

/* 開閉トグル（＋ / −） */

.nx-mobile-menu ul.mobile-menu li.menu-item .ancestor-wrapper button.sub-menu-toggle {
	display: block;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
}

.nx-m-toggle img {
	display: block;
	width: 24px;
	height: 24px;
}

.nx-m-toggle .nx-m-toggle__minus,
.nx-m-toggle.active .nx-m-toggle__plus {
	display: none;
}

.nx-m-toggle.active .nx-m-toggle__minus {
	display: block;
}

/* アコーディオンの中身 */

.nx-m-sub {
	display: none;
	margin-top: 24px;
}

.nx-m-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px 20px;
	padding: 0 4px;
}

/* カード内の縦の間隔は8px。サムネイルとの間だけ16pxにする */
.nx-m-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.nx-mobile-menu ul.mobile-menu li.menu-item a.nx-m-card__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 200 / 80;
	margin-bottom: 8px;
	overflow: hidden;
}

.nx-m-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-m-card__title {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #000;
	font-size: 16px;
	line-height: 1.5;
	text-decoration: none;
}

.nx-m-card__title:hover,
.nx-m-card__title:focus {
	color: #000;
	text-decoration: none;
}

.nx-m-card__arrow {
	display: block;
	flex-shrink: 0;
	width: 12px;
	height: 12px;
}

.nx-m-card__label {
	margin: 0;
	color: #777;
	font-size: 12px;
	line-height: 1.5;
}

.nx-mobile-menu ul.nx-m-card__links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nx-m-card__links-item {
	display: flex;
}

.nx-mobile-menu .nx-m-card__link {
	display: inline-block;
	color: #000;
	font-size: 12px;
	line-height: 1.5;
	text-decoration: none;
	border-bottom: 1px solid #000;
}

.nx-mobile-menu .nx-m-card__link:hover,
.nx-mobile-menu .nx-m-card__link:focus {
	color: #000;
	text-decoration: none;
}

/* 製品メニューとサブリンクの区切り線 */

.nx-m-divider {
	height: 0;
	border-top: 1px solid #e6e6e6;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.nx-footer {
	background-color: #f2f3f4;
}

.nx-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 136px;
	padding: 24px 40px;
}

.nx-footer__copyright {
	margin: 0;
	color: #000;
	font-size: 16px;
	line-height: 1.5;
}

.nx-footer__copyright a {
	color: inherit;
	text-decoration: none;
}

.nx-footer__nav {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.nx-footer__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
}

.nx-footer .nx-footer__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nx-footer .nx-footer__menu-item {
	margin: 0;
	line-height: 1.5;
}

.nx-footer__link {
	color: #000;
	font-size: 16px;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
}

.nx-footer__link:hover,
.nx-footer__link:focus {
	color: #000;
	text-decoration: underline;
}

.nx-footer__link--small {
	color: #777;
	font-size: 12px;
}

.nx-footer__link--small:hover,
.nx-footer__link--small:focus {
	color: #777;
}

/* ソーシャルアイコン */

.nx-footer ul.nx-footer__social {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nx-footer ul.nx-footer__social li.menu-item {
	margin: 0;
}

.nx-footer ul.nx-footer__social a {
	display: block;
	color: #000;
}

.nx-footer ul.nx-footer__social a svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/*
 * SPのフッター（Figma: Footer_SP）
 *
 * PCと積み順が違う（リンク → 小リンク → SNS → コピーライト）。
 * ラッパーを display:contents で透過させ、.nx-footer__inner の直接の
 * フレックスアイテムにしてから order で並べ替えている。
 */

@media screen and (max-width: 1023px) {
	.nx-footer__inner {
		flex-direction: column;
		align-items: center;
		gap: 24px;
		padding: 16px;
	}

	.nx-footer__nav,
	.nx-footer__row--primary {
		display: contents;
	}

	.nx-footer__menu-wrapper--primary {
		order: 1;
		width: 100%;
	}

	.nx-footer__row--secondary {
		order: 2;
		width: 100%;
		justify-content: center;
	}

	.nx-footer .nx-footer__row--secondary .nx-footer__menu {
		justify-content: center;
	}

	.nx-footer__social-wrapper {
		order: 3;
	}

	.nx-footer__copyright {
		order: 4;
		font-size: 12px;
	}

	.nx-footer .nx-footer__menu-wrapper--primary .nx-footer__menu {
		justify-content: center;
		gap: 16px 24px;
	}

	.nx-footer__menu-wrapper--primary .nx-footer__link {
		font-size: 14px;
		white-space: normal;
	}

	.nx-footer ul.nx-footer__social {
		gap: 16px;
	}
}
