@charset "UTF-8";

:root,
:host {
	/* Text Styles */
	--font-family-body-regular: "Noto Sans JP";
	--font-size-body-regular: 16px;
	--font-weight-body-regular: 400;
	--line-height-body-regular: 1.8;

	--font-family-body-sub: "Noto Sans JP";
	--font-size-body-sub: 14px;
	--font-weight-body-sub: 400;
	--line-height-body-sub: 1.6;

	--font-family-body-sub-s: "Noto Sans JP";
	--font-size-body-sub-s: 12px;
	--font-weight-body-sub-s: 400;
	--line-height-body-sub-s: 1.6;

	--font-family-body-menu: "Noto Sans JP";
	--font-size-body-menu: 14px;
	--font-weight-body-menu: 700;
	--line-height-body-menu: 1.6;

	--font-family-heading-h1: "Noto Sans JP";
	--font-size-heading-h1: 48px;
	--font-weight-heading-h1: 700;
	--line-height-heading-h1: 1.4;

	--font-family-heading-h2: "Noto Sans JP";
	--font-size-heading-h2: 32px;
	--font-weight-heading-h2: 700;
	--line-height-heading-h2: 1.4;

	--font-family-heading-h3: "Noto Sans JP";
	--font-size-heading-h3: 24px;
	--font-weight-heading-h3: 700;
	--line-height-heading-h3: 1.4;

	--font-family-heading-h4: "Noto Sans JP";
	--font-size-heading-h4: 20px;
	--font-weight-heading-h4: 700;
	--line-height-heading-h4: 1.4;

	--font-family-heading-h5: "Noto Sans JP";
	--font-size-heading-h5: 18px;
	--font-weight-heading-h5: 700;
	--line-height-heading-h5: 1.4;

	--font-family-button-medium: "Noto Sans JP";
	--font-size-button-medium: 16px;
	--font-weight-button-medium: 700;
	--line-height-button-medium: 1;

	--font-family-tel: "Outfit", sans-serif;

	/* Color Collection */
	--color-primary: #0069a6;
	--color-primary-light: #0185d1;
	--color-secondary: #003350;
	--color-accent: #ff7b00;
	--color-accent-light: #ff9a3d;
	--color-accent-2: #ffe4cb;
	--color-text-base: #333333;
	--color-bg-white: #ffffff;
	--color-bg-pale: #f6f6f6;
	--color-bg-light: #eeeeee;
	--color-main-pale: #d5e9f5;

	/* Gradients */
	--gradient-primary: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary) 100%);
	--gradient-accent: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);

	/* Spacing Collection */
	--spacing-xs: 8px;
	--spacing-sm: 16px;
	--spacing-md: 32px;
	--spacing-lg: 64px;
	--spacing-xl: 96px;

	/* SP container gutter (left/right) */
	--spacing-gutter-sp: 20px;

	/* Snow Monkey overrides */
	--header-text-color: var(--color-text-base);
}

body {
	min-width: 320px;
}

.p-global-nav .c-navbar__item>a{
    font-size: 15px;
}
.l-header .c-container {
	padding-inline: var(--spacing-sm);
}

.l-header--sticky-lg {
	box-shadow: none;
}

@media (max-width: 1023px) {
	:root {
		--_global--container-margin: var(--spacing-gutter-sp);
		--font-size-body-regular: 14px;
	}

	.c-container,
	.c-fluid-container {
		padding-inline: var(--spacing-gutter-sp);
	}

	.smb-section--fit .c-container {
		padding-inline: 0;
	}

	.smb-section--fit .smb-section__header {
		padding-inline: var(--spacing-gutter-sp);
	}
}

.l-contents__inner {
	margin-top: var(--spacing-sm);
}

.l-contents__inner:last-child {
	padding-bottom: 0;
}

/* Media single: 64px from the breadcrumbs to the title (the breadcrumbs already add 10px) */
.single-media .l-contents__inner {
	margin-top: calc(var(--spacing-lg) - 10px);
	padding-bottom: var(--spacing-lg);
}

/* Media archive: heading + lead above the list, press contact below (inc/media-archive-sections.php) */
.p-media-intro {
	margin: 0 0 var(--spacing-md);
	text-align: center;
}

div.p-media-intro + section {
	margin-top: var(--spacing-lg);
}

.p-media-intro__heading,
.p-media-contact__heading {
	margin: 0 0 var(--spacing-sm);
}

.p-media-intro__lead,
.p-media-contact__lead {
	margin: 0;
}

.p-media-contact {
	margin: var(--spacing-lg) 0 0;
	padding: var(--spacing-md) var(--spacing-sm);
	background-color: var(--color-main-pale);
	text-align: center;
}

.p-media-contact__lead {
	margin-bottom: var(--spacing-md);
}

.p-media-contact .p-media-contact__btn {
	max-width: 100%;
	white-space: normal;
	text-align: center;
}

/*
 * Media coverage ("メディア取材") archive list - see template-parts/archive/archive-media.php.
 * Label (テレビ/新聞/雑誌) comes from the "媒体の種類" taxonomy; cards: 1 column (SP) / 2 (tablet) / 3 (PC).
 */
.p-media-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-lg) var(--spacing-md);
	margin: 0;
}

.p-media-item {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
	text-align: left;
}

.p-media-item__thumb {
	display: block;
	flex-shrink: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: var(--color-main-pale);
}

.p-media-item__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p-media-item__noimage {
	display: block;
	width: 100%;
	height: 100%;
}

.p-media-item__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--spacing-xs);
	min-width: 0;
}

.p-media-item__meta {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
}

