/* =========================================
   Team Quality Recruiting LP
   ========================================= */

:root {
  --color-white: #ffffff;
  --color-pale-blue: #eaf4fc;
  --color-pale-blue-2: #dcecf9;
  --color-deep-blue: #0f2a52;
  --color-blue: #1f6fd0;
  --color-text: #1c1c1c;
  --color-text-light: #5a5a5a;
  --color-black: #111111;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --section-padding: 140px;
  --container-width: 1200px;
  --shadow-soft: 0 12px 40px rgba(15, 42, 82, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =========================================
   PAGE LOADER
   ========================================= */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--color-white);
  transition: opacity 0.5s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.page-loader-svg {
  width: 96px;
  height: 96px;
  color: var(--color-blue);
}

.page-loader-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
}

/* ---- 消火器メーター（針が振れる）バリエーション ---- */
.gauge-needle {
  transform-origin: 60px 60px;
  animation: gaugeSweep 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes gaugeSweep {
  0% { transform: rotate(-110deg); }
  50% { transform: rotate(70deg); }
  100% { transform: rotate(-110deg); }
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--color-blue);
  font-weight: 700;
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.5;
}

.body-text {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

/* =========== Buttons =========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
  box-shadow: 0 14px 32px rgba(15, 42, 82, 0.18);
}

.btn .btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-dark {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-small {
  padding: 12px 28px;
  font-size: 14px;
}

.btn-white {
  background: var(--color-white);
  color: var(--color-deep-blue);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

/* =========== Sections generic =========== */

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-light {
  background: var(--color-pale-blue);
}

.section-pale {
  background: var(--color-pale-blue-2);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}

.section-head h2 {
  margin-top: 4px;
}

.sp-only {
  display: none;
}

.pc-only {
  display: inline;
}

/* =========================================
   HEADER
   ========================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo img {
  height: 36px;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.06);
}

.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav a:hover {
  color: var(--color-blue);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-chevron {
  font-size: 10px;
  margin-left: 2px;
}

.header .btn-small {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--color-black);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  transition: background 0.25s ease, color 0.25s ease;
}

.header-link:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-arrow {
  font-size: 13px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   FV
   ========================================= */

.fv {
  position: relative;
  padding: 160px 0 0;
  overflow: hidden;
  background: var(--color-white);
}

.fv-slides {
  display: none;
}

.fv-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.fv-slide.is-active {
  opacity: 1;
}

.fv-copy h1 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  animation: charReveal 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.fv-num.char {
  display: inline-block;
}

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

@media (prefers-reduced-motion: reduce) {
  .fv-copy h1 .char {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.fv-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fv-pattern svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fv-wave {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 140px;
  margin-top: 80px;
  line-height: 0;
}

.fv-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fv-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 0.75fr 1.35fr 0.75fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.fv-photo img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.fv-photo-main-slot {
  grid-row: 1 / 3;
  height: 100%;
  min-height: 520px;
}

.fv-photo-main {
  height: 100%;
  transform: rotate(-1.2deg);
  animation: floatMain 6s ease-in-out infinite;
}

.fv-photo-main img {
  border-radius: 32px 60px 32px 44px / 44px 32px 60px 32px;
}

.fv-copy {
  padding: 12px 8px 0;
}

.highlight {
  color: var(--color-blue);
  font-weight: 800;
}

.fv-copy h1 {
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 28px;
  white-space: nowrap;
}

.fv-num {
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 800;
  line-height: 1;
  vertical-align: -6px;
  margin-right: 2px;
  display: inline-block;
}

.fv-num-muted {
  color: #b9c3ce;
  text-decoration: line-through;
  text-decoration-thickness: 4px;
  text-decoration-color: #b9c3ce;
}

.fv-num-main {
  color: var(--color-blue);
}

.fv-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.fv-checklist li {
  position: relative;
  padding-left: 36px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.fv-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-blue);
}

.fv-checklist li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: translateY(-75%) rotate(-45deg);
}

.fv-lead {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-light);
  white-space: nowrap;
}

