@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Noto+Sans+KR:wght@400;500;700;900&display=swap');
/* =============================================================================
 * 방수119 (alrimi.net) — 사이트 디자인
 * -----------------------------------------------------------------------------
 * 컨셉      : "누수 경보 · 안전 표지판" — 공사 현장 안전 사인 그래픽.
 *             안전 노랑 + 검정 경고 줄무늬(hazard stripe), 경고 삼각형,
 *             깜빡이는 경광등 점, 경보 단계 카드, 점검표(체크리스트), 안전수칙 명판.
 * 팔레트    : primary   = 안전 노랑 oklch(87% 0.18 95)  (#ffd400 계열)
 *             neutral   = 표지 검정 #141414
 *             accent    = 경보 빨강 oklch(58% 0.23 28)
 *             base      = 콘크리트 #ecebe6 / 표면 #ffffff / 글자 #141414
 * 폰트      : 헤드라인 = Black Han Sans, 본문 = Noto Sans KR
 * 형태      : 라운드 0(표지판 각), 3px 검정 테두리, 하드 섀도 없음(평면 인쇄 사인)
 * -----------------------------------------------------------------------------
 * 규약(STYLE.md): 디자인 수정은 이 파일에서만. 테마(theme/daisyui) 폴더 수정 금지.
 *                 마크업 커스텀은 웹루트 main.php / hero.php 에서만.
 * ============================================================================= */

:root {
    --ink: #141414;
    --safety: #ffd400;
    --alarm: #e3120b;
    --display: 'Black Han Sans', 'Noto Sans KR', sans-serif;
    --hazard: repeating-linear-gradient(-45deg, var(--safety) 0 18px, var(--ink) 18px 36px);

    --color-primary: oklch(87% 0.18 95);
    --color-primary-content: #141414;
    --color-secondary: #141414;
    --color-secondary-content: #ffd400;
    --color-accent: oklch(58% 0.23 28);
    --color-accent-content: #ffffff;
    --color-neutral: #141414;
    --color-neutral-content: #ffd400;

    --color-base-100: #ffffff;
    --color-base-200: #ecebe6;
    --color-base-300: #141414;
    --color-base-content: #141414;

    --radius-box: 0;
    --radius-field: 0;
    --radius-selector: 0;
    --border: 2px;
    --depth: 0;
}

body { font-family: 'Noto Sans KR', system-ui, sans-serif; }

/* ===== 배경: 콘크리트 ===== */
.drawer-content {
    background-color: #e9e8e2;
    background-image:
        radial-gradient(rgba(0,0,0,.05) 1px, transparent 1.2px),
        radial-gradient(rgba(0,0,0,.035) 1px, transparent 1.2px);
    background-size: 7px 7px, 13px 13px;
    background-position: 0 0, 3px 5px;
}

#site-header { background: var(--safety); border-bottom: 4px solid var(--ink); }
#site-header, #site-header a { color: var(--ink); font-weight: 700; }
#site-footer { background: var(--ink); color: #eee; border-top: 10px solid transparent; border-image: var(--hazard) 10; }
#site-footer * { color: #e8e8e8; }
#site-footer a:hover { color: var(--safety); }

/* ===== 표지판 ===== */
.sign { border: 4px solid var(--ink); background: var(--safety); }
.sign-body { padding: 2rem 1.25rem; }
@media (min-width: 768px) { .sign-body { padding: 2.75rem 2.5rem; } }
.hazard { height: 18px; background: var(--hazard); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.sign .hazard:first-child { border-top: 0; }
.sign .hazard:last-child { border-bottom: 0; }

.sign-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.08; color: var(--ink); }
.sign-title mark { background: var(--ink); color: var(--safety); padding: 0 .2em; }
.sign-title--sm { font-size: clamp(2rem, 5vw, 3.2rem); }
.sign-lead { font-size: 1.08rem; line-height: 1.75; font-weight: 500; max-width: 38rem; }

.alert-pill {
    display: inline-flex; align-items: center; gap: .5rem; width: fit-content;
    background: var(--ink); color: var(--safety); font-weight: 900; font-size: .85rem; letter-spacing: .04em;
    padding: .4rem .8rem;
}
.beacon { width: .7rem; height: .7rem; border-radius: 999px; background: var(--alarm); box-shadow: 0 0 0 0 rgba(227,18,11,.7); animation: beacon 1.2s infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(227,18,11,.75); } 70% { box-shadow: 0 0 0 10px rgba(227,18,11,0); } 100% { box-shadow: 0 0 0 0 rgba(227,18,11,0); } }

