/* ============================================
   Work Page — Redesigned
   ============================================ */

/* ── Full-Width Hero ── */
.wk-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.wk-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.wk-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: heroZoomSlow 20s ease-in-out infinite alternate;
}

@keyframes heroZoomSlow {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.wk-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
}

.wk-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
}

.wk-hero__label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: wkHeroIn 0.7s 0.2s ease forwards;
}

.wk-hero__heading {
  font-size: 3.5rem;
  font-weight: 900;
  color: #111;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(30px);
  animation: wkHeroIn 0.8s 0.4s ease forwards;
}

.wk-hero__sub {
  font-size: 1rem;
  color: #333;
  line-height: 2;
  max-width: 540px;
  opacity: 0;
  transform: translateY(20px);
  animation: wkHeroIn 0.8s 0.6s ease forwards;
}

@keyframes wkHeroIn {
  to { opacity: 1; transform: translateY(0); }
}

.wk-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.wk-hero__scroll span {
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
}

.wk-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.wk-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #93c5fd;
  animation: wkScrollLine 2s infinite;
}

@keyframes wkScrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ── Shared Section Styles ── */
.wk-section {
  padding: 80px 0;
}

.wk-section__header {
  margin-bottom: 40px;
}

.wk-section__label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a3a5c;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.wk-section__title {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  line-height: 1.4;
  margin-bottom: 12px;
}

.wk-section__sub {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.9;
}

/* ── Business Fields — Cross-Domain Strip ── */
.wk-fields {
  padding: 80px 0 0;
}

.wk-fields__header {
  margin-bottom: 48px;
}

.wk-fields__lead {
  font-size: 1rem;
  color: #555;
  line-height: 2;
  margin-top: 12px;
}

/* Full-bleed panoramic strip */
.fields-strip {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.fields-strip__inner {
  display: flex;
  height: 480px;
}

/* Each panel */
.field-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.34, 1, 0.64, 1);
}

.field-panel:hover {
  flex: 1.8;
}

.field-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.field-panel:hover img {
  transform: scale(1.05);
}

/* Gradient overlay */
.field-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 24px;
  transition: background 0.4s ease;
}

.field-panel:hover .field-panel__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.field-panel__num {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent, #fff);
  opacity: 0.7;
  margin-bottom: 8px;
}

.field-panel__title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  transition: font-size 0.4s ease;
}

.field-panel:hover .field-panel__title {
  font-size: 2.2rem;
}

.field-panel__sub {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
}

/* Detail: hidden by default, shown on hover */
.field-panel__detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
  margin-top: 0;
}

.field-panel:hover .field-panel__detail {
  max-height: 200px;
  opacity: 1;
  margin-top: 14px;
}

.field-panel__detail p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 10px;
}

.field-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.field-panel__tags span {
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* Connector line across all panels */
.fields-strip__connector {
  text-align: center;
  padding: 0 0 20px;
}

.fields-strip__connector-text {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #111;
  position: relative;
  padding: 0 24px;
}

.fields-strip__connector-text::before,
.fields-strip__connector-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: #ccc;
}

.fields-strip__connector-text::before {
  right: 100%;
}

.fields-strip__connector-text::after {
  left: 100%;
}

/* ── Photo Marquee ── */
.photo-marquee {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  padding: 16px 0;
}

.photo-marquee__track {
  display: flex;
  gap: 16px;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.photo-marquee__item {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
}

.photo-marquee__item--wide {
  width: 400px;
}

.photo-marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-marquee__item:hover img {
  transform: scale(1.05);
}

/* ── Open Positions ── */
.wk-positions {
  padding: 80px 0;
}

.wk-positions__header {
  margin-bottom: 48px;
}

.wk-positions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Stagger animation trigger */
.wk-positions__grid.fade-in {
  opacity: 1;
  transform: none;
  transition: none;
}

.wk-positions__grid > .pos-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wk-positions__grid.is-visible > .pos-card:nth-child(1) { transition-delay: 0.05s; }
.wk-positions__grid.is-visible > .pos-card:nth-child(2) { transition-delay: 0.12s; }
.wk-positions__grid.is-visible > .pos-card:nth-child(3) { transition-delay: 0.19s; }
.wk-positions__grid.is-visible > .pos-card:nth-child(4) { transition-delay: 0.26s; }
.wk-positions__grid.is-visible > .pos-card:nth-child(5) { transition-delay: 0.33s; }
.wk-positions__grid.is-visible > .pos-card:nth-child(6) { transition-delay: 0.40s; }

.wk-positions__grid.is-visible > .pos-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Position Card */
.pos-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.pos-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Top color accent bar */
.pos-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent, #1a3a5c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.pos-card:hover .pos-card__accent {
  transform: scaleX(1);
}

