/* Osaka office feature and openings (/recruit/osaka/).
 *
 * Told in the first person by the branch lead, then the Osaka openings. Loaded
 * after /works/case.css and /interns/intern.css and reuses their tokens (--ink,
 * --ink-soft, --muted, --line, --bg, --bg-soft, --accent, --accent-soft,
 * --ease) and the .itn-* scaffolding (sections, pull quotes, standout band,
 * closing box, related links). Everything new is prefixed .osk*.
 */

/* =======================================================================
 * Hero — title and signature, then the team photo at full width
 * ======================================================================= */

.osk-hero {
  padding: clamp(36px, 4.5vw, 68px) 0 0;
}

.osk-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(2.1rem, 1rem + 4vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.osk-sign {
  margin: 20px 0 0;
  font-size: 1rem;
  font-weight: 800;
}

.osk-sign span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.osk-lead {
  max-width: 44rem;
  margin: 24px 0 0;
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.16rem);
  line-height: 1.95;
  color: var(--ink-soft);
}

.osk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.osk-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.osk-btn:hover {
  transform: translateY(-2px);
  background: #27272a;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.5);
}

.osk-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.osk-btn--ghost {
  border-color: var(--line);
  background: var(--bg);
  color: var(--ink);
}

.osk-btn--ghost:hover {
  background: var(--bg);
  border-color: #c8c8cd;
  box-shadow: none;
}

.osk-photo {
  margin: clamp(32px, 4vw, 52px) 0 0;
}

.osk-photo picture {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: #f4f4f5;
  aspect-ratio: 3 / 2;
}

.osk-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.osk-photo figcaption {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* Key facts under the photo, read left to right. */
.osk-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.osk-facts div {
  padding: 18px 20px 18px 0;
}

.osk-facts div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.osk-facts dt {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.osk-facts dd {
  margin: 6px 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.6;
}

.osk-facts dd small {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

/* =======================================================================
 * Chapters
 * ======================================================================= */

.osk-head {
  margin: 0 0 clamp(20px, 2.4vw, 30px);
}

.osk-topic {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.osk-topic .itn-q__no {
  padding-top: 0;
  letter-spacing: 0.02em;
}

/* Pointer to a related page, inside an answer column. Written as
 * `.itn-a > ...` so it outranks `.itn-a > p` in intern.css. */
.itn-a > .osk-pointer {
  margin: 26px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.osk-pointer a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #c8c8cd;
  transition: text-decoration-color 0.25s var(--ease);
}

.osk-pointer a:hover {
  text-decoration-color: var(--ink);
}

/* A dated announcement. A small script removes it after data-end (JST).
 * Written as `.itn-a > ...` so it outranks `.itn-a > p` in intern.css. */
.itn-a > .osk-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 44rem;
  margin: 28px 0 0;
  padding: 16px 20px;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.osk-notice b {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.osk-notice a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sign-off at the foot of the closing box. Scoped to the box so it outranks
 * `.itn-final__box p`, which would otherwise cap its width at 42rem. */
.itn-final__box .osk-signoff {
  max-width: none;
  margin: clamp(28px, 3vw, 40px) 0 0;
  text-align: right;
  font-weight: 800;
  color: var(--ink);
}

.osk-signoff small {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* =======================================================================
 * Openings
 * ======================================================================= */

.osk-jobs {
  padding: clamp(48px, 6vw, 84px) 0 clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.osk-jobs__label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.osk-jobs h2 {
  margin: 12px 0 0;
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.osk-jobs__lead {
  max-width: 44rem;
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.osk-roles {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.osk-role {
  height: 100%;
  padding: clamp(22px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

.osk-role__tag {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.osk-role h3 {
  margin: 10px 0 0;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.osk-role dl {
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
}

.osk-role dl div {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.osk-role dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding-top: 0.2em;
}

.osk-role dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.osk-role dd small {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
}

.osk-role__ext {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #c8c8cd;
  transition: text-decoration-color 0.25s var(--ease);
}

.osk-role__ext:hover {
  text-decoration-color: var(--ink);
}

/* A week at the Osaka office, as the intern posting describes it. */
.osk-week {
  margin: 22px 0 0;
  padding: clamp(20px, 2.4vw, 26px) clamp(20px, 2.6vw, 28px);
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.osk-week h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.osk-week dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 14px 0 0;
}

.osk-week dl div {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 10px;
}

.osk-week dt {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 0.2em;
}

.osk-week dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.osk-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  font-size: 0.9rem;
}

.osk-flow__label {
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.osk-flow span:not(.osk-flow__label) {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-weight: 700;
}

.osk-flow i {
  font-style: normal;
  color: var(--muted);
}

.osk-note {
  max-width: 46rem;
  margin: 18px 0 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
}

.osk-note a {
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.osk-map {
  margin: 34px 0 0;
}

.osk-map h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.osk-map p {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.osk-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  min-height: 260px;
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.osk-map a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.osk-map a:hover {
  color: var(--ink);
}

/* =======================================================================
 * Responsive
 * ======================================================================= */

@media (max-width: 900px) {
  .osk-roles,
  .osk-week dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .osk-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .osk-facts div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .osk-facts div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .osk-photo picture {
    border-radius: 16px;
    aspect-ratio: 4 / 3;
  }
  .osk-btn {
    width: 100%;
    justify-content: center;
  }
  .itn-a > .osk-notice {
    flex-direction: column;
    align-items: flex-start;
  }
}
