/*
 * PROWORK Corporate — main stylesheet (original).
 * No remote fonts, no CDN, no external assets. System Japanese font stack only.
 *
 * Mobile first (Phase 3): base rules are written for 320–767px phones (designed at
 * 375 / 390 / 430px); larger screens are layered on with min-width queries.
 * Breakpoints: 560px (large phone / small tablet), 768px (tablet), 1024px (desktop).
 */

/* ------------------------------------------------------------------ Tokens */
:root {
	--pw-navy: #0b203a;
	--pw-navy-2: #10325c;
	--pw-blue: #0b66d3;
	--pw-blue-2: #2d8cff;
	--pw-sky: #eaf4ff;
	--pw-ice: #f6faff;
	--pw-mist: #f3f8ff;
	--pw-tint: #f3f8fe; /* About, interior page headers: very light blue */
	--pw-tint-2: #eff4f9; /* Recruit: very light blue-grey */
	--pw-text: #102033;
	--pw-text-2: #34475e;
	--pw-muted: #5f6f82; /* spec #6f7f92 darkened slightly for WCAG AA body text */
	--pw-line: rgba(16, 32, 51, .12);
	--pw-line-soft: rgba(16, 32, 51, .08);
	--pw-line-blue: rgba(11, 102, 211, .22);
	--pw-white: #fff;
	--pw-error: #c62a2a;
	--pw-success: #11795b;

	--pw-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", YuGothic, Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;
	--pw-font-latin: "Helvetica Neue", "Segoe UI", Arial, var(--pw-font);

	/* Phone type scale: sized so the approved headlines keep their phrases on one
	   line down to 320px (e.g. 「働き方を変える。」「自分らしいキャリアを。」). */
	--pw-fs-hero: clamp(2.0625rem, .9rem + 5.6vw, 2.75rem);
	--pw-fs-statement: clamp(1.5rem, .4rem + 5.6vw, 2.125rem);
	--pw-fs-h2: clamp(1.5rem, .4rem + 5.6vw, 2.125rem);
	--pw-fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.375rem);
	--pw-fs-lead: clamp(.875rem, .55rem + 1.6vw, 1rem);
	--pw-fs-text: .9375rem;
	--pw-fs-body: 1rem;
	--pw-fs-small: .875rem;
	--pw-fs-xs: .75rem;
	--pw-ls-head: .02em;

	--pw-gutter: clamp(20px, 5.4vw, 72px);
	--pw-container: 1320px;
	--pw-bleed: max(var(--pw-gutter), calc((100vw - var(--pw-container)) / 2));
	--pw-section: clamp(84px, 10vw, 168px);
	--pw-header-h: 60px;

	--pw-radius-s: 2px;
	--pw-radius-m: 4px;
	--pw-shadow-1: 0 1px 2px rgba(11, 32, 58, .04), 0 12px 32px rgba(11, 32, 58, .06);
	--pw-shadow-2: 0 2px 6px rgba(11, 32, 58, .05), 0 24px 56px rgba(11, 32, 58, .12);
	--pw-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
	:root {
		--pw-fs-hero: clamp(2.5rem, 1.25rem + 4.2vw, 5.25rem);
		--pw-fs-statement: clamp(2.25rem, 1.2rem + 2.1vw, 3rem);
		--pw-fs-h2: clamp(2rem, 1.25rem + 1.7vw, 2.75rem);
		--pw-fs-h3: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
		--pw-fs-lead: clamp(1rem, .95rem + .28vw, 1.1875rem);
		--pw-ls-head: .04em;
	}
}

@media (min-width: 1024px) {
	:root {
		--pw-header-h: 84px;
	}
}

/* ------------------------------------------------------------------ Base */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--pw-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--pw-white);
	color: var(--pw-text);
	font-family: var(--pw-font);
	font-size: var(--pw-fs-body);
	line-height: 1.9;
	letter-spacing: .02em;
	font-feature-settings: "palt" 1;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: anywhere;
	line-break: strict;
}

img,
svg,
picture {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

h1,
h2,
h3,
p,
ul {
	margin: 0;
}

p {
	text-wrap: pretty;
}

h1,
h2,
h3 {
	text-wrap: balance;
}

ul {
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 3px solid var(--pw-blue-2);
	outline-offset: 3px;
	border-radius: 2px;
}

.pw-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.pw-skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 12px 20px;
	background: var(--pw-navy);
	color: var(--pw-white);
	font-weight: 700;
	text-decoration: none;
	transform: translateY(-160%);
}

.pw-skip-link:focus {
	transform: none;
}

.pw-main {
	overflow-x: clip;
}

.pw-main:focus {
	outline: none;
}

.pw-container {
	width: min(100% - var(--pw-gutter) * 2, var(--pw-container));
	margin-inline: auto;
}

/* ------------------------------------------------------------------ Designed Japanese line breaks
   .pw-ph: a phrase from prowork_corporate_phrase_html() (split after 、。！？). Lines wrap
   between phrases; a phrase only wraps inside when it is wider than the screen. */
.pw-ph {
	display: inline-block;
	max-width: 100%;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

/* Device-specific breaks for theme-authored copy. */
.pw-sp-only,
br.pw-sp-br {
	display: revert;
}

.pw-pc-only,
br.pw-pc-br {
	display: none;
}

@media (min-width: 768px) {
	.pw-sp-only,
	br.pw-sp-br {
		display: none;
	}

	.pw-pc-only,
	br.pw-pc-br {
		display: revert;
	}
}

/* ------------------------------------------------------------------ Eyebrow & section headings */
.pw-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--pw-blue);
	font-family: var(--pw-font-latin);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .3em;
	line-height: 1.4;
	text-transform: uppercase;
}

.pw-eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
	opacity: .7;
}

.pw-section {
	position: relative;
	padding-block: var(--pw-section);
}

.pw-section-heading__title {
	margin-top: 16px;
	color: var(--pw-navy);
	font-size: var(--pw-fs-h2);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: var(--pw-ls-head);
}

.pw-section-heading__intro {
	max-width: 34em;
	margin-top: 20px;
	color: var(--pw-muted);
	font-size: var(--pw-fs-text);
	line-height: 1.95;
}

.pw-section-heading--light .pw-eyebrow {
	color: #a9d0ff;
}

.pw-section-heading--light .pw-section-heading__title {
	color: var(--pw-white);
}

.pw-section-heading--light .pw-section-heading__intro {
	color: rgba(255, 255, 255, .86);
}

@media (min-width: 768px) {
	.pw-eyebrow {
		letter-spacing: .32em;
	}

	.pw-eyebrow::before {
		width: 32px;
	}

	.pw-section-heading__title {
		margin-top: 20px;
		line-height: 1.45;
	}

	.pw-section-heading__intro {
		margin-top: 24px;
		line-height: 2.05;
	}
}

/* ------------------------------------------------------------------ Buttons */
.pw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 56px;
	padding: 0 22px 0 28px;
	border: 1px solid transparent;
	border-radius: var(--pw-radius-s);
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.pw-btn .pw-icon {
	flex: none;
	transition: transform .35s var(--pw-ease);
}

.pw-btn:hover .pw-icon,
.pw-btn:focus-visible .pw-icon {
	transform: translateX(5px);
}

.pw-btn--primary {
	background: linear-gradient(120deg, var(--pw-blue) 0%, #0a58bb 100%);
	color: var(--pw-white);
	box-shadow: 0 14px 30px rgba(11, 102, 211, .22);
}

.pw-btn--primary:hover {
	background: var(--pw-navy-2);
}

.pw-btn--secondary {
	border-color: var(--pw-line-blue);
	background: transparent;
	color: var(--pw-navy);
}

.pw-btn--secondary:hover {
	border-color: var(--pw-blue);
	color: var(--pw-blue);
}

.pw-btn--ghost {
	border-color: rgba(11, 32, 58, .14);
	background: rgba(255, 255, 255, .7);
	color: var(--pw-navy);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.pw-btn--ghost:hover {
	border-color: var(--pw-navy);
	background: var(--pw-white);
}

.pw-btn--light {
	background: var(--pw-white);
	color: var(--pw-navy);
}

.pw-btn--light:hover {
	background: var(--pw-sky);
}

.pw-btn--outline-light {
	border-color: rgba(255, 255, 255, .5);
	color: var(--pw-white);
}

.pw-btn--outline-light:hover {
	border-color: var(--pw-white);
	background: rgba(255, 255, 255, .08);
}

/* ------------------------------------------------------------------ Header */
.pw-header-sentinel {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 24px;
	pointer-events: none;
}

.pw-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	transition: border-color .35s ease, box-shadow .35s ease;
}

/* Translucent background on a pseudo-element: a backdrop-filter on the header itself
   would become the containing block of the position:fixed mobile menu panel. */
.pw-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, .92);
	transition: opacity .35s ease;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.pw-header::before {
		background: rgba(255, 255, 255, .8);
		-webkit-backdrop-filter: saturate(160%) blur(16px);
		backdrop-filter: saturate(160%) blur(16px);
	}
}

