/* ==========================================================================
   セールスモンスター株式会社 コーポレートサイト（WordPressテーマ）
   カラー：ミントグラス（#F0FFF9 / #C5F1DF / #85D8BE / #3EAE96 / #246C61）
   ========================================================================== */

:root {
	--c1: #f0fff9; /* 背景 */
	--c2: #c5f1df; /* 罫線・淡い面 */
	--c3: #85d8be; /* 差し色（装飾のみ） */
	--c4: #3eae96; /* 差し色（装飾のみ・文字には使わない） */
	--c5: #246c61; /* 主役：見出し・リンク・ボタン */
	--c5-deep: #1a5249; /* ボタンのホバー */
	--ink: #14302b; /* 本文 */
	--muted: #4a6660; /* 補足テキスト */
	--rule: #d2e9e0; /* 区切り線 */
	--white: #ffffff;

	--font: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	--wide: 1200px;
	--gutter: clamp(20px, 4vw, 40px);
	--header-h: 76px;
	--section: clamp(72px, 10vw, 136px);

	/* パレット5色の帯（ヘッダー上端・フッターで使用） */
	--palette-band: linear-gradient(to right,
		var(--c1) 0 20%, var(--c2) 20% 40%, var(--c3) 40% 60%, var(--c4) 60% 80%, var(--c5) 80% 100%);
}

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: 0.03em;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "palt" 0;
	overflow-wrap: anywhere;
	line-break: strict;
}

h1,
h2,
h3 {
	margin: 0;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.04em;
	font-feature-settings: "palt" 1;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

p {
	margin: 0;
}

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

a {
	color: var(--c5);
	text-underline-offset: 0.22em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid var(--c5);
	outline-offset: 3px;
}

::selection {
	background: var(--c2);
}

.container {
	width: 100%;
	max-width: calc(var(--wide) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

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

.skip {
	position: absolute;
	left: 8px;
	top: -60px;
	z-index: 100;
	padding: 8px 14px;
	background: var(--c5);
	color: var(--white);
}

.skip:focus {
	top: 8px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 2px;
	background: var(--c5);
	color: var(--white);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.08em;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
	background: var(--c5-deep);
}

.btn--small {
	min-height: 42px;
	padding: 0 20px;
	font-size: 14px;
}

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

.btn--light:hover {
	background: var(--c1);
	color: var(--c5-deep);
}

.btn--light:focus-visible {
	outline-color: var(--white);
}

.text-link {
	font-weight: 500;
}

/* ---------- Header ---------- */
.header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--rule);
	backdrop-filter: saturate(1.4) blur(6px);
}

.header::before {
	content: "";
	display: block;
	height: 4px;
	background: var(--palette-band);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: calc(var(--wide) + var(--gutter) * 2);
	min-height: calc(var(--header-h) - 4px);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--ink);
	text-decoration: none;
	line-height: 1.2;
}

.brand__en {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--c5);
}

.brand__ja {
	font-size: 11px;
	letter-spacing: 0.12em;
	color: var(--muted);
}

.nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.nav ul {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav ul a {
	color: var(--ink);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	padding-block: 6px;
	background: linear-gradient(var(--c4), var(--c4)) 0 100% / 0 2px no-repeat;
	transition: background-size 0.2s ease, color 0.15s ease;
}

.nav ul a:hover {
	color: var(--c5);
	background-size: 100% 2px;
}

.nav-toggle {
	display: none;
}

@media (max-width: 860px) {
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		padding: 10px 0;
		border: 0;
		background: none;
		color: var(--ink);
		font: inherit;
		font-size: 13px;
		font-weight: 500;
		cursor: pointer;
	}
	.nav-toggle__bar,
	.nav-toggle__bar::before,
	.nav-toggle__bar::after {
		display: block;
		width: 22px;
		height: 2px;
		background: currentColor;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}
	.nav-toggle__bar {
		position: relative;
	}
	.nav-toggle__bar::before,
	.nav-toggle__bar::after {
		content: "";
		position: absolute;
		left: 0;
	}
	.nav-toggle__bar::before { top: -7px; }
	.nav-toggle__bar::after { top: 7px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

	.nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 8px var(--gutter) 28px;
		background: var(--white);
		border-bottom: 1px solid var(--rule);
		display: none;
	}
	.nav.is-open {
		display: flex;
	}
	.nav ul {
		flex-direction: column;
		gap: 0;
	}
	.nav ul li {
		border-bottom: 1px solid var(--rule);
	}
	.nav ul a {
		display: block;
		padding: 16px 0;
		font-size: 16px;
		background: none;
	}
	.nav .btn {
		min-height: 52px;
	}
}