.p-media-item__label {
	padding: 2px 12px;
	background-color: var(--color-primary);
	color: var(--color-bg-white);
	font-size: var(--font-size-body-sub);
	font-weight: 700;
	line-height: 1.6;
}

.p-media-item__label--newspaper {
	background-color: var(--color-secondary);
}

.p-media-item__label--magazine {
	background-color: var(--color-accent);
}

.p-media-item__date {
	font-family: var(--font-family-tel);
	font-size: var(--font-size-body-sub);
	color: var(--color-text-base);
}

.p-media-list .p-media-item__title {
	margin: 0;
	font-size: var(--font-size-heading-h4);
}

.p-media-item__title a {
	color: inherit;
	text-decoration: none;
}

.p-media-item__title a:hover {
	text-decoration: underline;
}

.p-media-item__excerpt {
	margin: 0;
	color: var(--color-text-base);
}

.p-media-item__more {
	display: inline-flex;
	align-items: center;
	margin-top: auto;
	padding: var(--spacing-xs) var(--spacing-md);
	border: 1px solid var(--color-primary);
	color: var(--color-primary);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.p-media-item__more:hover {
	background-color: var(--color-primary);
	color: var(--color-bg-white);
}

@media (min-width: 640px) {
	.p-media-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.p-media-list {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* "※近日公開" shown on the column / media archives while they have no posts */
.post-type-archive-column .c-entry__content,
.post-type-archive-media .c-entry__content {
	padding: var(--spacing-lg) 0;
	text-align: center;
}

@media (max-width: 1023px) {
	.l-contents__inner {
		margin-top: var(--spacing-xs);
	}
}

/* SP/Tablet/PC br switch */
br.br-sp {
	display: inline;
}

br.br-tab,
br.br-pc {
	display: none;
}

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

	br.br-tab {
		display: inline;
	}
}

@media (min-width: 1024px) {
	br.br-tab {
		display: none;
	}

	br.br-sp {
		display: none;
	}

	br.br-pc {
		display: inline;
	}

	:root {
		--font-size-heading-h2: 36px;
		--font-size-heading-h3: 26px;
		--font-size-heading-h4: 22px;
		--font-size-heading-h5: 20px;
	}
}
.p-global-nav .c-navbar__item>a{
    padding: var(--spacing-sm);
    white-space: nowrap;
}

.p-global-nav .c-navbar__item > a {
	position: relative;
	background-image: var(--gradient-primary);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	font-weight: 700;
	transition: color 0.3s ease;
}

.p-global-nav .c-navbar__item > a::after {
	content: "";
	position: absolute;
	bottom: 6px;
	left: var(--spacing-sm);
	width: 0;
	height: 2px;
	background: var(--gradient-primary);
	transition: width 0.3s ease;
}

.p-global-nav .c-navbar__item > a:hover::after {
	width: calc(100% - var(--spacing-sm) * 2);
}
/* Header contact (tel + CTA button) */
.p-header-contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-xs);
}

.p-header-contact__tel {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--font-family-tel);
	font-size: 20px;
	line-height: 1;
	color: var(--color-primary);
	text-decoration: none;
	white-space: nowrap;
}

.p-header-contact__tel::before {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	background-image: url("../img/icon-call.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px;
}

.p-header-contact__btn {
	position: relative;
	overflow: hidden;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: var(--spacing-sm);
	border-radius: 0;
	border: 1px solid var(--color-accent);
	background: var(--gradient-accent);
	color: var(--color-bg-white);
	font-family: var(--font-family-button-medium);
	font-weight: var(--font-weight-button-medium);
	line-height: var(--line-height-button-medium);
	text-decoration: none;
	transition: color 0.4s ease;
	white-space: nowrap;
}

.p-header-contact__btn::before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-image: url("../img/icon-mail.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px;
	transition: background-image 0.1s ease;
}

.p-header-contact__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--color-bg-white);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s ease;
}

.p-header-contact__btn:hover {
	color: var(--color-accent);
}

.p-header-contact__btn:hover::before {
	background-image: url("../img/icon-mail-accent.svg");
}

.p-header-contact__btn:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Image links: fade to 85% opacity on hover */
a img {
	transition: opacity 0.2s ease;
}

a:hover img {
	opacity: 0.85;
}

/* Front page hero (MV slider) */
.p-hero {
	background-color: var(--color-main-pale);
}

.p-hero__slider {
	position: relative;
	width: 100%;
}

.p-hero__slider .spider__canvas {
	height: 650px;
}

.p-hero__slider .spider__slide {
	height: 100%;
}

.p-hero__figure {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

@media (max-width: 767px) {
	.p-hero__slider .spider__canvas {
		height: auto;
	}

	.p-hero__slider .spider__slide {
		height: auto;
	}

	.p-hero__figure--sp {
		height: auto;
	}
	.c-site-branding__title .custom-logo {
    width: 150px;
	}
}

.p-hero__overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 100%;
	max-height: 100%;
	z-index: 1;
	pointer-events: none;
}

.p-hero__figure--pc,
.p-hero__figure--tab {
	display: none;
}

@media (min-width: 768px) and (max-width: 1140px) {
	.p-hero__overlay--pc {
		top: auto;
		bottom: 40px;
		transform: translateX(-50%);
		max-width: calc(100% - 40px);
	}
}

@media (max-width: 767px) {
	.p-hero__overlay--sp {
		top: auto;
		bottom: 40px;
		transform: translateX(-50%);
		max-width: calc(100% - 32px);
	}
}

.p-hero__overlay--pc {
	display: none;
}