/* Front page: header floats transparently over the bright hero until scrolled (JS only). */
.pw-js .home .pw-header:not(.is-scrolled):not(.is-nav-open)::before {
	opacity: 0;
}

.pw-header.is-scrolled {
	border-bottom-color: var(--pw-line-soft);
	box-shadow: 0 8px 28px rgba(11, 32, 58, .05);
}

.pw-header.is-nav-open::before {
	background: var(--pw-white);
	opacity: 1;
}

/* Logged-in admin bar: WordPress keeps it fixed only above 600px (46px up to 782px,
   32px from 783px); at 600px and below it scrolls away, so the header sticks at 0. */
@media (min-width: 601px) {
	.admin-bar .pw-header {
		top: 46px;
	}
}

@media (min-width: 783px) {
	.admin-bar .pw-header {
		top: 32px;
	}
}

/* Section / page titles and in-page targets never end up under the sticky header. */
h1[id],
h2[id],
h3[id],
section[id],
.pw-page__title,
.pw-content [id] {
	scroll-margin-top: calc(var(--pw-header-h) + 20px);
}

/* Phone: once scrolled, the header reads as a solid bar (titles do not show through). */
@media (max-width: 1023px) {
	.pw-header.is-scrolled::before {
		background: rgba(255, 255, 255, .96);
	}
}

.pw-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--pw-header-h);
	padding-inline: var(--pw-gutter);
}

.pw-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--pw-navy);
	text-decoration: none;
}

.pw-brand__mark {
	position: relative;
	width: 20px;
	height: 20px;
	flex: none;
}

.pw-brand__mark::before,
.pw-brand__mark::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 1px;
	transform: skewX(-18deg);
}

.pw-brand__mark::before {
	background: var(--pw-blue);
	clip-path: polygon(0 0, 58% 0, 58% 100%, 0 100%);
}

.pw-brand__mark::after {
	background: var(--pw-blue-2);
	opacity: .55;
	clip-path: polygon(46% 0, 100% 0, 100% 100%, 46% 100%);
}

.pw-brand__name {
	font-family: var(--pw-font-latin);
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: .24em;
}

.custom-logo-link img {
	width: auto;
	max-height: 38px;
}

.pw-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 36px;
}

.pw-nav__list a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--pw-navy);
	font-size: .875rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-decoration: none;
}

.pw-nav__list a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 8px;
	left: 0;
	height: 1px;
	background: var(--pw-blue);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .4s var(--pw-ease);
}

.pw-nav__list a:hover::after,
.pw-nav__list .current-menu-item > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

.pw-header__toggle {
	display: none;
}

.pw-header__panel {
	display: flex;
	align-items: center;
	gap: 40px;
}

.pw-header__cta {
	gap: 18px;
	min-height: 44px;
	padding: 0 16px 0 20px;
	font-size: .8125rem;
}

@media (min-width: 1024px) and (max-width: 1180px) {
	.pw-nav__list {
		gap: 8px 24px;
	}

	.pw-header__panel {
		gap: 28px;
	}
}

/* Mobile header (JS available): full-screen menu panel. */
@media (max-width: 1023px) {
	.pw-js .pw-header__toggle {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		margin-right: -12px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--pw-navy);
		cursor: pointer;
	}

	.pw-header__toggle-box {
		position: relative;
		width: 24px;
		height: 12px;
	}

	.pw-header__toggle-box::before,
	.pw-header__toggle-box::after,
	.pw-header__toggle-line {
		content: "";
		position: absolute;
		left: 0;
		width: 100%;
		height: 1.5px;
		border-radius: 1px;
		background: currentColor;
		transition: transform .3s var(--pw-ease), opacity .2s ease, top .3s var(--pw-ease), width .3s var(--pw-ease);
	}

	.pw-header__toggle-box::before {
		top: 0;
	}

	.pw-header__toggle-line {
		top: 5px;
	}

	.pw-header__toggle-box::after {
		top: 10px;
		width: 60%;
	}

	.pw-header.is-nav-open .pw-header__toggle-box::before {
		top: 5px;
		transform: rotate(45deg);
	}

	.pw-header.is-nav-open .pw-header__toggle-line {
		opacity: 0;
	}

	.pw-header.is-nav-open .pw-header__toggle-box::after {
		top: 5px;
		width: 100%;
		transform: rotate(-45deg);
	}

	.pw-js .pw-header__panel {
		position: fixed;
		top: var(--pw-header-h);
		right: 0;
		bottom: 0;
		left: 0;
		flex-direction: column;
		align-items: stretch;
		justify-content: space-between;
		gap: 32px;
		padding: 24px var(--pw-gutter) calc(32px + env(safe-area-inset-bottom));
		overflow-y: auto;
		overscroll-behavior: contain;
		background:
			radial-gradient(120% 60% at 100% 100%, rgba(45, 140, 255, .14), rgba(45, 140, 255, 0) 60%),
			linear-gradient(165deg, rgba(234, 244, 255, 0) 45%, rgba(234, 244, 255, .95) 100%),
			var(--pw-white);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity .25s ease, transform .25s var(--pw-ease), visibility 0s linear .25s;
	}

	/* site.js sets the exact top (bottom edge of the header) when the menu opens. */
	.pw-js .admin-bar .pw-header__panel {
		top: calc(var(--pw-header-h) + 46px);
	}

	.pw-header.is-nav-open .pw-header__panel {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity .25s ease, transform .25s var(--pw-ease), visibility 0s;
	}

	.pw-js .pw-nav::before {
		content: "MENU";
		display: block;
		margin-bottom: 8px;
		color: var(--pw-blue);
		font-family: var(--pw-font-latin);
		font-size: 11px;
		font-weight: 600;
		letter-spacing: .3em;
	}

	.pw-js .pw-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.pw-js .pw-nav__list li {
		border-bottom: 1px solid var(--pw-line-soft);
	}

	.pw-js .pw-nav__list a {
		display: flex;
		width: 100%;
		min-height: 64px;
		font-size: 1.1875rem;
		font-weight: 700;
		letter-spacing: .08em;
	}

	.pw-js .pw-nav__list a::after {
		display: none;
	}

	.pw-js .pw-header__cta {
		width: 100%;
		min-height: 56px;
		font-size: .9375rem;
	}

	html.pw-nav-open,
	html.pw-nav-open body {
		overflow: hidden;
	}

	/* No JS: keep navigation visible under the brand. */
	html:not(.pw-js) .pw-header__inner {
		flex-wrap: wrap;
		padding-block: 8px;
	}

	html:not(.pw-js) .pw-header__panel {
		flex-wrap: wrap;
		gap: 12px 24px;
		width: 100%;
	}
}

/* ------------------------------------------------------------------ Decorative visuals */
.pw-visual {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.pw-visual__svg {
	width: 100%;
	height: 100%;
}

.pw-ribbons {
	position: absolute;
	width: 100%;
	pointer-events: none;
}

.pw-ribbons__band--a {
	fill: rgba(45, 140, 255, .14);
}

.pw-ribbons__band--b {
	fill: rgba(11, 102, 211, .09);
}

.pw-ribbons__line {
	fill: none;
	stroke: rgba(11, 102, 211, .35);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

/* Very faint background motif (About, interior page headers). */
.pw-ribbons--soft {
	right: 0;
	bottom: 0;
	left: 0;
	height: 48%;
	opacity: .5;
}

/* ------------------------------------------------------------------ Hero */
.pw-hero {
	position: relative;
	z-index: 1;
	display: grid;
	align-items: start;
	min-height: 600px;
	min-height: clamp(540px, 80svh, 700px);
	background: var(--pw-sky);
}

/* Pull the hero under the (transparent) front-page header. */
.home .pw-hero {
	margin-top: calc(-1 * var(--pw-header-h));
	padding-top: var(--pw-header-h);
}

.pw-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.pw-hero__picture,
.pw-hero__image {
	width: 100%;
	height: 100%;
}

/* Phone: the portrait photograph is laid out 125% as tall as the (compact) hero and
   anchored to the top: the city stays low, below the copy on the calm sky, and only the
   empty floor at the bottom is cropped. */
.pw-hero__image {
	height: 125%;
	object-fit: cover;
	object-position: 50% 0;
}

.pw-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(247, 251, 255, .96) 0%, rgba(247, 251, 255, .9) 44%, rgba(247, 251, 255, .5) 62%, rgba(247, 251, 255, 0) 74%),
		linear-gradient(180deg, rgba(243, 248, 254, 0) 84%, var(--pw-tint) 100%);
	pointer-events: none;
}

.pw-hero > .pw-ribbons {
	z-index: 2;
	bottom: -56px;
	left: 0;
	height: 140px;
}

.pw-hero__inner {
	position: relative;
	z-index: 3;
	grid-area: 1 / 1;
	padding-block: 24px 48px;
}