/* ---------- Hero ---------- */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
	min-height: min(calc(100svh - var(--header-h)), 820px);
	background: var(--white);
}

.hero__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 64px) clamp(40px, 5vw, 72px) max(var(--gutter), calc((100vw - var(--wide)) / 2));
}

.hero__title {
	font-size: clamp(2.25rem, 4.1vw, 3.75rem);
	line-height: 1.35;
	letter-spacing: 0.02em;
	color: var(--ink);
}

.hero__lead {
	max-width: 30em;
	margin-top: 32px;
	font-size: 16px;
	line-height: 2;
	color: var(--muted);
}

/* 会社の基本情報（大きな数字にせず、表の一部として静かに置く） */
.hero__facts {
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: start;
	gap: 0;
	margin: clamp(36px, 5vw, 56px) 0 0;
	border-top: 1px solid var(--ink);
}

.hero__facts > div {
	padding: 14px 28px 0 0;
	margin-right: 28px;
	border-right: 1px solid var(--rule);
}

.hero__facts > div:last-child {
	border-right: 0;
	margin-right: 0;
}

.hero__facts dt {
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.1em;
}

.hero__facts dd {
	margin: 2px 0 0;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.hero__media {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--c2);
}

.hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 34% 40%;
}

/* 写真の左下に、パレットの濃い2色を細い帯で重ねる（写真の縁を締める） */
.hero__media::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 38%;
	height: 10px;
	background: linear-gradient(to right, var(--c5) 0 70%, var(--c4) 70% 100%);
}

@media (prefers-reduced-motion: no-preference) {
	.hero__title {
		animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
	}
	.hero__media img {
		animation: settle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}
}

@keyframes rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

@keyframes settle {
	from { transform: scale(1.04); }
	to { transform: none; }
}

@media (max-width: 960px) {
	.hero {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.hero__media {
		order: -1;
		aspect-ratio: 16 / 10;
	}
	.hero__text {
		padding: 40px var(--gutter) 56px;
	}
}

@media (max-width: 520px) {
	.hero__media {
		aspect-ratio: 4 / 3;
	}
	.hero__facts {
		grid-template-columns: 1fr;
	}
	.hero__facts > div {
		display: flex;
		gap: 16px;
		align-items: baseline;
		padding: 12px 0;
		margin: 0;
		border-right: 0;
		border-bottom: 1px solid var(--rule);
	}
	.hero__facts dt {
		width: 5em;
		flex-shrink: 0;
	}
}

/* ---------- Section head ---------- */
.section-head {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: 16px 64px;
	align-items: end;
	margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head__title {
	position: relative;
	font-size: clamp(1.75rem, 3vw, 2.375rem);
	color: var(--ink);
	padding-top: 22px;
}

/* 見出し上の短い線：パレットの濃い3色 */
.section-head__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 48px;
	height: 4px;
	background: linear-gradient(to right, var(--c3) 0 33%, var(--c4) 33% 66%, var(--c5) 66% 100%);
}

.section-head__lead {
	color: var(--muted);
	max-width: 34em;
}

.section-head--side {
	display: block;
	margin: 0;
}

@media (max-width: 860px) {
	.section-head {
		grid-template-columns: 1fr;
	}
}

/* ---------- About ---------- */
.about {
	background: var(--c1);
	border-top: 1px solid var(--c2);
	border-bottom: 1px solid var(--c2);
}

.about__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px 72px;
	align-items: start;
}

.about__title {
	font-size: clamp(1.875rem, 3.6vw, 3rem);
	line-height: 1.4;
	color: var(--c5);
}

.about__body p + p {
	margin-top: 1.4em;
}

.about__lead {
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	font-weight: 500;
	line-height: 1.9;
	color: var(--ink);
}

