/* WP OUTSOURCE 2026.11 WordPress integration overrides. */

body[data-page="index"] .purpose-card {
	background: linear-gradient(145deg, var(--wpo-purpose-background-start, #a8caff), var(--wpo-purpose-background-end, #337bf0));
}

/* Shared components use consistent typography on every page.
 * The imported HTML has page-scoped !important declarations; keep their
 * overrides here, scoped to shared components, rather than changing headings.
 */
body.wp-outsource-renewal {
	--renewal-logo-size: 25px;
	--renewal-header-action-size: 17px;
	--renewal-cta-action-size: 17px;
	--renewal-cta-label-size: 18px;
}
body.wp-outsource-renewal :is(.renewal-site-header, .renewal-site-footer) .shared-logo {
	font: 600 var(--renewal-logo-size)/normal "Oswald", sans-serif !important;
	letter-spacing: .01em;
}
body.wp-outsource-renewal .renewal-site-header .shared-links,
body.wp-outsource-renewal .renewal-site-header .shared-links a,
body.wp-outsource-renewal .renewal-footer-menu a {
	font: 700 16px/1.8 "Noto Sans JP", sans-serif !important;
	letter-spacing: normal;
}
body.wp-outsource-renewal .renewal-site-header .shared-action {
	font: 800 var(--renewal-header-action-size)/1.8 "Noto Sans JP", sans-serif !important;
	letter-spacing: normal;
}
/* Use the compact inner-page header geometry across every template. */
body.wp-outsource-renewal .renewal-site-header {
	position: sticky !important;
	top: 0 !important;
	z-index: 100 !important;
	padding: 0 !important;
	border-bottom: 1px solid #e7ebf2 !important;
	background: rgba(255, 255, 255, .97) !important;
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 #e8edf3;
}
body.wp-outsource-renewal .renewal-site-header .shared-nav {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between;
	min-height: 78px;
	gap: 20px;
}
body.wp-outsource-renewal .renewal-site-header .shared-logo {
	flex-shrink: 0;
}
body.wp-outsource-renewal .renewal-site-header .shared-links {
	display: flex;
	margin-left: auto !important;
	justify-content: flex-end !important;
	gap: 24px !important;
}
body.wp-outsource-renewal .renewal-site-header .renewal-menu {
	gap: inherit;
}
body.wp-outsource-renewal .renewal-site-header .shared-links a {
	white-space: nowrap;
}
body.wp-outsource-renewal .renewal-site-header .shared-links a:hover,
body.wp-outsource-renewal .renewal-site-header .shared-links a:focus-visible {
	color: #315bf4;
}
body.wp-outsource-renewal .renewal-site-header .shared-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: 48px;
	padding: 16px 24px !important;
	white-space: nowrap;
}
@media (max-width: 750px) {
	body.wp-outsource-renewal .renewal-site-header .shared-nav { min-height: 65px; }
}
@media (max-width: 650px) {
	body.wp-outsource-renewal[data-page] .renewal-site-header .shared-nav {
		padding-left: 18px;
		padding-right: 18px;
	}
}
body.wp-outsource-renewal .renewal-site-footer .renewal-footer-inner p {
	font: 400 13px/1.8 "Noto Sans JP", sans-serif !important;
	letter-spacing: normal;
}
body.wp-outsource-renewal .site-wide-cta .site-wide-cta-copy .eyebrow {
	font: 500 var(--renewal-cta-label-size)/normal "Oswald", sans-serif !important;
	letter-spacing: .12em !important;
}
body.wp-outsource-renewal .site-wide-cta .site-wide-cta-card p {
	font: 500 18px/1.85 "Noto Sans JP", sans-serif !important;
	letter-spacing: normal;
}
body.wp-outsource-renewal .site-wide-cta .site-wide-cta-card a {
	font: 800 var(--renewal-cta-action-size)/1.8 "Noto Sans JP", sans-serif !important;
	letter-spacing: normal;
}
body.wp-outsource-renewal .crumb {
	font: 400 14px/1.8 "Noto Sans JP", sans-serif !important;
	letter-spacing: normal;
}
/* News uses the same breadcrumb geometry as column archives and articles. */
body.wp-outsource-renewal :is(.news-header, .news-art-header) { padding-top: 0; }
body.wp-outsource-renewal :is(.news-header, .news-art-header) .crumb {
	padding: 25px 0 0;
	margin: 0 0 55px;
	color: #64748b;
	overflow-wrap: anywhere;
}
body.wp-outsource-renewal .news-header .crumb { margin-bottom: 60px; }
@media (max-width: 650px) {
	body.wp-outsource-renewal .news-header .crumb { margin-bottom: 36px; }
}
@media (max-width: 750px) {
	body.wp-outsource-renewal { --renewal-header-action-size: 15px; }
}
@media (max-width: 700px) {
	body.wp-outsource-renewal {
		--renewal-cta-action-size: 15px;
		--renewal-cta-label-size: 8px;
	}
}
@media (max-width: 650px) {
	body.wp-outsource-renewal { --renewal-logo-size: 20px; }
}

/* Shared HTML canvas: explicitly sized so flex items never shrink to content. */
html { overflow-y: scroll; scroll-behavior: smooth; }
body.wp-outsource-renewal {
	--renewal-width: 1440px;
	--renewal-gutter: 28px;
	--renewal-anchor-offset: 99px;
	display: block;
	overflow-x: clip;
	overflow-y: visible;
}
body.wp-outsource-renewal[data-page] main [id] {
	scroll-margin-top: var(--renewal-anchor-offset);
}
body.wp-outsource-renewal[data-page] .wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--renewal-width) !important;
	min-width: 0;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--renewal-gutter);
	padding-right: var(--renewal-gutter);
}
body.wp-outsource-renewal .renewal-prose {
	width: 100%;
	max-width: none;
}
body.wp-outsource-renewal .renewal-prose .gtspc-cart.gtspc-box {
	width: 100%;
	max-width: none;
}