.pw-hero__title {
	margin: 16px 0 16px;
	color: var(--pw-navy);
	font-size: var(--pw-fs-hero);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .03em;
}

.pw-hero__lead {
	max-width: 30em;
	color: var(--pw-text-2);
	font-size: var(--pw-fs-lead);
	line-height: 1.95;
}

.pw-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin-top: 28px;
}

/* Phone: the primary action leads; the secondary action is a quieter text link
   (still a 48px tap target). */
.pw-hero__actions .pw-btn--primary {
	width: 100%;
}

.pw-hero__actions .pw-btn--ghost {
	gap: 12px;
	min-height: 48px;
	padding: 0 4px;
	border-color: transparent;
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	color: var(--pw-navy);
	text-decoration: underline;
	text-decoration-color: var(--pw-line-blue);
	text-underline-offset: 6px;
}

@media (min-width: 560px) {
	.pw-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 16px;
	}

	.pw-hero__actions .pw-btn--primary,
	.pw-hero__actions .pw-btn--ghost {
		width: auto;
		min-width: 232px;
		min-height: 56px;
		padding: 0 22px 0 28px;
		gap: 28px;
		border-color: rgba(11, 32, 58, .14);
		background: rgba(255, 255, 255, .7);
		text-decoration: none;
	}

	.pw-hero__actions .pw-btn--primary {
		border-color: transparent;
		background: linear-gradient(120deg, var(--pw-blue) 0%, #0a58bb 100%);
	}

	.pw-hero__actions .pw-btn--primary:hover {
		background: var(--pw-navy-2);
	}

	.pw-hero__actions .pw-btn--ghost {
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}

	.pw-hero__actions .pw-btn--ghost:hover {
		border-color: var(--pw-navy);
		background: var(--pw-white);
	}
}

@media (min-width: 768px) {
	.pw-hero {
		align-items: center;
		min-height: 720px;
		min-height: clamp(640px, 100svh, 960px);
	}

	.pw-hero__image {
		height: 100%;
		object-position: 64% 50%;
	}

	/* Desktop: bright left third carries the copy; photography runs through the right. */
	.pw-hero__shade {
		background:
			linear-gradient(90deg, rgba(247, 251, 255, .95) 0%, rgba(247, 251, 255, .84) 26%, rgba(247, 251, 255, .34) 46%, rgba(247, 251, 255, 0) 60%),
			linear-gradient(180deg, rgba(243, 248, 254, 0) 82%, var(--pw-tint) 100%);
	}

	.pw-hero > .pw-ribbons {
		bottom: -140px;
		height: 300px;
	}

	.pw-hero__inner {
		padding-block: 72px 120px;
	}

	.pw-hero__content {
		max-width: min(680px, 56%);
	}

	.pw-hero__title {
		margin: 28px 0 26px;
		line-height: 1.26;
	}

	.pw-hero__lead {
		max-width: 34em;
		line-height: 2;
	}

	.pw-hero__actions {
		margin-top: 44px;
	}
}

/* Emergency fallback (no image at all): the SVG sits behind the same light shade. */
.pw-hero--fallback .pw-visual__svg {
	opacity: .85;
}

/* Entrance motion (disabled by prefers-reduced-motion below). */
.pw-hero__content > * {
	animation: pw-rise .9s var(--pw-ease) both;
}

.pw-hero__content > :nth-child(2) {
	animation-delay: .08s;
}

.pw-hero__content > :nth-child(3) {
	animation-delay: .16s;
}

.pw-hero__content > :nth-child(4) {
	animation-delay: .24s;
}

.pw-hero .pw-ribbons__band--a {
	animation: pw-drift 18s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------------ About (very light blue) */
.pw-about {
	background: var(--pw-tint);
}

.pw-about > .pw-ribbons--soft {
	top: 24px;
	bottom: auto;
	height: 200px;
	transform: scaleX(-1);
}

.pw-about__grid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 40px;
}

/* Phone / tablet: copy first (the hero above is already a photograph), then the
   photograph full-bleed, 300–420px tall. */
.pw-about__media {
	position: relative;
	order: 2;
	height: clamp(300px, 86vw, 420px);
	margin-inline: calc(-1 * var(--pw-gutter));
	margin-bottom: calc(-1 * var(--pw-section));
}

.pw-about__media > .pw-visual,
.pw-about__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 42% 50%;
}

/* The glass plate is a desktop flourish only. */
.pw-about__glass {
	display: none;
}

.pw-about .pw-section-heading__title,
.pw-recruit .pw-section-heading__title {
	font-size: var(--pw-fs-statement);
	line-height: 1.5;
}

/* Statement headings never outgrow their own column (container query units): the
   approved lines 「はたらく可能性を、」 (9 characters) and 「自分らしいキャリアを。」
   (11) stay on one line at every width, e.g. in the narrower 1024–1280px columns. */
.pw-about__content,
.pw-recruit__content,
.pw-cta__text {
	container-type: inline-size;
}

.pw-about .pw-section-heading__title {
	font-size: min(var(--pw-fs-statement), 10.5cqi);
}

.pw-recruit .pw-section-heading__title {
	font-size: min(var(--pw-fs-statement), 8.8cqi);
}

.pw-about__text,
.pw-recruit__text {
	max-width: 32em;
	margin: 20px 0 32px;
	color: var(--pw-text-2);
	font-size: var(--pw-fs-text);
	line-height: 1.95;
}

@media (min-width: 768px) {
	.pw-about__media {
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.pw-about__grid {
		gap: 56px;
	}

	.pw-about__text,
	.pw-recruit__text {
		margin: 28px 0 40px;
		line-height: 2.15;
	}

	.pw-about .pw-section-heading__title,
	.pw-recruit .pw-section-heading__title {
		line-height: 1.42;
	}
}

@media (min-width: 1024px) {
	.pw-about::before {
		content: "";
		position: absolute;
		top: 0;
		right: var(--pw-bleed);
		width: 1px;
		height: 120px;
		background: linear-gradient(180deg, rgba(11, 102, 211, 0), var(--pw-line-blue));
	}

	.pw-about > .pw-ribbons--soft {
		display: none;
	}

	.pw-about__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: center;
		gap: 0;
	}

	.pw-about__media {
		order: 0;
		grid-column: 1 / span 7;
		aspect-ratio: 4 / 3;
		margin-inline: calc(-1 * var(--pw-bleed)) 0;
		margin-bottom: 0;
	}

	/* Tall glass plate straddling the photograph's inner edge. */
	.pw-about__glass {
		position: absolute;
		top: 12%;
		right: -6%;
		bottom: -40px;
		display: block;
		width: 18%;
		border: 1px solid rgba(255, 255, 255, .75);
		border-radius: var(--pw-radius-s);
		background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(234, 244, 255, .18));
		box-shadow: 0 20px 48px rgba(11, 32, 58, .07);
		-webkit-backdrop-filter: blur(6px) saturate(130%);
		backdrop-filter: blur(6px) saturate(130%);
	}

	.pw-about__glass::after {
		content: "";
		position: absolute;
		top: 22px;
		left: 22px;
		width: 48px;
		height: 1px;
		background: var(--pw-blue);
	}

	.pw-about__content {
		grid-column: 8 / span 5;
		padding-left: clamp(24px, 4vw, 72px);
	}
}

/* ------------------------------------------------------------------ Services (white) */
/* Services (top page): continues About's pale blue and leads into Recruit — a base
   gradient, the hero's city-and-ribbon photograph washed behind the heading (already
   cached from the hero), faded out with a mask, and soft glows; cards stay on light ground. */
.pw-services {
	position: relative;
	isolation: isolate;
	padding-bottom: calc(var(--pw-section) * .8);
	background:
		radial-gradient(40% 26% at 100% 72%, rgba(45, 140, 255, .07), rgba(45, 140, 255, 0) 70%),
		radial-gradient(36% 22% at 0% 40%, rgba(45, 140, 255, .05), rgba(45, 140, 255, 0) 70%),
		linear-gradient(180deg, var(--pw-tint) 0%, #f6faff 34%, #fbfdff 62%, var(--pw-tint-2) 100%);
}

.pw-services::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: -1;
	height: 560px;
	background:
		linear-gradient(180deg, rgba(243, 248, 254, .6) 0%, rgba(243, 248, 254, .4) 45%, rgba(243, 248, 254, .55) 100%),
		linear-gradient(90deg, rgba(243, 248, 254, .92) 0%, rgba(243, 248, 254, .7) 40%, rgba(243, 248, 254, .15) 78%),
		url("../images/hero-desktop.webp") 78% 42% / cover no-repeat;
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 52%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 52%, transparent 100%);
	pointer-events: none;
}

.pw-services > .pw-container {
	position: relative;
}