#site-main .btn-sign { border: 3px solid var(--ink); font-weight: 900; box-shadow: none; }
#site-main .btn-sign.btn-neutral { background: var(--ink); color: var(--safety); }
#site-main .btn-sign.btn-neutral:hover { background: var(--alarm); color: #fff; border-color: var(--alarm); }
#site-main .btn-sign--line { background: transparent; color: var(--ink); }
#site-main .btn-sign--line:hover { background: var(--ink); color: var(--safety); }

/* 경고 삼각형 */
.warn-tri {
    width: 92px; height: 80px; margin: 0 auto .5rem; position: relative;
    background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.warn-tri::before { content: ""; position: absolute; inset: 9px 10px 6px; background: var(--safety); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.warn-tri span { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.warn-tri--sm { width: 56px; height: 48px; margin: 0 0 .6rem; }
.warn-tri--sm::before { inset: 6px 6px 4px; }
.warn-tri--sm span { font-size: 1.6rem; bottom: 3px; }

.warn-plate { background: #fff; border: 4px solid var(--ink); padding: 1.25rem; text-align: center; }
.warn-head { font-family: var(--display); font-size: 1.6rem; margin-bottom: .6rem; }
.warn-list { text-align: left; display: grid; gap: .4rem; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding: .75rem 0; font-weight: 700; }
.warn-list li::before { content: "■ "; color: var(--alarm); }
.warn-foot { margin-top: .7rem; font-weight: 900; color: var(--alarm); }

/* 경보 배너 */
.alert-band { background: var(--ink); color: var(--safety); overflow: hidden; border-top: 3px solid var(--safety); border-bottom: 3px solid var(--safety); }
.alert-band__track { display: inline-block; white-space: nowrap; padding: .5rem 0; font-weight: 900; letter-spacing: .03em; animation: band 40s linear infinite; }
@keyframes band { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .alert-band__track, .beacon { animation: none; } }

/* 섹션 머리 */
.sec-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.sec-head h2 { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; }
.sec-tag { background: var(--safety); border: 3px solid var(--ink); font-weight: 900; font-size: .75rem; letter-spacing: .1em; padding: .25rem .5rem; }

/* 경보 카드 */
.alert-card { position: relative; background: #fff; border: 3px solid var(--ink); padding: 1.25rem 1.1rem 1.1rem; border-top: 12px solid var(--ink); }
.alert-card__lv { position: absolute; top: -12px; right: 10px; background: var(--alarm); color: #fff; font-size: .72rem; font-weight: 900; padding: .1rem .5rem; }
.alert-card__title { font-family: var(--display); font-size: 1.45rem; margin-bottom: .35rem; }

/* 공종 명판 */
.plate { display: flex; gap: .9rem; align-items: center; background: #fff; border: 3px solid var(--ink); padding: .9rem 1rem; transition: transform .12s, background .12s; }
.plate:hover { background: var(--safety); transform: translateY(-2px); }
.plate__no { flex: none; width: 3rem; height: 3rem; display: grid; place-items: center; background: var(--ink); color: var(--safety); font-family: var(--display); font-size: 1.3rem; }
.plate__title { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }

/* 점검표 */
.checklist { background: #fff; border: 3px solid var(--ink); }
.checklist li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 2px dashed var(--ink); }
.checklist li:last-child { border-bottom: 0; }
.checklist__box { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border: 3px solid var(--ink); font-weight: 900; color: var(--alarm); }
.checklist__no { flex: none; font-family: var(--display); font-size: 2rem; width: 2rem; text-align: center; }

/* 안전수칙 명판 */
.rule-plate { border: 3px solid var(--ink); background: #fff; }
.rule-plate__head { background: var(--ink); color: var(--safety); font-weight: 900; padding: .5rem 1rem; letter-spacing: .05em; }
.rule-plate__body { padding: 1.1rem 1rem 1.2rem; }

/* 게시판 */
.board-box { background: #fff; border: 3px solid var(--ink); padding: .5rem 1rem; }

/* 긴급 상담 번호 */
.call-box {
    display: inline-block; background: var(--ink); color: var(--safety); font-family: var(--display);
    font-size: clamp(2.4rem, 8vw, 4.4rem); line-height: 1; padding: .5rem 1.4rem; border: 4px solid var(--ink); margin-top: .5rem;
}
.call-box:hover { background: var(--alarm); color: #fff; }

/* 한글 제목은 어절 단위로 줄바꿈 */
.sign-title, .sec-head h2, .alert-card__title, .plate__title { word-break: keep-all; }