/* Profile, login and registration use the same panel and form widths. */
body.wp-outsource-renewal .renewal-prose :is(.gtspc-customer-profile, .gtspc-profile, .gtspc-member-auth).gtspc-box {
	width: 100%;
	max-width: 900px;
	margin-inline: auto;
	box-sizing: border-box;
}
body.wp-outsource-renewal .renewal-prose .gtspc-customer-profile-title-row .gtspc-title {
	margin-block: 0;
}
body.wp-outsource-renewal .renewal-prose :is(.gtspc-customer-profile-form, .gtspc-member-auth-form) {
	max-width: 40rem;
}
body.wp-outsource-renewal .renewal-prose .gtspc-member-auth.gtspc-box {
	padding: 28px 16px;
}
body.wp-outsource-renewal .renewal-prose .gtspc-member-auth > .gtspc-title {
	margin-block-start: 0;
}
@media (min-width: 768px) {
	body.wp-outsource-renewal .renewal-prose .gtspc-member-auth.gtspc-box {
		padding: 40px 32px;
	}
}
body.wp-outsource-renewal .renewal-prose .gtspc-customer-profile-form input[type="tel"] {
	max-width: 15rem;
}
body.wp-outsource-renewal .renewal-prose .gtspc-customer-profile-form input[autocomplete~="postal-code"] {
	max-width: 11rem;
}
body.wp-outsource-renewal .renewal-prose .gtspc-customer-profile .gtspc-cart-table :is(th, td) {
	min-width: 0;
}
/* Keep the current My Profile tab readable against its dark background. */
body.wp-outsource-renewal .gtspc-member-tabs .gtspc-member-tab.is-active,
body.wp-outsource-renewal .gtspc-member-tabs .gtspc-member-tab.is-active span {
	color: #fff;
}
body.wp-outsource-renewal main header {
	position: static;
	z-index: auto;
}
body.wp-outsource-renewal [hidden] { display: none !important; }
body.wp-outsource-renewal .product-content,
body.wp-outsource-renewal .product-content > *,
body.wp-outsource-renewal .cards > *,
body.wp-outsource-renewal .identity > * { min-width: 0; }
body.wp-outsource-renewal .product-content { width: 100%; }
body.wp-outsource-renewal .product-content .highlight:has(> :only-child) {
	grid-template-columns: minmax(0, 1fr);
}
body.wp-outsource-renewal .renewal-prose :where(img, video, iframe) { max-width: 100%; }
body.wp-outsource-renewal .renewal-prose { overflow-wrap: anywhere; }

