/* /jobs: one sentence you change to find studios, and the apply dialog (also used on studio pages). */

.jb { background: var(--navy); color: #fff; }
.jb :focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.jb form { padding: 56px 0 40px; }
:is(.jb h1, .jh h2) { font-size: clamp(2rem, 5.6vw, 4.4rem); line-height: 1.3; letter-spacing: -.03em; margin: 0 0 .7em; }
:is(.jb h1, .jh h2) span { display: inline-block; max-width: 100%; }
:lang(ja) :is(.jb h1, .jh h2) { font-size: clamp(1.8rem, 4.4vw, 3.5rem); letter-spacing: 0; }
:is(.jb, .jh) select { appearance: none; font: inherit; letter-spacing: inherit; line-height: 1.15; width: auto; max-width: 100%; field-sizing: content; padding: 0 .8em .04em 0; margin: 0; color: inherit; border: 0; border-bottom: .07em solid var(--red); border-radius: 0; cursor: pointer; text-overflow: ellipsis;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8l8 8 8-8' fill='none' stroke='%23E61E2A' stroke-width='4'/%3E%3C/svg%3E") right center / .5em no-repeat; }
:is(.jb, .jh) select:hover { border-color: currentColor; }
:is(.jb, .jh) option { color: var(--ink); background: #fff; font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.jq { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.jq label { font-weight: 700; }
.jq input { flex: 0 1 320px; min-width: 0; min-height: 48px; padding: 0 16px; font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 0; border-radius: 10px; }

#jr { padding: 30px 0 10px; transition: opacity .15s; }
#jr[aria-busy] { opacity: .5; }
.jcount { font-weight: 700; font-size: 1.15rem; }
.jcount b { font-size: 1.7em; font-weight: 800; letter-spacing: -.02em; }
.jlist, .jroles { list-style: none; margin: 0; padding: 0; }
.jrow { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 6px 22px; align-items: start; padding: 24px 0; border-top: 2px solid var(--line); }
.jrow .slogo { width: 72px; height: 72px; }
.jrow h3 { font-size: 1.35rem; margin: 0; overflow-wrap: anywhere; }
.jrow h3 a { text-decoration: none; }
.jrow h3 a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.jmain p { margin: 0 0 .5em; }
.jroles { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 .6em; font-weight: 700; }
.jroles .on { background: var(--red); color: #fff; border-radius: 999px; padding: 0 .75em; }
.jlinks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.jlinks a { overflow-wrap: anywhere; padding: 4px 0; text-underline-offset: 3px; }
.jgo { margin: 0; display: grid; justify-items: end; gap: 8px; text-align: right; }
.jgo .btn { min-width: 132px; text-align: center; }
.jsent { font-size: .88rem; font-weight: 600; max-width: 150px; }
.jmore { text-align: center; padding: 20px 0; }
.jnote { padding-bottom: 40px; max-width: 1180px; font-size: .92rem; }

/* home page */
.jh { background: #fff; color: var(--navy); }
.jh form { padding: 40px 0 84px; }
.jh :focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.jh p { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0; font-weight: 600; }
.jh .btn { font-size: 1.15rem; padding: .8em 1.6em; }

/* studio page */
.sp-work { background: #fff; border-radius: 18px; padding: 22px; scroll-margin-top: 90px; }
.sp-work h2 { margin-top: 0; }
.sp-work .jroles a { text-underline-offset: 3px; }

/* ---------- apply dialog */
.ap { width: min(620px, 100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; padding: 28px; border: 0; border-radius: 18px; color: var(--ink); background: #fff; }
.ap::backdrop { background: rgb(11 11 46 / .82); }
.ap h2 { font-size: 1.6rem; margin: 0 44px .7em 0; overflow-wrap: anywhere; }
.ap form { margin: 0; padding: 0; background: none; border: 0; }
.ap-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; font: inherit; font-size: 1.7rem; line-height: 1; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.ap-x:hover { background: var(--paper); }
.ap-f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ap-f .full { grid-column: 1 / -1; }
.ap label { font-weight: 700; display: block; }
.ap :is(input, select, textarea) { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; min-height: 46px; font: inherit; font-weight: 500; color: inherit; background: #fff; border: 2px solid #8B8DA6; border-radius: 10px; }
.ap-l { display: inline-flex; gap: 4px; margin: 18px 0 8px; padding: 4px; background: var(--line); border-radius: 999px; }
.ap-l button { font: inherit; font-weight: 700; min-height: 40px; padding: 0 1.1em; border: 0; border-radius: 999px; background: none; color: inherit; cursor: pointer; }
.ap-l button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.ap textarea { line-height: 1.55; resize: vertical; }
.ap-go { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.ap [hidden] { display: none; }
.ap-s { font-weight: 700; margin: 10px 0 0; min-height: 1.6em; }
.ap .muted { margin: 4px 0 0; font-size: .92rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 640px) {
  .jb form { padding: 34px 0 30px; }
  .jq label { flex: 1 0 100%; }
  .jq input { flex: 1 1 0; }
  .jrow { grid-template-columns: 48px minmax(0, 1fr); gap: 6px 14px; }
  .jrow .slogo { width: 48px; height: 48px; border-radius: 10px; }
  .jgo { grid-column: 1 / -1; justify-items: stretch; text-align: center; }
  .jsent { max-width: none; }
  .ap { padding: 22px 18px; }
  .ap-f { grid-template-columns: 1fr; }
  .ap-go .btn { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { #jr { transition: none; } }