@media (max-width: 860px) {
	.about__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Business ---------- */
.biz {
	border-top: 1px solid var(--ink);
}

.biz__item {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: 20px 64px;
	padding: clamp(36px, 5vw, 56px) 0;
	border-bottom: 1px solid var(--rule);
}

.biz__area {
	display: inline-block;
	margin-bottom: 14px;
	padding: 2px 10px;
	background: var(--c1);
	border: 1px solid var(--c2);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: var(--c5);
}

.biz__title {
	font-size: clamp(1.375rem, 2.2vw, 1.75rem);
	line-height: 1.5;
}

.biz__body > * + * {
	margin-top: 20px;
}

.biz__list {
	margin-top: 24px;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--rule);
}

.biz__list li {
	position: relative;
	padding: 12px 0 12px 22px;
	border-bottom: 1px solid var(--rule);
	font-size: 15px;
	line-height: 1.7;
}

.biz__list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 1.32em;
	width: 8px;
	height: 8px;
	background: var(--c4);
}

.biz__note {
	font-size: 13px;
	color: var(--muted);
}

.nowrap {
	white-space: nowrap;
}

/* 関連サービスサイトへのリンク */
.biz__link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 28px;
	padding: 18px 22px;
	border: 1px solid var(--c3);
	border-left: 6px solid var(--c5);
	background: var(--white);
	color: var(--ink);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.biz__link:hover {
	background: var(--c1);
}

.biz__link-label {
	font-size: 13px;
	color: var(--muted);
}

.biz__link-name {
	font-size: 18px;
	font-weight: 700;
	color: var(--c5);
	text-decoration: underline;
	text-decoration-color: var(--c3);
	text-underline-offset: 0.25em;
}

@media (max-width: 860px) {
	.biz__item {
		grid-template-columns: 1fr;
	}
}

/* ---------- Company ---------- */
.business {
	padding-bottom: 0;
}

.company__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: 32px 64px;
}

.profile {
	margin: 0;
	border-top: 1px solid var(--ink);
}

.profile__row {
	display: grid;
	grid-template-columns: 8.5em minmax(0, 1fr);
	gap: 8px 24px;
	padding: 20px 0;
	border-bottom: 1px solid var(--rule);
}

.profile dt {
	font-weight: 700;
	font-size: 14px;
	color: var(--c5);
	padding-top: 2px;
}

.profile dd {
	margin: 0;
	font-size: 15px;
	line-height: 1.85;
}

.profile__sub {
	display: block;
	font-size: 13px;
	color: var(--muted);
}

.profile__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.profile__list li {
	position: relative;
	padding-left: 1.1em;
}

.profile__list li + li {
	margin-top: 6px;
}

.profile__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.8em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c4);
}

@media (max-width: 860px) {
	.company__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.profile__row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

/* ---------- Access ---------- */
.access {
	background: var(--c1);
	border-top: 1px solid var(--c2);
}

.access__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: 32px 64px;
	align-items: start;
}

.access__address {
	margin-top: 28px;
	font-size: 17px;
	line-height: 1.9;
	font-weight: 500;
}

.access__text .text-link {
	display: inline-block;
	margin-top: 20px;
}

.access__map {
	position: relative;
	aspect-ratio: 16 / 10;
	border: 1px solid var(--c2);
	background: var(--white);
}

.access__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	filter: saturate(0.6);
}

@media (max-width: 860px) {
	.access__grid {
		grid-template-columns: 1fr;
	}
	.access__map {
		aspect-ratio: 4 / 3;
	}
}

/* ---------- Contact ---------- */
.contact {
	padding-block: clamp(64px, 8vw, 104px);
	background: var(--c5);
	color: var(--white);
}

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: 40px 64px;
	align-items: end;
}

.contact__title {
	font-size: clamp(1.75rem, 3vw, 2.375rem);
	margin-bottom: 18px;
}

.contact__text p {
	max-width: 32em;
	color: #dff7ee;
}