.fv-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 32px;
  background: var(--color-deep-blue);
  color: var(--color-white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
}

.fv-side-photos {
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100%;
  padding-top: 10px;
}

.fv-photo-city {
  height: 170px;
  transform: translateX(18px) rotate(1deg);
  animation: floatCity 5.5s ease-in-out infinite;
  animation-delay: -1s;
}

.fv-photo-city img {
  border-radius: 56px 28px 48px 32px / 40px 48px 28px 56px;
}

.fv-photo-person {
  flex: 1;
  min-height: 140px;
}

.fv-photo-person:nth-of-type(2) {
  transform: translateX(-14px) rotate(-1.6deg);
  animation: floatPerson2 6.5s ease-in-out infinite;
  animation-delay: -2.5s;
}

.fv-photo-person:nth-of-type(2) img {
  border-radius: 24px 48px 32px 44px / 44px 28px 52px 24px;
}

.fv-photo-person:nth-of-type(3) {
  transform: translateX(20px) rotate(1.4deg);
  animation: floatPerson3 5.8s ease-in-out infinite;
  animation-delay: -3.6s;
}

.fv-photo-person:nth-of-type(3) img {
  border-radius: 48px 24px 44px 32px / 28px 44px 24px 48px;
}

.fv-collage {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 20px;
  height: 220px;
  margin-top: 32px;
}

.fv-photo-sm {
  height: 100%;
}

.fv-photo-wide:nth-of-type(1) {
  transform: translateY(-18px) rotate(-2deg);
  animation: floatWide1 6.2s ease-in-out infinite;
  animation-delay: -0.5s;
}

.fv-photo-wide:nth-of-type(1) img {
  border-radius: 48px 24px 44px 32px / 32px 48px 24px 44px;
}

.fv-photo-group {
  transform: translateY(14px);
  animation: floatGroup 5.2s ease-in-out infinite;
  animation-delay: -4s;
}

.fv-photo-group img {
  border-radius: 40px 28px 44px 24px / 24px 40px 28px 44px;
}

.fv-photo-wide:nth-of-type(3) {
  transform: translateY(-10px) rotate(2deg);
  animation: floatWide3 6.8s ease-in-out infinite;
  animation-delay: -1.8s;
}

.fv-photo-wide:nth-of-type(3) img {
  border-radius: 24px 48px 28px 44px / 44px 24px 48px 28px;
}

/* Floating animations */

@keyframes floatMain {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50% { transform: rotate(-1.2deg) translateY(-14px); }
}

@keyframes floatCity {
  0%, 100% { transform: translateX(18px) rotate(1deg) translateY(0); }
  50% { transform: translateX(18px) rotate(1deg) translateY(-10px); }
}

@keyframes floatPerson2 {
  0%, 100% { transform: translateX(-14px) rotate(-1.6deg) translateY(0); }
  50% { transform: translateX(-14px) rotate(-1.6deg) translateY(10px); }
}

@keyframes floatPerson3 {
  0%, 100% { transform: translateX(20px) rotate(1.4deg) translateY(0); }
  50% { transform: translateX(20px) rotate(1.4deg) translateY(-10px); }
}

@keyframes floatWide1 {
  0%, 100% { transform: translateY(-18px) rotate(-2deg); }
  50% { transform: translateY(-28px) rotate(-2deg); }
}

@keyframes floatGroup {
  0%, 100% { transform: translateY(14px); }
  50% { transform: translateY(4px); }
}

