@charset "utf-8";

/* ==========================================================================
   실버라이닝의원 게시판 상단 공통 스타일
   ========================================================================== */

@font-face {
  font-family:'Pretendard Variable';
  src:
    url('https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/variable/woff2/PretendardVariable.woff2')
    format('woff2-variations'),
    url('https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/variable/woff2/PretendardVariable.woff2')
    format('woff2');
  font-weight:45 920;
  font-style:normal;
  font-display:swap;
}

:root {
  --color-white:#ffffff;
  --color-blue:#0033c3;
  --color-blue-dark:#00268f;
  --font-eng:'DM Serif Display',serif;
  --font-kor:
    'Pretendard Variable',
    'Pretendard',
    -apple-system,
    BlinkMacSystemFont,
    'Malgun Gothic',
    dotum,
    sans-serif;
  --container-w:1440px;
  --container-pad:32px;
}

.footer-inner{width: 100%;}

/* ==========================================================================
   게시판 상단 히어로
   ========================================================================== */

.hero-section {
  position:relative;
  width:100%;
  height:calc(100vh - 80px);
  min-height:560px;
  max-height:840px;
  display:flex;
  align-items:stretch;
  justify-content:center;
  overflow:hidden;
}

.hero-bg-img {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.hero-overlay {
  position:absolute;
  top:0;
  left:0;
  z-index:1;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.45);
}

/* 히어로 내용 */

.hero-content {
  position:absolute;
  top:50%;
  left:50%;
  z-index:2;
  width:100%;
  max-width:var(--container-w);
  height:100%;
  margin:0 auto;
  padding:40px 32px 60px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  color:var(--color-white);
  text-align:left;
  transform:translate(-50%,-50%);
  box-sizing:border-box;
}

.hero-content-center {
  align-items:center;
  text-align:center;
}

.hero-content .eng-label {
  /* margin:0 0 12px; */
  margin-bottom:70px;
  font-family:var(--font-eng);
  font-size:16px;
  font-weight:500;
  color:var(--color-white);
  text-transform:uppercase;
  letter-spacing:0.3em;
  opacity:1;
  text-shadow:0 2px 12px rgba(0,20,80,0.35);
}

.hero-title {
  /* margin:0 0 16px; */
  margin-bottom:50px;
  font-family:var(--font-eng);
  font-size:88px;
  font-weight:700;
  line-height:1.1;
  color:var(--color-white);
  letter-spacing:0.04em;
  text-shadow:0 2px 16px rgba(0,20,80,0.35);
}

.hero-subtitle {
  /* margin:24px 0; */
  font-family:var(--font-kor);
  font-size:32px;
  font-weight:600;
  color:var(--color-white);
  text-shadow:0 2px 12px rgba(0,20,80,0.3);
}

.hero-desc {
  /* margin:0 0 40px; */
  margin-bottom: 80px;
  font-family:var(--font-kor);
  font-size:19px;
  line-height:1.8;
  color:var(--color-white);
  opacity:0.92;
  text-shadow:0 2px 12px rgba(0,20,80,0.3);
}

/* ==========================================================================
   순차 페이드인
   ========================================================================== */

.hero-fade {
  opacity:0;
  transform:translateY(28px);
  animation:
    heroFadeIn
    1.3s
    cubic-bezier(0.16,1,0.3,1)
    forwards;
}

@keyframes heroFadeIn {
  from {
    opacity:0;
    transform:translateY(28px);
  }

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

/* ==========================================================================
   상담하기 버튼
   ========================================================================== */

.hero-content .hero-cta {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:auto;
  margin:24px auto 0;
  padding:20px 64px;
  border-radius:999px;
  background:var(--color-blue);
  color:var(--color-white);
  font-family:var(--font-kor);
  font-size:16px;
  font-weight:600;
  line-height:1.2;
  text-decoration:none;
  box-shadow:0 8px 24px rgba(0,20,80,0.35);
  animation:heroCtaBounce 2.2s ease-in-out infinite;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.hero-content .hero-cta:hover {
  background:var(--color-white);
  color:var(--color-blue);
  box-shadow:0 14px 32px rgba(0,20,80,0.45);
  transform:translateY(-6px) scale(1.05);
  animation-play-state:paused;
}

@keyframes heroCtaBounce {
  0%,
  100% {
    transform:translateY(0);
  }

  50% {
    transform:translateY(-10px);
  }
}

/* ==========================================================================
   스크롤 표시
   ========================================================================== */

.hero-scroll-indicator {
  position:absolute;
  bottom:36px;
  left:50%;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  color:var(--color-white);
  /* opacity:0.85; */
  transform:translateX(-50%);
}

.hero-scroll-indicator > span:first-child {
  font-family:var(--font-eng);
  font-size:10px;
  letter-spacing:0.2em;
  text-transform:uppercase;
}

.hero-scroll-line {
  position:relative;
  width:2px;
  height:40px;
  overflow:hidden;
  background:rgba(255,255,255,0.4);
}

.hero-scroll-line::before {
  content:'';
  position:absolute;
  top:-40%;
  left:0;
  width:100%;
  height:40%;
  background:var(--color-white);
  animation:heroScrollLine 2s ease-in-out infinite;
}

@keyframes heroScrollLine {
  0% {
    top:-40%;
  }

  60%,
  100% {
    top:100%;
  }
}

/* ==========================================================================
   반응형
   ========================================================================== */

@media (max-width:1024px) {
  .hero-title {
    font-size:52px;
  }

  .hero-content .hero-cta {
    padding:16px 48px;
  }
}

@media (max-width:640px) {
  .hero-section {
    height:auto;
    min-height:0;
    max-height:none;
    aspect-ratio:0.78 / 1;
  }

  .hero-bg-img {
    object-fit:cover;
    object-position:center;
  }

  .hero-content {
    padding:30px 20px 55px;
  }

  .hero-content .eng-label {
    margin:0 0 8px;
    font-size:12px;
  }

  .hero-title {
    margin:0 0 10px;
    font-size:30px;
    line-height:1.05;
    white-space: nowrap;
  }

  .hero-subtitle {
    /* margin:12px 0; */
    font-size:22px;
  }

  .hero-desc {
    margin:0 0 24px;
    font-size:14px;
    line-height:1.6;
  }

  .hero-content .hero-cta {
    padding:14px 40px;
    font-size:14px;
  }

  .hero-scroll-indicator {
    bottom:20px;
  }
}