/* The corporate site's dark look; the form's layout follows the sections
   an applicant reads it in, divided by hairlines. */
:root {
	--bg: #000;
	--panel: #1a1a1a;
	--panel-2: #222;
	--line: #333;
	--text: #fff;
	--muted: #9ca3af;
	--accent: #e63946;
	--accent-2: #ff5722;
	--accent-soft: rgba(230, 57, 70, 0.15);
	--error: #f87171;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color-scheme: dark;
}
*,
*::before,
*::after {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family:
		"Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.7;
}
.page {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 32px 16px 64px;
}
.brand {
	color: var(--accent-2);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
}
h1 {
	font-size: 1.6rem;
	margin: 8px 0;
}
.lead {
	color: var(--muted);
	margin: 0 0 24px;
}
.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 24px;
}

section.block {
	border-top: 1px solid var(--line);
	padding-top: 22px;
	margin-top: 26px;
}
section.block:first-of-type {
	border-top: 0;
	padding-top: 0;
	margin-top: 0;
}
section.block > h2 {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	color: var(--accent-2);
	margin: 0 0 14px;
}
.field {
	display: grid;
	gap: 6px;
	margin-bottom: 16px;
	min-width: 0;
}
.field > label {
	font-size: 0.9rem;
	font-weight: 500;
}
.req {
	color: var(--accent);
	font-size: 0.7rem;
	margin-left: 6px;
	letter-spacing: 0.06em;
}
.hint {
	color: var(--muted);
	font-size: 0.8rem;
	margin: 0;
}
.hint:empty {
	display: none;
}
.mono {
	font-family: var(--mono);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="month"],
input[type="number"],
select {
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #000;
	color: var(--text);
	font: inherit;
}
input.mono,
select.mono {
	font-family: var(--mono);
}
input:disabled,
select:disabled {
	opacity: 0.4;
}
input:focus-visible,
select:focus-visible,
button:focus-visible,
.seg label:focus-within {
	outline: 2px solid var(--accent-2);
	outline-offset: 1px;
}

.suffix {
	display: flex;
	width: min(440px, 100%);
}
.suffix input {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.suffix select {
	width: auto;
	flex: none;
	border-left: 0;
	border-radius: 0 8px 8px 0;
	background: var(--panel-2);
	color: var(--muted);
}

.seg {
	display: grid;
	gap: 8px;
	margin-bottom: 16px;
}
@media (min-width: 620px) {
	.seg {
		grid-template-columns: repeat(3, 1fr);
	}
}
.seg label {
	display: grid;
	gap: 2px;
	padding: 11px 13px;
	border: 1px solid var(--line);
	border-radius: 8px;
	cursor: pointer;
}
.seg label:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
}
.seg input {
	margin: 0 6px 0 0;
	accent-color: var(--accent);
}
.seg .t {
	font-weight: 500;
}
.seg .d {
	color: var(--muted);
	font-size: 0.8rem;
	line-height: 1.5;
}

.rows {
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 8px;
}
.rowhead,
.row {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
	padding: 12px 14px;
}
.rowhead {
	display: none;
}
.row + .row {
	border-top: 1px solid var(--line);
}
@media (min-width: 560px) {
	.rowhead,
	.row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 240px) minmax(0, 180px);
		align-items: center;
		gap: 14px;
	}
	.rowhead {
		display: grid;
		padding-block: 8px;
		background: var(--panel-2);
		border-bottom: 1px solid var(--line);
		font-size: 0.8rem;
		color: var(--muted);
	}
	.second {
		grid-column: 2;
	}
	.third {
		grid-column: 3;
	}
}
.cell {
	display: grid;
	gap: 4px;
	min-width: 0;
}
.pick {
	display: flex;
	align-items: center;
	gap: 9px;
	font-weight: 700;
	cursor: pointer;
}
.pick input,
.check input {
	accent-color: var(--accent);
	margin: 0;
}
.price {
	color: var(--accent-2);
	font-size: 0.8rem;
}
.price:empty {
	display: none;
}

.check {
	display: flex;
	gap: 8px;
	align-items: center;
	cursor: pointer;
}
.check a {
	color: var(--accent-2);
}
.sub {
	margin-top: 14px;
}
.tried {
	margin-bottom: 14px;
}

.actions {
	border-top: 1px solid var(--line);
	margin-top: 26px;
	padding-top: 22px;
	display: grid;
	gap: 16px;
}
#turnstile {
	min-height: 65px;
}
.error {
	color: var(--error);
	margin: 0;
	white-space: pre-wrap;
}
.submit {
	width: 100%;
	padding: 14px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.submit:disabled {
	opacity: 0.5;
	cursor: wait;
}
.done h2 {
	margin-top: 0;
}
/* Outranks every display rule above, some of which are more specific
   (section.block, .seg label): a part the script hides stays hidden. */
[hidden] {
	display: none !important;
}
