/* ==========================================================================
   Software Kingdom — Contact page (/contact/)
   --------------------------------------------------------------------------
   Only enqueued on the contact page template (see sk-contact-form.php).
   Palette / spacing follow the 2026 homepage:
     warm paper #F5F3EC · ink #171717 · blue #365CF5 · lime #E5FF7A
   Lime is used only as a small accent (kicker dot, badge, button shadow,
   success panel) — never as a large surface.
   ========================================================================== */

:root {
	--sk-bg: #F5F3EC;
	--sk-ink: #171717;
	--sk-card: #fff;
	--sk-blue: #365CF5;
	--sk-lime: #E5FF7A;
	--sk-muted: #64645f;
	--sk-line: #dedbd1;
	--sk-danger: #B42318;
	--sk-radius: 18px;
}

/* --- base ---------------------------------------------------------------- */

body.sk-contact-page {
	margin: 0;
	background: var(--sk-bg);
	color: var(--sk-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
		"Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}

.sk-contact *,
.sk-contact *::before,
.sk-contact *::after { box-sizing: border-box; }

.sk-contact img { max-width: 100%; height: auto; }
.sk-contact a { color: inherit; }

.sk-contact h1,
.sk-contact h2,
.sk-contact h3,
.sk-contact p,
.sk-contact ul,
.sk-contact ol { margin-top: 0; }

/* AFFINGER の見出し装飾を打ち消す（このページ内のみ） */
.sk-contact h1,
.sk-contact h2,
.sk-contact h3 {
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: inherit !important;
}

.sk-wrap {
	width: min(1080px, calc(100% - 40px));
	margin-inline: auto;
}

.sk-contact :focus-visible {
	outline: 3px solid var(--sk-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

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

/* --- header -------------------------------------------------------------- */

.sk-site-header {
	height: 82px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid rgba(23, 23, 23, .12);
	background: rgba(245, 243, 236, .96);
}

.sk-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.sk-brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	text-decoration: none;
}

.sk-brand svg { display: block; width: auto; height: 62px; }

.sk-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 14px;
	font-weight: 700;
}

.sk-nav a { text-decoration: none; position: relative; }

.sk-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%; bottom: -5px;
	height: 2px;
	background: var(--sk-blue);
	transition: right .18s ease;
}

.sk-nav a:hover::after,
.sk-nav a:focus-visible::after,
.sk-nav a[aria-current="page"]::after { right: 0; }

.sk-nav .sk-nav-cta {
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--sk-ink);
	color: #fff;
}

.sk-nav .sk-nav-cta::after { display: none; }

/* --- hero ---------------------------------------------------------------- */

.sk-hero {
	position: relative;
	padding: 84px 0 54px;
	overflow: hidden;
}

.sk-hero::after {
	content: "";
	position: absolute;
	right: -8vw;
	top: 24px;
	width: 34vw;
	height: 34vw;
	max-width: 460px;
	max-height: 460px;
	border: 1px solid rgba(23, 23, 23, .12);
	border-radius: 50%;
	pointer-events: none;
}

.sk-kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.sk-kicker::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sk-lime);
	box-shadow: 0 0 0 4px var(--sk-ink);
}

.sk-hero h1 {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin-bottom: 22px;
	font-size: clamp(40px, 5.4vw, 64px);
	/* 1.1 だと Latin のディセンダー（g など）と 2 行目の日本語の字面がほぼ接する */
	line-height: 1.22;
	letter-spacing: -.04em;
	font-weight: 900;
}

.sk-lead {
	position: relative;
	z-index: 1;
	max-width: 680px;
	margin-bottom: 12px;
	font-size: clamp(17px, 1.9vw, 21px);
	line-height: 1.72;
	font-weight: 700;
}

.sk-intro {
	position: relative;
	z-index: 1;
	max-width: 660px;
	margin-bottom: 0;
	color: var(--sk-muted);
	font-size: 15px;
}

/* --- sections ------------------------------------------------------------ */

