/* IRODORI Recruit - Common Styles */
body {
  selection-background-color: #ffe4e9;
  cursor: none;
}
::selection {
  background-color: #ffe4e9;
}

.bg-irodori-gradient {
  background: linear-gradient(135deg, #ffe4e9 0%, #eceaff 25%, #e2fdf9 50%, #e0f2fe 75%, #fff1e6 100%);
}
.bg-soft-pink { background: radial-gradient(circle at center, rgba(255, 228, 233, 0.4), transparent 70%); }
.bg-soft-blue { background: radial-gradient(circle at center, rgba(224, 242, 254, 0.4), transparent 70%); }
.bg-soft-teal { background: radial-gradient(circle at center, rgba(226, 253, 249, 0.4), transparent 70%); }

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.03);
}
.card-organic { border-radius: 3rem 5rem 2rem 4rem; }
.blob-paint {
  position: absolute;
  filter: blur(120px);
  opacity: 0.2;
  border-radius: 9999px;
  mix-blend-mode: multiply;
}
.tracking-header-eng { letter-spacing: normal !important; }
@media (min-width: 768px) {
  .tracking-header-eng { letter-spacing: -5px !important; }
}
.bg-text {
  position: absolute;
  font-weight: 900;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0.015;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: normal !important;
}
@media (min-width: 768px) {
  .bg-text { letter-spacing: -5px !important; }
}
.editorial-title {
  font-size: 1.625rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .editorial-title {
    font-size: 2.25rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .editorial-title { font-size: 3rem; }
}
.editorial-lead {
  font-size: 0.9375rem;
  line-height: 1.65;
}
@media (min-width: 768px) {
  .editorial-lead {
    font-size: 1rem;
    line-height: 1.625;
  }
}

/* Subpage hero → anchor nav / filter gap */
.subpage-hero-nav-gap {
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .subpage-hero-nav-gap {
    margin-bottom: 3rem;
  }
}

/* Page shell: no bottom padding when footer CTA is present */
main > div:has(#cta) {
  padding-bottom: 0 !important;
}
.text-huge {
  font-size: 6rem;
  line-height: 0.85;
}
@media (min-width: 1024px) {
  .text-huge { font-size: 10rem; }
}
.btn-gradient {
  background-color: #0f172a;
  color: white;
  transition: all 0.5s;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.btn-gradient:hover {
  background-color: #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

/* Animations */
@keyframes gradient-x {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animate-gradient-x {
  background-size: 200% 200%;
  animation: gradient-x 5s ease infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow { animation: spin-slow 12s linear infinite; }

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(2.2); opacity: 0; }
}
.group:hover .animate-ripple-1 { animation: ripple 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; }
.group:hover .animate-ripple-2 { animation: ripple 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; animation-delay: 0.15s; }
.group:hover .animate-ripple-3 { animation: ripple 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; animation-delay: 0.3s; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.animate-marquee { animation: marquee 35s linear infinite; }

/* Splash background rotation */
.splash-rotate { transform: rotate(-12.247deg); }

/* No scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Hero background scale */
.hero-bg-scale { transform-origin: bottom; transform: scale(1.15); }

/* AOS / Scroll reveal */
.aos-fade-up,
.aos-fade-in,
.aos-fade-left,
.aos-scale-in {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.aos-fade-up { transform: translateY(40px); }
.aos-fade-left { transform: translateX(-30px); }
.aos-scale-in { transform: scale(0.95); }
.aos-fade-in { transform: none; }

.aos-fade-up.aos-visible,
.aos-fade-in.aos-visible,
.aos-fade-left.aos-visible,
.aos-scale-in.aos-visible {
  opacity: 1;
  transform: none;
}

/* Content reveal: fades in as soon as it starts entering the viewport while
   scrolling (threshold 0 — no need to wait for a large portion to be
   visible). Used for content below a tall element (e.g. article body below
   an image gallery) where a delayed scroll-triggered reveal would make the
   page feel slow to display. */
.content-reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s ease-out, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.content-reveal.content-visible {
  opacity: 1;
  transform: none;
}

/* Header scrolled state */
#site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
#site-header:not(.header-scrolled) {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Mobile menu */
#mobile-menu {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.menu-open {
  opacity: 1 !important;
  transform: translateX(0) !important;
}
#mobile-menu.menu-closed {
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}
#mobile-menu a {
  font-size: 1.5rem;
}
#mobile-menu a.mobile-nav-link.uppercase,
#mobile-menu a[class*="uppercase"] {
  font-size: 0.875rem;
}

/* Carousel track */
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-slide {
  flex-shrink: 0;
}

/* Filter tab active pill */
.filter-pill-active {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.filter-pill-dark { background: #0f172a; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18); }
.filter-pill-light { background: white; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); border: 1px solid rgba(15, 23, 42, 0.1); }

/* Category filter pills (interview / recruit archives) */
.irodori-filter-bar {
  width: 100%;
}
.irodori-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.irodori-filter-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  text-decoration: none;
  /* cursor: pointer; */
  flex-shrink: 0;
}
.irodori-filter-pill:hover:not(.is-active) {
  color: #0f172a;
  border-color: #cbd5e1;
}
.irodori-filter-pill.is-active {
  color: #fff;
  border-color: transparent;
  background: transparent;
}
.irodori-filter-pill .filter-pill-active {
  border-radius: 9999px;
}

/* Archive filters — compact horizontal scroll on SP */
@media (max-width: 767px) {
  .irodori-filter-bar {
    width: 100%;
    overflow: hidden;
  }
  .irodori-category-filters,
  .irodori-event-filter-track,
  .irodori-job-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .irodori-category-filters::-webkit-scrollbar,
  .irodori-event-filter-track::-webkit-scrollbar,
  .irodori-job-tabs::-webkit-scrollbar {
    display: none;
  }
  .irodori-category-filters {
    gap: 0.375rem;
    padding-bottom: 1px;
  }
  .irodori-filter-pill {
    padding: 0.5rem 0.875rem;
    font-size: 11px;
    border-radius: 9999px;
  }
  .irodori-event-filter-track .event-filter-btn {
    padding: 0.5rem 0.875rem;
    flex-shrink: 0;
    letter-spacing: 0.12em;
    border-radius: 12px;
  }
}
@media (min-width: 768px) {
  .irodori-event-filter-track {
    flex-wrap: wrap;
  }
}

/* Page anchor nav (tech / environment) */
.irodori-anchor-nav-wrap {
  width: 100%;
}
.irodori-anchor-nav-sticky {
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .irodori-anchor-nav-sticky {
    margin-bottom: 3rem;
  }
}
.irodori-anchor-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}
.irodori-anchor-nav [data-scroll-to] {
  flex-shrink: 0;
  appearance: none;
  border: none;
  background: transparent;
  /* cursor: pointer; */
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.irodori-anchor-nav [data-scroll-to]:hover {
  color: #0f172a;
  background: #f8fafc;
}
.irodori-anchor-nav [data-scroll-to]:active {
  transform: scale(0.95);
}
@media (min-width: 768px) {
  .irodori-anchor-nav {
    padding: 0.375rem;
  }
  .irodori-anchor-nav [data-scroll-to] {
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
  }
}
@media (max-width: 767px) {
  .irodori-anchor-nav-wrap {
    justify-content: flex-start;
  }
  .irodori-anchor-nav-bar {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
  }
  .irodori-anchor-nav-bar::-webkit-scrollbar {
    display: none;
  }
  .irodori-anchor-nav {
    display: inline-flex;
    width: max-content;
    max-width: none;
    flex-wrap: nowrap;
    border-radius: 9999px;
    box-shadow: none;
  }
  .irodori-anchor-nav [data-scroll-to] {
    flex-shrink: 0;
  }
}

/* Chart animations */
.chart-circle {
  stroke-dasharray: 0 var(--chart-circumference, 553);
  transition: stroke-dasharray 2s ease-out;
}
.chart-circle.aos-visible { stroke-dasharray: var(--chart-dash, 387) var(--chart-circumference, 553); }
.chart-circle-retention {
  stroke-dasharray: 0 var(--chart-circumference, 654);
  transition: stroke-dasharray 1.5s ease-out;
}
.chart-circle-retention.aos-visible { stroke-dasharray: var(--chart-dash, 626) var(--chart-circumference, 654); }

.bar-fill {
  height: 0;
  transition: height 1.5s ease-out;
}
.bar-fill.aos-visible { height: var(--bar-height, 50%); }
.bar-h-58, .bar-h-42, .bar-h-82, .bar-h-18 {
  height: 0;
  transition: height 1.5s ease-out;
}
.bar-h-58.aos-visible { height: 58%; }
.bar-h-42.aos-visible { height: 42%; }
.bar-h-82.aos-visible { height: 82%; }
.bar-h-18.aos-visible { height: 18%; }

.age-bar {
  width: 0;
  transition: width 1s ease-out;
}
.age-bar.aos-visible { width: var(--age-percent, 50%); }

.ratio-bar-left, .ratio-bar-right {
  width: 0;
  transition: width 1.2s ease-out;
}
.ratio-bar-left.aos-visible { width: var(--ratio-left, 70%); }
.ratio-bar-right.aos-visible { width: var(--ratio-right, 30%); }

/* Character animation */
.char-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(45%);
  transition: opacity 0.45s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.45s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.char-reveal.char-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Event slider fade */
.event-slide { display: none; }
.event-slide.active { display: block; animation: fadeIn 0.6s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

/* Entry form steps — removed (single-page CF7 submit) */

/* Hidden utility for filters */
.filter-hidden { display: none !important; }

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gradient underline for message */
.gradient-underline {
  background-image: linear-gradient(to right, #e52e71, #ffd600, #00ff87, #0061ff, #a855f7);
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: bottom;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 0.75rem;
}

/* Interview placeholder when no staff photo is registered */
.int-img-placeholder,
.int-hero-placeholder {
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
}
.int-card-media {
  position: relative;
}
.int-card-media .int-card-img-layer {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.int-card-media.has-custom-image {
  transition: transform 1s ease;
}
.group:hover .int-card-media.has-custom-image {
  transform: scale(1.05);
}
.int-card-media.has-hover-image .int-card-img-default,
.int-card-media.has-hover-image .int-card-img-hover {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.7s ease, filter 1s ease;
}
.int-card-media.has-hover-image .int-card-img-hover {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.int-card-media.has-hover-image.is-int-card-hovered .int-card-img-default,
.int-card-media.has-hover-image:hover .int-card-img-default,
.group:hover .int-card-media.has-hover-image .int-card-img-default {
  opacity: 0;
}
.int-card-media.has-hover-image.is-int-card-hovered .int-card-img-hover,
.int-card-media.has-hover-image:hover .int-card-img-hover,
.group:hover .int-card-media.has-hover-image .int-card-img-hover {
  opacity: 1;
}
.int-img-placeholder .int-noimage,
.int-hero-placeholder .int-noimage {
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: transparent;
  filter: none;
  transform: none;
}

/* SP typography — 15px body base, headings scaled proportionally */
@media (max-width: 767px) {
  main {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  main .text-xs { font-size: 0.6875rem !important; line-height: 1.45 !important; }
  main .text-sm { font-size: 0.8125rem !important; line-height: 1.55 !important; }
  main .text-base { font-size: 0.9375rem !important; line-height: 1.65 !important; }
  main .text-lg { font-size: 1rem !important; line-height: 1.6 !important; }
  main .text-xl { font-size: 1.0625rem !important; line-height: 1.55 !important; }
  main .text-2xl { font-size: 1.1875rem !important; line-height: 1.45 !important; }
  main .text-3xl { font-size: 1.375rem !important; line-height: 1.35 !important; }
  main .text-4xl { font-size: 1.625rem !important; line-height: 1.25 !important; }
  main .text-5xl { font-size: 1.875rem !important; line-height: 1.2 !important; }

  main .sm\:text-lg { font-size: 1rem !important; line-height: 1.6 !important; }
  main .sm\:text-xl { font-size: 1.0625rem !important; line-height: 1.55 !important; }
  main .sm\:text-2xl { font-size: 1.1875rem !important; line-height: 1.45 !important; }
  main .sm\:text-3xl { font-size: 1.375rem !important; line-height: 1.35 !important; }
  main .sm\:text-4xl { font-size: 1.625rem !important; line-height: 1.25 !important; }
  main .sm\:text-5xl { font-size: 1.875rem !important; line-height: 1.2 !important; }

  main p.text-\[13px\] { font-size: 0.9375rem !important; line-height: 1.65 !important; }
}

/* SP compact spacing — reduce scroll while keeping readable rhythm */
@media (max-width: 767px) {
  main .pt-32 { padding-top: 6.5rem !important; }
  main .pb-48 { padding-bottom: 2.5rem !important; }

  main .py-16 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  main .py-24 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  main .py-32 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }

  main .mb-48 { margin-bottom: 2.5rem !important; }
  main .mb-64 { margin-bottom: 3rem !important; }
  main .mt-40 { margin-top: 2.5rem !important; }
  main .mt-48 { margin-top: 3rem !important; }

  main .gap-16 { gap: 2rem !important; }
  main .gap-20 { gap: 2rem !important; }
  main .gap-24 { gap: 2.5rem !important; }

  main .space-y-32 > :not([hidden]) ~ :not([hidden]) { margin-top: 4rem !important; }
  main .space-y-48 > :not([hidden]) ~ :not([hidden]) { margin-top: 5rem !important; }

  main [class*="rounded-[5rem]"] { border-radius: 2.5rem !important; }
  main [class*="rounded-[4rem]"] { border-radius: 2rem !important; }
  main .mb-24 { margin-bottom: 3rem !important; }
  main .my-16 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }
  main .my-24 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
  main .mt-16 { margin-top: 2.5rem !important; }
  main .mt-24 { margin-top: 3rem !important; }
  main .mt-32 { margin-top: 3.5rem !important; }

  main [class*="rounded-[3.25rem]"] { border-radius: 2rem !important; }
  main [class*="rounded-[3.5rem]"] { border-radius: 1.75rem !important; }
}

/* Archive pagination (events / interviews / recruit) */
.irodori-archive-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.irodori-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 0.5rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
}

.irodori-archive-pagination .page-numbers.current {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.irodori-archive-pagination .page-numbers:not(.current):not(.dots):hover {
  border-color: #cbd5e1;
  color: #0f172a;
}

.irodori-archive-pagination .prev.page-numbers,
.irodori-archive-pagination .next.page-numbers {
  color: #1e293b;
  border-color: #e2e8f0;
}

.irodori-archive-pagination .prev.page-numbers:hover,
.irodori-archive-pagination .next.page-numbers:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}


/* =============================================
   CUSTOM CURSOR
   ============================================= */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear;
  display: none;
}

@media (min-width: 768px) {
  .custom-cursor {
    display: block;
  }
}

.custom-cursor-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-cursor-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: black;
  transition: opacity 0.2s;
}

.custom-cursor.is-hovering .custom-cursor-inner {
  transform: scale(1.8);
}

.custom-cursor.is-hovering .custom-cursor-dot {
  opacity: 0;
}