.p-hero__slider .spider__dots {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	z-index: 2;
}

.p-hero__slider .spider__dot {
	background-color: rgba(255, 255, 255, 0.5);
}

.p-hero__slider .spider__dot[aria-current="true"] {
	background-color: var(--color-bg-white);
}

@media (min-width: 768px) {
	.p-hero__figure--tab {
		display: block;
	}

	.p-hero__figure--sp {
		display: none;
	}

	.p-hero__overlay--pc {
		display: block;
	}

	.p-hero__overlay--sp {
		display: none;
	}
}

@media (min-width: 1024px) {
	.p-hero__figure--pc {
		display: block;
	}

	.p-hero__figure--tab {
		display: none;
	}
}

/*
 * Static (non-slider) page MV for individual pages (e.g. /factory/, /factory/shelsta/).
 * See inc/page-hero.php. No heading - the featured image is shown as-is (no
 * crop) so its own height decides the section's height.
 */
.p-page-hero {
	display: block;
}

.p-page-hero picture,
.p-page-hero img {
	display: block;
	width: 100%;
	height: auto;
}

/* SP: cancel the container's side padding so the MV runs edge to edge */
@media (max-width: 639px) {
	.p-page-hero {
		margin-inline: calc(-1 * var(--spacing-gutter-sp));
	}
}

.has-custom-hero .c-entry__header {
	display: none;
}

/* Drawer nav */
#drawer-nav.c-drawer {
	width: 100%;
	background-color: var(--color-bg-white);
	color: var(--color-text-base);
}

.p-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 50px;
}
.c-hamburger-btn__label,
.p-drawer-header .c-hamburger-btn {
	color: var(--color-primary);
}
.p-drawer-header .c-hamburger-btn__bar {
	background-color: var(--color-primary);
}
.l-header .c-hamburger-btn__bar{
    background-color: var(--color-primary);
}
#drawer-nav .c-drawer__menu {
	text-align: center;
}

#drawer-nav .c-drawer__item > a {
	display: block;
	padding: var(--spacing-xs) 0;
	font-family: var(--font-family-body-regular);
}

.p-drawer-contact {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
	padding: 0 0 var(--spacing-md) 0;
}

a.p-drawer-contact__tel {
	width: 100%;
	min-height: 56px;
	box-sizing: border-box;
	justify-content: center;
	padding: 0 var(--spacing-md);
	border: 1px solid var(--color-primary);
	font-size: 18px;
	color: var(--color-primary);
}

.p-drawer-contact__tel::before {
	width: 20px;
	height: 20px;
	background-size: 20px;
}

a.p-drawer-contact__btn {
	width: 100%;
	min-height: 56px;
	box-sizing: border-box;
	color:var(--color-bg-white);
}

/* Footer CTA */
.p-cta {
	padding: var(--spacing-lg) 0;
	background-image: url("../img/footer_bg.jpg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	text-align: center;
}

.p-cta .p-cta__heading {
	margin: 0 0 var(--spacing-xs);
	font-family: var(--font-family-heading-h2);
	font-size: var(--font-size-heading-h2);
	font-weight: var(--font-weight-heading-h2);
	background-image: none;
	color: var(--color-bg-white);
	-webkit-text-fill-color: var(--color-bg-white);
}

.p-cta__lead {
	margin: 0 0 var(--spacing-md);
	font-family: var(--font-family-body-regular);
	font-size: var(--font-size-body-regular);
	color: var(--color-bg-white);
}

.p-cta__contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-sm);
	max-width: 320px;
	margin: 0 auto;
}

.p-cta__telbox {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-xs);
}

.p-cta__tel {
	width: 100%;
	min-height: 56px;
	box-sizing: border-box;
	justify-content: center;
	padding: 0 var(--spacing-md);
	border: 1px solid var(--color-primary);
	background-color: var(--color-bg-white);
	font-size: 24px;
}

.p-cta__hours {
	margin: 0;
	font-family: var(--font-family-body-sub);
	font-size: var(--font-size-body-sub);
	color: var(--color-bg-white);
}

.p-cta__btn {
	width: 100%;
	min-height: 56px;
	box-sizing: border-box;
}

/* Footer info */
.p-footer-info {
	padding: var(--spacing-lg) 0;
	background-color: var(--color-primary);
	color: var(--color-bg-white);
}

.p-footer-info__container {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

.p-footer-info__branding {
	text-align: center;
}

.p-footer-info__logo {
	display: block;
	width: 240px;
	height: auto;
	margin: 0 auto;
}
.p-footer-info__name{
	margin-top: var(--spacing-md);
	font-size: var(--font-size-body-regular);
	font-weight: bold;
}
.p-footer-info__address {
	margin: var(--spacing-sm) 0 0;
	font-family: var(--font-family-body-sub);
	font-size: var(--font-size-body-sub);
	line-height: var(--line-height-body-sub);
	color: var(--color-bg-white);
    text-align:left;
}

.p-footer-info__offices {
	margin: var(--spacing-sm) 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-family-body-sub);
	font-size: var(--font-size-body-sub);
	line-height: var(--line-height-body-sub);
	color: var(--color-bg-white);
	text-align: left;
}

.p-footer-info__offices li + li {
	margin-top: var(--spacing-xs);
}

