/* ==========================================================================
   今風デザイン v1.2.0(2026-10-26)
   文字・写真・ロゴ・ページ構成は現行のまま(追加した文字・番号なし)。main.css の上に重ねる
   functions.php の ns-modern の読み込みを外せば、現行とほぼ同じ見た目に戻る
   - 余白を広く・見出しを大きく・角丸の大きなカードと柔らかい影
   - ロゴの紫・オレンジはグラデーションの線・ボタン・アイコンの差し色にだけ使う
   - ヘッダーはスクロールで「浮かぶ丸いバー」に。見出し写真は下端を丸く
   ========================================================================== */

:root {
	--ns-grad: linear-gradient(90deg, var(--ns-purple) 0%, #b4248a 55%, var(--ns-orange) 100%);
	--ns-ink2: #1d1528;
	--ns-tint: #f6f3fa;
	--ns-line: #e8e2ee;
	--ns-radius: 20px;
	--ns-shadow: 0 24px 48px -24px rgba(29, 21, 40, 0.3);
	--ns-shadow-s: 0 12px 28px -16px rgba(29, 21, 40, 0.28);
}

body {
	color: #3a3342;
	letter-spacing: 0.05em;
}

::selection {
	background: rgba(127, 16, 132, 0.18);
}

:focus-visible {
	outline: 3px solid rgba(180, 36, 138, 0.55);
	outline-offset: 3px;
}

/* ---------------- ヘッダー ---------------- */
.ns-header {
	border-bottom: 0;
	background: linear-gradient(to bottom, rgba(14, 8, 24, 0.5), rgba(14, 8, 24, 0)) no-repeat;
	transition: background 0.4s;
}

.is-scrolled .ns-header {
	background: transparent;
	border-bottom: 0;
}

.ns-header__inner {
	position: relative;
	isolation: isolate;
}

.ns-header__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0);
	box-shadow: 0 0 0 rgba(29, 21, 40, 0);
	transition: background-color 0.5s, box-shadow 0.5s;
}

.is-scrolled .ns-header__inner {
	width: calc(100% - 30px);
	max-width: 1170px;
	height: 64px;
	margin: 12px auto 0;
	padding: 0 14px 0 28px;
}

.is-scrolled .ns-header__inner::before {
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: saturate(170%) blur(14px);
	backdrop-filter: saturate(170%) blur(14px);
	box-shadow: 0 14px 34px -16px rgba(29, 21, 40, 0.45);
}

.is-scrolled .ns-logo--dark {
	height: 42px;
}

@media (min-width: 991px) {
	.ns-gnav__list a {
		position: relative;
		letter-spacing: 0.14em;
	}

	.is-scrolled .ns-gnav__list a {
		padding-top: 22px;
		padding-bottom: 22px;
	}

	.ns-gnav__list a::after {
		content: "";
		position: absolute;
		left: 15px;
		right: 15px;
		bottom: 38px;
		height: 2px;
		border-radius: 2px;
		background: var(--ns-grad);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.35s ease, bottom 0.8s ease;
	}

	.is-scrolled .ns-gnav__list a::after {
		bottom: 14px;
	}

	.ns-gnav__list a:hover,
	.is-scrolled .ns-gnav__list a:hover {
		color: inherit;
	}

	.is-scrolled .ns-gnav__list a:hover {
		color: #333;
	}

	.ns-gnav__list a:hover::after,
	.ns-gnav__list .current-menu-item > a::after {
		transform: scaleX(1);
	}
}

@media (max-width: 990px) {
	.is-scrolled .ns-header__inner {
		height: 56px;
		padding: 0 10px 0 20px;
	}

	.is-scrolled .ns-logo--dark {
		height: 36px;
	}

	.ns-gnav {
		background: rgba(18, 10, 28, 0.95);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}

	.ns-gnav__list a,
	.is-scrolled .ns-gnav__list a {
		font-size: 22px;
	}

	.ns-gnav__list .current-menu-item > a {
		color: var(--ns-orange);
	}
}

/* ---------------- トップのメイン ---------------- */
.ns-intro::before {
	background:
		radial-gradient(ellipse at 50% 55%, rgba(14, 8, 24, 0.15) 0%, rgba(14, 8, 24, 0.62) 80%),
		linear-gradient(135deg, rgba(60, 8, 70, 0.4), rgba(14, 8, 24, 0) 55%),
		linear-gradient(to top, rgba(14, 8, 24, 0.6), rgba(14, 8, 24, 0) 38%);
}

