/*
Theme Name: shinhanlifecare
Description: shinhanlifecare Theme
Author: Manual Graphics
Version: 1.1
*/

/* Reset Styles */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
textarea,
input {
  -webkit-appearance: none;
  -webkit-border-radius: 0;
}
figure {
  margin: 0;
}
button {
  background-color: transparent;
  outline: none;
  border: none;
  font-family: var(--ff-pretendard);
  cursor: pointer;
}
html {
  font-size: 62.5%;
}
a {
  text-decoration: none;
  color: var(--cb);
}

/* CSS Variables & Responsive Units */
:root {
  /* Colors */
  --cp1: #0a226a;
  --cp2: #b0976d;
  --cp3: #655e43;
  --cp4: #435165;
  --cp5: #ffd67f;
  --cp6: #d5b2fd;
  --cp7: #0eb0ff;
  --cp8: #509553;
  --cp9: #6c92ef;

  --bc1: #e6f0f4;
  --bc2: #f1e7d6;
  --bc3: #ece7d2;
  --bc4: #d0dbeb;
  --bc5: #f6efdf;
  --bc6: #ece3f7;
  --bc7: #d7ebf5;
  --bc8: #e0fae1;
  --bc9: #ebf0ff;

  --wc1: #f6f4ed;
  --wc2: #f4efe6;

  --cw: #fff;
  --cb: #000;

  /* Grays */
  --cg1: #252525;
  --cg2: #3d3d3d;
  --cg3: #525252;
  --cg4: #737373;
  --cg5: #969696;
  --cg6: #bdbdbd;
  --cg7: #d9d9d9;
  --cg8: #f0f0f0;

  /* Lines */
  --line: #ccc;
  --linebk: #141414;

  /* Utils */
  --tts: 0.3s;
  --ttm: 0.6s;
  --ttl: 1s;

  /* Fonts */
  --ff-pretendard: "Pretendard Variable", Pretendard, sans-serif;
  --ff-mono: "SF Mono", monospace;

  /* Responsive Calculation */
  --ref-width: 1600;
  --vw: 100vw;
  --unit-fx: calc(var(--vw) / var(--ref-width));

  /* Font Sizes (Responsive) */
  --fs0: 1.2rem;
  --fs1: 1.4rem;
  --fs2: 1.6rem;
  --fs3: 1.8rem;
  --fs4: 2rem;
  --fs5: 2.2rem;
  --fs6: 2.5rem;
  --fs7: 2.8rem;
  --fs8: 3.2rem;
  --fs9: 4rem;
}

@media (max-width: 768px) {
  :root {
    --ref-width: 375;
  }
}

@font-face {
    font-family: 'sol';
    src: url('fonts/ShinhanCare_TEST_1022-SemiBold.woff2') format('woff2'),
        url('fonts/ShinhanCare_TEST_1022-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
.sol { 
    font-family: 'sol';
}
/* Common Styles */
::selection {
  background-color: var(--cb);
  color: var(--cw);
}
.tac {
  text-align: center;
}
.tar {
  text-align: right;
}
.tal {
  text-align: left;
}
.ttu {
  text-transform: uppercase;
}
.ttc {
  text-transform: capitalize;
}
.po {
  display: block;
}
.mo {
  display: none;
}
.nmt {
  margin-top: 0;
}
.nmb {
  margin-bottom: 0;
}
.npt {
  padding-top: 0;
}
.npb {
  padding-bottom: 0;
}

.title {
  font-size: var(--fs9);
  line-height: 1.2;
  font-weight: 700;
}
.sub-title {
  font-size: var(--fs8);
  font-weight: 700;
}
.maxw {
  max-width: 1600px;
  margin: 0 auto;
}
.maxws {
  max-width: 800px;
  margin: 0 auto;
}
.lmt {
  width: calc(100% - 120px);
  margin: 0 auto;
}

/* Flex Utilities */
.fx {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px;
}
.nogap {
  gap: 0;
}
.flx1 {
  flex: 1;
}
.fxjc {
  justify-content: center;
}
.fxjs {
  justify-content: space-between;
}
.fxac {
  align-items: center;
}
.fxafe {
  align-items: flex-end;
}
.fxdc {
  flex-direction: column;
}
.fxdr {
  flex-direction: row;
}

/* Layout Base */
body {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: var(--ff-pretendard);
  font-weight: 700;
  font-size: var(--fs4);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--cp1);
  background-color: var(--wc1);
}

/* Header */
header {
  background-color: transparent;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  border-radius: 4px;
  height: 72px;
  z-index: 100;

  transition: var(--ttm);
}
header.scrolled {
  max-width: 1360px;
  background: var(--bc1);
  background-color: var(--header-bg-color, #fff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
header .inner {
  height: 100%;
  box-sizing: border-box;
  display: flex;

  align-items: center;
  justify-content: space-between;
  transition: var(--tts);
}
header.scrolled .inner {
  padding-left: 40px;
  padding-right: 40px;
}
header .inner > * {
  flex: 1;
}
#logo img {
  display: block;
  height: 28px;
  width: auto;
}
#menu-gnb {
  width: 100%;
  padding: 0;
  display: flex;
  gap: 48px;
  justify-content: flex-end;
}
#menu-gnb li a {
  color: var(--cp1);
  font-size: var(--fs5);
  transition: color var(--tts);
}
#menu-gnb li a:hover {
  color: var(--cp2);
}
#menu-gnb .sub-menu {
  display: none;
}
#lnb {
  display: flex;
  justify-content: flex-end;
}