.pos-card__en {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent, #1a3a5c);
  margin-bottom: 8px;
}

.pos-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}

.pos-card__dept {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #888;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.pos-card__desc {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.8;
  flex: 1;
}

.pos-card__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent, #1a3a5c);
  transition: letter-spacing 0.3s ease;
}

.pos-card:hover .pos-card__link {
  letter-spacing: 0.05em;
}

/* ── Nav Photo Overlay Cards ── */
.wk-nav-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

/* Stagger */
.wk-nav-row.fade-in {
  opacity: 1;
  transform: none;
  transition: none;
}

.wk-nav-row > .wk-nav-photo-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.wk-nav-row.is-visible > .wk-nav-photo-card:nth-child(1) { transition-delay: 0.05s; }
.wk-nav-row.is-visible > .wk-nav-photo-card:nth-child(2) { transition-delay: 0.15s; }
.wk-nav-row.is-visible > .wk-nav-photo-card:nth-child(3) { transition-delay: 0.25s; }

.wk-nav-row.is-visible > .wk-nav-photo-card {
  opacity: 1;
  transform: translateY(0);
}

.wk-nav-photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
}

.wk-nav-photo-card__img {
  position: absolute;
  inset: 0;
}

.wk-nav-photo-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.wk-nav-photo-card:hover .wk-nav-photo-card__img img {
  transform: scale(1.08);
}

.wk-nav-photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.15) 60%,
    transparent 100%
  );
  z-index: 1;
  transition: background 0.4s ease;
}

.wk-nav-photo-card:hover::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.wk-nav-photo-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.wk-nav-photo-card__label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.wk-nav-photo-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* ── CTA ── */
.cta-section { position: relative; padding: 100px 0; }
.cta-section__bg { position: absolute; inset: 0; background: linear-gradient(135deg, #0f172a 0%, #1a365d 50%, #1e40af 100%); z-index: -1; }
.cta-section__content { text-align: center; color: #fff; }
.cta-section__title { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 32px; line-height: 1.6; }
.cta-section__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Fields strip stagger ── */
.fields-strip.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fields-strip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utilities ── */
.hide-sp { display: inline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .wk-hero { min-height: 50vh; }
  .wk-hero__heading { font-size: 2.4rem; }
  .wk-hero__scroll { display: none; }

  .wk-section { padding: 60px 0; }
  .wk-section__title { font-size: 1.5rem; }

  .fields-strip__inner { height: 360px; }
  .field-panel__title { font-size: 1.3rem; }
  .field-panel:hover .field-panel__title { font-size: 1.5rem; }
  .fields-strip__connector { display: none; }

  .wk-positions { padding: 60px 0; }
  .wk-positions__grid { grid-template-columns: repeat(2, 1fr); }

  .wk-nav-row { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .wk-nav-row > .wk-nav-photo-card:last-child {
    grid-column: auto;
  }

  .photo-marquee__item { width: 220px; height: 160px; }
  .photo-marquee__item--wide { width: 300px; }

  .cta-section__title { font-size: 1.5rem; }
  .hide-sp { display: none; }
}

@media (max-width: 480px) {
  .wk-hero__heading { font-size: 1.8rem; }
  .wk-section__title { font-size: 1.2rem; }

  .fields-strip__inner {
    flex-wrap: wrap;
    height: auto;
  }
  .field-panel {
    flex: none;
    width: 50%;
    height: 240px;
  }
  .field-panel:last-child {
    width: 100%;
  }
  .field-panel:hover { flex: none; }
  .wk-positions__grid { grid-template-columns: 1fr; }
  .wk-nav-row { grid-template-columns: 1fr; }

  .photo-marquee__item { width: 180px; height: 130px; }
  .photo-marquee__item--wide { width: 240px; }

  .cta-section__title { font-size: 1.6rem; }
}

/* ============================================
   Job Detail Pages — Shared Styles
   (used by sales, engineer, creative, admin)
   ============================================ */

/* ── Page Hero (job detail) ── */
.page-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-bg) 0%, var(--color-primary-subtle) 100%);
  border-radius: 0 0 0 35%;
  z-index: -1;
}

.page-hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-hero__text {
  flex: 1;
  min-width: 0;
}

.page-hero__label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 24px;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.7s 0.3s var(--ease-smooth) forwards;
}

.page-hero__title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--color-black);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s 0.5s var(--ease-smooth) forwards;
}

