/* 공통 바닥 — 이 시안은 자기 눈금을 갖고 있어 layouts.css 의 눈금을 쓰지 않습니다. */
html { overflow-x: hidden; }
h1, h2, h3, h4 { line-height: 1.3; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* こころね(こころね.com) — 얇은 회색 윗줄(글자 크기·검색), 주황 로고 「cocorone」와 메뉴. 화면을 채우는
   사진 히어로에 자간 넓은 흰 영문 로고, 오른쪽 아래 남색 대각선 조각과 원 배지 → 마름모(회전한 정사각형)
   모자이크: 노랑·검정·주황 색면과 사진이 45도로 맞물리고 그 안에 「서비스」 「방문요양」 「상담지원」 →
   news 목록 → 운영회사·대표 인사 마름모 → 채용 남색 띠 + 사진 → 푸터(로고·전화 노랑·폼 빨강) → 지도
   → 노란 마무리 띠. */
/* 색 전환기(palette.js)가 색을 고르기 전에는 이 시안 본래의 색을 씁니다.
   .js-pal 이 붙으면 palettes.css 의 --primary 가 이깁니다. */
body:not(.js-pal) { --primary: #f0783c; --primary-dk: #b65b2d; --primary-lt: #fde6d9; }
body { --or: var(--primary); --yel: #f6b93b; --navy: #2b3a6b; --red: #d0342c; --ink: #333; }
body { color: var(--ink); font-size: 14px; }
h1, h2, h3 { color: var(--ink); font-weight: 500; }

.top { background: #f2f2f2; font-size: 12px; color: #555; min-height: 30px; display: flex; align-items: center; }
.top .wrap { display: flex; align-items: center; gap: 20px; }
.top__fs { margin-left: auto; }
.top__tel { padding-left: 12px; border-left: 1px solid #bbb; white-space: nowrap; }
.hd { position: relative; z-index: 10; margin-bottom: -80px; }
.hd__in { display: flex; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 700; color: var(--primary-dk); letter-spacing: .02em; }
.logo i { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--or); transform: rotate(-45deg); }
.hd .logo { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.nv { margin-left: auto; display: flex; gap: 30px; font-size: 14px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.nv a { padding: 6px 0; }
.nv a:first-child { border-bottom: 2px solid #fff; }

/* 히어로 — 사진 위 글자가 읽히도록 가운데와 윗줄에만 옅은 그늘을 깝니다 */
.hero { position: relative; height: 960px; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 40% 22% at 50% 47%, rgba(0,0,0,.62), rgba(0,0,0,.3) 60%, rgba(0,0,0,0) 100%), radial-gradient(ellipse 380px 150px at 12% 40px, rgba(0,0,0,.35), rgba(0,0,0,0)), linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0) 220px); }
.hero > :not(img) { z-index: 2; }
.hero__t { position: absolute; left: 0; right: 0; top: 38%; text-align: center; color: #fff; }
.hero__t h1 { color: #fff; font-size: 70px; letter-spacing: .5em; text-indent: .5em; font-weight: 400; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero__t p { font-size: 17px; font-weight: 500; letter-spacing: .2em; margin-top: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 14px rgba(0,0,0,.6); }
.hero__navy { position: absolute; right: -14%; bottom: -46%; width: 48%; height: 80%; background: rgba(43,58,107,.85); transform: rotate(18deg); }
.hero__badge { position: absolute; right: 12%; bottom: 16%; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; text-align: center; font-size: 14px; line-height: 1.6; color: var(--navy); font-weight: 500; }
.hero__btn { position: absolute; right: 8%; bottom: 40px; border: 1px solid #fff; color: #fff; padding: 12px 30px; font-size: 14px; }
.hero__v { position: absolute; right: 30%; bottom: 7%; writing-mode: vertical-rl; color: #fff; font-size: 15px; letter-spacing: .3em; padding: 16px 9px; background: rgba(43,58,107,.9); }
.hero__scroll { position: absolute; left: 50%; bottom: 20px; color: #fff; font-size: 12px; letter-spacing: .3em; transform: translateX(-50%); text-shadow: 0 1px 4px rgba(0,0,0,.6); }

/* 마름모 모자이크 — --s 는 회전 전 정사각형 한 변. 돌리면 폭·높이가 --s×1.414 */
.dia { --s: 960px; position: relative; height: calc(var(--s) * 1.4142 + 80px); overflow: hidden; }
.dia__grid { position: absolute; left: 50%; top: calc(40px + var(--s) * .2071); transform: translateX(-50%) rotate(45deg); width: var(--s); height: var(--s); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 0; }
.dia__grid > * { overflow: hidden; position: relative; }
.dia__grid img { position: absolute; left: -23%; top: -23%; width: 146%; height: 146%; max-width: none; object-fit: cover; transform: rotate(-45deg); }
.c { display: grid; place-items: center; }
.c > div { transform: rotate(-45deg); text-align: center; font-size: 14px; }
.c--y { background: var(--yel); } .c--k { background: #111; color: #fff; } .c--g { background: #d4c68e; }
.c--o { background: var(--or); }
.c--k h2 { color: #fff; }
.c--o h2 { color: #1f1f1f; color: oklch(from var(--or) calc((.66 - l) * 1000) 0 0); }
.c h2 { font-size: 24px; letter-spacing: .1em; line-height: 1.3; }
.c--y h2 { font-size: 19px; letter-spacing: .06em; margin-bottom: 12px; }
.c--y p { font-size: 13px; line-height: 1.75; max-width: 250px; margin: 0 auto 14px; word-break: keep-all; }
.c--y a, .dia__intro a { display: inline-block; background: #fff; color: #333; padding: 7px 18px; font-size: 13px; }
.dia__intro { display: none; }

.news { padding: 40px 0 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.news h3 { font-size: 28px; letter-spacing: .2em; font-weight: 400; margin-bottom: 20px; }
.news li { font-size: 14px; padding: 12px 0; border-bottom: 1px dotted #ccc; }
.news li em { font-style: normal; color: #666; margin-right: 10px; font-size: 13px; }
.news .bt { display: inline-block; margin-top: 24px; background: #555; color: #fff; padding: 8px 22px; font-size: 13px; }
/* 운영·인사 마름모 셋 — 모자이크처럼 변을 맞대고 지그재그 */
.co { position: relative; width: min(566px, 100%); aspect-ratio: 566 / 425; margin-inline: auto; }
.co__d { position: absolute; width: 35.34%; height: 47.06%; transform: rotate(45deg); overflow: hidden; display: grid; place-items: center; }
.co__d:nth-child(1) { left: 7.33%; top: 9.76%; background: #ececec; }
.co__d:nth-child(2) { left: 32.33%; top: 43.06%; background: #fff; box-shadow: inset 0 0 0 1px #ddd; }
.co__d:nth-child(3) { left: 57.33%; top: 9.76%; background: var(--navy); }
.co__d span { transform: rotate(-45deg); font-size: 16px; line-height: 1.5; letter-spacing: .1em; color: #333; text-align: center; }
.co__d small { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .04em; color: #555; }
.co__d img { position: absolute; left: -23%; top: -23%; width: 146%; height: 146%; max-width: none; object-fit: cover; transform: rotate(-45deg); }

.recruit { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 400px; }
.recruit__t { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 40px; padding: 0 60px; }
.recruit__t h3 { color: #fff; writing-mode: vertical-rl; font-size: 24px; letter-spacing: .3em; }
.recruit__t p { font-size: 16px; line-height: 2.1; letter-spacing: .06em; }
.recruit img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }

.ft1 { text-align: center; padding: 56px 0; }
.ft1 .logo { justify-content: center; margin-bottom: 16px; }
.ft1 p { font-size: 14px; margin-bottom: 6px; color: #555; }
.ft1__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.ft1__btns a { padding: 12px 30px; font-size: 15px; font-weight: 700; color: #fff; }
.ft1__btns a:first-child { background: var(--yel); color: #333; } .ft1__btns a:last-child { background: var(--red); }

/* 방문 지역 약도 — 바다(서쪽)·큰길·블록을 그림으로만 그렸습니다 */
.map { position: relative; height: 440px; overflow: hidden; background-color: #eceee6;
  background-image:
    linear-gradient(112deg, transparent 49.2%, #fff 49.2%, #fff 50.8%, transparent 50.8%),
    linear-gradient(18deg, transparent 58.4%, #fff 58.4%, #fff 59.6%, transparent 59.6%),
    linear-gradient(90deg, transparent 71%, #f6f6f1 71%, #f6f6f1 71.6%, transparent 71.6%),
    linear-gradient(#e2e5da 2px, transparent 2px), linear-gradient(90deg, #e2e5da 2px, transparent 2px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px; }
.map::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 24%; background: #cfdfe6;
  clip-path: polygon(0 0, 78% 0, 92% 22%, 70% 40%, 100% 62%, 82% 82%, 96% 100%, 0 100%); }
.map::after { content: ""; position: absolute; left: 44%; top: 26%; width: 30%; height: 44%; border: 2px dashed var(--or); border-radius: 50%; opacity: .7; }
.map i { position: absolute; z-index: 1; background: var(--or); color: #1f1f1f; color: oklch(from var(--or) calc((.66 - l) * 1000) 0 0); font-size: 13px; font-weight: 700; padding: 6px 12px; font-style: normal; white-space: nowrap; box-shadow: 0 3px 8px rgba(0,0,0,.15); transform: translate(-50%, -100%); }
.map i::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--or); }
.map i:nth-child(1) { left: 52%; top: 36%; background: var(--navy); color: #fff; }
.map i:nth-child(1)::after { border-top-color: var(--navy); }
.map i:nth-child(2) { left: 60%; top: 58%; } .map i:nth-child(3) { left: 38%; top: 78%; }

.ft2 { background: var(--yel); padding: 44px 0 34px; text-align: center; font-size: 13px; color: #333; }
.ft2 .share { display: flex; justify-content: center; gap: 12px; align-items: center; margin-bottom: 24px; font-size: 13px; }
.ft2 .sh { width: 36px; height: 36px; border-radius: 50%; background-color: #fff; background-position: center; background-size: 20px; background-repeat: no-repeat; }
.sh--talk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M12 4C7 4 3 7.1 3 11c0 2.5 1.7 4.7 4.2 5.9L6.4 20.5l3.8-2.6c.6.1 1.2.1 1.8.1 5 0 9-3.1 9-7s-4-7-9-7z'/%3E%3C/svg%3E"); }
.sh--link { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23333' stroke-width='2.2' stroke-linecap='round' d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }
.sh--mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='6' width='18' height='12' rx='1.5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E"); }
.ft2 .bn { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.ft2 .bn span { background: #fff; padding: 12px 30px; font-weight: 700; font-size: 14px; }
.ft__legal { margin-bottom: 12px; line-height: 1.8; color: #3a3a3a; }
.ft__legal span + span::before { content: "· "; }
.ft__copy { font-size: 13px; }
.ft2 nav { display: flex; justify-content: center; gap: 8px 22px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; }
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 56px; height: 56px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; text-align: center; font-size: 12px; line-height: 1.2; }

/* 모자이크 안 글이 빠듯해지는 폭 — 노란 마름모의 글은 모자이크 아래 카드로 */
@media (max-width: 1100px) {
  .dia { --s: min(760px, (100vw - 28px) * .7071); height: auto; padding: calc(var(--s) * 1.4142 + 60px) 0 60px; }
  .c--y > div { display: none; }
  .c h2 { font-size: clamp(14px, 2.4vw, 22px); letter-spacing: .06em; }
  .dia__intro { display: block; position: relative; width: min(560px, 100% - 32px); margin: 0 auto; padding: 32px 24px; background: var(--yel); text-align: center; }
  .dia__intro h2 { font-size: 20px; line-height: 1.45; margin-bottom: 12px; }
  .dia__intro p { font-size: 15px; line-height: 1.8; margin-bottom: 18px; word-break: keep-all; }
  .news { gap: 40px; }
}
@media (max-width: 900px) {
  .top { padding: 6px 0; }
  .top__lead { display: none; }
  .top .wrap { justify-content: flex-end; gap: 12px; }
  .hd { margin-bottom: 0; background: #fff; border-bottom: 1px solid #e6e6e6; }
  .hd__in { flex-wrap: wrap; height: auto; padding: 12px 0 0; }
  .hd .logo { color: var(--primary-dk); text-shadow: none; font-size: 24px; }
  .nv { margin-left: 0; width: 100%; justify-content: flex-start; gap: 28px; color: var(--ink); text-shadow: none; font-size: 14px; padding: 8px 0 4px; overflow-x: auto; white-space: nowrap; }
  .nv a { padding: 8px 0; }
  .nv a:first-child { border-bottom-color: var(--primary-dk); }
  .hero { height: 560px; }
  .hero::after { background: radial-gradient(ellipse 70% 20% at 50% 30%, rgba(0,0,0,.6), rgba(0,0,0,.28) 60%, rgba(0,0,0,0) 100%), linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0) 220px); }
  .hero__t { top: 22%; }
  .hero__t h1 { font-size: 36px; letter-spacing: .4em; text-indent: .4em; }
  .hero__t p { font-size: 15px; letter-spacing: .08em; margin-top: 10px; }
  .hero__navy { display: none; }
  .hero__v { right: auto; left: 16px; bottom: 36px; font-size: 14px; padding: 12px 7px; }
  .hero__badge { right: 16px; bottom: 104px; width: 116px; height: 116px; font-size: 13px; }
  .hero__btn { right: 16px; bottom: 36px; padding: 10px 20px; background: rgba(0,0,0,.25); }
  .hero__scroll { display: none; }
  .news, .recruit { grid-template-columns: 1fr; }
  .news { padding: 20px 0 70px; }
  .recruit { grid-template-rows: auto 260px; }
  .recruit__t { padding: 44px 24px; gap: 24px; }
  .recruit__t h3 { font-size: 22px; }
  .recruit__t p { font-size: 15px; line-height: 2; letter-spacing: .02em; }
  .co__d span { font-size: 14px; letter-spacing: .06em; }
  .co__d small { font-size: 12px; margin-top: 2px; }
  .map { height: 320px; }
  .map::after { left: 36%; width: 44%; }
  .map i:nth-child(1) { left: 50%; } .map i:nth-child(2) { left: 58%; } .map i:nth-child(3) { left: 44%; }
  .ft2 .bn span { padding: 12px 20px; }
  .ft__legal span { display: block; margin-bottom: 4px; }
  .ft__legal span + span::before { content: none; }
  .totop { width: 48px; height: 48px; right: 12px; bottom: 12px; }
}
@media (max-width: 600px) { .nv { justify-content: space-between; gap: 10px; } }
@media (max-width: 380px) {
  .nv { font-size: 13px; gap: 8px; }
  .top .wrap { gap: 8px; }
  .top__tel { padding-left: 8px; }
}

/* 한국어 줄바꿈 — 낱말 가운데서 끊지 않기 */
.ft__legal span, .news li, .dia__intro p, .recruit__t p { word-break: keep-all; text-wrap: pretty; }
.ft__legal span { text-wrap: balance; }
/* ── 원래 인라인 style 이던 자리 — CSP 때문에 클래스로 뺐습니다 ── */