/* Inherited news templates use .contents instead of .wrap. */
body.wp-outsource-renewal :is(.news-header, .news-art-header, .pinned-sec, .list-sec, .sub-sec, .news-art-sec) {
	padding-left: var(--renewal-gutter);
	padding-right: var(--renewal-gutter);
}
body.wp-outsource-renewal .contents {
	--contents-width: calc(var(--renewal-width) - 2 * var(--renewal-gutter));
}

@media (max-width: 650px) {
	body.wp-outsource-renewal { --renewal-gutter: 17px; }
	body.wp-outsource-renewal[data-page="index"] { --renewal-gutter: 18px; }
}

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

body.wp-outsource-renewal.admin-bar .renewal-site-header {
	top: 32px !important;
}

.renewal-site-header .renewal-menu,
.renewal-footer-menu {
	display: flex;
	align-items: center;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.renewal-site-header .shared-links {
	align-items: center;
}

.renewal-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 1px solid #dfe5ef;
	border-radius: 11px;
	background: #fff;
	cursor: pointer;
}

.renewal-menu-toggle > span:not(.screen-reader-text) {
	display: block;
	height: 2px;
	margin: 4px 0;
	background: #17243c;
}

.renewal-cart-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.renewal-cart-link .gtspc-nav-cart-count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #315bf4;
	color: #fff;
	font-size: 11px;
	line-height: 1;
}

.renewal-cart-link .gtspc-nav-cart-count[hidden] {
	display: none;
}

body.wp-outsource-renewal .renewal-site-footer {
	border-top: 1px solid #e6eaf2;
	margin-top: 0;
	padding: 48px 0 28px;
	background: #fff;
	color: #18243b;
	text-align: left;
}

body.wp-outsource-renewal .renewal-footer-inner {
	display: grid;
	grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr);
	align-items: start;
	gap: 36px 56px;
}

.renewal-footer-inner p {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

.renewal-footer-logo {
	white-space: nowrap;
}

body.wp-outsource-renewal .renewal-footer-brand,
body.wp-outsource-renewal .renewal-footer-navigation { min-width: 0; }
body.wp-outsource-renewal .renewal-site-footer .renewal-footer-description {
	margin-top: 18px;
	font: 400 14px/1.9 "Noto Sans JP", sans-serif !important;
	overflow-wrap: anywhere;
}
body.wp-outsource-renewal .renewal-site-footer .renewal-footer-menu {
	display: block;
	column-count: 3;
	column-gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.wp-outsource-renewal .renewal-footer-menu li {
	list-style: none;
	padding: 0;
	margin: 0;
	overflow-wrap: anywhere;
}
body.wp-outsource-renewal .renewal-footer-menu > li {
	break-inside: avoid;
	margin-bottom: 28px;
}
body.wp-outsource-renewal .renewal-footer-menu .sub-menu {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
}
body.wp-outsource-renewal .renewal-footer-menu .sub-menu .sub-menu { margin-left: 14px; }
body.wp-outsource-renewal .renewal-footer-menu a {
	color: #18243b;
	text-decoration: none;
}
body.wp-outsource-renewal .renewal-footer-menu .sub-menu a {
	font: 400 14px/1.8 "Noto Sans JP", sans-serif !important;
	color: #64748b;
}
body.wp-outsource-renewal .renewal-footer-menu a:hover,
body.wp-outsource-renewal .renewal-footer-menu a:focus-visible { color: #315bf4; text-decoration: underline; }
body.wp-outsource-renewal .renewal-footer-copyright {
	grid-column: 1 / -1;
	border-top: 1px solid #e6eaf2;
	padding-top: 24px;
	text-align: center;
}
@media (max-width: 1100px) {
	body.wp-outsource-renewal .renewal-footer-inner { grid-template-columns: 1fr; gap: 32px; }
	body.wp-outsource-renewal .renewal-footer-brand { max-width: 480px; }
}
@media (max-width: 800px) {
	body.wp-outsource-renewal .renewal-site-footer .renewal-footer-menu { column-count: 2; }
}
@media (max-width: 500px) {
	body.wp-outsource-renewal .renewal-site-footer .renewal-footer-menu { column-count: 1; }
}

/* Keep the CTA's existing type/padding; let the copy absorb width changes. */
body.wp-outsource-renewal[data-page="index"] .dev > .dev-copy {
	flex: 1 1 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

body.wp-outsource-renewal[data-page="index"] .dev > .action {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: .4em;
	white-space: nowrap;
}

body.wp-outsource-renewal[data-page="index"] .dev-action-icon {
	flex: none;
}

.renewal-empty {
	grid-column: 1 / -1;
	padding: 36px;
	border: 1px dashed #cbd5e1;
	border-radius: 20px;
	background: #f8faff;
	color: #64748b;
}

.renewal-pagination {
	margin-top: clamp(32px, 4vw, 56px);
}

.renewal-pagination > ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Hide only the scrollbar; retain native touch, trackpad and keyboard scrolling. */
body.wp-outsource-renewal[data-page="index"] #products .toolbox-track {
	scrollbar-width: none !important;
	-ms-overflow-style: none;
}

body.wp-outsource-renewal[data-page="index"] #products .toolbox-track::-webkit-scrollbar {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
}

/* Reserve a visible slice of the next card instead of relying on a scrollbar. */
@media (min-width: 701px) {
	body.wp-outsource-renewal[data-page="index"] #products .toolbox-track {
		--toolbox-visible-cards: 2;
		--toolbox-leading-space: max(28px, calc((100vw - 1440px) / 2 + 28px));
	}
	body.wp-outsource-renewal[data-page="index"] #products .toolbox-track > .product {
		flex-basis: calc((100vw - var(--toolbox-leading-space) - 64px - var(--toolbox-visible-cards) * 22px) / var(--toolbox-visible-cards));
	}
}