@keyframes floatWide3 {
  0%, 100% { transform: translateY(-10px) rotate(2deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* =========================================
   CONCEPT
   ========================================= */

.concept-single {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.concept-lead {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.concept-text h2 {
  margin-bottom: 40px;
}

.concept-text .body-text {
  margin-bottom: 32px;
}

.concept-closing {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
}

.concept-photos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 80px auto 0;
}

.concept-photo-card {
  position: relative;
  width: 320px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(15, 42, 82, 0.18);
  cursor: zoom-in;
}

.concept-photo-card:nth-child(1) {
  transform: rotate(-4deg) translateY(-8px);
}

.concept-photo-card:nth-child(2) {
  transform: rotate(3deg) translateY(14px);
}

.concept-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   WHY TEAM QUALITY
   ========================================= */

.why-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.why-stat-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.why-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(15, 42, 82, 0.14);
}

.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.why-stat-card:hover .why-icon {
  transform: scale(1.12) rotate(-4deg);
}

.why-icon svg {
  width: 100%;
  height: 100%;
}

.why-stat-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.why-stat-num {
  display: block;
  font-size: 64px;
  font-weight: 800;
  color: var(--color-blue);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.why-stat-unit {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-blue);
  margin-left: 4px;
}

.why-stat-note {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-light);
}

.why-story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.why-story-text h3 {
  font-size: 26px;
  margin-bottom: 20px;
}

.why-story-text p {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text-light);
}

.why-story-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}

.why-story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   BUSINESS
   ========================================= */

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.business-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.business-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.business-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 82, 0.15);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.business-photo:hover::after {
  opacity: 1;
}

.business-photo-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-deep-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.business-photo:hover .business-photo-zoom {
  opacity: 1;
  transform: scale(1);
}

.business-photo-zoom svg {
  width: 16px;
  height: 16px;
}

.business-card:hover .business-photo img {
  transform: scale(1.08);
}

.business-card h3 {
  font-size: 17px;
  text-align: center;
  margin-bottom: 10px;
  transition: color 0.25s ease;
}

.business-card:hover h3 {
  color: var(--color-blue);
}

.business-card p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.business-note {
  margin-top: 44px;
  text-align: center;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
}

.business-note strong {
  color: var(--color-blue);
  font-weight: 800;
}

/* ---- 写真拡大ライトボックス ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.85);
  animation: modalFade 0.3s ease;
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: modalPop 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-deep-blue);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.lightbox-close:hover {
  background: var(--color-white);
  transform: rotate(90deg);
}

/* =========================================
   WORK
   ========================================= */

.work-subhead {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-deep-blue);
  text-align: center;
  margin-bottom: 36px;
  padding-left: 0;
}

.work-subhead::before,
.work-subhead::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-blue);
  vertical-align: middle;
  margin: 0 16px;
}

.work-subhead-steps {
  margin-top: 80px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 0;
}

.work-grid-steps {
  margin-top: 72px;
}

.work-steps {
  display: flex;
  flex-direction: column;
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 40px;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 68px;
  bottom: 8px;
  width: 2px;
  background: var(--color-pale-blue-2);
}

.step:last-child::before {
  display: none;
}

.step-badge {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--color-blue);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.35s ease, background 0.35s ease;
}

.step:hover .step-badge {
  transform: scale(1.1);
  background: var(--color-blue);
}

.step:hover .step-badge-label,
.step:hover .step-badge-num {
  color: var(--color-white);
}

.step-badge-label,
.step-badge-num {
  transition: color 0.35s ease;
}

.step-badge-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  margin-bottom: 2px;
}

.step-badge-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-blue);
}

.step-body {
  padding-top: 10px;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--color-text-light);
}

.work-photo img {
  border-radius: var(--radius-lg);
  height: 100%;
  min-height: 480px;
  width: 100%;
  box-shadow: var(--shadow-soft);
}

.work-sub-photos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 160px;
}

.work-photo-sm {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.work-photo-sm img {
  border-radius: var(--radius-md);
  height: 100%;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s ease;
}

.work-photo-sm:hover img {
  transform: scale(1.08);
}

.work-tasks {
  display: block;
}

.work-task-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.task-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.task-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(15, 42, 82, 0.14);
}