.ns-intro::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	height: 56px;
	border-radius: 48px 48px 0 0;
	background: #fff;
}

.ns-intro__body {
	padding-bottom: 90px;
}

.ns-intro__logo img {
	filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.4));
	animation: ns-logo-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes ns-logo-in {
	from { opacity: 0; transform: translateY(26px) scale(0.95); }
	to { opacity: 1; transform: none; }
}

/* ---------------- 下層の写真見出し ---------------- */
.ns-tagline {
	border-radius: 0 0 48px 48px;
}

.ns-tagline::before {
	background:
		linear-gradient(110deg, rgba(50, 6, 58, 0.78) 0%, rgba(14, 8, 24, 0.55) 55%, rgba(14, 8, 24, 0.35) 100%);
}

.ns-tagline__body {
	padding: 200px 0 130px;
}

.ns-tagline__title {
	font-size: 56px;
	line-height: 1.3;
	letter-spacing: 0.14em;
	text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.ns-breadcrumbs {
	display: inline-block;
	margin-top: 26px;
	padding: 7px 22px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 12px;
	letter-spacing: 0.18em;
}

@media (max-width: 767px) {
	.ns-tagline {
		border-radius: 0 0 28px 28px;
	}

	.ns-tagline__body {
		padding: 140px 0 80px;
	}

	.ns-tagline__title {
		font-size: 34px;
	}

	.ns-intro::after {
		height: 36px;
		border-radius: 28px 28px 0 0;
	}
}

/* ---------------- 本文の見出し ---------------- */
.ns-home-about > h2,
.ns-business > h3,
.ns-recruit > h2 {
	position: relative;
	padding-bottom: 30px;
}

.ns-home-about > h2::after,
.ns-business > h3::after,
.ns-recruit > h2::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 56px;
	height: 4px;
	margin-left: -28px;
	border-radius: 4px;
	background: var(--ns-grad);
}

body .ns-content .ns-home-about > h2 {
	margin-bottom: 70px;
	font-size: 34px;
	line-height: 1.6;
	letter-spacing: 0.08em;
}

@media (max-width: 767px) {
	body .ns-content .ns-home-about > h2 {
		font-size: 24px;
		margin-bottom: 48px;
	}
}