.contact__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding-left: clamp(0px, 4vw, 48px);
	border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.contact__tel {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.contact__tel-label,
.contact__tel-note {
	font-size: 13px;
	color: var(--c2);
	letter-spacing: 0.1em;
}

.contact__tel a {
	margin: 6px 0 4px;
	color: var(--white);
	font-size: clamp(2rem, 3.6vw, 2.75rem);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.contact__tel a:hover {
	color: var(--c2);
}

.contact .btn {
	min-width: 260px;
}

@media (max-width: 860px) {
	.contact__grid {
		grid-template-columns: 1fr;
	}
	.contact__actions {
		padding: 32px 0 0;
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.28);
	}
}

@media (max-width: 520px) {
	.contact .btn {
		width: 100%;
		min-width: 0;
	}
	.contact__actions {
		align-items: stretch;
	}
}

/* ---------- Footer ---------- */
.footer {
	background: var(--white);
}

.footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 32px 64px;
	padding-block: 48px 40px;
}

.footer__brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.3;
}

.footer__address {
	margin-top: 16px;
	font-size: 13px;
	line-height: 1.9;
	color: var(--muted);
}

.footer__nav {
	display: grid;
	grid-template-columns: repeat(2, auto);
	gap: 10px 48px;
	margin: 0;
	padding: 0;
	list-style: none;
	align-content: start;
}

.footer__nav a {
	color: var(--ink);
	font-size: 14px;
	text-decoration: none;
}

.footer__nav a:hover {
	color: var(--c5);
	text-decoration: underline;
}

.footer__copy {
	margin: 0;
	padding: 16px var(--gutter) 24px;
	border-top: 1px solid var(--rule);
	text-align: center;
	color: var(--muted);
}

.footer__copy small {
	font-size: 12px;
	letter-spacing: 0.06em;
}

@media (max-width: 520px) {
	.footer__nav {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   以下、WordPress用に追加
   ========================================================================== */

/* 管理バー表示中はヘッダーの固定位置を下げる */
.admin-bar .header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .header {
		top: 0;
	}
}

.container--narrow {
	max-width: calc(820px + var(--gutter) * 2);
}

.access__note {
	margin-top: 16px;
	font-size: 14px;
	color: var(--muted);
}

/* ---------- 下層ページの見出し ---------- */
.page-head {
	padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px);
	background: var(--c1);
	border-bottom: 1px solid var(--c2);
}

.page-head__title {
	position: relative;
	padding-top: 24px;
	font-size: clamp(1.875rem, 3.6vw, 2.75rem);
}

.page-head__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 48px;
	height: 4px;
	background: linear-gradient(to right, var(--c3) 0 33%, var(--c4) 33% 66%, var(--c5) 66% 100%);
}

.page-head__lead {
	max-width: 40em;
	margin-top: 16px;
	color: var(--muted);
}

/* ---------- 本文（ブロックエディターの出力） ---------- */
.entry > * + * {
	margin-top: 1.4em;
}

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

.entry h2 {
	margin-top: 2.6em;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rule);
	font-size: clamp(1.375rem, 2.4vw, 1.75rem);
}

.entry h3 {
	margin-top: 2em;
	padding-left: 14px;
	border-left: 4px solid var(--c4);
	font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.entry ul,
.entry ol {
	padding-left: 1.4em;
}

.entry li + li {
	margin-top: 0.4em;
}

.entry li::marker {
	color: var(--c5);
}

.entry table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid var(--ink);
	font-size: 15px;
}

.entry th,
.entry td {
	padding: 14px 16px 14px 0;
	border-bottom: 1px solid var(--rule);
	text-align: left;
	vertical-align: top;
}

.entry th {
	width: 9em;
	color: var(--c5);
}

.entry .wp-block-button__link {
	border-radius: 2px;
	background: var(--c5);
	color: var(--white);
	font-weight: 700;
}

/* ---------- お問い合わせフォーム（MW WP Form） ---------- */
.mw_wp_form {
	margin-top: 2rem;
}

.sm-form {
	border-top: 1px solid var(--ink);
}

.sm-form__row {
	display: grid;
	grid-template-columns: 13rem minmax(0, 1fr);
	gap: 10px 32px;
	padding: 22px 0;
	border-bottom: 1px solid var(--rule);
}

.sm-form__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	align-self: start;
	min-height: 50px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.6;
}

.sm-form__req {
	flex-shrink: 0;
	padding: 2px 8px;
	border-radius: 2px;
	background: var(--c5);
	color: var(--white);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.5;
}