/* --- Leadership Layout & Themes --- */

.section {
  background-color: transparent; /* Body bg morphing */
  transition: color 0.5s ease;
}

/* Theme Classes */
.bg1 {
  background-color: var(--bc1);
}
.bg2 {
  background-color: var(--bc2);
}
.bg3 {
  background-color: var(--bc3);
}
.bg4 {
  background-color: var(--bc4);
}
.bg5 {
  background-color: var(--bc5);
}
.bg6 {
  background-color: var(--bc6);
}
.bg7 {
  background-color: var(--bc7);
}
.bg8 {
  background-color: var(--bc8);
}
.bg9 {
  background-color: var(--bc9);
}

/* Sections */
.page-header {
  /*
  height: 60vh;
  min-height: 640px;
  */
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 4px;
  margin-top: 108px;
  margin-bottom: calc(var(--unit-fx) * 100);
}
.page-header .h-full {
  height: 100%;
}
.page-header .page-title {
  height: 100%;
}
.page-header .page-title .anim-text-header {
  color: var(--bc1);
  padding: 40px;
  box-sizing: border-box;
}
.page-header .page-title h1 {
  font-size: var(--fs9);
}
.page-header .page-title p {
  font-size: var(--fs6);
  font-weight: 500;
}
.page-header .hero-img {
  height: 100%;
}
.page-header .hero-img .reveal-wrap {
  border-radius: 0 !important;
  height: 100%;
}

.sec-content {
  padding: calc(var(--unit-fx) * 300) 0;
  overflow: hidden;
}
.sec-content .h-full {
  height: 100%;
}

/* 푸터 전체 레이아웃 */
.site-footer {
  padding-bottom: calc(var(--unit-fx) * 60);
}
.site-footer .inner {
  gap: calc(var(--unit-fx) * 100); /* 좌우 사이 간격 */
  align-items: stretch; /* 높이 맞춤 */
}