.pw-services .pw-services__more {
	background: rgba(255, 255, 255, .82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

@media (min-width: 768px) {
	.pw-services::before {
		height: clamp(560px, 46vw, 800px);
		background:
			linear-gradient(180deg, rgba(243, 248, 254, .45) 0%, rgba(243, 248, 254, .15) 40%, rgba(243, 248, 254, .45) 100%),
			linear-gradient(90deg, rgba(243, 248, 254, .95) 0%, rgba(243, 248, 254, .82) 32%, rgba(243, 248, 254, .25) 62%, rgba(243, 248, 254, .1) 100%),
			url("../images/hero-desktop.webp") 70% 44% / cover no-repeat;
	}
}

.pw-services > .pw-container {
	display: flex;
	flex-direction: column;
}

.pw-services__head {
	display: contents;
}

.pw-services__head > .pw-section-heading {
	order: 1;
	margin-bottom: 32px;
}

.pw-services__grid {
	order: 2;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.pw-services__more {
	order: 3;
	align-self: stretch;
	margin-top: 32px;
}

.pw-service-card {
	display: flex;
}

.pw-service-card__link {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	color: var(--pw-navy);
	text-decoration: none;
}

/* Phone: one clear block per service, separated by hairlines. */
.pw-service-card + .pw-service-card .pw-service-card__link {
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid var(--pw-line);
}

.pw-service-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--pw-radius-s);
	background: var(--pw-sky);
}

.pw-service-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--pw-ease);
}

.pw-service-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 32, 58, 0) 55%, rgba(11, 32, 58, .12) 100%);
	pointer-events: none;
}

.pw-service-card__body {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px 0 0;
}

.pw-service-card__index {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--pw-blue);
	font-family: var(--pw-font-latin);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .22em;
}

.pw-service-card__index::after {
	content: "";
	width: 24px;
	height: 1px;
	background: currentColor;
	opacity: .6;
}

.pw-service-card__title {
	margin-top: 6px;
	font-size: var(--pw-fs-h3);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .04em;
	transition: color .3s ease;
}

.pw-service-card__text {
	margin-top: 8px;
	color: var(--pw-muted);
	font-size: var(--pw-fs-text);
	line-height: 1.85;
	letter-spacing: .01em;
}

.pw-service-card__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 10px;
	min-height: 44px;
	margin-top: 4px;
	color: var(--pw-blue);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .12em;
}

.pw-service-card__more .pw-icon {
	width: 18px;
	height: 18px;
	transition: transform .35s var(--pw-ease);
}

.pw-service-card__link:hover .pw-service-card__image,
.pw-service-card__link:focus-visible .pw-service-card__image {
	transform: scale(1.05);
}

.pw-service-card__link:hover .pw-service-card__title,
.pw-service-card__link:focus-visible .pw-service-card__title {
	color: var(--pw-blue);
}

.pw-service-card__link:hover .pw-service-card__more .pw-icon {
	transform: translateX(5px);
}

@media (min-width: 560px) {
	.pw-services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 28px;
	}

	.pw-services__grid[data-count="1"] {
		grid-template-columns: 1fr;
	}

	.pw-service-card + .pw-service-card .pw-service-card__link {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	.pw-service-card__media {
		aspect-ratio: 4 / 3;
	}

	.pw-service-card__body {
		padding: 22px 2px 12px;
		border-bottom: 1px solid var(--pw-line);
	}

	.pw-services__more {
		align-self: flex-start;
	}
}

@media (min-width: 1024px) {
	.pw-services > .pw-container {
		display: block;
	}

	.pw-services__head {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		gap: 48px;
		margin-bottom: 72px;
	}

	.pw-services__head > .pw-section-heading {
		margin-bottom: 0;
	}

	.pw-services__more {
		align-self: end;
		justify-self: end;
		margin-top: 0;
	}

	.pw-services__grid {
		gap: 56px clamp(24px, 2.6vw, 44px);
	}

	.pw-services__grid[data-count="3"] {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pw-services__grid[data-count="4"] {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.pw-service-card__index {
		font-size: 11px;
		letter-spacing: .24em;
	}

	.pw-service-card__title {
		margin-top: 10px;
		line-height: 1.55;
	}

	.pw-service-card__text {
		display: -webkit-box;
		margin-top: 8px;
		overflow: hidden;
		font-size: .8125rem;
		line-height: 1.9;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		line-clamp: 4;
	}

	.pw-service-card__more {
		gap: 10px;
		min-height: 0;
		margin-top: auto;
		padding-top: 16px;
		font-family: var(--pw-font-latin);
		font-size: 11px;
		font-weight: 600;
		letter-spacing: .16em;
	}

	/* A single service: horizontal feature. */
	.pw-services__grid[data-count="1"] .pw-service-card__link {
		flex-direction: row;
		gap: 56px;
	}

	.pw-services__grid[data-count="1"] .pw-service-card__media {
		width: 52%;
	}

	.pw-services__grid[data-count="1"] .pw-service-card__body {
		justify-content: center;
		padding: 0;
	}

	.pw-services__grid[data-count="1"] .pw-service-card__more {
		margin-top: 24px;
	}
}

/* ------------------------------------------------------------------ Recruit (very light blue-grey, image-led) */
.pw-recruit {
	background: var(--pw-tint-2);
}

.pw-recruit > .pw-ribbons {
	z-index: 1;
	top: -64px;
	left: 0;
	height: 140px;
	transform: scaleX(-1);
}

.pw-recruit__grid {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 36px;
}

/* Phone: a tall, inset photograph leads the section. */
.pw-recruit__media {
	position: relative;
	order: -1;
	aspect-ratio: 4 / 4.6;
	max-height: 520px;
	overflow: hidden;
	border-radius: var(--pw-radius-m);
}

.pw-recruit__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(200deg, rgba(45, 140, 255, 0) 55%, rgba(45, 140, 255, .16) 100%);
	pointer-events: none;
}

.pw-recruit__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 40%;
}

.pw-recruit__content .pw-btn {
	width: 100%;
}

@media (min-width: 560px) {
	.pw-recruit__content .pw-btn {
		width: auto;
		min-width: 232px;
	}
}

@media (min-width: 768px) {
	.pw-recruit > .pw-ribbons {
		top: -120px;
		height: 240px;
	}

	.pw-recruit__media {
		aspect-ratio: 16 / 10;
		max-height: none;
		margin-inline: calc(-1 * var(--pw-gutter));
		border-radius: 0;
	}

	.pw-recruit__image {
		object-position: 45% 40%;
	}
}

@media (min-width: 1024px) {
	.pw-recruit__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: center;
		gap: 0;
	}

	.pw-recruit__content {
		grid-column: 1 / span 5;
	}

	.pw-recruit__media {
		order: 0;
		grid-column: 6 / span 7;
		aspect-ratio: 16 / 11;
		margin-inline: 0 calc(-1 * var(--pw-bleed));
		margin-left: clamp(0px, 3vw, 48px);
	}
}

/* ------------------------------------------------------------------ News (white; hidden when empty) */
.pw-news {
	background: var(--pw-white);
}

.pw-news__grid {
	display: grid;
	gap: 28px;
}

.pw-news__head {
	display: contents;
}

.pw-news__head > .pw-section-heading {
	order: 1;
}

.pw-news__list {
	order: 2;
	border-top: 1px solid var(--pw-line);
}

.pw-news__more {
	order: 3;
	justify-self: start;
}

.pw-news__item {
	border-bottom: 1px solid var(--pw-line);
}

.pw-news__link {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 16px;
	align-items: center;
	padding: 20px 0;
	color: var(--pw-navy);
	text-decoration: none;
}

.pw-news__meta {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	color: var(--pw-muted);
	font-family: var(--pw-font-latin);
	font-size: var(--pw-fs-xs);
	font-variant-numeric: tabular-nums;
	letter-spacing: .12em;
}

.pw-news__cat {
	padding: 1px 10px;
	border: 1px solid var(--pw-line-blue);
	border-radius: 1px;
	color: var(--pw-blue);
	font-family: var(--pw-font);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
}

.pw-news__title {
	text-wrap: pretty;
	font-size: var(--pw-fs-text);
	font-weight: 600;
	line-height: 1.8;
	transition: color .25s ease;
}

.pw-news__link .pw-icon {
	color: var(--pw-blue);
	transition: transform .35s var(--pw-ease);
}

.pw-news__link:hover .pw-news__title {
	color: var(--pw-blue);
}

.pw-news__link:hover .pw-icon {
	transform: translateX(5px);
}

@media (min-width: 1024px) {
	.pw-news__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 0;
	}

	.pw-news__head {
		display: grid;
		grid-column: 1 / span 4;
		gap: 28px;
		align-content: start;
	}

	.pw-news__list {
		grid-column: 6 / span 7;
	}

	.pw-news__link {
		grid-template-columns: 200px 1fr auto;
		gap: 24px;
		padding: 30px 8px;
	}

	.pw-news__meta {
		grid-column: auto;
	}
}

/* ------------------------------------------------------------------ CTA (blue; full-bleed band on phones, contained panel from 768px) */
.pw-cta {
	position: relative;
	background: var(--pw-white);
}