.sk-section { padding: 62px 0; }
.sk-section--white { background: #fff; }
.sk-section--tight { padding-top: 0; }

.sk-eyebrow {
	margin-bottom: 9px;
	color: var(--sk-blue);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.sk-section h2 {
	margin-bottom: 14px;
	font-size: clamp(24px, 2.9vw, 34px);
	line-height: 1.28;
	letter-spacing: -.03em;
	font-weight: 900;
}

.sk-section-lead {
	max-width: 720px;
	margin-bottom: 26px;
	color: var(--sk-muted);
	font-size: 15px;
}

.sk-narrow { max-width: 760px; }

.sk-narrow p { margin-bottom: 18px; }
.sk-narrow p:last-child { margin-bottom: 0; }

.sk-narrow a {
	color: var(--sk-blue);
	font-weight: 700;
	text-underline-offset: 3px;
}

/* --- form ---------------------------------------------------------------- */

.sk-form-card {
	max-width: 820px;
	margin-inline: auto;
	padding: 38px 40px 42px;
	border: 2px solid var(--sk-ink);
	border-radius: 24px;
	background: var(--sk-card);
	box-shadow: 12px 12px 0 var(--sk-lime);
}

.sk-form-card h2 { margin-bottom: 10px; }

.sk-form-lead {
	margin-bottom: 28px;
	color: var(--sk-muted);
	font-size: 14px;
}

.sk-form { display: block; }

.sk-field { margin-bottom: 24px; }

.sk-label {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.5;
}

.sk-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	padding: 2px 7px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .06em;
	line-height: 1.6;
}

.sk-badge--req { background: var(--sk-ink); color: var(--sk-lime); }
.sk-badge--opt { background: #efece3; color: var(--sk-muted); }

.sk-input,
.sk-select,
.sk-textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 13px 15px;
	border: 1px solid #cfcbc0;
	border-radius: 12px;
	background: #fff;
	color: var(--sk-ink);
	font-family: inherit;
	font-size: 16px; /* iOS の自動ズームを避けるため 16px 以上 */
	line-height: 1.6;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.sk-input,
.sk-select { min-height: 52px; }

.sk-select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 20px 20px;
	cursor: pointer;
}

.sk-textarea {
	min-height: 190px;
	resize: vertical;
}

.sk-input::placeholder,
.sk-textarea::placeholder { color: #767676; opacity: 1; } /* コントラスト 4.5:1 以上を確保 */

.sk-input:hover,
.sk-select:hover,
.sk-textarea:hover { border-color: #a9a49a; }

.sk-input:focus,
.sk-select:focus,
.sk-textarea:focus {
	border-color: var(--sk-blue);
	box-shadow: 0 0 0 3px rgba(54, 92, 245, .18);
}

/* キーボード操作時は輪郭をはっきり出す（淡いリングだけでは識別しづらいため） */
.sk-input:focus-visible,
.sk-select:focus-visible,
.sk-textarea:focus-visible {
	outline: 3px solid var(--sk-blue);
	outline-offset: 2px;
	box-shadow: none;
}

.sk-field.has-error .sk-input,
.sk-field.has-error .sk-select,
.sk-field.has-error .sk-textarea {
	border-color: var(--sk-danger);
	box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}

.sk-error {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 8px 0 0;
	color: var(--sk-danger);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}

.sk-error::before {
	content: "!";
	display: inline-flex;
	flex: 0 0 16px;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	border-radius: 50%;
	background: var(--sk-danger);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
}

/* checkbox row */

.sk-field--check { margin-top: 30px; }

.sk-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	line-height: 1.7;
	cursor: pointer;
}

.sk-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	accent-color: var(--sk-blue);
	cursor: pointer;
}

.sk-check a {
	color: var(--sk-blue);
	font-weight: 700;
	text-underline-offset: 3px;
}

/* honeypot: 画面外に置く（display:none は一部ボットが見送るため使わない） */

.sk-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* alerts */

.sk-alert {
	margin-bottom: 26px;
	padding: 16px 18px;
	border: 2px solid var(--sk-ink);
	border-radius: 14px;
	background: #fff;
}

.sk-alert-title {
	margin-bottom: 0;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.6;
}

.sk-alert ul {
	margin: 10px 0 0;
	padding-left: 20px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;
}

.sk-alert li { margin-bottom: 4px; }
.sk-alert li:last-child { margin-bottom: 0; }

.sk-alert--error {
	border-color: var(--sk-danger);
	background: #fdf3f2;
}

.sk-alert--error .sk-alert-title { color: var(--sk-danger); }

.sk-alert--ok {
	border-color: var(--sk-ink);
	background: var(--sk-lime);
	box-shadow: 6px 6px 0 var(--sk-ink);
}

/* submit */

.sk-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 30px;
}

.sk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 26px;
	border: 2px solid var(--sk-ink);
	border-radius: 12px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.sk-btn-primary {
	background: var(--sk-blue);
	border-color: var(--sk-blue);
	color: #fff;
	box-shadow: 5px 5px 0 var(--sk-ink);
}

