/* Job Vacancy Manager – front-end styles */
.jvm-root {
	--jvm-bg: #e4e6e2;
	--jvm-card: #ffffff;
	--jvm-text: #1f2a33;
	--jvm-muted: #4b5763;
	--jvm-accent: #0b7a78;
	--jvm-accent-soft: #e3f3f1;
	--jvm-border: #d5dad6;
	--jvm-radius: 22px;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--jvm-text);
	line-height: 1.7;
	box-sizing: border-box;
}
.jvm-root *, .jvm-root *::before, .jvm-root *::after { box-sizing: inherit; }

/* ---------- Language visibility ---------- */
.jvm-mode-ja .jvm-en { display: none !important; }
.jvm-mode-en .jvm-ja { display: none !important; }
.jvm-mode-both .jvm-bi:not(.jvm-bi-block) .jvm-ja + .jvm-en::before { content: " / "; }
.jvm-mode-both .jvm-bi-block > .jvm-ja,
.jvm-mode-both .jvm-bi-block > .jvm-en { display: block; }
.jvm-mode-both .jvm-bi-block > .jvm-en {
	font-size: .62em;
	font-weight: 500;
	opacity: .72;
	margin-top: .15em;
	line-height: 1.45;
}
.jvm-mode-both p .jvm-bi-block > .jvm-en,
.jvm-mode-both dd .jvm-bi-block > .jvm-en,
.jvm-mode-both dt .jvm-bi-block > .jvm-en,
.jvm-mode-both .jvm-notice .jvm-bi-block > .jvm-en { font-size: .9em; }
.jvm-mode-both .jvm-salary .jvm-bi-block > .jvm-en { font-size: .45em; }