.pw-cta__inner {
	position: relative;
	display: grid;
	gap: 32px;
	overflow: hidden;
	width: 100%;
	padding: 64px 24px 72px;
	background: linear-gradient(150deg, var(--pw-blue) 0%, #0a4fa6 55%, var(--pw-navy) 100%);
	color: var(--pw-white);
	isolation: isolate;
}

.pw-cta__inner > .pw-ribbons {
	z-index: -1;
	right: 0;
	bottom: -4%;
	left: 0;
	height: 46%;
}

.pw-cta__inner > .pw-ribbons .pw-ribbons__band--a {
	fill: rgba(255, 255, 255, .08);
}

.pw-cta__inner > .pw-ribbons .pw-ribbons__band--b {
	fill: rgba(45, 140, 255, .22);
}

.pw-cta__inner > .pw-ribbons .pw-ribbons__line {
	stroke: rgba(255, 255, 255, .4);
}

.pw-cta .pw-section-heading__title {
	margin-top: 16px;
	font-size: clamp(1.375rem, .1rem + 6.2vw, 1.875rem);
	font-size: min(clamp(1.375rem, .1rem + 6.2vw, 1.875rem), 7.9cqi);
}

.pw-cta .pw-section-heading__intro {
	max-width: 40em;
	margin-top: 16px;
}

.pw-cta__actions {
	display: grid;
	gap: 12px;
}

.pw-cta__btn {
	min-height: 56px;
	font-size: .9375rem;
}

@media (min-width: 768px) {
	.pw-cta {
		padding-block: 0 var(--pw-section);
	}

	.pw-cta__inner {
		width: min(100% - var(--pw-gutter) * 2, var(--pw-container));
		padding: clamp(56px, 6vw, 88px) clamp(40px, 6vw, 96px);
		border-radius: var(--pw-radius-m);
		background: linear-gradient(118deg, var(--pw-blue) 0%, #0a4fa6 52%, var(--pw-navy) 100%);
	}

	.pw-cta__inner > .pw-ribbons {
		bottom: -10%;
		height: 90%;
	}

	.pw-cta .pw-section-heading__title {
		font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.375rem);
		font-size: min(clamp(1.5rem, 1.15rem + 1.4vw, 2.375rem), 7.9cqi);
	}

	.pw-cta .pw-section-heading__intro {
		margin-top: 18px;
	}

	.pw-cta__btn {
		min-height: 60px;
	}
}

@media (min-width: 1024px) {
	.pw-cta__inner {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
		align-items: center;
		gap: 64px;
	}
}

/* ------------------------------------------------------------------ Footer */
.pw-footer {
	background: var(--pw-navy);
	color: rgba(255, 255, 255, .8);
}

.pw-footer__inner {
	display: grid;
	gap: 36px;
	padding-block: 56px 40px;
}

.pw-footer .pw-brand {
	color: var(--pw-white);
}

.pw-footer__text {
	max-width: 26em;
	margin-top: 14px;
	font-size: var(--pw-fs-small);
	line-height: 2;
}

.pw-footer__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 24px;
}

.pw-footer__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--pw-white);
	font-size: .875rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-decoration: none;
}

.pw-footer__list a:hover {
	color: #a9d0ff;
}

.pw-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
}

.pw-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-block: 20px calc(20px + env(safe-area-inset-bottom));
}

.pw-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

.pw-footer__legal-list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: rgba(255, 255, 255, .7);
	font-size: var(--pw-fs-xs);
	text-decoration: none;
}

.pw-footer__legal-list a:hover {
	color: var(--pw-white);
}

.pw-footer__copy {
	color: rgba(255, 255, 255, .6);
	font-family: var(--pw-font-latin);
	font-size: 11px;
	letter-spacing: .12em;
}

@media (min-width: 1024px) {
	.pw-footer__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: start;
		gap: 64px;
		padding-block: 80px 56px;
	}

	.pw-footer__text {
		margin-top: 18px;
	}

	.pw-footer__list {
		display: flex;
		flex-wrap: wrap;
		gap: 8px 40px;
	}

	.pw-footer__list a {
		font-size: .8125rem;
	}
}

/* ------------------------------------------------------------------ Interior pages (/business/, /company/, /recruit/, /contact/, service) */
.pw-page__header {
	position: relative;
	overflow: hidden;
	padding-block: 44px 40px;
	background: var(--pw-tint);
}

.pw-page__header > .pw-container {
	position: relative;
	z-index: 1;
}

.pw-page__header .pw-eyebrow {
	margin-bottom: 14px;
}

/* Headings never break inside a word: keep-all everywhere (breaks at spaces and
   punctuation), phrase-aware in Chromium; a single over-long run still wraps. */
.pw-page__title,
.pw-content :is(h2, h3, h4) {
	word-break: keep-all;
	word-break: auto-phrase;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.pw-page__title {
	color: var(--pw-navy);
	font-size: clamp(1.625rem, .9rem + 3.4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: var(--pw-ls-head);
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.pw-page__lead {
	max-width: 36em;
	margin-top: 18px;
	color: var(--pw-text-2);
	font-size: var(--pw-fs-text);
	line-height: 1.95;
}

/* Reading column: about 40 Japanese characters per line on desktop (42em of 16px text with
   .04em tracking ≈ 700px), comfortable 16px / 1.95 on phones. */
.pw-content {
	max-width: 760px;
	padding-block: 44px 80px;
	font-size: 1rem;
	line-height: 1.95;
	letter-spacing: .03em;
}

.pw-content > * + * {
	margin-top: 1.5em;
}

/* Running text: no single-character last lines where the browser can avoid them
   (text-wrap: pretty), phrase-aware wrapping in Chromium (auto-phrase), hanging
   punctuation in Safari; editor content itself is not touched. */
.pw-content :is(p, li, dd, blockquote, figcaption) {
	text-wrap: pretty;
	hanging-punctuation: allow-end;
}

.pw-content :is(p, li, dd) {
	word-break: auto-phrase;
}

.pw-content > :is(p, ul:not(.pw-service-nav), ol, blockquote, dl) {
	max-width: 42em;
}

/* Headings are followed closely by their text (the heading "owns" the paragraph). */
.pw-content > :is(h2, h3, h4) + * {
	margin-top: 1em;
}

.pw-content > :first-child {
	margin-top: 0;
}

.pw-content h2 {
	position: relative;
	margin-top: 2.8em;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--pw-line);
	color: var(--pw-navy);
	font-size: clamp(1.25rem, 1rem + 1.2vw, 1.625rem);
	line-height: 1.55;
	letter-spacing: .03em;
}

.pw-content h2::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 48px;
	height: 2px;
	background: var(--pw-blue);
}

.pw-content h3 {
	margin-top: 2.2em;
	padding-left: 14px;
	border-left: 3px solid var(--pw-blue);
	color: var(--pw-navy);
	font-size: clamp(1.0625rem, .95rem + .6vw, 1.25rem);
	line-height: 1.6;
}

.pw-content h4 {
	margin-top: 1.8em;
	color: var(--pw-navy);
	font-size: 1rem;
}

.pw-content ul,
.pw-content ol {
	padding-left: 1.4em;
	list-style: revert;
}

.pw-content li + li {
	margin-top: .4em;
}

.pw-content li::marker {
	color: var(--pw-blue);
}

.pw-content a {
	color: var(--pw-blue);
	text-underline-offset: 3px;
}

/* /business/: service row navigation (01–04, service name, arrow; the whole row is the link).
   Opt-in only: styles just the list the editor marks with the additional CSS class
   "pw-service-nav" (List block → Advanced → Additional CSS class) on the business page.
   Pure CSS: the list, its links and URLs stay exactly as set in the editor; every other
   wp-block-list is untouched.
   Click area: the link itself is a full-width block, and its ::before is stretched over the
   whole row. Both belong to the <a>, so a click anywhere on the row (number, text, blank
   space, arrow) is a click on the link, even if the link is wrapped in <strong> or reset
   to inline by other CSS. The number is a display-only counter on the row. */
.pw-page--business .pw-service-nav {
	position: relative;
	margin-block: 36px 56px;
	padding: 0;
	border-top: 1px solid var(--pw-line-soft);
	list-style: none;
	counter-reset: pw-snav;
}

/* Short PROWORK-blue accent on the top rule (as under the content headings). */
.pw-page--business .pw-service-nav::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 48px;
	height: 1px;
	background: var(--pw-blue);
}

.pw-page--business .pw-service-nav > li {
	position: relative;
	isolation: isolate;
	margin: 0;
	padding: 17px 52px 17px 48px;
	border-bottom: 1px solid var(--pw-line-soft);
	counter-increment: pw-snav;
}

/* 01 / 02 / 03 / 04 (display only; clicks fall through to the link surface below). */
.pw-page--business .pw-service-nav > li::before {
	content: counter(pw-snav, decimal-leading-zero);
	position: absolute;
	top: 50%;
	left: 6px;
	color: var(--pw-blue);
	font-family: var(--pw-font-latin);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .16em;
	line-height: 1;
	opacity: .72;
	transform: translateY(-50%);
	pointer-events: none;
	transition: opacity .2s ease;
}

