/* 당당 통합 입구 — 디자인 v0.5 (docs\사업발굴\I-18_디자인_v0_5\v05_첫화면_휴대폰) 색 · 글꼴 · 크기 · 간격 그대로
   휴대폰 먼저 · 900px 넘으면 v0.3 PC 넓히는 방식(2단 · 최대 1200)만 */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#FBF7EF;color:#16201B;font-family:"Noto Sans KR",sans-serif;word-break:keep-all;overflow-wrap:anywhere}
a{color:#035B38;text-decoration:none}
a:hover{color:#02412A}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #C2531B;outline-offset:2px}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:430px;margin:0 auto;display:flex;flex-direction:column}
html.bigtext .wrap{zoom:1.18;max-width:calc(430px / 1.18)}

/* 머리 */
.top{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.logo{display:flex;align-items:center;gap:10px;color:#16201B;min-height:44px}
.mark-logo{width:48px;height:48px;flex:0 0 48px;display:block}  /* 로고 원본 (운영자 11/29 04:0x) */
html.bigtext .mark-logo{width:calc(56px / 1.18);height:calc(56px / 1.18);flex-basis:calc(56px / 1.18)}  /* 확대 1.18배 뒤 56px */
.logo-t{font-size:19px;font-weight:900;letter-spacing:-.4px;white-space:nowrap}
/* 글씨 크게(1.18배)에서 390px 한 줄 유지: 머리 줄 여백만 줄임 (로고 56px · 글자 크기 그대로) */
html.bigtext .top{padding-left:12px;padding-right:12px;gap:8px}
html.bigtext .logo{gap:7px}
html.bigtext .big{padding:0 11px}
.big{height:44px;padding:0 14px;border-radius:22px;border:1.5px solid #16201B;background:#fff;color:#16201B;font:700 15px "Noto Sans KR",sans-serif;display:flex;align-items:center;gap:6px;cursor:pointer;flex:0 0 auto}
.big[aria-pressed="true"]{background:#16201B;color:#fff}
.ga{font-family:"Noto Serif KR",serif;font-size:18px}

/* 첫 칸 */
.hero{margin:0 12px;padding:28px 22px 92px;border-radius:28px;background:#E4F2E9;position:relative;overflow:hidden}
.hero h1{margin:0;font-family:"Noto Serif KR",serif;font-weight:900;font-size:38px;line-height:1.28;letter-spacing:-1.2px;color:#0E3B27}
.rollbox{display:inline-flex;height:1.28em;overflow:hidden;vertical-align:top;background:#035B38;color:#fff;padding:0 10px;border-radius:10px}
.roll{display:flex;flex-direction:column;align-self:flex-start;flex:0 0 auto;animation:roll 4.8s ease-in-out .6s 1 forwards}
.roll span{height:1.28em;flex:0 0 auto}
.hand{margin-top:16px;position:relative;display:inline-block}
.hand span{font-family:"Nanum Pen Script",cursive;font-size:27px;color:#16201B}
.hand svg{position:absolute;left:0;bottom:-6px;max-width:100%}
.draw{stroke:#C2531B;stroke-width:3;stroke-linecap:round;stroke-dasharray:260;stroke-dashoffset:260;animation:draw 1.1s ease-out 1s 1 forwards}
.stamp{position:absolute;right:18px;top:28px;width:92px;height:92px;border-radius:50%;border:3px solid #035B38;color:#035B38;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(-9deg);background:rgba(255,255,255,.5);animation:stamp .7s cubic-bezier(.2,.8,.2,1) .2s 1 both}
.stamp i{position:absolute;inset:6px;border-radius:50%;border:1.5px dashed #035B38}
.stamp .s1{font-size:11px;font-weight:700}
.stamp .s2{font-family:"Noto Serif KR",serif;font-size:22px;font-weight:900;line-height:1.1}
@keyframes roll{0%,22%{transform:translateY(0)}28%,47%{transform:translateY(-25%)}53%,72%{transform:translateY(-50%)}78%,100%{transform:translateY(-75%)}}
@keyframes stamp{0%{transform:scale(1.6) rotate(-20deg);opacity:0}70%{transform:scale(.94) rotate(-9deg);opacity:1}100%{transform:scale(1) rotate(-9deg);opacity:1}}
@keyframes draw{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion: reduce){.roll{animation:none;transform:translateY(-75%)}.stamp{animation:none}.draw{animation:none;stroke-dashoffset:0}}

/* 검색 카드 */
.search{margin:-68px 20px 0;position:relative;padding:20px;background:#fff;border-radius:24px;box-shadow:0 18px 40px rgba(22,32,27,.14);display:flex;flex-direction:column;gap:12px}
.search form{display:flex;flex-direction:column;gap:12px}
.lab{display:flex;flex-direction:column;gap:2px}
.lab label{font-size:19px;font-weight:700}
.lab span{font-size:15px;color:#4C5650}
input[type="search"]{height:58px;border:2px solid #16201B;border-radius:16px;padding:0 16px;font:18px "Noto Sans KR",sans-serif;width:100%;background:#fff;color:#16201B;-webkit-appearance:none;appearance:none}
input::placeholder{color:#6B746E}
.go{height:56px;border:0;border-radius:16px;background:#C2531B;color:#fff;font:700 18px "Noto Sans KR",sans-serif;cursor:pointer}
.chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}  /* B안: 6개 · 2줄 · 움직이지 않음 */
.chip{min-height:44px;padding:0 4px;white-space:nowrap;letter-spacing:-.04em;border-radius:22px;background:#F3ECDD;color:#16201B;font-size:15px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.25}

/* 칸 */
.sec{padding:32px 16px 0;display:flex;flex-direction:column;gap:10px}
.two .sec{padding-top:36px}
.sec h2{margin:0 4px 4px;font-family:"Noto Serif KR",serif;font-size:24px;font-weight:900}
.blogs{display:flex;flex-direction:column;gap:10px}
.blog{background:#fff;border:1px solid #E6DFD0;border-radius:20px;padding:14px 16px;display:flex;align-items:center;gap:14px;color:#16201B;min-height:76px}
.mark{width:48px;height:48px;flex:0 0 48px;border-radius:15px;font-family:"Noto Serif KR",serif;font-size:20px;font-weight:900;display:flex;align-items:center;justify-content:center}
.m-supportlife{background:#D7EBDF;color:#035B38}
.m-cardlife{background:#FFE8D9;color:#9A3F12}
.m-healthlife{background:#DCE8F2;color:#1F4E79}
.bt{flex:1;display:flex;flex-direction:column;gap:2px}
.bn{font-size:18px;font-weight:700}
.bd{font-size:15px;color:#4C5650}
.chev{fill:none;stroke:#16201B;stroke-width:2;stroke-linecap:round;flex:0 0 22px}

/* 오늘의 한 장 */
.kick{padding:0 4px}
.kick span{font-size:14px;font-weight:700;color:#A8461A}
.kick h2{margin:4px 0 0}
.card1{background:#FFE8D9;border-radius:26px;padding:20px;display:flex;flex-direction:column;gap:14px}
.card1-in{background:#fff;border-radius:18px;padding:22px;display:flex;flex-direction:column;gap:12px;color:#16201B}
.c1t{font-family:"Noto Serif KR",serif;font-size:29px;font-weight:900;line-height:1.3;letter-spacing:-.8px}
.c1d{font-size:16px;color:#4C5650;line-height:1.55}
.send{height:56px;border:0;border-radius:16px;background:#FEE500;color:#16201B;font:700 17px "Noto Sans KR",sans-serif;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.send svg{fill:none;stroke:#16201B;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.note{margin:-4px 0 0;font-size:13px;color:#4C5650;text-align:center}

/* 이번 달 챙길 것 */
.month{background:#16201B;color:#FBF7EF;border-radius:24px;padding:12px 20px}
.month ol{list-style:none;margin:0;padding:0}
.month li+li{border-top:1px solid #34423A}
.month a{display:flex;gap:10px;align-items:baseline;color:#FBF7EF;font-size:17px;line-height:1.5;padding:10px 0;min-height:44px}
.month a:hover{color:#FFB48A}
.month .no{flex:0 0 auto;color:#FFB48A;font-weight:900}
.short{background:#fff;border:1px solid #E6DFD0;border-radius:20px;padding:14px 16px;display:flex;align-items:center;gap:14px;color:#16201B}
.play{width:48px;height:48px;flex:0 0 48px;border-radius:15px;background:#C2531B;display:flex;align-items:center;justify-content:center}
.play svg{fill:#fff}
.st{flex:1;display:flex;flex-direction:column;gap:2px}
.sk{font-size:14px;font-weight:700;color:#9A3F12}
.sn{font-size:17px;font-weight:700;line-height:1.4}

/* 아래 */
.foot{padding:36px 16px 40px;display:flex;flex-direction:column;gap:14px}
.promise{font-size:15px;color:#035B38;font-weight:700;text-align:center}
.kakao{height:60px;border-radius:18px;background:#FEE500;color:#16201B;font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center}
.kakao:hover{color:#16201B}
.fine{font-size:13px;color:#4C5650;text-align:center;line-height:1.6}

/* 검색 결과 (v0.2 구조 · v0.5 색) */
.rhead{padding:0 16px 16px;border-bottom:1px solid #E6DFD0;display:flex;flex-direction:column;gap:12px}
.back{height:44px;font-size:16px;font-weight:700;color:#16201B;display:flex;align-items:center;gap:6px;align-self:flex-start}
.back svg,.rgo svg{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.rrow{display:flex;gap:8px}
.rrow input{flex:1;min-width:0;height:56px}
.rgo{width:56px;height:56px;flex:0 0 56px;border:0;border-radius:16px;background:#C2531B;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.rtop{padding:22px 16px 6px;display:flex;flex-direction:column;gap:14px}
.rtop h1{margin:0;font-family:"Noto Serif KR",serif;font-size:26px;font-weight:900;line-height:1.35;outline:none}
.filters{display:flex;gap:6px;background:#F3ECDD;padding:5px;border-radius:16px}
.filters button{flex:1;height:46px;border:0;border-radius:12px;font:700 16px "Noto Sans KR",sans-serif;background:transparent;color:#16201B;cursor:pointer}
.filters button[aria-pressed="true"]{background:#16201B;color:#fff}
.rlist{padding:8px 16px;display:flex;flex-direction:column;gap:12px}
.item{background:#fff;border-radius:22px;padding:18px;box-shadow:0 1px 0 #E6DFD0;display:flex;flex-direction:column;gap:10px;color:#16201B}
.item:hover{color:#16201B}
.ib{display:flex;align-items:center;gap:8px}
.ib .mark{width:28px;height:28px;flex:0 0 28px;border-radius:9px;font-size:14px}
.ib span+span{font-size:14px;font-weight:700;color:#4C5650}
.it{font-size:19px;font-weight:700;line-height:1.42}
.id{font-size:16px;color:#4C5650;line-height:1.55}
.ifoot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:4px}
.ic{font-size:13px;color:#035B38;font-weight:700}
.ir{font-size:16px;font-weight:700;color:#16201B;margin-left:auto}
.more{height:52px;border:1.5px solid #16201B;border-radius:16px;background:#fff;font:700 16px "Noto Sans KR",sans-serif;color:#16201B;cursor:pointer}
.none{margin:18px 16px 0;padding:20px;border-radius:22px;background:#F3ECDD;display:flex;flex-direction:column;gap:10px}
.nt{font-family:"Noto Serif KR",serif;font-size:19px;font-weight:900}
.nd{font-size:16px;color:#4C5650}

.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#16201B;color:#fff;padding:12px 18px;border-radius:14px;font-size:16px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:calc(100% - 32px);text-align:center}
.toast.on{opacity:1}
@media (prefers-reduced-motion: reduce){.toast{transition:none}}

/* PC: v0.3 처럼 넓힘 (2단 · 최대 1200) — v0.5 에서 덜어낸 칸은 넣지 않음 */
@media (min-width: 900px){
  .wrap{max-width:1200px;padding:0 32px 24px}
  html.bigtext .wrap{max-width:calc(1200px / 1.18)}
  .top{padding:24px 0}
  .hero-row{display:flex;gap:24px;align-items:stretch}
  .hero{flex:999 1 560px;margin:0;padding:48px}
  .hero h1{font-size:54px}
  .stamp{right:40px;top:40px;width:120px;height:120px}
  .stamp .s1{font-size:14px}
  .stamp .s2{font-size:30px}
  .search{flex:1 1 360px;margin:0;padding:32px;justify-content:center}
  .sec{padding:40px 0 0}
  .blogs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .two .sec{padding-top:40px}
  .foot{padding:40px 0}
  .kakao{width:100%;max-width:520px;align-self:center}
  .rhead,.rtop,.rlist{padding-left:0;padding-right:0}
  .rlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .rlist .more{grid-column:1/-1}
  .none{margin:18px 0 0}
}
