
/* ========================================
   CEO GREETINGS
======================================== */

.ceo-page {
  width: 100%;
  background: var(--color-black);
  color: var(--color-white);
}

.ceo-section {
  position: relative;
  width: 100%;
  min-height: 900px;

  background-image: url('/images/ceo_bg.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 텍스트 가독성을 위한 그라데이션 */
.ceo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.62) 30%,
    rgba(0, 0, 0, 0.28) 60%,
    rgba(0, 0, 0, 0.04) 100%
  );

  pointer-events: none;
}

/* ========================================
   CONTENT INNER
======================================== */

.ceo-inner {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: var(--inner);
  margin: 0 auto;
  padding: 100px 0px 110px;
}

.ceo-content {
  width: 100%;
  max-width: 790px;
}

/* ========================================
   TITLE
======================================== */

.ceo-content h3 {
  margin: 0 0 38px;

  font-size: var(--font-visual);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.04em;

  color: var(--color-white);
}

/* ========================================
   LEAD TEXT
======================================== */

.ceo-lead {
  margin: 0 0 30px;

  font-size: var(--font-lg);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;

  color: var(--color-white);
}

.ceo-lead strong {
  color: var(--color-orange);
  font-weight: 700;
}

/* ========================================
   MESSAGE
======================================== */

.ceo-message p {
  margin: 0 0 26px;

  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.01em;

  color: rgba(255, 255, 255, 0.92);
}

.ceo-message p:last-child {
  margin-bottom: 0;
}

/* ========================================
   SIGNATURE
======================================== */

.ceo-signature {
  display: flex;
  align-items: baseline;
  gap: 12px;

  margin-top: 42px;
}

.ceo-signature span {
  font-size: var(--font-base);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.ceo-signature strong {
  font-size: var(--font-title-sm);
  font-weight: 600;
  color: var(--color-white);
}

.pc-only {
  display: initial;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {

  .ceo-section {
    min-height: 850px;
    background-position: 58% center;
  }

  .ceo-section::before {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.7) 48%,
      rgba(0, 0, 0, 0.3) 100%
    );
  }

  .ceo-inner {
    padding: 85px 30px 95px;
  }

  .ceo-content {
    max-width: 700px;
  }

  .ceo-content h3 {
    margin-bottom: 30px;
    font-size: var(--font-title-md);
  }

  .ceo-lead {
    font-size: var(--font-base);
  }

  .ceo-message p {
    font-size: var(--font-sm);
    line-height: 1.7;
  }

}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

  .ceo-section {
    min-height: auto;
    align-items: flex-start;

    background-position: 65% center;
  }


  .ceo-inner {
    padding: 65px 20px 80px;
  }

  .ceo-content {
    max-width: 100%;
  }

  .ceo-content h3 {
    margin-bottom: 26px;

    font-size: var(--font-title-sm);
    line-height: 1.3;
  }

  .ceo-lead {
    margin-bottom: 28px;

    font-size: var(--font-base);
    line-height: 1.6;
  }

  .ceo-lead br {
    display: none;
  }

  .ceo-message p {
    margin-bottom: 24px;

    font-size: var(--font-sm);
    line-height: 1.8;
    letter-spacing: 0;
  }

  .pc-only {
    display: none;
  }

  .ceo-signature {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 35px;
  }

  .ceo-signature span {
    font-size: var(--font-xs);
  }

  .ceo-signature strong {
    font-size: var(--font-base);
  }

}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 380px) {

  .ceo-content h3 {
    font-size: var(--font-title-sm);
  }

  .ceo-lead {
    font-size: var(--font-base);
  }

  .ceo-message p {
    font-size: var(--font-xs);
  }

}

/* ========================================
   CEO MOBILE TEXT OVERFLOW FIX
======================================== */

@media (max-width: 767px) {

  /* Flex 내부 콘텐츠 너비 제한 */
  .ceo-inner {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .ceo-content,
  .ceo-message {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  /* 일본어 문장 자동 줄바꿈 */
  .ceo-lead,
  .ceo-message p,
  .ceo-content h3 {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: strict;
  }

}

/* ========================================
   SUBPAGE SCROLL REVEAL (ADDED ONLY)
   Existing layout / hover / responsive styles preserved.
======================================== */
@media (prefers-reduced-motion: no-preference) {
  .cs-motion-ready .cs-reveal {
    opacity: 0;
    translate: 0 32px;
    transition: opacity .85s ease, translate .85s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--cs-delay, 0ms);
  }
  .cs-motion-ready .cs-reveal.cs-from-left { translate: -48px 0; }
  .cs-motion-ready .cs-reveal.cs-from-right { translate: 48px 0; }
  .cs-motion-ready .cs-reveal.cs-from-scale { scale: .96; transition-property: opacity, translate, scale; }
  .cs-motion-ready .cs-reveal.cs-visible {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cs-reveal { opacity: 1 !important; translate: none !important; scale: 1 !important; }
}