.pw-page--business .pw-service-nav a {
	display: block;
	position: static;
	color: var(--pw-navy);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.6;
	text-decoration: none;
	transition: color .2s ease;
}

/* The link surface: covers the whole row, behind the text (row is its own stacking context). */
.pw-page--business .pw-service-nav a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: transparent;
	transition: background-color .2s ease, box-shadow .2s ease;
}

/* Arrow (drawn in CSS, part of the link). */
.pw-page--business .pw-service-nav a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 16px;
	height: 12px;
	margin-top: -6px;
	background: var(--pw-blue);
	clip-path: polygon(0 43.3%, 81.9% 43.3%, 58.8% 12.5%, 65.6% 3.3%, 100% 50%, 65.6% 96.7%, 58.8% 87.5%, 81.9% 56.7%, 0 56.7%);
	transition: transform .2s ease;
}

.pw-page--business .pw-service-nav a:focus-visible {
	outline: none;
}

.pw-page--business .pw-service-nav a:focus-visible::before {
	box-shadow: inset 0 0 0 2px var(--pw-blue-2);
}

/* Touch: brief feedback while pressed. */
.pw-page--business .pw-service-nav a:active::before {
	background: var(--pw-tint);
}

@media (hover: hover) {
	.pw-page--business .pw-service-nav a:hover {
		color: var(--pw-blue);
	}

	.pw-page--business .pw-service-nav a:hover::before {
		background: linear-gradient(90deg, var(--pw-tint) 0%, rgba(243, 248, 254, .55) 100%);
		box-shadow: inset 2px 0 0 var(--pw-blue);
	}

	.pw-page--business .pw-service-nav a:hover::after {
		transform: translateX(5px);
	}

	.pw-page--business .pw-service-nav > li:hover::before {
		opacity: 1;
	}
}

@media (min-width: 768px) {
	.pw-page--business .pw-service-nav {
		margin-block: 44px 64px;
	}

	.pw-page--business .pw-service-nav > li {
		padding: 21px 72px 21px 76px;
	}

	.pw-page--business .pw-service-nav > li::before {
		left: 24px;
	}

	.pw-page--business .pw-service-nav a {
		font-size: 1.0625rem;
	}

	.pw-page--business .pw-service-nav a::after {
		right: 28px;
	}
}

.pw-content img {
	border-radius: var(--pw-radius-s);
}

.pw-content figure {
	margin-inline: 0;
}

.pw-content figcaption {
	margin-top: 8px;
	color: var(--pw-muted);
	font-size: var(--pw-fs-xs);
}

.pw-content blockquote {
	margin-inline: 0;
	padding: 20px 22px;
	border-left: 3px solid var(--pw-line-blue);
	background: var(--pw-tint);
	color: var(--pw-text-2);
}

.pw-content hr {
	margin-block: 2.4em;
	border: 0;
	border-top: 1px solid var(--pw-line);
}

.pw-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--pw-fs-small);
	line-height: 1.8;
}

.pw-content table :is(th, td) {
	padding: 16px 12px;
	border: 0;
	border-bottom: 1px solid var(--pw-line);
	text-align: left;
	vertical-align: top;
}

.pw-content table th {
	width: 30%;
	color: var(--pw-navy);
	font-weight: 700;
}

.pw-content .wp-block-table {
	overflow-x: auto;
}

/* Phone: two-column "label / value" tables (company profile) become a stacked list:
   項目名 above 内容, hairline between rows. Applies to tables whose rows have at most
   two cells (th + td, or td + td from the block editor); wider tables keep scrolling. */
@media (max-width: 767px) {
	.pw-content table:has(tr > :nth-child(2)):not(:has(tr > :nth-child(3))) :is(thead, tbody, tfoot, tr, th, td) {
		display: block;
		width: auto !important; /* overrides inline cell widths from pasted / legacy content */
	}

	.pw-content table:has(tr > :nth-child(2)):not(:has(tr > :nth-child(3))) {
		display: block;
		border-top: 1px solid var(--pw-line);
	}

	.pw-content table:has(tr > :nth-child(2)):not(:has(tr > :nth-child(3))) tr {
		padding: 18px 0 20px;
		border-bottom: 1px solid var(--pw-line);
	}

	.pw-content table:has(tr > :nth-child(2)):not(:has(tr > :nth-child(3))) :is(th, td) {
		padding: 0;
		border: 0;
		background: none;
	}

	.pw-content table:has(tr > :nth-child(2)):not(:has(tr > :nth-child(3))) tr > :first-child:not(:only-child) {
		display: flex;
		align-items: center;
		gap: 10px;
		margin-bottom: 6px;
		color: var(--pw-blue);
		font-size: .8125rem;
		font-weight: 700;
		letter-spacing: .08em;
		line-height: 1.6;
	}

	.pw-content table:has(tr > :nth-child(2)):not(:has(tr > :nth-child(3))) tr > :first-child:not(:only-child)::before {
		content: "";
		flex: none;
		width: 12px;
		height: 1px;
		background: currentColor;
	}

	.pw-content table:has(tr > :nth-child(2)):not(:has(tr > :nth-child(3))) tr > :last-child:not(:only-child) {
		color: var(--pw-text);
		font-size: var(--pw-fs-text);
		line-height: 1.85;
	}
}

/* Definition lists (dl / dt / dd) used for company information get the same treatment. */
.pw-content dl {
	border-top: 1px solid var(--pw-line);
}

.pw-content dt {
	padding-top: 18px;
	color: var(--pw-blue);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .08em;
}

.pw-content dd {
	margin: 4px 0 0;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--pw-line);
}

@media (min-width: 768px) {
	.pw-content dl {
		display: grid;
		grid-template-columns: minmax(8em, 30%) 1fr;
	}

	.pw-content dt,
	.pw-content dd {
		margin: 0;
		padding: 20px 16px;
		border-bottom: 1px solid var(--pw-line);
	}

	.pw-content dt {
		color: var(--pw-navy);
		font-size: inherit;
		letter-spacing: .04em;
	}
}

.pw-content .wp-block-button__link,
.pw-content .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 28px;
	border-radius: var(--pw-radius-s);
	background: var(--pw-blue);
	color: var(--pw-white);
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-decoration: none;
}

.pw-content .is-style-outline .wp-block-button__link {
	border: 1px solid var(--pw-line-blue);
	background: transparent;
	color: var(--pw-navy);
}

.pw-page__back {
	padding-bottom: 72px;
}

.pw-service-single__media {
	margin-top: -1px;
	padding-top: 32px;
}

.pw-service-single__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--pw-radius-m);
}

@media (min-width: 768px) {
	.pw-page__header {
		padding-block: clamp(64px, 7vw, 112px) clamp(40px, 4vw, 64px);
	}

	.pw-content {
		padding-block: clamp(56px, 5vw, 88px) clamp(88px, 8vw, 128px);
		line-height: 2;
		letter-spacing: .04em;
	}

	.pw-content > * + * {
		margin-top: 1.6em;
	}

	.pw-content h2 {
		margin-top: 3.2em;
	}

	/* The page title lines up with the reading column below it. */
	.pw-page__header > .pw-container {
		max-width: 760px;
	}

	.pw-content table :is(th, td) {
		padding: 20px 16px;
	}

	.pw-service-single__media {
		padding-top: 48px;
	}

	.pw-service-single__image {
		aspect-ratio: 21 / 9;
	}

	.pw-page__back {
		padding-bottom: clamp(80px, 8vw, 120px);
	}
}

/* Interior pages: the contact block follows content directly. */
.pw-page + .pw-cta {
	padding-top: 0;
}

.pw-post-list__item {
	display: grid;
	gap: 4px 24px;
	padding: 20px 0;
	border-bottom: 1px solid var(--pw-line);
}

.pw-post-list__date {
	color: var(--pw-muted);
	font-size: var(--pw-fs-small);
	font-variant-numeric: tabular-nums;
}

.pw-post-list__title {
	color: var(--pw-navy);
	font-weight: 700;
	text-decoration: none;
}

@media (min-width: 768px) {
	.pw-post-list__item {
		grid-template-columns: 140px 1fr;
	}
}

.pw-notfound {
	background: var(--pw-tint);
}

.pw-notfound__title {
	margin: 16px 0 12px;
	color: var(--pw-navy);
	font-size: var(--pw-fs-h2);
	line-height: 1.5;
}

.pw-notfound__text {
	margin-bottom: 36px;
	color: var(--pw-text-2);
}

/* ------------------------------------------------------------------ Contact Form 7 (theme styling only; plugin untouched) */
.wpcf7 {
	--pw-field-h: 54px;
}

.wpcf7 form > p,
.wpcf7 form > div:not(.wpcf7-response-output):not(.screen-reader-response) {
	margin: 0 0 24px;
}