.sm-form__field {
	min-width: 0;
	line-height: 1.8;
}

.sm-form input[type="text"],
.sm-form input[type="email"],
.sm-form input[type="tel"],
.sm-form input[type="url"],
.sm-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #b3cfc5;
	border-radius: 2px;
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	letter-spacing: 0.02em;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sm-form textarea {
	min-height: 14rem;
	line-height: 1.8;
	resize: vertical;
}

.sm-form :is(input, textarea):focus {
	outline: none;
	border-color: var(--c5);
	box-shadow: 0 0 0 3px var(--c2);
}

.sm-form ::placeholder {
	color: #8fa9a1;
	opacity: 1;
}

.sm-form #smf-name,
.sm-form #smf-tel {
	max-width: 22rem;
}

.mw_wp_form .error {
	display: block;
	margin-top: 6px;
	color: #c0392b;
	font-size: 14px;
	font-weight: 500;
}

.sm-form__field:has(.error) :is(input, textarea) {
	border-color: #c0392b;
	background: #fff8f7;
}

.sm-form__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	padding-top: 36px;
}

.sm-form__actions :is(input[type="submit"], button) {
	min-width: 260px;
	min-height: 56px;
	padding: 0 28px;
	border: 0;
	border-radius: 2px;
	background: var(--c5);
	color: var(--white);
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.sm-form__actions :is(input[type="submit"], button):hover {
	background: var(--c5-deep);
}

.sm-form__actions input[name="submitBack"] {
	background: var(--white);
	color: var(--c5);
	box-shadow: inset 0 0 0 1px var(--c5);
}

.sm-form__actions input[name="submitBack"]:hover {
	background: var(--c1);
}

.mw_wp_form_confirm .sm-form__label {
	min-height: 0;
}

.mw_wp_form_confirm .sm-form__req {
	display: none;
}

.mw_wp_form_confirm::before {
	content: "入力内容をご確認のうえ、「この内容で送信する」を押してください。";
	display: block;
	margin-bottom: 24px;
	padding: 14px 18px;
	background: var(--c1);
	border-left: 4px solid var(--c4);
	font-size: 15px;
}

.mw_wp_form_complete {
	padding: 36px clamp(20px, 4vw, 40px);
	background: var(--c1);
	border-top: 4px solid var(--c5);
}

.mw_wp_form_complete > * + * {
	margin-top: 1em;
}

.sm-form-complete__title {
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
	font-weight: 700;
	color: var(--c5);
}

@media (max-width: 720px) {
	.sm-form__row {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 18px 0;
	}
	.sm-form__label {
		justify-content: flex-start;
		min-height: 0;
	}
	.sm-form #smf-name,
	.sm-form #smf-tel {
		max-width: none;
	}
	.sm-form__actions {
		flex-direction: column-reverse;
	}
	.sm-form__actions :is(input[type="submit"], button) {
		width: 100%;
		min-width: 0;
	}
}

.footer {
	border-top: 1px solid var(--rule);
}

.sm-form input[type="radio"],
.sm-form input[type="checkbox"] {
	accent-color: var(--c5);
	width: 1.1em;
	height: 1.1em;
	margin-right: 6px;
	vertical-align: -0.15em;
}

.sm-form .mwform-radio-field,
.sm-form .mwform-checkbox-field {
	display: block;
	margin: 2px 0;
}

.sm-form .mwform-radio-field label,
.sm-form .mwform-checkbox-field label {
	cursor: pointer;
}

/* 会社概要の表の中のリンク */
.profile dd a {
	font-weight: 500;
}

.profile dd a[target="_blank"]::after {
	content: "";
	display: inline-block;
	width: 0.7em;
	height: 0.7em;
	margin-left: 0.3em;
	vertical-align: 0.05em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M7 1h4v4M11 1 5.5 6.5M9.5 7.5V11H1V2.5h3.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M7 1h4v4M11 1 5.5 6.5M9.5 7.5V11H1V2.5h3.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* プライバシーポリシーなど：右寄せの段落 */
.entry .has-text-align-right {
	text-align: right;
	color: var(--muted);
	font-size: 14px;
}