.task-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  cursor: zoom-in;
}

.task-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.task-card:hover .task-photo img {
  transform: scale(1.08);
}

.task-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 82, 0.15);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.task-photo:hover::after {
  opacity: 1;
}

.task-card h4 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 10px;
}

.task-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-light);
  margin-bottom: 18px;
}

.task-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  border: 1.5px solid var(--color-blue);
  border-radius: 999px;
  background: transparent;
  color: var(--color-blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.task-more:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.task-more-icon {
  font-size: 16px;
  line-height: 1;
}

/* ---- 業務内容 詳細モーダル ---- */
.task-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.task-modal[hidden] {
  display: none;
}

.task-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 82, 0.55);
  animation: modalFade 0.3s ease;
}

.task-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 44px 44px 48px;
  box-shadow: 0 30px 80px rgba(15, 42, 82, 0.3);
  animation: modalPop 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.task-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-pale-blue);
  color: var(--color-deep-blue);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.task-modal-close:hover {
  background: var(--color-blue);
  color: var(--color-white);
  transform: rotate(90deg);
}

.task-modal-eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 6px;
}

.task-modal-box > h3 {
  font-size: 26px;
  margin-bottom: 24px;
  color: var(--color-text);
}

.task-modal-block {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--color-pale-blue);
}

.task-modal-block:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.task-modal-block h4 {
  position: relative;
  font-size: 18px;
  color: var(--color-deep-blue);
  padding-left: 16px;
  margin-bottom: 12px;
}

.task-modal-block h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 999px;
  background: var(--color-blue);
}

.task-modal-block p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--color-text-light);
}

.task-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.task-modal-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
}

.task-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.task-modal-photo:hover img {
  transform: scale(1.08);
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.modal-open {
  overflow: hidden;
}

.task-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-pale-blue);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin: 40px auto 0;
  max-width: 680px;
}

.task-bubble-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.task-bubble-icon svg {
  width: 30px;
  height: 30px;
}

.task-bubble-text {
  font-size: 21px;
  font-weight: 800;
  color: var(--color-deep-blue);
  line-height: 1.6;
  margin-bottom: 8px;
}

.task-bubble-highlight {
  color: var(--color-blue);
  font-size: 1.3em;
}

.task-bubble-sub {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-light);
}

/* =========================================
   INTERVIEW
   ========================================= */

.interview-carousel {
  position: relative;
}

.interview-grid {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.interview-grid::-webkit-scrollbar {
  display: none;
}

.interview-card {
  flex: 0 0 calc((100% - 56px) / 3);
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: block;
  transition: transform 0.3s ease;
}

.interview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.interview-nav:hover {
  opacity: 0.85;
}

.interview-nav-prev {
  left: -24px;
}

.interview-nav-next {
  right: -24px;
}

.interview-card:hover {
  transform: translateY(-6px);
}

.interview-photo {
  height: 260px;
  overflow: hidden;
}

.interview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.interview-card:hover .interview-photo img {
  transform: scale(1.08);
}

.interview-body {
  padding: 28px;
  position: relative;
}

.interview-catch {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.6;
}

.interview-meta {
  font-size: 13px;
  color: var(--color-text-light);
}

.arrow-btn {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.35s ease, background 0.35s ease;
}

.interview-card:hover .arrow-btn {
  transform: rotate(-45deg) scale(1.12);
  background: var(--color-blue);
}

/* =========================================
   ENVIRONMENT
   ========================================= */

.environment-section {
  position: relative;
  padding: var(--section-padding) 0 130px;
  background: var(--color-white);
  overflow: hidden;
}

.environment-flex {
  display: flex;
  align-items: center;
}

.environment-text {
  flex: 0 1 auto;
  width: calc((100vw - var(--container-width)) / 2 + var(--container-width) * 0.4);
  padding-left: max(32px, calc((100vw - var(--container-width)) / 2));
  padding-right: 60px;
  box-sizing: border-box;
}

.check-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.check-list li {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 34px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  transition: transform 0.25s ease, color 0.25s ease;
}

.check-list li:hover {
  transform: translateX(6px);
  color: var(--color-blue);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-blue);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: translateY(-70%) rotate(-45deg);
}