.page-hero__title-accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero__desc {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s 0.7s var(--ease-smooth) forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero photos */
.page-hero__visual {
  flex: 1;
  min-width: 0;
  opacity: 0;
  transform: translateX(30px);
  animation: heroSlideIn 1s 0.6s var(--ease-smooth) forwards;
}

@keyframes heroSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.page-hero__photo-stack {
  position: relative;
  max-width: 420px;
  margin-left: auto;
}

.page-hero__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
}

.page-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero__photo--1 {
  aspect-ratio: 4 / 5;
  position: relative;
  z-index: 2;
}

.page-hero__photo--2 {
  position: absolute;
  bottom: -30px;
  right: -40px;
  width: 55%;
  aspect-ratio: 3 / 4;
  z-index: 1;
  border: 4px solid #fff;
  animation: photoFloat 6s ease-in-out infinite alternate;
}

@keyframes photoFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* Scroll hint */
.page-hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.page-hero__scroll-hint span {
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

.page-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ── Lead Message ── */
.work-lead {
  text-align: center;
  padding-bottom: 40px;
}

.work-lead__text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 2.2;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Day Schedule (job detail) ── */
.work-schedule__header {
  text-align: center;
  margin-bottom: 20px;
}

/* Schedule Tabs */
.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.schedule-tabs__btn {
  padding: 10px 24px;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.schedule-tabs__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.schedule-tabs__btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Schedule Panels */
.schedule-panel {
  display: none;
}

.schedule-panel.is-active {
  display: block;
  animation: panelFadeIn 0.4s ease;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Zigzag Timeline */
.work-schedule__timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 0;
}

/* Center vertical line */
.work-schedule__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-border);
  transform: translateX(-50%);
  z-index: 0;
}

/* Animated growing line overlay */
.work-schedule__timeline::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--color-primary), #6366f1, #06b6d4);
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 2px;
}

.work-schedule__timeline.is-animated::after {
  animation: timelineGrow 2s ease-out forwards;
}

@keyframes timelineGrow {
  0%   { height: 0; }
  100% { height: 100%; }
}

.work-timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 50%;
  padding-bottom: 28px;
  opacity: 0;
  transform: translateX(-30px);
}

/* Odd items: right side */
.work-timeline-item:nth-child(odd) {
  margin-left: 50%;
  padding-left: 40px;
  transform: translateX(30px);
}

/* Even items: left side */
.work-timeline-item:nth-child(even) {
  padding-right: 40px;
  justify-content: flex-end;
  text-align: right;
  transform: translateX(-30px);
}

.work-timeline-item:last-child {
  padding-bottom: 0;
}