@media (min-width: 1000px) {
	body.wp-outsource-renewal[data-page="index"] #products .toolbox-track { --toolbox-visible-cards: 3; }
}

@media (min-width: 1740px) {
	body.wp-outsource-renewal[data-page="index"] #products .toolbox-track { --toolbox-visible-cards: 4; }
}

.renewal-pagination a,
.renewal-pagination span {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: 1px solid #dbe2f1;
	border-radius: 10px;
	padding: 0 12px;
}

.renewal-pagination .current {
	background: #315bf4;
	color: #fff;
	border-color: #315bf4;
}

.renewal-prose {
	max-width: 950px;
}

.renewal-prose > *:first-child {
	margin-top: 0;
}

.renewal-prose img {
	max-width: 100%;
	height: auto;
}

.renewal-prose a {
	color: #315bf4;
	text-decoration: underline;
	text-underline-offset: .2em;
}

/* Standard content buttons: retain each block's colors, including custom colors. */
body.wp-outsource-renewal :is(.column-article-prose, .news-detail-content .art-prose, .wpo-page-prose) .wp-block-button__link,
body[data-page="custom-development"] .wpo-development-action > a {
	transition: filter .18s ease, box-shadow .18s ease, transform .18s ease;
}
@media (hover: hover) and (pointer: fine) {
	body.wp-outsource-renewal :is(.column-article-prose, .news-detail-content .art-prose, .wpo-page-prose) .wp-block-button__link:hover,
	body[data-page="custom-development"] .wpo-development-action > a:hover {
		filter: brightness(.9);
		box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
		transform: translateY(-2px);
	}
	body.wp-outsource-renewal :is(.column-article-prose, .news-detail-content .art-prose, .wpo-page-prose) .wp-block-button__link:active,
	body[data-page="custom-development"] .wpo-development-action > a:active {
		box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
		transform: translateY(0);
	}
}
body.wp-outsource-renewal :is(.column-article-prose, .news-detail-content .art-prose, .wpo-page-prose) .wp-block-button > .wp-block-button__link:focus-visible,
body[data-page="custom-development"] .wpo-development-action > a:focus-visible {
	outline: 3px solid var(--page-accent, var(--article-blue, #315bf4));
	outline-offset: 4px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
@media (prefers-reduced-motion: reduce) {
	body.wp-outsource-renewal :is(.column-article-prose, .news-detail-content .art-prose, .wpo-page-prose) .wp-block-button__link,
	body[data-page="custom-development"] .wpo-development-action > a { transition: none; }
	body.wp-outsource-renewal :is(.column-article-prose, .news-detail-content .art-prose, .wpo-page-prose) .wp-block-button__link:is(:hover, :active),
	body[data-page="custom-development"] .wpo-development-action > a:is(:hover, :active) { transform: none; }
}

/* Clip horizontal overflow without creating a body scroll container that
 * prevents the design's sticky purchase box from following the viewport. */
body.wp-outsource-renewal.single-gtspc_product {
	overflow-x: clip;
	overflow-y: visible;
}
@media (min-width: 801px) {
	body.wp-outsource-renewal.single-gtspc_product .buybox {
		top: var(--renewal-anchor-offset) !important;
		max-height: calc(100dvh - var(--renewal-anchor-offset) - 20px) !important;
	}
}
@media (max-width: 800px) {
	body.wp-outsource-renewal.single-gtspc_product .product-layout > .buybox {
		order: 1;
	}
}

/* Keep purchase explanations smaller than the 15px security heading. */
body.wp-outsource-renewal.single-gtspc_product .buybox #product-purchase-points p {
	font-size: 14px !important;
	line-height: 1.8 !important;
}

/* Download product purchase cards do not show inventory quantities. */
body.wp-outsource-renewal.single-gtspc_product .buybox .gtspc-product-cart__stock {
	display: none;
}

body.wp-outsource-renewal.single-gtspc_product .buybox .gtspc-field--qty {
	display: flex;
	align-items: center;
	gap: 12px;
}
body.wp-outsource-renewal.single-gtspc_product .buybox .gtspc-field--qty > span {
	margin-bottom: 0;
	flex-shrink: 0;
}
body.wp-outsource-renewal.single-gtspc_product .buybox .gtspc-field--qty > input {
	flex: 0 0 80px;
	width: 80px;
}

.buybox .gtspc-product-cart,
.buybox .gtspc-product-cart-form,
.buybox form {
	margin-top: 20px;
}

.buybox .gtspc-product-cart button,
.buybox .gtspc-product-cart input[type="submit"],
.buybox .gtspc-add-to-cart-button {
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 12px;
	background: #315bf4;
	color: #fff;
	font: 800 16px "Noto Sans JP", sans-serif;
	cursor: pointer;
}

.product-live-note {
	font-size: 13px;
	color: #64748b;
}

.column-card-media img,
.story img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.column-card-media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 16px;
	background: #eef2ff;
}

.column-entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.column-entry-date {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.column-card-body .column-entry-date {
	color: var(--muted, #526479);
	font-size: 13px;
}

.faq details p {
	margin-bottom: 0;
}

.wp-outsource-faq-content details :is(ol, ul) {
	margin-block: .6em 0;
	padding-inline-start: 2.5em;
	list-style-position: outside;
}

.wp-outsource-faq-content details li + li {
	margin-block-start: .3em;
}

.wp-outsource-faq-content :is(p, li) a:not(.button, .wp-block-button__link) {
	color: #315bf4;
	text-decoration: none;
}

@media (max-width: 1100px) {
	body.wp-outsource-renewal .renewal-menu-toggle {
		display: block;
		margin-left: auto;
		flex-shrink: 0;
	}

	body.wp-outsource-renewal .renewal-site-header .shared-action {
		display: none;
	}

	body.wp-outsource-renewal .renewal-site-header .shared-links {
		display: none !important;
		gap: 12px !important;
		position: absolute;
		top: calc(100% + 1px);
		left: 0;
		right: 0;
		padding: 18px;
		background: #fff;
		border-bottom: 1px solid #e6eaf2;
		box-shadow: 0 18px 30px rgba(23, 36, 60, .12);
	}

	body.wp-outsource-renewal .renewal-site-header .shared-links.is-open {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		margin: 0 !important;
		max-height: calc(100dvh - var(--renewal-anchor-offset));
		overflow-y: auto;
	}

	.renewal-site-header .renewal-menu {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	body.wp-outsource-renewal .renewal-site-header .shared-links a {
		display: block;
		padding: 10px 4px;
	}

	.renewal-footer-inner,
	.renewal-footer-menu {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 782px) {
	body.wp-outsource-renewal.admin-bar .renewal-site-header {
		top: 46px !important;
	}
}

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