@media (min-width: 1024px) {
	.p-cta__contact {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: var(--spacing-md);
		max-width: none;
	}

	.p-cta__telbox {
		width: auto;
		flex-direction: row;
		gap: var(--spacing-sm);
	}

	.p-cta__tel {
		width: auto;
		min-height: auto;
		padding: 0;
		border: none;
		background-color: transparent;
		color: var(--color-bg-white);
		font-size: var(--font-size-heading-h2);
	}
    .p-cta__tel::before {
        width: 32px;
        height: 32px;
        background-image: url("../img/icon-call-white.svg");
        background-size: 32px;
    }

	.p-cta__btn {
		width: auto;
	}

	.p-footer-info__container {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: var(--spacing-lg);
	}

	.p-footer-info__branding {
		text-align: left;
		display: flex;
		flex-direction: row;
		gap: var(--spacing-xl);
	}

	.p-footer-info__logo {
		margin: 0;
	}
}
.p-footer-sub-nav{
    background-color: var(--color-secondary);
    color: #ffffff;
    padding: var(--spacing-md) 0;
}
.c-sub-nav .c-navbar{
    gap:var(--spacing-md);
    justify-content: center;
}
.c-copyright{
    background-color: var(--color-secondary);
    color: #ffffff;
}

/* Reusable heading styles (add via block editor "Additional CSS class(es)") */
.c-heading-label {
	margin: 0 0 var(--spacing-xs);
	padding: 0;
	background: none;
	font-family: var(--font-family-body-regular);
	font-size: var(--font-size-body-regular);
	font-weight: 700;
	color: var(--color-primary);
}

.c-heading-label::before {
	content: "■";
	margin-right: var(--spacing-xs);
	font-size: 0.8em;
}

.c-heading-lg {
	margin: 0 0 var(--spacing-md);
	border-bottom: none;
	font-family: var(--font-family-heading-h2);
	font-size: var(--font-size-heading-h2);
	font-weight: 700;
	line-height: 1.5;
	color: var(--color-primary);
}

/* Snow Monkey Blocks: Button - default style (white background, blue gradient border, gradient text) */
.smb-btn {
	--smb-btn--background-color: var(--color-bg-white);
	position: relative;
	z-index: 0;
}

.smb-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	border-radius: inherit;
	background: var(--gradient-primary);
}

.smb-btn::after {
	content: "";
	position: absolute;
	inset: 2px;
	z-index: -1;
	border-radius: inherit;
	background: var(--smb-btn--background-color);
	transform-origin: right;
	transition: transform 0.4s ease;
}

.smb-btn__label {
	background-image: var(--gradient-primary);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	transition: color 0.4s ease, -webkit-text-fill-color 0.4s ease;
}

@media (any-hover: hover) {
	.smb-btn:hover {
		filter: none;
	}

	.smb-btn:hover::after {
		transform: scaleX(0);
	}

	.smb-btn:hover .smb-btn__label {
		color: var(--color-bg-white);
		-webkit-text-fill-color: var(--color-bg-white);
	}
}

/* Snow Monkey Blocks: Button - "arrow" style */
.smb-btn-wrapper.is-style-arrow .smb-btn {
	--smb-btn--border-radius: 999px;
	--smb-btn--background-color: transparent;
	--smb-btn--color: var(--color-primary);
	border: 1px solid var(--color-primary);
}

.smb-btn-wrapper.is-style-arrow .smb-btn__label::after {
	content: "\203A";
	margin-left: var(--spacing-xs);
	font-weight: 700;
}

/* Snow Monkey Blocks: Slider - center slides when they don't fill the row */
.smb-spider-slider .spider__canvas {
	justify-content: center;
}

/* Nested .c-container (e.g. Section block inside content area) should not double the padding */
.c-container .c-container {
	padding-inline: 0;
}

/* Snow Monkey Blocks: Box already has its own side padding - avoid doubling with the container's */
.c-container:has(> .smb-section__contents-wrapper .smb-box) {
	padding-inline: 0;
}

.smb-box {
	padding-inline: var(--spacing-sm);
}

h4 {
	position: relative;
	padding-left: var(--spacing-sm);
	font-size: var(--font-size-heading-h4);
	color: var(--color-primary);
}

h5 {
	font-size: var(--font-size-heading-h5);
}

h4::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--gradient-primary);
}

h2:not(.has-text-color),
h3:not(.has-text-color) {
	background-image: var(--gradient-primary);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

h3 {
	border-bottom: none;
	padding-bottom: 0;
	font-size: var(--font-size-heading-h3);
}

h2,
.smb-section__title {
	font-size: var(--font-size-heading-h2);
}

.wp-block-media-text__content > h3 {
	margin-bottom: var(--spacing-sm);
}

/* Reverse media/text stacking order on SP (add via "Additional CSS class(es)") */
@media (max-width: 600px) {
	.wp-block-media-text.is-stacked-on-mobile.c-media-text--reverse-sp > .wp-block-media-text__media {
		grid-row: 2;
	}

	.wp-block-media-text.is-stacked-on-mobile.c-media-text--reverse-sp > .wp-block-media-text__content {
		grid-row: 1;
	}
}

/* Reverse .c-row__col order on SP (add "c-row--reverse-sp" via "Additional CSS class(es)" on the Items block) */
@media (max-width: 639px) {
	.c-row.c-row--reverse-sp,
	.c-row--reverse-sp .c-row {
		flex-direction: column-reverse;
	}
}

/*
 * Stretch a box (e.g. a bordered Group block) to fill the full height of its
 * Items column, so boxes placed side by side line up at equal height.
 * Add "c-box--stretch" via "Additional CSS class(es)" on the box itself
 * (the Items - Item (Free) block's content already fills the column height).
 */
.c-box--stretch {
	flex-grow: 1;
	box-sizing: border-box;
}

/*
 * Chevron/arrow-shaped background chaining each item into a flow: pointing
 * right on PC/tablet (row), pointing down on SP (stacked).
 * Add "c-chevron-flow" via "Additional CSS class(es)" on the Items block
 * (no class needed on the individual items).
 */
.c-chevron-flow .smb-items__item {
	background-color: var(--color-main-pale);
	clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%, 15% 50%);
	padding: var(--spacing-sm) var(--spacing-md);
	text-align: center;
}