.sk-btn-primary:hover {
	transform: translate(-2px, -2px);
	box-shadow: 7px 7px 0 var(--sk-ink);
}

.sk-btn-primary:active {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--sk-ink);
}

.sk-form-note {
	margin: 16px 0 0;
	color: var(--sk-muted);
	font-size: 12px;
}

/* --- numbered report list ------------------------------------------------ */

.sk-list {
	display: grid;
	gap: 12px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.sk-list li {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid var(--sk-line);
	border-radius: 14px;
	background: #fff;
	font-size: 15px;
	font-weight: 700;
}

.sk-list-num {
	display: grid;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 10px;
	background: var(--sk-lime);
	color: var(--sk-ink);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .02em;
}

.sk-note {
	padding: 18px 20px;
	border-left: 4px solid var(--sk-blue);
	border-radius: 0 12px 12px 0;
	background: #eef1ff;
	font-size: 14px;
	line-height: 1.8;
}

.sk-note strong { font-weight: 900; }

/* --- related links ------------------------------------------------------- */

.sk-links {
	display: grid;
	/* 4 枚（About 追加後）で 2×2 になるよう 2 列。3 列だと最後の 1 枚だけ余る */
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 8px;
}

.sk-link-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 84px;
	padding: 20px 22px;
	border: 1px solid var(--sk-line);
	border-radius: 16px;
	background: var(--sk-card);
	text-decoration: none;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.5;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.sk-link-card:hover,
.sk-link-card:focus-visible {
	transform: translateY(-3px);
	border-color: var(--sk-ink);
	box-shadow: 0 12px 26px rgba(23, 23, 23, .10);
}

.sk-link-arrow {
	flex: 0 0 auto;
	color: var(--sk-blue);
	font-size: 18px;
	font-weight: 900;
}

/* --- footer -------------------------------------------------------------- */

.sk-footer {
	padding: 54px 0 32px;
	background: var(--sk-ink);
	color: #fff;
}

.sk-footer-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	padding-bottom: 36px;
	border-bottom: 1px solid #383838;
}

.sk-footer-logo {
	display: grid;
	width: 190px;
	height: 78px;
	place-items: center;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
}

.sk-footer-logo svg { width: 100%; height: auto; display: block; }

.sk-footer-brand p {
	max-width: 430px;
	margin: 18px 0 0;
	color: #aaa;
	font-size: 13px;
}

.sk-footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px 22px;
	max-width: 500px;
}

.sk-footer-links a {
	color: #ddd;
	font-size: 13px;
	text-decoration: none;
}

.sk-footer-links a:hover,
.sk-footer-links a:focus-visible { color: var(--sk-lime); }

.sk-footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-top: 24px;
	color: #8f8f8f;
	font-size: 12px;
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 900px) {
	.sk-nav a:not(.sk-nav-cta) { display: none; }
	.sk-hero { padding: 62px 0 42px; }
	.sk-section { padding: 52px 0; }
	.sk-form-card { padding: 30px 26px 34px; box-shadow: 8px 8px 0 var(--sk-lime); }
	.sk-links { grid-template-columns: 1fr; }
	.sk-footer-top { flex-direction: column; }
	.sk-footer-links { justify-content: flex-start; }
}

@media (max-width: 640px) {
	.sk-wrap { width: min(100% - 28px, 1080px); }
	.sk-site-header { height: 70px; }
	.sk-brand svg { height: 50px; }
	.sk-footer-logo { width: 168px; height: 70px; }
	.sk-nav .sk-nav-cta { padding: 8px 12px; font-size: 12px; }
	.sk-hero h1 { font-size: 38px; }
	.sk-form-card { padding: 24px 18px 28px; border-radius: 20px; box-shadow: 6px 6px 0 var(--sk-lime); }
	.sk-field { margin-bottom: 22px; }
	.sk-textarea { min-height: 170px; }
	.sk-actions .sk-btn { width: 100%; }
	.sk-list li { align-items: flex-start; padding: 16px; }
	.sk-footer-links { display: grid; grid-template-columns: 1fr 1fr; }
	.sk-footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 360px) {
	.sk-brand svg { height: 44px; }
	.sk-hero h1 { font-size: 32px; }
	.sk-footer-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.sk-contact *,
	.sk-contact *::before,
	.sk-contact *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
