/* 언어설정 */
@charset 'utf-8';

@font-face {
    font-family: 'SUIT-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'KCCHyerim-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/KCCHyerim-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* 전체설정 */
* {
    margin: 0;
    padding: 0;
    font-family: 'SUIT-Regular';
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--main-text);
}

img {
    vertical-align: bottom;
}

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;

}

.body {
    max-width: 100%;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    /* 스크롤 막기 */
    touch-action: none;
    /* 터치 시 흔들림 방지 (모바일 UX 향상) */
}

/* 색상설정 */
:root {
    --main-navi: #204B62;
    --main-text: #333;
    --main-white: #fff;
    --col-gap: 28px;
    --ink: #1c1e21;
    --muted: #6b7280;
    --panel: #ffffff;
    --line: #e5e7eb;
    --brand: #f6c23e;
    /* 상단 메인 포인트 */
    --blue: #dfeffd;
    /* 고소인 섹션 배경 */
    --red: #fde8e8;
    /* 피의자/피고인 섹션 배경 */
    --green: #fcfffd;
    /* 구속 관련 섹션 배경 */
    --ribbon-blue: #385e8d;
    --ribbon-red: #7a2424;
    --ribbon-green: #2f6e4f;
    --accent: #8b8b8b;
    --radius: 18px;
    --shadow: 0 8px 20px rgba(0, 0, 0, .06);
    --text: #0f172a;
    --muted: #475569;
    --chip-bg: #eef6ff;
    --chip-bg-hover: #e2f0ff;
    --chip-text: #204B62;
    --ring: rgba(37, 99, 235, .25);
}

/* 상세설정 ---------------------------------------------------------------------------- */

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    color: var(--main-text);
    line-height: 1.6;
}

.class_wrap {
    max-width: 1600px;
    margin-inline: auto;
    padding: 24px 18px 80px
}

/* ----------------------------- 헤더 ----------------------------- */

.txt {
    background-image: url(/img/job_bg.png);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    width: 100%;
    height: 400px;
    /* 또는 원하는 높이 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.txt h1 {
    font-size: 60px;
    margin-top: 50px;
    font-weight: bold;
    display: inline-block;
    color: #fff;
}


.case-select {
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 16px 32px
}

.case-select__title {
    margin: 0 0 25px;
    font-size: 35px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

.case-select__accent {
    color: #ef4444;
    font-style: normal
}

.case-select__desc {
    margin: 0 0 25px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
    text-align: center;
}


.topic{
    max-width: 650px;
    margin: 0 auto;
    padding: 18px 16px;
}

.topic__list{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

/* a 태그가 row 전체 */
.topic__item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 14px;
    background: #eaf4ff;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
    transition: background .15s ease;
}

.topic__item:hover{
    background: #dfeeff;
}

.topic__item:focus-visible{
    outline: 2px solid rgba(31,45,61,.35);
    outline-offset: 2px;
}

.topic__text{
    font-size: 18px;
    font-weight: 500;
    color: var(--main-text);
    letter-spacing: -0.2px;
}

.topic__icon{
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1f2d3d;
}
/* li 전체를 한 덩어리로 */
.topic__li{
    border-radius: 14px;
}

/* + 버튼을 진짜 버튼처럼 */
.topic__icon--toggle{
    border: 1px solid rgba(31,45,61,.25);
    background: #fff;
    cursor: pointer;
    line-height: 1;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.topic__icon--toggle:hover{
    background: #f6fbff;
    border-color: rgba(31,45,61,.35);
}

.topic__icon--toggle:active{
    transform: scale(.96);
}

/* 펼쳐지는 영역(드롭다운 패널) */
.legal-drop{
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* 리스트 기본 정리 */
.legal-drop__list{
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

/* 항목 링크를 “칩/카드”로 */
.legal-drop__link{
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--chip-bg);
    color: var(--chip-text);
    font-size: 14px;
    line-height: 1.35;
    border: 1px solid rgba(32,75,98,.12);
    transition: background .15s ease, transform .15s ease;
}

.legal-drop__link:hover{
    background: var(--chip-bg-hover);
    transform: translateY(-1px);
}

/* 열렸을 때: + 회전 + 카드 연결 느낌 */
.topic__li.is-open .topic__icon--toggle{
    transform: rotate(45deg);
}

.topic__li.is-open .topic__item{
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.topic__li.is-open .legal-drop{
    margin-top: 6px;
}