.c-chevron-flow .smb-items__item__body {
	padding-left: var(--spacing-sm);
}

/*
 * Widen every item equally (by overlap * (n-1)/n; 24px assumes 4 columns) so
 * all items stay the same size while the row still spans the full width once
 * the overlap margin below pulls items 2+ to the left.
 */
.c-chevron-flow .c-row__col {
	flex-basis: calc(var(--_item-width) + 24px);
	max-width: calc(var(--_item-width) + 24px);
}

.c-chevron-flow .c-row__col + .c-row__col {
	margin-left: -32px;
}

@media (max-width: 639px) {
	.c-chevron-flow .smb-items__item {
		clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
	}

	.c-chevron-flow .smb-items__item__body {
		padding-left: 0;
		padding-top: var(--spacing-sm);
	}

	.c-chevron-flow .c-row__col {
		flex-basis: var(--_item-width);
		max-width: var(--_item-width);
	}

	.c-chevron-flow .c-row__col + .c-row__col {
		margin-left: 0;
		margin-top: var(--spacing-sm);
	}
}

/*
 * Modifier: also stack in 1 column (down arrows) on tablet, up to 1023px.
 * Add "c-chevron-flow--stack-tab" next to "c-chevron-flow" on the same Items block.
 * The 1-column width is forced here, so the block's own tablet column setting
 * does not matter.
 */
@media (max-width: 1023px) {
	.c-chevron-flow--stack-tab .c-row__col {
		--_item-width: 100%;
		flex-basis: 100%;
		max-width: 100%;
	}

	.c-chevron-flow--stack-tab .smb-items__item {
		clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
	}

	.c-chevron-flow--stack-tab .smb-items__item__body {
		padding-left: 0;
		padding-top: var(--spacing-sm);
	}

	.c-chevron-flow--stack-tab .c-row__col + .c-row__col {
		margin-left: 0;
		margin-top: var(--spacing-sm);
	}
}

/*
 * For a (nested) Items block used to place a small icon beside a heading,
 * shrink the icon's column to fit its own content instead of splitting the
 * row 50/50 - otherwise a small icon leaves a large empty gap before the text.
 * Add "c-items--icon-inline" via "Additional CSS class(es)" on the Items
 * block that holds the icon + text pair.
 */
.c-items--icon-inline > .c-row {
	align-items: center;
}

.c-items--icon-inline > .c-row > .c-row__col:first-child {
	flex: 0 0 auto;
	max-width: none;
	width: auto;
}

.c-items--icon-inline > .c-row > .c-row__col:last-child {
	flex: 1 1 0%;
	max-width: none;
}

.c-items--icon-inline > .c-row > .c-row__col:first-child img {
	width: 48px;
	height: auto;
}

/*
 * Show the image before the text on SP while keeping the natural (as-authored)
 * order on PC - e.g. text then image on PC, image then text on SP.
 * Add "c-items__item--img-first-sp" via "Additional CSS class(es)" on the
 * Items - Item (Free) block.
 */
.c-items__item--img-first-sp .smb-items__item__body {
	display: flex;
	flex-direction: column;
}

@media (max-width: 767px) {
	.c-items__item--img-first-sp .smb-items__item__body figure {
		order: -1;
	}
}

/* Page header (fixed pages / posts) */
.p-page-header[data-has-image] {
	align-items: center;
	height: 400px;
	padding: 0;
}

.p-page-header .c-page-header__bgimage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p-page-header .c-page-header__content {
	align-items: center;
}

.p-page-header__title {
	display: inline-block;
	align-self: center;
	margin: 0;
	padding: var(--spacing-sm) var(--spacing-md);
	background-color: var(--color-primary);
	color: var(--color-bg-white);
	font-size: 40px;
}

@media (max-width: 1023px) {
	.p-page-header[data-has-image] {
		height: 200px;
	}

	.p-page-header__title {
		font-size: 28px;
		padding: var(--spacing-xs) var(--spacing-sm);
	}
}

/* Snow Monkey Blocks: Section - background text */
.smb-section__background-text__text {
	font-family: var(--font-family-heading-h1);
}

@media (max-width: 1023px) {
	.smb-section__background-text {
		overflow: visible;
	}

	.smb-section__background-text__text {
		white-space: nowrap;
		font-size: 80px !important;
	}
}