/* 1. 왼쪽 이미지 영역 */
.footer-left {
  width: 35%; /* 혹은 400px 등 고정폭 */
  min-width: 300px;
}
.footer-brand-link {
  display: block;
  width: 100%;
  height: 100%;
}
.footer-brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
}
/* 2. 오른쪽 컨텐츠 영역 */
.footer-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 메뉴는 위로, 정보는 바닥으로 */
}
/* GNB 메뉴 그리드 (핵심) */
.footer-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4열 배치 */
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu-grid > li > a {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: var(--fs4);
  color: var(--cp1);
  pointer-events: none; /* 헤더는 클릭 안되게 하려면 추가 (선택사항) */
}
.footer-menu-grid .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu-grid .sub-menu li {
  margin-bottom: 10px;
}
.footer-menu-grid .sub-menu a {
  font-size: var(--fs4);
  color: var(--cp1);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.footer-menu-grid .sub-menu a:hover {
  color: #000;
}
/* 비활성화된 메뉴(회색 처리된 것들) 스타일링용 클래스 */
/* WP 메뉴 관리자에서 'disabled' 클래스를 주면 적용됨 */
.footer-menu-grid .menu-item.disabled a {
  opacity: 0.5;
  pointer-events: none;
}
.footer-meta {
  padding-top: 60px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  /* border-top: 1px solid rgba(0,0,0,0.1); 필요하면 구분선 */
}

.footer-meta .text-sm {
  font-size: var(--fs2);
  font-weight: 500;
}
footer > .inner {
  border-top: 1px solid var(--cg6);
  padding-top: 40px;
}

/* Image Utilities */
.img-sz-sm {
  width: 100%;
  max-width: calc(var(--unit-fx) * 400);
}
.img-sz-md {
  width: 100%;
  max-width: calc(var(--unit-fx) * 600);
}
.img-sz-lg {
  width: 100%;
  max-width: 100%;
}

.ar-1-1 {
  aspect-ratio: 1/1;
}
.ar-16-10 {
  aspect-ratio: 16/10;
}
.ar-4-5 {
  aspect-ratio: 4/5;
}
.ar-auto {
  aspect-ratio: auto;
}

.ic1 .reveal-mask {
  background-color: var(--cp1);
}
.ic2 .reveal-mask {
  background-color: var(--bc2);
}
.ic3 .reveal-mask {
  background-color: var(--bc3);
}
.ic4 .reveal-mask {
  background-color: var(--bc4);
}
.ic5 .reveal-mask {
  background-color: var(--bc5);
}
.ic6 .reveal-mask {
  background-color: var(--bc6);
}
.ic7 .reveal-mask {
  background-color: var(--bc7);
}
.ic8 .reveal-mask {
  background-color: var(--bc8);
}
.ic9 .reveal-mask {
  background-color: var(--bc9);
}

/* Animation Elements */
.reveal-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  border-radius: 4px;
}
.reveal-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.reveal-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 2;
  transform-origin: left;
}
.anim-text,
.anim-text-header {
  opacity: 0;
  transform: translateY(40px);
}

/* Typography */
.msg-title {
  font-size: var(--fs9);
  line-height: 1.6;
  color: var(--cp1);
  font-weight: 700;
  word-break: keep-all;
}
.ceo-sign {
  font-size: var(--fs2);
  color: var(--cg3);
}
.ceo-sign strong {
  color: var(--cb);
  margin-left: 4px;
}
.desc-box p {
  font-size: var(--fs5);
}
.mb-24 {
  margin-bottom: calc(var(--unit-fx) * 24);
}

#sec-leadership {
  background: var(--cp1);
}
#sec-ceo {
  padding-top: 150px;
}
#sec-ceo .inner {
  align-items: stretch;
}
#sec-ceo .text-group {
  flex-direction: column;
  display: flex;
  justify-content: space-between;
}
#sec-ceo .img-group {
  max-width: 600px;
}
#sec-vision .desc-box {
  padding-right: 5%;
}


/* =========================================
   Brand Page Specific Styles
   ========================================= */

#brand-header {
  aspect-ratio: unset;
  background: #B0976D;
}
#brand-header .anim-text, 
#brand-header .anim-text-header {
    opacity: 1; /* 0 → 1로 변경 (투명도 해제) */
    transform: translateY(0); /* 40px → 0으로 변경 (제자리로 위치) */
}
/* [문제 해결 1] 헤더 이미지 강제 노출 */
/* 기존 .reveal-wrap img가 opacity:0으로 되어 있어 안 보이는 문제 해결 */
#brand-header .reveal-wrap img {
    opacity: 1 !important; 
    /* JS 로드시 애니메이션 될 거라면 JS가 처리하겠지만, 일단 보이게 처리 */
}


/* --- 리스트 레이아웃 --- */

#brand-page .brand-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 360px 60px; /* row-gap: 360px, col-gap: 60px */
  margin: 0 auto;
  margin-bottom: 150px;
  align-items: center; /* 수직 중앙 정렬 */
}

/* 2열 컬럼 레이아웃 유지 */
#brand-page .brand-item {
  width: calc(50% - 30px);
  display: flex;
  flex-direction: column;
}

/* --- [문제 해결 2] 사이즈 제어 (링크 태그 기준) --- */

#brand-page .brand-link {
    display: block;
    width: 100%;
}

/* [Style 100] 꽉 찬 너비 */
#brand-page .brand-link.style-100 {
    width: 100%;
}