.wpcf7 label {
	display: block;
	color: var(--pw-navy);
	font-size: .9375rem;
	font-weight: 700;
	line-height: 1.7;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-top: 8px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: var(--pw-field-h);
	padding: 12px 16px;
	border: 1px solid rgba(16, 32, 51, .22);
	border-radius: var(--pw-radius-m);
	background: var(--pw-white);
	color: var(--pw-text);
	font: inherit;
	font-size: 1rem; /* 16px: prevents iOS zoom on focus */
	font-weight: 400;
	line-height: 1.6;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.wpcf7 textarea {
	height: 170px;
	min-height: 150px;
	resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	border-color: var(--pw-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(45, 140, 255, .25);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: #8594a5;
}

.wpcf7 .wpcf7-list-item {
	display: block;
	margin: 8px 0 0;
}

.wpcf7 .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-weight: 400;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--pw-blue);
}

.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
	display: block;
	width: 100%;
	min-height: 60px;
	padding: 14px 28px;
	border: 0;
	border-radius: var(--pw-radius-s);
	background: linear-gradient(120deg, var(--pw-blue) 0%, #0a58bb 100%);
	box-shadow: 0 14px 30px rgba(11, 102, 211, .22);
	color: var(--pw-white);
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .12em;
	cursor: pointer;
	transition: background-color .3s ease;
}

.wpcf7 .wpcf7-submit:hover {
	background: var(--pw-navy-2);
}

.wpcf7 .wpcf7-submit:focus-visible {
	outline: 3px solid var(--pw-blue-2);
	outline-offset: 3px;
}

.wpcf7 .wpcf7-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.wpcf7 .wpcf7-spinner {
	display: block;
	margin: 12px auto 0;
}

.wpcf7 .wpcf7-not-valid {
	border-color: var(--pw-error);
	background: #fff8f8;
}

.wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 8px;
	color: var(--pw-error);
	font-size: .8125rem;
	font-weight: 600;
}

.wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 14px 18px;
	border: 1px solid var(--pw-line-blue);
	border-radius: var(--pw-radius-m);
	background: var(--pw-tint);
	color: var(--pw-navy);
	font-size: .875rem;
	line-height: 1.8;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: rgba(198, 42, 42, .4);
	background: #fff6f6;
	color: var(--pw-error);
}

/* As in CF7's own stylesheet: no empty message box before / while sending. */
.wpcf7 form:is(.init, .resetting, .submitting) .wpcf7-response-output {
	display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: rgba(17, 121, 91, .35);
	background: #f1fbf7;
	color: var(--pw-success);
}

@media (min-width: 768px) {
	.wpcf7 input[type="submit"],
	.wpcf7 .wpcf7-submit {
		width: auto;
		min-width: 320px;
		margin-inline: auto;
	}
}


/* ------------------------------------------------------------------ Page backgrounds: business, services, company, careers, news, contact
   Four layers, no seams (0.3.7):
   1. base   — a continuous ice-blue → near-white → ice-blue gradient on the article; the
               page colour comes from here, never from an image, and it ends in white so the
               contact block below joins without an edge;
   2. top    — the page artwork (::before), washed for reading and faded out with a mask
               into the base (no white band where the artwork stops);
   3. middle — faint side glows in the base, so the centre never turns flat white;
   4. bottom — the artwork again (::after), mirrored, washed, faded in and out with a mask.
   Content (photographs, tables, forms) sits above every layer, so photographs added later
   do not disturb the background. Per-page variables tune image, crop, strength and tint;
   logo, navy / blue, type, spacing and UI stay shared, so the pages read as one brand. */
:is(.pw-page--business, .pw-service-single, .pw-page--company, .pw-page--recruit, .pw-page--news, .pw-page--contact) {
	--pw-base-1: #f4f8fd;
	--pw-base-2: #f8fbff;
	--pw-base-3: #fdfeff;
	--pw-glow: rgba(45, 140, 255, .07);
	--pw-art-pos: 50% 0%;
	--pw-art-pos-sp: 50% 0%;
	--pw-art-h: 640px;
	--pw-art-opacity: 1;
	--pw-echo-opacity: .55;
	--pw-art-extra: linear-gradient(transparent, transparent);
	--pw-accent: var(--pw-blue);
	--pw-accent-2: var(--pw-blue-2);
	position: relative;
	isolation: isolate;
	background:
		radial-gradient(40% 24% at 0% 50%, var(--pw-glow), rgba(45, 140, 255, 0) 70%),
		radial-gradient(40% 24% at 100% 66%, var(--pw-glow), rgba(45, 140, 255, 0) 70%),
		linear-gradient(180deg, var(--pw-base-1) 0%, var(--pw-base-2) 22%, var(--pw-base-3) 44%, var(--pw-base-2) 64%, var(--pw-base-1) 88%, var(--pw-white) 100%);
}

/* 2. Top artwork (phones: a taller crop and a stronger wash on the text side). */
:is(.pw-page--business, .pw-service-single, .pw-page--company, .pw-page--recruit, .pw-page--news, .pw-page--contact)::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: -1;
	height: var(--pw-art-h);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .3) 34%, rgba(255, 255, 255, .4) 72%),
		linear-gradient(90deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .3) 62%, rgba(255, 255, 255, 0) 100%),
		var(--pw-art-extra),
		var(--pw-art, none) var(--pw-art-pos-sp) / cover no-repeat;
	opacity: var(--pw-art-opacity);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
	pointer-events: none;
}

/* 4. Bottom echo: mirrored, washed, faded in and out (no edge at either end). */
:is(.pw-page--business, .pw-service-single, .pw-page--company, .pw-page--recruit, .pw-page--news, .pw-page--contact)::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	height: clamp(300px, 55vw, 640px);
	background:
		linear-gradient(rgba(255, 255, 255, .42), rgba(255, 255, 255, .42)),
		var(--pw-art, none) 50% 100% / cover no-repeat;
	opacity: var(--pw-echo-opacity);
	transform: scaleX(-1);
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 42%, #000 72%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0%, #000 42%, #000 72%, transparent 100%);
	pointer-events: none;
}

:is(.pw-page--business, .pw-service-single, .pw-page--company, .pw-page--recruit, .pw-page--news, .pw-page--contact) > .pw-page__header {
	padding-block: 64px 48px;
	background: transparent;
}

:is(.pw-page--business, .pw-service-single, .pw-page--company, .pw-page--recruit, .pw-page--news, .pw-page--contact) > .pw-page__header > .pw-ribbons--soft {
	display: none;
}

/* Headings: a per-page accent on the short rule under h2. */
:is(.pw-page--business, .pw-service-single, .pw-page--company, .pw-page--recruit, .pw-page--news, .pw-page--contact) .pw-content h2::after {
	background: linear-gradient(90deg, var(--pw-accent), var(--pw-accent-2));
}

/* ---- 事業内容: the brand's flowing lines; the service navigation on a quiet white layer. */
.pw-page--business { --pw-art: url("../images/bg-business.webp"); --pw-art-pos-sp: 42% 0%; }

