:root {
  --wine: #8e173d;
  --rose: #d75a78;
  --ink: #2b211c;
  --cream: #f8f1e7;
  --sand: #eadbc8;
  --line: #e2d3c1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Noto Sans KR', sans-serif; }
a { text-decoration: none; color: inherit; }

/* =========================================
   1. 글로벌 이미지 반응형 초기화 
========================================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   2. 헤더 및 상단 메뉴
========================================= */
.topline { height: 36px; padding: 0 8vw; display: flex; align-items: center; justify-content: space-between; background: var(--wine); color: #fff6e9; font-size: 13px; letter-spacing: -.25px; }
.topline a { font-weight: 700; }
header { height: 90px; padding: 0 8vw; display: flex; align-items: center; justify-content: space-between; background: #fffcf8; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #eee3d7; }

.logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; line-height: 1.1; }
/* 로고 이미지 크기 지정 */
.logo-img { height: 56px; width: auto; object-fit: contain; } 
.logo small { display: block; font-size: 13px; color: var(--rose); font-weight: 700; margin-top: 4px; }
.logo .logo-text { display: flex; flex-direction: column; justify-content: center; letter-spacing: -1px; }

nav { display: flex; gap: 31px; font-size: 16px; font-weight: 600; }
nav a:hover { color: var(--wine); }
.call-button { font-size: 15px; border: 1px solid var(--wine); color: var(--wine); padding: 10px 14px; border-radius: 4px; }
.call-button b { font-size: 18px; margin-left: 5px; }

/* 상단 헤더의 상담하기 버튼과 전화번호 숨기기 */
header a[href*="tel:"], 
header a:has-text("상담하기"),
.header-consult-btn, 
.header-phone {
    display: none !important;
}
/* =========================================
   3. 히어로 영역 
========================================= */
.hero { display: block; width: 100%; background: var(--cream); }
.hero-photo { position: relative; margin: 0; width: 100%; height: auto; background: var(--cream); display: flex; align-items: center; justify-content: center; }
.hero-photo img { width: 100%; height: auto; max-height: 85vh; object-fit: contain; }
.hero-photo:after { display: none; }
.hero-photo figcaption { display: none; }

/* =========================================
   4. 타이포그래피 및 일반 버튼 요소 
========================================= */
.kicker { margin: 0 0 15px; color: var(--rose); font-size: 12px; letter-spacing: 2px; font-weight: 800; }
.hero h1, .section h2, .process h2, .contact h2 { font-size: 46px; line-height: 1.3; font-weight: 700; letter-spacing: -2.5px; margin: 0; }
.hero h1 em, .section h2 em, .process h2 em { font-style: normal; color: var(--wine); }
.lead { max-width: 500px; color: #6d6259; font-size: 18px; line-height: 1.85; margin: 25px 0; }
.actions { display: flex; align-items: center; gap: 20px; }
.primary { display: inline-flex; align-items: center; gap: 13px; background: var(--wine); color: #fff; padding: 15px 19px; font-size: 15px; font-weight: 700; }
.primary span { font-size: 20px; }
.text-btn { font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }

/* =========================================
   5. 섹션 (신뢰도 띠 및 센터 소개)
========================================= */
.trust-strip { padding: 20px 12vw; background: #f2e5d5; display: flex; align-items: center; gap: 20px; color: #694f40; font-size: 16px; }
.trust-strip p { font-size: 22px; font-weight: 700; margin: 0; }
.trust-strip a { margin-left: auto; color: var(--wine); font-weight: 800; }

.section { padding: 110px 12vw; }
.about { display: grid; grid-template-columns: .85fr 1fr .9fr; gap: 55px; align-items: center; }
.section-heading h2 { font-size: 42px; }
.about-copy { font-size: 17px; line-height: 2; color: #65594f; }
.about-copy .quote { color: var(--wine); font-size: 24px; font-weight: 700; line-height: 1.65; margin: 0 0 18px; }
.about-copy b { font-size: 15px; color: var(--wine); }

.manager { margin: 0; width: 100%; }
.manager img { width: 100%; height: auto; border-radius: 8px; }

/* =========================================
   6. 서비스 안내 그리드
========================================= */
.services { background: #fcf6ee; }
.wide { position: relative; display: flex; justify-content: space-between; align-items: flex-end; }
.wide > p:not(.kicker) { max-width: 380px; font-size: 15px; line-height: 1.8; color: #75665c; margin: 0; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 45px; width: 100%; }
.service-grid article { background: #fff; display: flex; flex-direction: column; width: 100%; margin: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.service-grid article > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.service-grid article > div { padding: 21px; }
.service-grid span { color: var(--rose); font-size: 12px; font-weight: 800; letter-spacing: .7px; }
.service-grid h3 { margin: 10px 0 8px; font-size: 24px; font-weight: 700; }
.service-grid p { font-size: 15px; color: #75675d; line-height: 1.75; margin: 0; }

.service-grid .service-call { background: var(--wine); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: center; border-radius: 8px; }
.service-call span { color: #ffb3c7; }
.service-call h3 { font-size: 30px; font-weight: 700; line-height: 1.45; margin: 15px 0; }
.service-call p { color: #f5d9df; font-size: 16px; }
.service-call a { margin-top: 23px; border-top: 1px solid #ffffff55; padding-top: 15px; font-size: 16px; font-weight: 800; }
.service-call a b { float: right; font-size: 22px; }

/* =========================================
   7. 이용안내 프로세스 및 돌봄 이야기
========================================= */
.process { display: grid; grid-template-columns: 1.05fr .95fr; background: #f0e0d3; }
.process-photo { width: 100%; display: flex; align-items: center; }
.process-photo img { width: 100%; height: auto; object-fit: cover; }
.process-copy { padding: 99px 10vw 70px 6vw; }
.process h2 { font-size: 42px; }
.process ol { list-style: none; padding: 0; margin: 34px 0; }
.process li { display: flex; gap: 16px; padding: 15px 0; border-top: 1px solid #cdb7a5; }
.process li > b { color: var(--wine); font-size: 15px; }
.process li strong, .process li span { display: block; }
.process li strong { font-size: 18px; }
.process li span { font-size: 15px; color: #755f50; margin-top: 5px; }

.stories { background: #fff; }

/* 네이버 블로그 아이콘 & 텍스트 세로 정렬 구조 */
.naver-blog-link { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity 0.2s; }
.naver-blog-link:hover { opacity: 0.8; }
.naver-blog-link .naver-icon { height: 72px; width: auto; } /* 아이콘 크기 더 크게 설정 */
.naver-blog-link .naver-text { font-size: 15px; font-weight: 700; color: #03c75a; letter-spacing: -0.5px; } /* 네이버 시그니처 그린 컬러 적용 */

.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 44px; width: 100%; }
.story-grid figure { position: relative; margin: 0; width: 100%; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; }

.story-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s; }
.story-grid figure:hover img { transform: scale(1.04); }
.story-grid figcaption { position: absolute; left: 0; bottom: 0; width: 100%; padding: 17px; background: #4c192bdb; color: #fff; font-size: 18px; font-weight: 600; line-height: 1.45; z-index: 2; }

/* =========================================
   8. 지역 안내 및 오시는 길 (푸터 포함)
========================================= */
.area { display: flex; align-items: end; justify-content: space-between; padding-top: 84px; padding-bottom: 84px; background: var(--wine); color: #fff; }
.area .kicker { color: #ffc4d1; }
.area h2 { font-size: 38px; }
.area h2 em { color: #ffcad6; }
.area > p { font-size: 15px; line-height: 2; color: #ffe7ec; text-align: right; }

.contact { padding: 90px 12vw; display: grid; grid-template-columns: 1fr .8fr; gap: 80px; background: #f8efe3; }
.contact h2 { font-size: 42px; }
.contact > div > p:not(.kicker) { line-height: 1.9; color: #6d5a4c; font-size: 17px; margin-top: 25px; }
.contact .route { font-size: 15px; }

.contact-card { display: flex; flex-direction: column; align-items: end; justify-content: center; width: 100%; }
.contact-card img { width: 100%; height: auto; box-shadow: 17px 17px 0 #d9b7aa; border-radius: 8px; }
.contact-card a { margin-top: 24px; width: 100%; background: var(--wine); padding: 15px 18px; color: #fff; font-size: 16px; text-align: center; border-radius: 4px; }
.contact-card a b { font-size: 22px; margin-left: 7px; }
.contact-card a span { float: right; font-size: 22px; }

footer { background: #281b19; color: #eaded2; padding: 38px 12vw; display: flex; align-items: center; justify-content: space-between; }
footer .logo-img { height: 42px; width: auto; filter: grayscale(1) opacity(0.8); }
footer p { font-size: 13px; line-height: 1.8; color: #bdada0; }

/* 푸터 내 네이버 블로그 링크는 배경색에 맞게 텍스트 색상과 크기 약간 조정 */
footer .naver-blog-link .naver-icon { height: 50px; }
footer .naver-blog-link .naver-text { font-size: 13px; color: #bdada0; }

/* =========================================
   9. 미디어 쿼리
========================================= */
@media(max-width: 900px) {
  header { padding: 0 6vw; }
  nav { display: none; }
  .trust-strip { padding: 19px 7vw; display: block; }
  .trust-strip span { display: none; }
  .trust-strip b { display: block; margin: 7px 0; }
  .trust-strip a { display: block; margin-top: 10px; }
  .section { padding: 70px 7vw; }
  .about { grid-template-columns: 1fr; gap: 27px; }
  .about .manager { max-width: 520px; margin: 0 auto; }
  
  .wide { display: block; }
  .wide > p:not(.kicker) { max-width: 100%; margin-top: 16px; }
  .stories .wide > a { margin-top: 20px; }
  
  .process { grid-template-columns: 1fr; }
  .process-copy { padding: 68px 7vw; }
  .area { display: block; }
  .area > p { text-align: left; margin-top: 25px; }
  .contact { padding: 70px 7vw; grid-template-columns: 1fr; gap: 40px; }
  .contact-card { align-items: start; }
  .contact-card img { max-width: 540px; }
  footer { padding: 34px 7vw; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  footer p { margin: 0; }
}

@media(max-width: 540px) {
  .topline { padding: 0 5vw; font-size: 11px; }
  .call-button { padding: 7px; }
  .call-button b { display: none; }
  .logo-img { height: 42px; }
  .section h2, .process h2, .contact h2 { font-size: 34px; }
  .section-heading h2 { font-size: 32px; }
  .area h2 { font-size: 30px; }
}


/* CARE STORIES 확장 그리드 스타일 */
.stories .section-desc {
  margin-top: 10px;
  color: #666;
  font-size: 0.95rem;
}

.expanded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.story-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eaeaea;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.story-item.large {
  grid-column: span 2; /* 최신/강조글은 두 칸 차지 */
}

@media (max-width: 768px) {
  .story-item.large {
    grid-column: span 1; /* 모바일에서는 모두 한 칸씩 차지 */
  }
}

.story-item figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.story-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.placeholder-img {
  width: 100%;
  height: 200px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 0.9rem;
  font-weight: 500;
}

.story-item figcaption {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-item .category {
  font-size: 0.8rem;
  color: #0056b3; /* 아리아케어 톤에 맞는 푸른색 */
  font-weight: 700;
  background: #eef5ff;
  padding: 4px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.story-item strong {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #222;
  margin-top: 4px;
}

.story-item p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2줄 이상 넘어갈 경우 말줄임표 처리 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* --- 변경된 스타일 --- */