/* [Style 64] 축소 너비 + 중앙 정렬 */
#brand-page .brand-link.style-64 {
    width: 64%;
    margin: 0 auto; /* 텍스트 포함 전체 중앙 정렬 */
}

/* 썸네일 박스는 부모(.brand-link) 너비를 따라감 */
#brand-page .thumb-box {
  position: relative;
  width: 100%; /* 부모 너비에 맞춤 */
  aspect-ratio: 1 / 1;
  background-color: #f0f0f0;
  margin-bottom: 24px;
  overflow: hidden;
}


/* --- 마스크 컬러 및 기타 스타일 --- */

#brand-page .reveal-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background-color: #eee;
}

/* 컬러 매핑 */
#brand-page .ic1 .reveal-mask { background-color: var(--cp1); }
#brand-page .ic2 .reveal-mask { background-color: var(--bc2); }
#brand-page .ic3 .reveal-mask { background-color: var(--bc3); }
#brand-page .ic4 .reveal-mask { background-color: var(--bc4); }
#brand-page .ic5 .reveal-mask { background-color: var(--bc5); }
#brand-page .ic6 .reveal-mask { background-color: var(--bc6); }
#brand-page .ic7 .reveal-mask { background-color: var(--bc7); }
#brand-page .ic8 .reveal-mask { background-color: var(--bc8); }
#brand-page .ic9 .reveal-mask { background-color: var(--bc9); }

/* 이미지 스케일 */
#brand-page .img-scale {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#brand-page .img-scale img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  opacity: 1; /* 리스트 이미지는 항상 보임 */
}

#brand-page .brand-link:hover .img-scale img {
  transform: scale(1.05);
}

/* 텍스트 스타일 */
#brand-page .item-title {
  font-size: var(--fs7);
  font-weight: 700;
  color: var(--cp1);
  margin-bottom: 4px;
  line-height: 1.3;
}
#brand-page .item-desc {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: var(--fs3);
  font-weight: 500;
  color: var(--cg3);
  padding-bottom: 8px;
}
#brand-page .meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: var(--fs3);
  font-weight: 500;
  color: var(--cg5);
  padding-bottom: 8px;
}

/* 1. 래퍼는 세로(Column) 정렬 */
.brand-list-wrapper {
    display: flex;
    flex-direction: column; 
    gap: 100px; /* 행 간격 */
}

/* 2. 각 행은 가로(Row) 정렬 */
.brand-row {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center; /* 수직 중앙 정렬 */
    gap: 60px; /* 좌우 아이템 간격 */
}

/* 3. 아이템 너비 (flex로 제어하는 게 더 안전함) */
.brand-item.style-100 {
    width: 45%; /* 혹은 flex: 1.5; */
}
.brand-item.style-64 {
    width: 35%; /* 혹은 flex: 1; */
}

/* 4. 지그재그 마진 (옵션) */
.brand-row.row-odd .brand-item.style-64 { margin-top: 80px; }
.brand-row.row-even .brand-item.style-64 { margin-top: -80px; }

/* 1. Flex 컨테이너인 Row 설정 */
.brand-row {
    display: flex;
    justify-content: space-between; /* 양 끝 정렬 (가운데 간격 자동 조절) */
    align-items: center; /* 세로 중앙 정렬 */
    width: 100%;
    margin-bottom: 120px; /* 행 간격 */
}

/* 2. 큰 이미지 (style-100) : 약 55% 차지 */
.brand-item.style-100 {
    width: 55%; 
    flex: 0 0 55%; /* 강제 너비 고정 (늘어나거나 줄어들지 않음) */
}

/* 3. 작은 이미지 (style-64) : 약 35% 차지 */
.brand-item.style-64 {
    width: 35%;
    flex: 0 0 35%; /* 강제 너비 고정 */
}

/* 4. 이미지 비율 유지 (중요) */
.brand-item .thumb-box {
    width: 100%;
    position: relative;
}
.brand-item img, 
.brand-item video {
    width: 100%;
    height: auto;
    display: block;
}

/* 5. 모바일 대응 (선택사항) */
@media (max-width: 768px) {
    .brand-row {
        flex-direction: column;
        gap: 50px;
    }
    .brand-item.style-100,
    .brand-item.style-64 {
        width: 100%;
        flex: 0 0 100%;
    }
}