/* ---------- Switcher ---------- */
.jvm-switcher-row { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.jvm-switcher { display: inline-flex; background: #fff; border: 1px solid var(--jvm-border); border-radius: 999px; padding: 3px; gap: 2px; }
.jvm-switcher button {
	border: 0; background: transparent; color: var(--jvm-muted); cursor: pointer;
	padding: 5px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.4;
}
.jvm-switcher button:hover { color: var(--jvm-accent); }
.jvm-switcher button[aria-pressed="true"] { background: var(--jvm-accent); color: #fff; }

/* ---------- List ---------- */
.jvm-list-root { background: var(--jvm-bg); padding: clamp(28px, 5vw, 72px) clamp(16px, 4vw, 56px); border-radius: 4px; }
.jvm-list { container-type: inline-size; max-width: 1280px; margin: 0 auto; }
.jvm-eyebrow { color: var(--jvm-accent); font-weight: 700; letter-spacing: .22em; font-size: 14px; margin: 0 0 14px; }
.jvm-heading { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin: 0 0 32px; line-height: 1.3; color: var(--jvm-text); }
.jvm-intro { color: var(--jvm-muted); font-size: 17px; max-width: 1120px; margin: 0 0 44px; line-height: 2.1; }
.jvm-mode-both .jvm-intro .jvm-bi-block > .jvm-en { font-size: .88em; line-height: 1.7; margin-top: .4em; }

.jvm-filter { margin-bottom: 24px; }
.jvm-filter label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.jvm-filter select {
	width: 100%; height: 50px; padding: 0 44px 0 16px; font: inherit; font-size: 17px; color: var(--jvm-muted);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231f2a33' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;
	border: 1px solid var(--jvm-border); border-radius: 8px; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.jvm-filter select:focus { outline: 2px solid var(--jvm-accent); outline-offset: 1px; }

.jvm-grid { display: grid; gap: 26px; }
.jvm-cols-1 { grid-template-columns: 1fr; }
.jvm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jvm-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jvm-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .jvm-cols-3, .jvm-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .jvm-grid { grid-template-columns: 1fr !important; } }
@container (max-width: 980px) { .jvm-cols-3, .jvm-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 620px) { .jvm-grid { grid-template-columns: 1fr !important; } }

.jvm-card {
	background: var(--jvm-card); border-radius: var(--jvm-radius); padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 32px);
	display: flex; flex-direction: column; align-items: flex-start;
	transition: box-shadow .2s ease, transform .2s ease;
}
.jvm-card:hover { box-shadow: 0 12px 30px rgba(20, 40, 40, .08); transform: translateY(-2px); }
.jvm-card[hidden] { display: none !important; }

.jvm-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px 4px; }
.jvm-badge {
	display: inline-block; background: var(--jvm-accent-soft); color: var(--jvm-accent);
	font-size: 14px; font-weight: 700; padding: 6px 15px; border-radius: 999px; line-height: 1.4;
}
.jvm-card-title, .jvm-single-title { font-size: 25px; font-weight: 800; margin: 0 0 12px; line-height: 1.45; color: var(--jvm-text); }
.jvm-card-sub { color: var(--jvm-muted); font-size: 16px; margin: 0 0 22px; }
.jvm-salary { color: var(--jvm-accent); font-size: clamp(30px, 3vw, 38px); font-weight: 800; margin: 0 0 24px; line-height: 1.3; letter-spacing: .01em; }
.jvm-summary { color: var(--jvm-muted); font-size: 16px; margin: 0 0 20px; }
.jvm-closed-tag { display: inline-block; background: #f3e5e5; color: #9b2c2c; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin: 0 0 16px; }
.jvm-more {
	margin-top: auto; color: var(--jvm-accent) !important; font-weight: 700; font-size: 16px;
	text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: 6px; align-items: baseline;
}
.jvm-more:hover { text-decoration-thickness: 2px; }
.jvm-mode-both .jvm-more .jvm-ja + .jvm-en::before { content: " / "; }

.jvm-empty { background: #fff; border-radius: 14px; padding: 24px; color: var(--jvm-muted); text-align: center; }
.jvm-empty[hidden] { display: none; }

/* ---------- Single job ---------- */
.jvm-single-root { margin: 0 auto; max-width: 980px; }
.jvm-single { display: grid; gap: 22px; }
.jvm-panel { background: var(--jvm-card); border: 1px solid var(--jvm-border); border-radius: var(--jvm-radius); padding: clamp(22px, 4vw, 38px); }
.jvm-single-head { background: var(--jvm-bg); border: 0; }
.jvm-title-alt { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.jvm-section-title { font-size: 22px; font-weight: 800; margin: 0 0 20px; padding-left: 12px; border-left: 5px solid var(--jvm-accent); line-height: 1.4; }
.jvm-details { margin: 0; }
.jvm-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--jvm-border); }
.jvm-row:first-child { border-top: 0; padding-top: 0; }
.jvm-row dt { font-weight: 700; color: var(--jvm-text); margin: 0; }
.jvm-row dd { margin: 0; color: var(--jvm-muted); }
@media (max-width: 640px) { .jvm-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Form ---------- */
.jvm-form { margin: 0; }
.jvm-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 640px) { .jvm-field-grid { grid-template-columns: 1fr; } }
.jvm-field { margin: 0 0 18px; }
.jvm-field > label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.jvm-field input[type="text"], .jvm-field input[type="email"], .jvm-field input[type="tel"], .jvm-field textarea {
	width: 100%; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--jvm-text);
	background: #fff; border: 1px solid var(--jvm-border); border-radius: 8px;
}
.jvm-field input[type="file"] { width: 100%; padding: 10px; border: 1px dashed var(--jvm-border); border-radius: 8px; background: #fafbfa; font: inherit; font-size: 14px; }
.jvm-field input:focus, .jvm-field textarea:focus { outline: 2px solid var(--jvm-accent); outline-offset: 1px; border-color: var(--jvm-accent); }
.jvm-consent label { font-weight: 500; display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.jvm-consent input { margin-top: 6px; }
.jvm-req, .jvm-opt { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; line-height: 1.6; }
.jvm-req { background: #c0392b; color: #fff; }
.jvm-opt { background: #e7ebe8; color: var(--jvm-muted); }
.jvm-submit {
	background: var(--jvm-accent); color: #fff; border: 0; border-radius: 999px; padding: 14px 44px;
	font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .2s ease;
}
.jvm-submit:hover, .jvm-submit:focus { background: #08605e; }
.jvm-mode-both .jvm-submit .jvm-ja + .jvm-en::before { content: " / "; }
.jvm-notice { border-radius: 10px; padding: 14px 18px; margin: 0 0 20px; font-weight: 600; }
.jvm-success { background: var(--jvm-accent-soft); color: #075c5a; }
.jvm-error { background: #fbeaea; color: #9b2c2c; }
.jvm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