.environment-photo {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  overflow: hidden;
}

.environment-photo img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.environment-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 130px;
  line-height: 0;
  pointer-events: none;
}

.environment-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* =========================================
   RECRUIT / ENTRY
   ========================================= */

.recruit {
  position: relative;
  background: var(--color-deep-blue);
  padding: 100px 0;
  color: var(--color-white);
}

.recruit-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.recruit-text h2 {
  color: var(--color-white);
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 20px;
}

.recruit-text p {
  font-size: 16px;
  opacity: 0.85;
}

.recruit-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.recruit-buttons .btn {
  justify-content: flex-start;
  gap: 12px;
  min-width: 260px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.recruit-buttons .btn-arrow {
  margin-left: auto;
}

/* =========================================
   ARTICLE (Interview detail page)
   ========================================= */

.article-hero {
  position: relative;
  background: var(--color-white);
}

.article-hero-text {
  padding: 160px 32px 32px;
}

.article-hero-text .eyebrow {
  font-size: 18px;
  letter-spacing: 0.25em;
}

.article-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 20px;
}

.article-hero-photo {
  position: relative;
  width: 100%;
  height: 500px;
}

.article-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.article-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.6;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.article-meta-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-blue);
}

.article-body {
  padding: 100px 0;
  background: var(--color-white);
}

.article-container {
  max-width: 760px;
}

.article-lead {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 48px;
  line-height: 1.7;
}

.article-block {
  margin-bottom: 72px;
}

.article-block:last-child {
  margin-bottom: 0;
}

.article-block h2 {
  position: relative;
  font-size: 22px;
  line-height: 1.6;
  color: var(--color-deep-blue);
  padding-left: 20px;
  margin-bottom: 28px;
}

.article-block h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 999px;
  background: var(--color-blue);
}