/* ---------------- トップ: ごあいさつ ---------------- */
.ns-content--home {
	background: linear-gradient(to bottom, #fff 0%, var(--ns-tint) 55%, #fff 100%);
}

.ns-home-about {
	padding-top: 60px;
}

.ns-about {
	align-items: center;
	margin-bottom: 70px;
}

.ns-about .wp-block-column:first-child {
	position: relative;
	flex-grow: 1.35;
}

.ns-about .wp-block-column:last-child {
	align-self: center;
}

.ns-about .wp-block-column:first-child::before {
	content: "";
	position: absolute;
	left: -24px;
	top: -24px;
	width: 55%;
	height: 60%;
	border-radius: 28px;
	background: var(--ns-grad);
	opacity: 0.9;
}

.ns-about .ns-photo {
	position: relative;
	border-radius: 28px;
	box-shadow: var(--ns-shadow);
}

body .ns-content .wp-block-column > p.ns-about-text {
	position: relative;
	z-index: 2;
	margin-left: -90px;
	padding: 52px 48px;
	border-radius: var(--ns-radius);
	background: #fff;
	box-shadow: var(--ns-shadow);
	font-size: 16px;
	line-height: 2.1;
}

@media (max-width: 767px) {
	.ns-about .wp-block-column:first-child::before {
		left: -10px;
		top: -10px;
	}

	body .ns-content .wp-block-column > p.ns-about-text {
		margin: -40px 12px 0;
		padding: 32px 24px;
		text-align: left;
	}
}

/* ---------------- 地図 ---------------- */
.ns-content .ns-map-row {
	padding: 40px 15px 0;
}

.ns-map {
	max-width: 1170px;
	margin: 0 auto;
}

.ns-map iframe {
	height: 460px;
	border-radius: 28px;
	box-shadow: var(--ns-shadow);
	filter: grayscale(1) contrast(1.05);
	transition: filter 0.5s;
}

.ns-map iframe:hover {
	filter: none;
}

body .ns-content .ns-map-row--flush {
	padding-bottom: 0;
}

.ns-map-row {
	margin-bottom: 100px;
}

/* ---------------- 事業内容: 4つの業務をカードに ---------------- */
.ns-ns-business,
.ns-business {
	padding-bottom: 20px;
}

body .ns-content .ns-mt120.ns-mb60 > p {
	font-size: 17px;
	line-height: 2;
}

body .ns-content .wp-block-column > .ns-box {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 190px;
	margin-bottom: 35px;
	padding: 40px 20px;
	overflow: hidden;
	border-radius: 24px;
	background: linear-gradient(155deg, #3d2a52 0%, #1d1528 70%);
	box-shadow: var(--ns-shadow);
	font-size: 18px;
	line-height: 1.6;
	letter-spacing: 0.1em;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ns-box::before {
	content: "";
	position: absolute;
	right: -50px;
	top: -50px;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: var(--ns-grad);
	opacity: 0.55;
	filter: blur(2px);
	transition: transform 0.5s ease;
}

.ns-box::after {
	content: "";
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 24px;
	height: 3px;
	border-radius: 3px;
	background: var(--ns-grad);
	opacity: 0.9;
}

.ns-box:hover {
	transform: translateY(-8px);
	box-shadow: 0 34px 56px -26px rgba(60, 20, 90, 0.6);
}

.ns-box:hover::before {
	transform: scale(1.5);
}

.ns-business > p.has-text-align-right {
	color: #7a7184;
	font-size: 14px;
}

/* ---------------- 会社概要の表 ---------------- */
.ns-company {
	margin-top: 40px;
}

.ns-company table {
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--ns-shadow);
}

.ns-company tr {
	border-bottom: 0;
}

.ns-company th,
.ns-company td {
	padding: 20px 32px;
	border-bottom: 1px solid var(--ns-line);
	text-align: left;
}

.ns-company tr:last-child th,
.ns-company tr:last-child td {
	border-bottom: 0;
}

.ns-company th {
	width: 30%;
	background: var(--ns-tint);
	color: var(--ns-purple);
	font-size: 14px;
	letter-spacing: 0.1em;
}

.ns-company th::after {
	display: none;
}

.ns-company td {
	background: #fff;
	color: #3a3342;
}

@media (max-width: 767px) {
	.ns-company table {
		border-radius: 16px;
	}

	.ns-company th,
	.ns-company td {
		padding: 14px 12px;
		font-size: 13px;
	}
}

/* ---------------- 採用情報 ---------------- */
body .ns-content > .wp-block-group.ns-recruit {
	width: min(calc(100% - 30px), 1000px);
	padding: 90px 30px 80px;
	border-radius: 32px;
	background: linear-gradient(135deg, #f6f1fb 0%, #fff4e4 100%);
	box-shadow: var(--ns-shadow-s);
}

.ns-recruit .wp-block-buttons {
	margin-bottom: 0;
}

.ns-btn-recruit .wp-block-button__link {
	padding: 22px 52px 22px 70px;
	border: 0;
	border-radius: 999px;
	background: var(--ns-grad);
	background-size: 170% 100%;
	box-shadow: 0 16px 32px -14px rgba(127, 16, 132, 0.75);
	font-weight: 700;
	letter-spacing: 0.1em;
	transition: background-position 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ns-btn-recruit .wp-block-button__link::before {
	left: 34px;
}

.ns-btn-recruit .wp-block-button__link:hover,
.ns-btn-recruit .wp-block-button__link:focus {
	background: var(--ns-grad);
	background-size: 170% 100%;
	background-position: 100% 0;
	transform: translateY(-3px);
	box-shadow: 0 22px 38px -14px rgba(127, 16, 132, 0.85);
}

/* ---------------- お問い合わせ ---------------- */
.ns-contact-info li {
	gap: 16px;
}

.ns-contact-info .ns-icon {
	box-sizing: content-box;
	width: 16px;
	height: 16px;
	padding: 12px;
	border-radius: 50%;
	background: var(--ns-tint);
	color: var(--ns-purple);
}

.ns-contact {
	align-items: flex-start;
	gap: 56px;
}

.ns-contact .wp-block-column:last-child {
	padding: 48px 44px 40px;
	border-radius: 28px;
	background: #fff;
	box-shadow: var(--ns-shadow);
}

.ns-form input[type="text"],
.ns-form input[type="email"],
.ns-form input[type="tel"],
.ns-form textarea {
	height: 56px;
	border-color: var(--ns-line);
	border-radius: 14px;
	background: #fbfafc;
	transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.ns-form textarea {
	height: 160px;
}

.ns-form input:focus,
.ns-form textarea:focus {
	border-color: var(--ns-purple);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(127, 16, 132, 0.12);
}

.ns-form input[type="submit"] {
	padding: 16px 60px;
	border-radius: 999px;
	background: var(--ns-grad);
	background-size: 170% 100%;
	font-size: 14px;
	letter-spacing: 0.22em;
	box-shadow: 0 14px 28px -12px rgba(127, 16, 132, 0.75);
	transition: background-position 0.5s ease, transform 0.3s ease;
}

.ns-form input[type="submit"]:hover {
	background: var(--ns-grad);
	background-size: 170% 100%;
	background-position: 100% 0;
	transform: translateY(-2px);
}

.ns-form__note {
	color: #8a8192;
	font-size: 12px;
	line-height: 1.8;
}

@media (max-width: 767px) {
	.ns-contact {
		gap: 0;
	}

	.ns-contact .wp-block-column:last-child {
		margin-top: 40px;
		padding: 26px 18px;
	}
}

/* ---------------- 個人情報保護方針 ---------------- */
body .ns-content > .wp-block-group.ns-policy {
	max-width: 900px;
}

.ns-policy p {
	line-height: 2.1;
}

.ns-policy h3 {
	position: relative;
	margin-top: 28px;
	padding-left: 24px;
	font-size: 20px;
}

.ns-policy h3::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 6px;
	height: 1.1em;
	border-radius: 6px;
	background: var(--ns-grad);
}

@media (max-width: 991px) {
	.ns-policy h3 {
		padding-left: 0;
		padding-top: 18px;
	}

	.ns-policy h3::before {
		left: 50%;
		top: 0;
		width: 30px;
		height: 3px;
		margin-left: -15px;
	}
}

/* ---------------- フッター ---------------- */
.ns-footer {
	position: relative;
	background: linear-gradient(to bottom, var(--ns-tint), #fff 120%);
}

.ns-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: var(--ns-grad);
}

.ns-footer__name {
	margin-bottom: 4px;
	color: var(--ns-ink2);
	font-weight: 700;
}

.ns-footer__tel .ns-icon {
	color: var(--ns-purple);
}

.ns-fnav a {
	position: relative;
	padding-left: 18px;
	transition: color 0.25s, padding 0.25s;
}

.ns-fnav a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 8px;
	height: 2px;
	border-radius: 2px;
	background: var(--ns-grad);
	transition: width 0.25s;
}

.ns-fnav a:hover {
	color: var(--ns-purple);
	padding-left: 24px;
}

.ns-fnav a:hover::before {
	width: 14px;
}

.ns-footer__copy {
	padding: 4px 0;
	background: linear-gradient(90deg, #1d1528, #2a1a3d);
}

.ns-footer__copy p {
	padding: 20px 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 11px;
	letter-spacing: 0.16em;
}

@media (max-width: 767px) {
	.ns-footer__main {
		padding: 30px 0 20px;
	}

	.ns-footer__col {
		padding-top: 16px;
		padding-bottom: 16px;
	}

	.ns-footer__col:empty {
		display: none;
	}

	.ns-footer__logo img {
		width: 180px;
		margin: 0 auto;
	}

	.ns-fnav {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px 22px;
	}

	.ns-fnav li {
		padding-bottom: 6px;
	}

	.ns-fnav a {
		padding-left: 0;
	}

	.ns-fnav a::before {
		display: none;
	}
}

/* ---------------- ページの先頭へ ---------------- */
.ns-pagetop {
	border-radius: 50%;
	background: var(--ns-grad);
	box-shadow: 0 12px 26px -10px rgba(127, 16, 132, 0.8);
}

.ns-pagetop:hover {
	background: var(--ns-grad);
	transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
	.ns-intro__logo img {
		animation: none;
	}

	.ns-box,
	.ns-box:hover,
	.ns-box::before,
	.ns-box:hover::before {
		transition: none;
		transform: none;
	}
}