.pw-page--business .pw-service-nav {
	background: rgba(255, 255, 255, .82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* ---- 人材紹介 — soft connections: luminous, friendly, rounded. */
.pw-service-recruitment {
	--pw-art: url("../images/bg-service-recruitment.webp");
	--pw-art-pos-sp: 12% 0%;
	--pw-art-extra: radial-gradient(60% 90% at 88% 20%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
	--pw-accent-2: #7cc4ff;
}

.pw-service-recruitment .pw-content h2::after {
	height: 3px;
	border-radius: 3px;
}

.pw-service-recruitment .pw-service-single__image {
	border-radius: 10px;
}

/* ---- コンサルティング — intellectual layers: fine vertical rules, a slightly grey-blue base. */
.pw-service-consulting {
	--pw-art: url("../images/bg-service-consulting.webp");
	--pw-art-pos-sp: 70% 0%;
	--pw-base-1: #f2f5f9;
	--pw-base-2: #f7f9fc;
	--pw-glow: rgba(16, 50, 92, .05);
	--pw-art-extra: repeating-linear-gradient(90deg, rgba(11, 32, 58, .045) 0 1px, rgba(11, 32, 58, 0) 1px 96px);
	--pw-accent: var(--pw-navy-2);
	--pw-accent-2: var(--pw-blue);
}

.pw-service-consulting .pw-content h2 {
	border-bottom-color: rgba(11, 32, 58, .18);
}

.pw-service-consulting .pw-content h3 {
	border-left-width: 2px;
	border-left-color: var(--pw-navy-2);
}

/* ---- システム開発 — structure / grid / data: dots overall, a fading square grid top right. */
.pw-service-system-development {
	--pw-art: url("../images/bg-service-system-development.webp");
	--pw-art-pos-sp: 100% 0%;
	--pw-art-extra: radial-gradient(rgba(11, 102, 211, .16) 1px, rgba(11, 102, 211, 0) 1.6px) 0 0 / 22px 22px;
	--pw-accent-2: #1fb3d6;
}

.pw-service-system-development > .pw-page__header::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 50%;
	background:
		linear-gradient(90deg, rgba(11, 102, 211, .08) 1px, transparent 1px) 0 0 / 44px 44px,
		linear-gradient(180deg, rgba(11, 102, 211, .08) 1px, transparent 1px) 0 0 / 44px 44px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
	mask-image: linear-gradient(90deg, transparent, #000 60%);
	pointer-events: none;
}

.pw-service-system-development .pw-content h3 {
	border-left-color: var(--pw-blue);
}

/* ---- 美容・ウェルネス — light, sheer, soft: aqua and pale lavender, rounded forms. */
.pw-service-beauty-wellness {
	--pw-art: url("../images/bg-service-beauty-wellness.webp");
	--pw-art-pos-sp: 88% 0%;
	--pw-base-1: #f5f5ff;
	--pw-base-2: #f9f9ff;
	--pw-base-3: #fefeff;
	--pw-glow: rgba(160, 150, 255, .08);
	--pw-art-extra:
		radial-gradient(55% 80% at 90% 10%, rgba(198, 186, 255, .22), rgba(198, 186, 255, 0) 70%),
		radial-gradient(45% 70% at 8% 100%, rgba(140, 226, 232, .2), rgba(140, 226, 232, 0) 70%);
	--pw-accent: #6aa8ff;
	--pw-accent-2: #b9a7ff;
}

.pw-service-beauty-wellness .pw-content h2::after {
	height: 3px;
	border-radius: 3px;
}

.pw-service-beauty-wellness .pw-content h3 {
	border-left-color: #9fb4ff;
}

.pw-service-beauty-wellness .pw-service-single__image {
	border-radius: 14px;
}

/* ---- 会社概要 — sincere and refined: a washed skyline above, near-white around the table,
   a faint echo returning at the bottom. The table sits on its own white layer. */
.pw-page--company {
	--pw-art: url("../images/hero-desktop.webp");
	--pw-art-pos: 50% 72%;
	--pw-art-pos-sp: 68% 78%;
	--pw-art-h: 400px;
	--pw-art-opacity: .5;
	--pw-echo-opacity: .12;
}

.pw-page--company .pw-content table {
	background: rgba(255, 255, 255, .88);
}

/* ---- 採用情報 — brighter and more hopeful: an office in daylight, ice-blue light, sky accents. */
.pw-page--recruit {
	--pw-art: url("../images/about.webp");
	--pw-art-pos: 50% 58%;
	--pw-art-pos-sp: 30% 60%;
	--pw-art-h: 400px;
	--pw-art-opacity: .6;
	--pw-echo-opacity: .12;
	--pw-base-1: #f0f6ff;
	--pw-base-2: #f6faff;
	--pw-glow: rgba(45, 140, 255, .09);
	--pw-art-extra: radial-gradient(50% 70% at 85% 20%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%);
	--pw-accent-2: #7cc4ff;
}

.pw-page--recruit .pw-content h2::after {
	height: 3px;
	border-radius: 3px;
}

/* ---- お知らせ — a washed skyline behind a centred title; content on quiet white layers. */
.pw-page--news {
	--pw-art: url("../images/hero-desktop.webp");
	--pw-art-pos: 50% 62%;
	--pw-art-pos-sp: 70% 70%;
	--pw-art-h: 400px;
	--pw-art-opacity: .6;
	--pw-echo-opacity: .12;
}

.pw-page--news > .pw-page__header {
	text-align: center;
}

.pw-page--news .pw-post-list {
	padding: 4px 24px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .86);
	box-shadow: 0 16px 40px rgba(11, 32, 58, .05);
}

.pw-page--news .pw-post-list__item:last-child {
	border-bottom: 0;
}

/* ---- お問い合わせ — the quietest: brand lines only faintly, the form stays on white fields. */
.pw-page--contact {
	--pw-art: url("../images/bg-business.webp");
	--pw-art-pos-sp: 42% 0%;
	--pw-art-h: 460px;
	--pw-art-opacity: .7;
	--pw-echo-opacity: .35;
}

/* Note: no CSS filter (blur) on these layers — Chromium can mis-render backdrop-filter
   (the sticky header, glass panels) over a filtered layer; photographs are softened by
   wash and opacity instead. */

/* Empty listing (e.g. no published news yet): a calm, finished-looking card. */
.pw-empty {
	max-width: 560px;
	margin: 8px auto 0;
	padding: 44px 24px;
	border: 1px solid rgba(11, 102, 211, .1);
	border-radius: 14px;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 20px 48px rgba(11, 32, 58, .06);
	text-align: center;
}

.pw-empty__icon {
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #ffffff 0%, #e4f0ff 100%);
	color: var(--pw-blue);
}

.pw-empty__title {
	color: var(--pw-navy);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.7;
}

.pw-empty__text {
	margin-top: 8px;
	color: var(--pw-muted);
	font-size: .875rem;
	line-height: 1.9;
}

@media (min-width: 768px) {
	:is(.pw-page--business, .pw-service-single, .pw-page--company, .pw-page--recruit, .pw-page--news, .pw-page--contact) {
		--pw-art-h: clamp(560px, 46vw, 860px);
	}

	:is(.pw-page--business, .pw-service-single, .pw-page--company, .pw-page--recruit, .pw-page--news, .pw-page--contact)::before {
		background:
			linear-gradient(180deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .25) 72%),
			linear-gradient(90deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .22) 40%, rgba(255, 255, 255, 0) 70%),
			var(--pw-art-extra),
			var(--pw-art, none) var(--pw-art-pos) / cover no-repeat;
		-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
	}

	:is(.pw-page--business, .pw-service-single, .pw-page--company, .pw-page--recruit, .pw-page--news, .pw-page--contact) > .pw-page__header {
		padding-block: clamp(96px, 8.5vw, 150px) clamp(56px, 4.5vw, 84px);
	}

	/* Photograph-based headers: a lower band, so the title never sits on a strong detail. */
	:is(.pw-page--company, .pw-page--recruit, .pw-page--news, .pw-page--contact) {
		--pw-art-h: clamp(440px, 34vw, 600px);
	}

	.pw-page--company { --pw-art-opacity: .6; --pw-echo-opacity: .18; }
	.pw-page--recruit { --pw-art-opacity: .78; --pw-echo-opacity: .22; }
	.pw-page--news { --pw-art-opacity: .7; --pw-echo-opacity: .22; }

	.pw-page--news::before {
		background:
			radial-gradient(46% 70% at 50% 42%, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 100%),
			linear-gradient(180deg, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, .1) 40%, rgba(255, 255, 255, .3) 80%),
			var(--pw-art-extra),
			var(--pw-art, none) var(--pw-art-pos) / cover no-repeat;
	}

	.pw-page--company .pw-content table tr > :first-child:not(:only-child) {
		background: rgba(234, 244, 255, .5);
	}

	.pw-empty {
		padding: 56px 40px;
	}
}

/* Wide screens: slightly larger reading type so the column does not float small. */
@media (min-width: 1600px) {
	.pw-content {
		max-width: 820px;
		font-size: 1.0625rem;
	}

	.pw-page__header > .pw-container {
		max-width: 820px;
	}
}

/* ------------------------------------------------------------------ reCAPTCHA (Contact Form 7)
   Per Google's reCAPTCHA FAQ the badge may be hidden only with visibility: hidden and only
   when the reCAPTCHA branding is shown in the user flow: inc/recaptcha.php prints that
   notice once on every page (under the contact form, or else in the footer) and adds this
   body class under the same condition. */
.pw-recaptcha-text-badge .grecaptcha-badge {
	visibility: hidden;
}

.wpcf7 .pw-recaptcha-notice {
	margin: 20px 0 0;
	color: var(--pw-muted);
	font-size: .75rem;
	line-height: 1.8;
	letter-spacing: .02em;
	text-align: center;
}

/* Inline links in the notice: larger tap area (about 28px) without changing the line height. */
.pw-recaptcha-notice a {
	display: inline-block;
	padding-block: 6px;
	margin-block: -6px;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pw-recaptcha-notice__ja {
	display: block;
	margin-top: 4px;
}

.pw-footer .pw-recaptcha-notice--footer {
	flex-basis: 100%;
	margin: 0;
	color: rgba(255, 255, 255, .55);
	font-size: 11px;
	line-height: 1.8;
	letter-spacing: .02em;
}

.pw-footer .pw-recaptcha-notice--footer a:hover {
	color: var(--pw-white);
}

/* ------------------------------------------------------------------ Reveal (enabled by site.js only) */
.pw-reveal-ready [data-pw-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .9s ease, transform .9s var(--pw-ease);
}

.pw-reveal-ready [data-pw-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------ Keyframes */
@keyframes pw-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes pw-drift {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(-2.5%, 1.5%, 0);
	}
}

/* ------------------------------------------------------------------ Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	.pw-reveal-ready [data-pw-reveal] {
		opacity: 1;
		transform: none;
	}
}