.article-block p {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.article-block p:last-child {
  margin-bottom: 0;
}

.article-closing {
  padding: 100px 0;
  background: var(--color-pale-blue);
}

.article-closing-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.article-closing-photo {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.article-closing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-closing-quote {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  line-height: 2;
  color: var(--color-text);
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  background: var(--color-white);
  padding: 48px 0;
  text-align: center;
}

.footer-logo {
  height: 28px;
  margin: 0 auto 16px;
}

.footer p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* =========================================
   Scroll fade-in animation
   ========================================= */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

@media (max-width: 1024px) {
  :root {
    --section-padding: 100px;
  }

  .environment-flex {
    flex-direction: column;
    min-height: 0;
  }

  .environment-text {
    width: 100%;
    padding: 0 32px 40px;
  }

  .environment-photo {
    width: 100%;
    align-self: auto;
  }

  .environment-photo img {
    min-height: 340px;
  }

  .why-story {
    gap: 32px;
  }

  .business-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .interview-card {
    flex-basis: calc((100% - 28px) / 2);
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-sub-photos {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    box-shadow: var(--shadow-soft);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-pale-blue);
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .header .btn-small {
    display: none;
  }

  .header-link {
    display: none;
  }

  .header-inner {
    padding: 14px 20px;
  }

  .container {
    padding: 0 20px;
  }

  :root {
    --section-padding: 80px;
  }

  /* ---- FV: slideshow hero (mobile) ---- */
  .fv {
    position: relative;
    min-height: 88vh;
    padding: 0;
    display: flex;
    align-items: flex-end;
  }

  .fv-slides {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  /* 7枚目は顔が右寄りのため右側を見せる */
  .fv-slides .fv-slide:nth-child(7) {
    background-position: 78% center;
  }

  .fv-slides::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 20, 24, 0.12) 0%, rgba(18, 20, 24, 0.4) 55%, rgba(18, 20, 24, 0.75) 100%);
  }

  .fv-pattern {
    display: none;
  }

  .fv-inner {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 24px 90px;
  }

  /* hide the desktop photo collage on mobile */
  .fv-photo-main-slot,
  .fv-side-photos,
  .fv-collage {
    display: none;
  }

  .fv-copy {
    order: 0;
    text-align: left;
    padding: 0;
  }

  .fv-copy h1 {
    font-size: 29px;
    line-height: 1.55;
    white-space: normal;
    color: var(--color-white);
    margin-bottom: 22px;
  }

  .fv-num {
    font-size: 46px;
  }

  .fv-num-muted {
    color: rgba(255, 255, 255, 0.55);
    text-decoration-color: rgba(255, 255, 255, 0.55);
  }

  .fv-num-main {
    color: #9fd0ff;
  }

  .highlight {
    color: #9fd0ff;
  }

  .fv-checklist {
    gap: 12px;
    margin-bottom: 22px;
  }

  .fv-checklist li,
  .fv-lead {
    white-space: normal;
    font-size: 16px;
    color: var(--color-white);
  }

  .fv-checklist li::before {
    background: #9fd0ff;
  }

  .fv-checklist li::after {
    border-color: var(--color-deep-blue);
  }

  .fv-lead {
    opacity: 0.9;
  }

  .fv-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    z-index: 1;
    height: 60px;
    margin-top: 0;
  }

  .fv-wave svg path {
    fill: var(--color-white);
  }

  /* スマホでは見出しは強制改行せず、自然な折り返しで2行に収める */
  .sp-only {
    display: none;
  }

  .pc-only {
    display: none;
  }

  .section-head h2,
  .concept-text h2 {
    font-size: clamp(21px, 5.6vw, 30px);
  }

  .business-note {
    margin-top: 32px;
    font-size: 15px;
    text-align: left;
  }

  /* ---- CONCEPT: left-align & natural wrapping on mobile ---- */
  .concept-single {
    text-align: left;
  }

  .concept-text br {
    display: none;
  }

  .concept-text .body-text {
    margin-bottom: 24px;
  }

  .concept-photos {
    flex-direction: column;
    gap: 32px;
    margin-top: 56px;
  }

  .concept-photo-card {
    width: 260px;
  }

  .why-stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
  }

  .why-stat-card {
    padding: 24px 12px;
  }

  .why-story {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .why-story-photo {
    order: -1;
  }

  .why-stat-num {
    font-size: 40px;
  }

  .business-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-photo img {
    min-height: 280px;
  }

  .work-tasks {
    grid-template-columns: 1fr;
  }

  .work-task-cards {
    grid-template-columns: 1fr;
  }

  .work-subhead-steps {
    margin-top: 56px;
  }

  .task-modal {
    padding: 16px;
  }

  .task-modal-box {
    padding: 40px 24px 32px;
  }

  .task-modal-box > h3 {
    font-size: 22px;
  }

  .interview-card {
    flex-basis: 100%;
  }

  .interview-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .interview-nav-prev {
    left: 4px;
  }

  .interview-nav-next {
    right: 4px;
  }

  .recruit-inner {
    flex-direction: column;
    text-align: center;
  }

  .recruit-buttons {
    align-items: center;
    width: 100%;
  }

  .recruit-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .article-hero-text {
    padding: 120px 20px 0;
  }

  .article-title {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .article-hero-photo {
    height: 320px;
  }

  .article-meta-bar {
    margin-top: 24px;
  }

  .article-body {
    padding: 70px 0;
  }

  .article-block {
    margin-bottom: 56px;
  }

  .article-closing {
    padding: 70px 0;
  }

  .article-closing-inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .article-closing-photo {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .why-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .business-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-stat-num {
    font-size: 52px;
  }
}