/* Image at 60% width, centered, on SP only (add via "Additional CSS class(es)") */
@media (max-width: 1023px) {
	.u-img-sp-60,
	.u-img-sp-60 img {
		width: 60%;
	}

	.u-img-sp-60 {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}

	/* Media & Text blocks: shrink only the media side, keep the block itself full width */
	.wp-block-media-text.u-img-sp-60,
	.smb-media-text.u-img-sp-60 {
		width: auto;
		margin-left: 0;
		margin-right: 0;
	}

	.wp-block-media-text.u-img-sp-60 .wp-block-media-text__media,
	.smb-media-text.u-img-sp-60 .smb-media-text__figure {
		width: 60%;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Left-align text on SP only (add via "Additional CSS class(es)") */
@media (max-width: 1023px) {
	.u-text-left-sp {
		text-align: left;
	}
}

/* Snow Monkey Blocks: Accordion - match theme colors */
.smb-accordion {
	--smb-accordion--title-background-color: var(--color-primary);
	--smb-accordion--title-color: var(--color-bg-white);
}

/*
 * FAQ accordion: pale-blue question bar with round white-on-color "Q" / "A" badges.
 * Add "c-faq" via "Additional CSS class(es)" on the Accordion block.
 */
.c-faq {
	--smb-accordion--title-background-color: var(--color-main-pale);
	--smb-accordion--title-color: var(--color-primary);
}

.c-faq .smb-accordion__item__title__label {
	display: flex;
	gap: var(--spacing-xs);
	font-weight: 700;
}

.c-faq .smb-accordion__item__title__label::before,
.c-faq .smb-accordion__item__body::before {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.7em;
	height: 1.7em;
	border-radius: 50%;
	color: var(--color-bg-white);
	font-family: var(--font-family-tel);
	font-weight: 700;
	line-height: 1;
}

.c-faq .smb-accordion__item__title__label::before {
	content: "Q";
	margin-top: 0.05em;
	background-color: var(--color-primary);
}

.c-faq .smb-accordion__item__body {
	padding-left: calc(var(--smb-accordion--body-padding) + 1.7em + var(--spacing-xs));
	color: var(--color-text-base);
}

.c-faq .smb-accordion__item__body::before {
	content: "A";
	position: absolute;
	top: calc(var(--smb-accordion--body-padding) + 0.05em);
	left: var(--smb-accordion--body-padding);
	background-color: var(--color-accent);
}

/*
 * Accordion: fade + slight slide when opening/closing. The plugin toggles
 * display:none, so "display" is transitioned with allow-discrete (browsers
 * without support simply open/close instantly).
 */
.smb-accordion .smb-accordion__item__body {
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, display 0.2s allow-discrete;
}

.smb-accordion .smb-accordion__item__control:checked + .smb-accordion__item__body,
.smb-accordion .smb-accordion__item__control:checked + .smb-accordion__item__title + .smb-accordion__item__body {
	opacity: 1;
	transform: none;
	transition: opacity 0.4s ease, transform 0.4s ease, display 0.4s allow-discrete;
}

@starting-style {
	.smb-accordion .smb-accordion__item__control:checked + .smb-accordion__item__body,
	.smb-accordion .smb-accordion__item__control:checked + .smb-accordion__item__title + .smb-accordion__item__body {
		opacity: 0;
		transform: translateY(-8px);
	}
}

/* Block editor has no checkbox, so the body is always shown - keep it fully visible there */
.smb-accordion .smb-accordion__item__body.block-editor-block-list__layout {
	opacity: 1;
	transform: none;
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.smb-accordion .smb-accordion__item__body {
		transition: none;
	}
}

/* Default Table block styling: blue border, blue/white header, white/black body */
.wp-block-table table {
	border: 1px solid var(--color-primary);
}

.wp-block-table thead {
	border-bottom: none;
}

.wp-block-table th,
.wp-block-table td {
	border: 1px solid var(--color-primary);
	padding: var(--spacing-xs) var(--spacing-sm);
}

.wp-block-table th {
	background-color: var(--color-primary);
	color: var(--color-bg-white);
}

.wp-block-table td {
	background-color: var(--color-bg-white);
	color: var(--color-text-base);
}

/* Narrow a specific Section block's content width (add via "Additional CSS class(es)") */
.u-narrow-960.alignwide,
.u-narrow-960 .c-container {
	max-width: 960px;
}

/* Shrink an image on SP only (add "u-img-small-sp" via "Additional CSS class(es)" on the Image block) */
@media (max-width: 767px) {
	.u-img-small-sp {
		width: 96px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Shrink the media on SP only (add "u-media-small-sp" via "Additional CSS class(es)" on the Media & Text block) */
@media (max-width: 767px) {
	.u-media-small-sp .smb-media-text__figure {
		display: flex;
		justify-content: center;
	}

	.u-media-small-sp .smb-media-text__figure img {
		width: 96px;
	}
}

/* Site-wide default container width */
:root {
	--_global--container-max-width: 1140px;
}

@media (max-width: 1023px) {
	.u-img-sp-60,
	.u-img-sp-60 img {
		width: 100%;
	}
}

/*
 * Section block's own "subtitle" field (e.g. "EARTHQUAKE RISK") - styled directly so the
 * "c-heading-label--en" class is no longer needed on the Section block itself. It used to be
 * applied there, which leaked its font/weight/color/alignment (inherited properties) onto
 * every child in the section - safe to remove "c-heading-label--en" from any Section block now.
 */
.smb-section__subtitle {
	font-family: var(--font-family-tel);
	font-size: 14px;
	letter-spacing: 0.08em;
	color: var(--color-primary);
}

/* Reset the Section block's own lede text back to normal body copy (see note above) */
.smb-section__lede {
	font-family: var(--font-family-body-regular);
	font-size: var(--font-size-body-regular);
	font-weight: var(--font-weight-body-regular);
	line-height: var(--line-height-body-regular);
	color: var(--color-text-base);
	text-align: left;
}

@media (min-width: 1024px) {
	.smb-section__lede {
		text-align: center;
	}
}

/* Standalone eyebrow label for use outside a Section block's subtitle field (add via "Additional CSS class(es)" on a Paragraph) */
.c-heading-label--en {
	margin: 0 0 var(--spacing-xs);
	font-family: var(--font-family-tel);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--color-primary);
	text-align: center;
}

/* Fixed background image, full-bleed regardless of the container width (add via "Additional CSS class(es)") */
.c-section--fixed-bg {
	position: relative;
	margin-top: 0;
	margin-bottom: 0;
}

.c-section--fixed-bg::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 100vw;
	height: 100%;
	margin-left: -50vw;
	background-image: url("../img/bg.jpg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	background-attachment: fixed;
	z-index: -1;
	pointer-events: none;
}

/*
 * Flow / process list with an auto-numbered badge on each image.
 * Uses the Items block's own responsive column count (data-columns / data-md-columns / data-lg-columns) -
 * add "c-flow" to the Items block and "c-flow__item" to each item.
 * Inside each item, use plain blocks (in any order): a Heading (h3) for the title,
 * a Paragraph for the bold subtitle, an Image block, then a Paragraph for the body text.
 * The "01" / "02" ... badge is generated automatically - do not type the number into the heading.
 */
.c-flow {
	counter-reset: c-flow-item;
}

.c-flow__item {
	position: relative;
	padding-inline: var(--spacing-sm);
	counter-increment: c-flow-item;
}

/* Stack image / heading / subtitle / body in a fixed visual order regardless of block order in the editor */
.c-flow__item .smb-items__item__body {
	display: flex;
	flex-direction: column;
}

.c-flow__item figure {
	order: 1;
	position: relative;
	margin: 0 0 var(--spacing-sm);
}

.c-flow__item img {
	display: block;
	width: 100%;
	height: auto;
}

.c-flow__item figure::before {
	content: counter(c-flow-item, decimal-leading-zero);
	position: absolute;
	top: 0;
	left: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gradient-primary);
	color: var(--color-bg-white);
	font-family: var(--font-family-tel);
	font-size: 20px;
	font-weight: 700;
	z-index: 1;
}

.c-flow__item h3 {
	order: 2;
	margin: 0 0 var(--spacing-xs);
}

.c-flow__item p:first-of-type {
	order: 3;
	margin: 0 0 var(--spacing-sm);
	font-size: var(--font-size-body-sub);
	font-weight: var(--font-weight-body-menu);
	background-image: var(--gradient-primary);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.c-flow__item p:last-of-type {
	order: 4;
	margin: 0;
	font-family: var(--font-family-body-regular);
	font-size: var(--font-size-body-regular);
	font-weight: var(--font-weight-body-regular);
	line-height: var(--line-height-body-regular);
	color: var(--color-text-base);
}

@media (max-width: 1023px) {
	/* Items block wraps to multiple rows at this breakpoint - add row spacing */
	.c-flow__item {
		margin-bottom: var(--spacing-lg);
	}

	.c-flow__item:last-child {
		margin-bottom: 0;
	}
}

/*
 * Just a connecting arrow between items - no badge/number (compare ".c-flow").
 * Add "c-flow-arrow" to the Items block and "c-flow-arrow__item" to each item.
 * Points right on PC/tablet (row layout), points down on SP (stacked) - matches
 * the Items block's own column breakpoints (data-columns/md/lg).
 */
.c-flow-arrow__item {
	position: relative;
}

.c-flow-arrow__item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	z-index: 1;
	width: 14px;
	height: 14px;
	border-top: 3px solid var(--color-primary);
	border-right: 3px solid var(--color-primary);
	transform: translate(50%, -50%) rotate(45deg);
}

@media (max-width: 639px) {
	.c-flow-arrow__item:not(:last-child)::after {
		top: auto;
		right: 50%;
		bottom: 0;
		transform: translate(50%, 50%) rotate(135deg);
	}
}

/*
 * Brand color gradients (add via "Additional CSS class(es)").
 * "u-bg-gradient-primary" / "u-bg-gradient-accent" apply as a background (Section/Group/Button block).
 * "u-text-gradient-primary" / "u-text-gradient-accent" apply as a text fill (Heading/Paragraph block).
 */
.u-bg-gradient-primary {
	background: var(--gradient-primary);
}

.u-bg-gradient-accent {
	background: var(--gradient-accent);
}

.u-text-gradient-primary,
.u-text-gradient-accent {
	display: inline-block;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.u-text-gradient-primary {
	background-image: var(--gradient-primary);
}

.u-text-gradient-accent {
	background-image: var(--gradient-accent);
}

/*
 * Snow Monkey Forms: blue progress tracker and blue-gradient buttons
 * (confirm / send = gradient fill, back = white with gradient-blue outline).
 */
.smf-progress-tracker__item::before,
.smf-progress-tracker__item::after {
	height: 2px;
	background-color: var(--color-main-pale);
}

.smf-progress-tracker__item__number {
	background-color: var(--color-main-pale);
	color: var(--color-primary);
}

.smf-progress-tracker__item__text {
	color: var(--color-primary);
	opacity: 0.6;
}

.smf-progress-tracker__item[aria-current="true"] .smf-progress-tracker__item__number {
	background-color: var(--color-primary);
	background-image: var(--gradient-primary);
	color: var(--color-bg-white);
}

.smf-progress-tracker__item[aria-current="true"] .smf-progress-tracker__item__text {
	color: var(--color-primary);
	opacity: 1;
}

.smf-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-sm);
}

.smf-action .smf-button-control + .smf-button-control {
	margin-left: 0;
}

.smf-action .smf-button-control,
.smf-action .smf-button-control__control {
	width: 100%;
}

@media (min-width: 640px) {
	.smf-action {
		flex-direction: row;
		justify-content: center;
	}

	.smf-action .smf-button-control,
	.smf-action .smf-button-control__control {
		width: auto;
	}
}

.smf-action .smf-button-control__control {
	min-width: 12em;
	padding: var(--spacing-sm) var(--spacing-md);
	border: 1px solid transparent;
	border-radius: 0;
	background-color: var(--color-primary);
	background-image: var(--gradient-primary);
	color: var(--color-bg-white);
	font-weight: var(--font-weight-button-medium);
	transition: opacity 0.2s ease;
}

.smf-action .smf-button-control__control:hover {
	opacity: 0.85;
}

.smf-action .smf-button-control__control[data-action="back"] {
	border-color: var(--color-primary);
	background-color: var(--color-bg-white);
	background-image: none;
	color: var(--color-primary);
}

.smf-action .smf-button-control__control[disabled] {
	opacity: 0.5;
	color: var(--color-bg-white);
}

.smf-action .smf-button-control__control[data-action="back"][disabled] {
	color: var(--color-primary);
}

/*
 * Snow Monkey Forms items are display:flex on wide screens, which overrides the
 * [hidden] attribute set by assets/js/form-conditional.js.
 */
.smf-item[hidden] {
	display: none;
}

/*
 * Make a whole Group block clickable. Add "c-link-block" via "Additional CSS
 * class(es)" on the Group block, then put a link on any text inside it
 * (e.g. the heading). The link's clickable area is stretched over the group.
 */
.c-link-block {
	position: relative;
}

/* The parent theme makes every child of a Group position:relative, which would trap the stretched link */
.c-link-block :is(h1, h2, h3, h5, h6, p) {
	position: static;
}

.c-link-block a {
	color: inherit;
	text-decoration: none;
}

.c-link-block a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.c-link-block a:focus-visible::after {
	outline: 2px solid var(--color-primary);
	outline-offset: -2px;
}

/*
 * Card with a corner-fold accent and a sliding arrow on hover
 * (add "c-card-arrow" via "Additional CSS class(es)" to a Group block).
 */
.c-card-arrow {
	position: relative;
	overflow: hidden;
	z-index: 1;
	padding: var(--spacing-md) var(--spacing-xl) var(--spacing-md) var(--spacing-md) !important;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.c-card-arrow::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -100px;
	bottom: -100px;
	width: 200px;
	height: 200px;
	background: var(--gradient-accent);
	transform: rotate(-45deg);
	transition: right 0.3s ease, bottom 0.3s ease;
}

.c-card-arrow::after {
	content: "";
	position: absolute;
	bottom: var(--spacing-md);
	right: var(--spacing-md);
	width: 18px;
	height: 18px;
	background-image: url("../img/icon-arrow-white.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px;
	transition: right 0.3s ease;
}

.c-card-arrow:hover {
	background: var(--gradient-accent);
	border-color: var(--color-bg-white) !important;
	color: var(--color-bg-white);
}

.c-card-arrow:hover::before {
	right: -280px;
	bottom: -280px;
}

.c-card-arrow:hover::after {
	right: calc(var(--spacing-md) * -1);
}

.c-card-arrow:hover h3 {
	background-image: none;
	-webkit-text-fill-color: initial;
	color: var(--color-bg-white);
}

.c-card-arrow:hover h3 mark {
	color: var(--color-bg-white) !important;
}

.c-card-arrow:hover p {
	color: var(--color-bg-white);
}

/* News list on the front page, directly below the MV */
.p-news {
	padding-top: var(--spacing-lg);
	padding-bottom: var(--spacing-lg);
}

.p-news__heading {
	margin: 0 0 var(--spacing-md);
	text-align: center;
}

.p-news__list {
	margin: 0 0 var(--spacing-md);
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--color-bg-light);
}

.p-news__item {
	border-bottom: 1px solid var(--color-bg-light);
}

.p-news__link {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xs);
	padding: var(--spacing-sm) 0;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.p-news__link:hover {
	opacity: 0.7;
}

.p-news__date {
	flex-shrink: 0;
	font-family: var(--font-family-tel);
	font-size: var(--font-size-body-sub);
	color: var(--color-primary);
}

.p-news__title {
	color: var(--color-text-base);
}

.p-news__more {
	text-align: center;
}

/*
 * Blue-gradient CTA bar below a category card image (e.g. "シェルスタ／安全ボックス").
 * Build as: an Image block (the flattened photo+text graphic), then a Group block below it
 * with Additional CSS class "c-card-cta", containing a Paragraph and a Button block.
 */
.c-card-cta {
	margin-top: 0;
	margin-bottom: 0;
	padding: var(--spacing-md);
	text-align: center;
	background: var(--gradient-primary);
}

.c-card-cta p {
	margin: 0 0 var(--spacing-sm);
	color: var(--color-bg-white);
	font-weight: var(--font-weight-body-menu);
}

.c-card-cta .smb-btn {
	--smb-btn--background-color: transparent;
	--smb-btn--color: var(--color-bg-white);
	position: relative;
	overflow: hidden;
	z-index: 1;
	border: 1px solid var(--color-bg-white);
	transition: color 0.4s ease;
}

.c-card-cta .smb-btn::before {
	content: none;
}

.c-card-cta .smb-btn__label {
	background-image: none;
	color: inherit;
	-webkit-text-fill-color: inherit;
}

.c-card-cta .smb-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--color-bg-white);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s ease;
}

@media (any-hover: hover) {
	.c-card-cta .smb-btn:hover {
		--smb-btn--color: var(--color-primary);
		filter: none;
	}

	.c-card-cta .smb-btn:hover .smb-btn__label {
		color: var(--color-primary);
		-webkit-text-fill-color: var(--color-primary);
	}

	.c-card-cta .smb-btn:hover::after {
		transform: scaleX(1);
		transform-origin: left;
	}
}