/* Animated reveal */
.work-schedule__timeline.is-animated .work-timeline-item {
  animation: bubblePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.work-schedule__timeline.is-animated .work-timeline-item:nth-child(1) { animation-delay: 0.2s; }
.work-schedule__timeline.is-animated .work-timeline-item:nth-child(2) { animation-delay: 0.45s; }
.work-schedule__timeline.is-animated .work-timeline-item:nth-child(3) { animation-delay: 0.7s; }
.work-schedule__timeline.is-animated .work-timeline-item:nth-child(4) { animation-delay: 0.95s; }
.work-schedule__timeline.is-animated .work-timeline-item:nth-child(5) { animation-delay: 1.2s; }
.work-schedule__timeline.is-animated .work-timeline-item:nth-child(6) { animation-delay: 1.45s; }
.work-schedule__timeline.is-animated .work-timeline-item:nth-child(7) { animation-delay: 1.7s; }

@keyframes bubblePop {
  0%   { opacity: 0; transform: translateX(var(--pop-x, 30px)) scale(0.9); }
  60%  { opacity: 1; transform: translateX(calc(var(--pop-x, 30px) * -0.1)) scale(1.02); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

.work-timeline-item:nth-child(even) { --pop-x: -30px; }
.work-timeline-item:nth-child(odd)  { --pop-x: 30px; }

/* Dot on the center line */
.work-timeline-item__dot {
  position: absolute;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--color-primary);
  z-index: 3;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
}

.work-timeline-item:nth-child(odd) .work-timeline-item__dot {
  left: -9px;
}

.work-timeline-item:nth-child(even) .work-timeline-item__dot {
  right: -9px;
}

.work-schedule__timeline.is-animated .work-timeline-item__dot {
  animation: dotPulse 0.6s ease-out both;
}

.work-schedule__timeline.is-animated .work-timeline-item:nth-child(1) .work-timeline-item__dot { animation-delay: 0.3s; }
.work-schedule__timeline.is-animated .work-timeline-item:nth-child(2) .work-timeline-item__dot { animation-delay: 0.55s; }
.work-schedule__timeline.is-animated .work-timeline-item:nth-child(3) .work-timeline-item__dot { animation-delay: 0.8s; }
.work-schedule__timeline.is-animated .work-timeline-item:nth-child(4) .work-timeline-item__dot { animation-delay: 1.05s; }
.work-schedule__timeline.is-animated .work-timeline-item:nth-child(5) .work-timeline-item__dot { animation-delay: 1.3s; }
.work-schedule__timeline.is-animated .work-timeline-item:nth-child(6) .work-timeline-item__dot { animation-delay: 1.55s; }
.work-schedule__timeline.is-animated .work-timeline-item:nth-child(7) .work-timeline-item__dot { animation-delay: 1.8s; }

@keyframes dotPulse {
  0%   { transform: scale(0); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  50%  { transform: scale(1.3); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Bubble card */
.work-timeline-item__content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Speech bubble arrows */
.work-timeline-item:nth-child(odd) .work-timeline-item__content::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #fff;
  filter: drop-shadow(-2px 0 1px rgba(15, 23, 42, 0.04));
}

.work-timeline-item:nth-child(even) .work-timeline-item__content::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #fff;
  filter: drop-shadow(2px 0 1px rgba(15, 23, 42, 0.04));
}

/* Time badge */
.work-timeline-item__time {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-bg, rgba(37, 99, 235, 0.08));
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  position: static;
  width: auto;
}

.work-timeline-item__content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 6px;
}

.work-timeline-item__content p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* Photo thumbnail */
.work-timeline-item__photo {
  width: 100%;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
}

.work-timeline-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .wk-page-title { padding: 100px 0 32px; }
  .wk-page-title__inner { flex-direction: column; gap: 32px; }
  .wk-page-title__photos { width: 100%; max-width: 340px; height: 240px; }
  .wk-section { padding: 60px 0; }
  .wk-section__title { font-size: 1.4rem; }

  .wk-fields-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .wk-field-card--has-img,
  .wk-field-card:not(.wk-field-card--has-img) {
    grid-column: span 1;
  }

  .wk-jobs-section { padding: 60px 0; }
  .wk-jobs-section__inner { flex-direction: column; gap: 24px; }
  .wk-jobs-section__cards { max-width: 100%; }
  .wk-jobs-section__photos { width: 100%; height: auto; display: flex; gap: 12px; position: static; }
  .wk-jobs-photo { position: static; border: none; width: 33.33%; height: 200px; }
  .wk-jobs-photo--3 { animation: none; }
  .wk-nav-cards { flex-direction: column; }

  .photo-band__item { min-width: 200px; height: 180px; }
  .photo-band__item--wide { min-width: 280px; }

  /* Page hero (job detail) */
  .page-hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .page-hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }
  .page-hero__bg {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    right: 0;
    border-radius: 30% 30% 0 0;
  }
  .page-hero__photo-stack {
    max-width: 300px;
    margin: 0 auto;
  }
  .page-hero__scroll-hint { display: none; }

  /* Timeline: single column on mobile */
  .work-schedule__timeline::before,
  .work-schedule__timeline::after {
    left: 20px;
    transform: none;
  }
  .work-timeline-item,
  .work-timeline-item:nth-child(odd),
  .work-timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 48px;
    padding-right: 0;
    text-align: left;
    justify-content: flex-start;
    --pop-x: 20px;
  }
  .work-timeline-item:nth-child(odd) .work-timeline-item__dot,
  .work-timeline-item:nth-child(even) .work-timeline-item__dot {
    left: 11px;
    right: auto;
  }
  .work-timeline-item:nth-child(even) .work-timeline-item__content::before {
    right: auto;
    left: -8px;
    border-left: none;
    border-right: 8px solid #fff;
  }
  .work-timeline-item:nth-child(odd) .work-timeline-item__content::before {
    left: -8px;
  }

  .cta-section__title { font-size: 1.5rem; }
  .hide-sp { display: none; }
}

@media (max-width: 480px) {
  .wk-page-title__heading { font-size: 1.8rem; }
  .wk-section__title { font-size: 1.2rem; }

  .wk-fields-grid { grid-template-columns: 1fr; }
  .wk-field-card--has-img,
  .wk-field-card:not(.wk-field-card--has-img) {
    grid-column: span 1;
  }

  .photo-band__item { min-width: 160px; height: 140px; }
  .photo-band__item--wide { min-width: 220px; }

  .page-hero__title { font-size: 2.2rem; }
  .cta-section__title { font-size: 1.6rem; }
}
