*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{

font-family:"맑은 고딕";

transition:.4s;

min-height:100vh;
}

header{

display:flex;

justify-content:space-between;

align-items:center;

padding:20px 60px;

position:sticky;

top:0;

background:white;

box-shadow:0 2px 10px rgba(0,0,0,.1);

z-index:999;
}

.hero{

height:60vh;

display:flex;

justify-content:center;

align-items:center;
}

.card{

width:700px;

padding:50px;

text-align:center;

border-radius:20px;

background:white;

box-shadow:0 10px 25px rgba(0,0,0,.1);
}

.card h1{

margin-bottom:20px;

font-size:50px;
}

.card p{

font-size:22px;

line-height:1.8;
}

.menu-grid{

width:90%;

margin:auto;

display:grid;

grid-template-columns:repeat(2,1fr);

gap:30px;

padding-bottom:80px;
}

.menu-card{

background:white;

padding:40px;

border-radius:20px;

box-shadow:0 10px 25px rgba(0,0,0,.1);

font-size:25px;

cursor:pointer;

transition:.3s;
}

.menu-card:hover{

transform:translateY(-10px);
}

.menu-card h3{

margin:15px 0;
}

.official{

background:#eef4ff;
}

.official .menu-card{

border-left:8px solid #183A6F;
}

.unofficial{

background:#fff9e6;
}

.unofficial .menu-card{

border-left:8px solid #D4A017;
}

.switch{

position:relative;

display:inline-block;

width:60px;

height:34px;
}

.switch input{

display:none;
}

.slider{

position:absolute;

top:0;

left:0;

right:0;

bottom:0;

background:#183A6F;

border-radius:30px;

cursor:pointer;
}

.slider:before{

content:"";

position:absolute;

width:26px;

height:26px;

left:4px;

bottom:4px;

background:white;

border-radius:50%;

transition:.3s;
}

input:checked + .slider{

background:#D4A017;
}

input:checked + .slider:before{

transform:translateX(26px);
}
#introScreen{

position:fixed;
overflow:hidden;

top:0;
left:0;

width:100%;
height:100vh;

background:
linear-gradient(
rgba(245,240,225,0.95),
rgba(245,240,225,0.95)
);

color:#2b2b2b;

display:flex;

justify-content:center;
align-items:center;

z-index:9999;
}

.intro-content{

text-align:center;

max-width:800px;
padding:40px;
}

.intro-content h1{

font-size:72px;

margin-bottom:20px;

letter-spacing:4px;
}

#typingText{

font-size:22px;

line-height:2;

color:#333;

margin-top:20px;

min-height:220px;

word-break:keep-all;
}

.enter-wrap{
    width:100%;
    text-align:center;
    margin-top:30px;
}

#enterBtn{
    display:inline-block;
    visibility:hidden;
    opacity:0;

    padding:16px 40px;
    font-size:20px;

    background:#7a5528;
    color:white;

    border:none;
    border-radius:50px;

    cursor:pointer;
    transition:opacity .5s ease, transform .3s ease, background .3s ease;
}

#enterBtn.show{
    visibility:visible;
    opacity:1;
}

#enterBtn:hover{
    background:#5e401c;
    transform:scale(1.05);
}



.sagwan{

width:320px;

margin-bottom:20px;

animation:float 2.5s ease-in-out infinite;
}

@keyframes float{

0%{
transform:translateY(0);
}

50%{
transform:translateY(-10px);
}

100%{
transform:translateY(0);
}

}
@keyframes fadeIn{

from{

opacity:0;
transform:translateY(30px);

}

to{

opacity:1;
transform:translateY(0);

}

}
.intro-layout{

display:flex;

align-items:center;

gap:60px;
}

.speech-bubble{

background:#fffaf0;
border:2px solid rgba(80,50,20,0.18);
backdrop-filter: blur(2px);

padding:40px;

border-radius:30px;

width:750px;

box-shadow:
0 15px 35px rgba(0,0,0,.15);

position:relative;

word-break: keep-all;
}

.speech-bubble::before{

content:"";

position:absolute;

left:-30px;

top:120px;

width:0;
height:0;

border-top:20px solid transparent;
border-bottom:20px solid transparent;

border-right:30px solid white;
}

.speech-bubble h1{

font-size:55px;

margin-bottom:25px;

color:#4b2e16;
}

#introScreen::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;

background:
radial-gradient(circle at 20% 30%, rgba(90,60,30,0.08), transparent 25%),
radial-gradient(circle at 80% 70%, rgba(0,0,0,0.06), transparent 30%),
linear-gradient(90deg, rgba(120,90,50,0.04) 1px, transparent 1px),
linear-gradient(rgba(120,90,50,0.04) 1px, transparent 1px);

background-size:
700px 700px,
800px 800px,
24px 24px,
24px 24px;

pointer-events:none;
z-index:-1;
}
.project-title{
    font-size:24px;
    color:#8a6a3a;
    margin-bottom:12px;
    letter-spacing:2px;
    font-weight:600;
}
#introScreen{
    transition:opacity 1s ease, transform 1s ease;
}

#introScreen.hide{
    opacity:0;
    transform:scale(1.05);
    pointer-events:none;
}

#mainContent{
    display:none;
}

#mainContent.show{
    display:block;
    animation:mainFadeIn 1s ease forwards;
}

@keyframes mainFadeIn{
    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================
   메인 화면
========================= */

.main-header{
    height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 36px;

    background:var(--main-color);

    border-bottom:2px solid var(--main-color);

    transition:.4s;
}

.main-logo{
    font-size:30px;
    font-weight:800;
    color:white;

}

.mode-toggle-box{
    display:flex;
    align-items:center;
    gap:18px;
    padding:10px 24px;
    background:linear-gradient(90deg,#07327c,#a36b00);
    color:white;
    border-radius:40px;
    font-size:22px;
    font-weight:700;
}

.header-icons{
    font-size:26px;
    letter-spacing:12px;
    color:white;
}

.main-layout{
    display:grid;
    grid-template-columns:300px 1fr 300px;
    gap:20px;
    padding:18px;
    background:#eef4ff;
    min-height:780px;
}

.left-panel,
.right-panel{
    background:rgba(255,255,255,0.75);
    border:1px solid #183A6F;
    border-radius:12px;
    padding:16px;
}

.list-title{
    font-weight:800;
    color:#09266b;
    padding-bottom:16px;
    border-bottom:1px solid rgba(24,58,111,.25);
    margin-bottom:12px;
}

.event-item{
    padding:14px 8px;
    border-bottom:1px solid rgba(24,58,111,.2);
}

.event-item strong{
    display:block;
    font-size:17px;
    color:#081f58;
    margin-bottom:6px;
}

.event-item span{
    font-size:13px;
    color:#333;
}

.center-panel{
    min-width:0;
}

.hero-banner{
    height:390px;

    position:relative;
    overflow:hidden;

    border-radius:16px;
    border:1px solid rgba(24,58,111,.25);
    background:
    radial-gradient(circle at 18% 30%, rgba(0,0,0,0.22), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(0,0,0,0.16), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(120,80,30,0.10), transparent 45%),
    linear-gradient(rgba(255,248,235,0.96), rgba(255,248,235,0.96));

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:#08245c;


}

.hero-banner h1{
    font-size:64px;
    margin-bottom:26px;
}

.hero-banner p{
    font-size:20px;
    line-height:1.8;
}

.feature-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-top:18px;
}

.feature-card{
    text-decoration:none;
    color:#071b55;
    background:rgba(255,255,255,.85);
    border:1px solid rgba(24,58,111,.5);
    border-radius:14px;
    padding:22px 16px;
    min-height:210px;
    text-align:center;
    transition:.3s;
}

.feature-card:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.num{
    width:auto;
    height:auto;
    margin:0 auto 18px;
    border-radius:50%;
    background:none;
    color:white;
    display:block;
    align-items:center;
    justify-content:center;
    font-size:42px;
    font-weight:800;
}

.feature-card h3{
    font-size:22px;
    margin-bottom:18px;
}

.feature-card p{
    font-size:15px;
    line-height:1.7;
}

.era-flow{
    margin-top:22px;
    background:rgba(255,255,255,.75);
    border-radius:14px;
    padding:18px;
}

.era-flow h2{
    color:#08245c;
    font-size:22px;
    margin-bottom:14px;
}

.era-line{
    display:flex;
    justify-content:space-between;
    border-top:2px solid rgba(24,58,111,.25);
    padding-top:16px;
    color:#08245c;
    font-weight:700;
    text-align:center;
}

.search-card,
.info-card,
.report-card{
    background:rgba(255,255,255,.85);
    border:1px solid rgba(24,58,111,.35);
    border-radius:12px;
    padding:18px;
    margin-bottom:16px;
}

.search-card h3,
.info-card h3,
.report-card h3{
    color:#08245c;
    margin-bottom:14px;
}

.search-input{
    display:flex;
    align-items:center;
    border:1px solid rgba(24,58,111,.35);
    border-radius:20px;
    padding:8px 12px;
    margin-bottom:18px;
}

.search-input input{
    border:none;
    outline:none;
    flex:1;
    background:transparent;
}

.keywords{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    font-size:14px;
    color:#071b55;
}

.info-card p{
    font-size:14px;
    line-height:1.7;
}

.report-card img{
    width:150px;
    display:block;
    margin:10px auto 0;
}

.main-footer{
    background:#08245c;
    color:white;
    padding:18px 36px;
    font-size:14px;
}

.jeongsamode{

--main-color:#08245c;
--sub-color:#dfe8ff;
}

.yasamode{

--main-color:#d4a017;
--sub-color:#fff9e8;
}

.hero-banner::before{

content:"";

position:absolute;

top:-50px;
left:-50px;

width:500px;
height:500px;

background:
radial-gradient(
circle,
rgba(0,0,0,0.08) 0%,
rgba(0,0,0,0.03) 40%,
transparent 70%
);

pointer-events:none;
}

.hero-banner::after{

content:"";

position:absolute;

right:-120px;
bottom:-120px;

width:450px;
height:450px;

background:
radial-gradient(
circle,
rgba(0,0,0,0.05) 0%,
transparent 70%
);

pointer-events:none;
}

/* =========================
   좌측 메뉴 남색화
========================= */

.left-panel{
    background:
        linear-gradient(
            180deg,
            #071b35,
            #061426
        );

    color:white;

    border:none;
    border-radius:0;

    padding:18px 12px;

    overflow-y:auto;
    max-height:calc(100vh - 82px);
}

.archive-logo-box{
    text-align:center;

    padding:22px 10px 26px;

    border-bottom:1px solid rgba(255,255,255,0.18);

    margin-bottom:14px;
}

.archive-mark{
    font-size:34px;

    margin-bottom:8px;

    color:#d4a017;
}

.archive-logo-box h3{
    font-size:17px;

    color:#f5d77a;

    margin-bottom:4px;
}

.archive-logo-box p{
    font-size:11px;

    color:rgba(255,255,255,0.65);
}

.left-panel .list-title{
    color:white;

    background:rgba(255,255,255,0.06);

    border:1px solid rgba(255,255,255,0.12);

    border-radius:8px;

    padding:14px 16px;

    margin-bottom:10px;

    font-weight:800;
}

.left-panel .event-item{
    display:flex;

    gap:12px;

    align-items:center;

    padding:13px 14px;

    margin-bottom:6px;

    border-radius:8px;

    border:1px solid rgba(255,255,255,0.1);

    background:rgba(255,255,255,0.04);

    transition:.25s;

    cursor:pointer;
}

.left-panel .event-item:hover{
    background:rgba(255,255,255,0.12);

    transform:translateX(4px);
}

.left-panel .event-item.active{
    background:
        linear-gradient(
            90deg,
            rgba(212,160,23,0.75),
            rgba(212,160,23,0.28)
        );

    border-color:rgba(255,220,120,0.5);
}

.event-icon{
    width:34px;
    height:34px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(255,255,255,0.1);

    border-radius:6px;

    font-size:18px;

    flex-shrink:0;
}

.left-panel .event-item strong{
    display:block;

    color:white;

    font-size:15px;

    margin-bottom:4px;
}

.left-panel .event-item p{
    color:rgba(255,255,255,0.7);

    font-size:12px;

    margin:0;
}

.left-panel::-webkit-scrollbar{
    width:8px;
}

.left-panel::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,0.25);

    border-radius:10px;
}

/* 좌측 메뉴 최종 수정 */

.left-panel{
    background:#061b36 !important;
}

.left-panel .event-item{
    display:flex;
    gap:12px;
    align-items:center;
    background:rgba(255,255,255,0.04) !important;
}

.left-panel .event-item strong,
.left-panel .event-item p,
.left-panel .event-item span{
    color:white !important;
}

.left-panel .event-item p{
    font-size:12px;
    opacity:0.75;
}

.left-panel .event-item:hover{
    background:linear-gradient(
        90deg,
        rgba(212,160,23,0.85),
        rgba(212,160,23,0.35)
    ) !important;
}

.left-panel .event-item.active{
    background:linear-gradient(
        90deg,
        rgba(212,160,23,0.9),
        rgba(212,160,23,0.4)
    ) !important;
}

.event-desc{
    margin-top:3px !important;
    font-size:11px !important;
    color:rgba(255,255,255,0.6) !important;
}

/* =========================
   중앙 배너 업그레이드
========================= */

.hero-banner{

    height:420px;

    display:grid;

    grid-template-columns:1fr 140px 1fr;

    align-items:center;

    overflow:hidden;

    border-radius:16px;

    margin-bottom:20px;
}

.hero-left{

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;

    padding:50px;

    background:
    linear-gradient(
        180deg,
        #0b2d6b,
        #183A6F
    );

    color:white;
}

.hero-right{

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;

    padding:50px;

    background:
    linear-gradient(
        180deg,
        #e2b93b,
        #d4a017
    );

    color:white;

    text-align:center;
}

.hero-center{

    display:flex;

    justify-content:center;

    align-items:center;
}

.hero-seal{

    width:120px;
    height:120px;

    border-radius:50%;

    background:#fff5d8;

    border:6px double #a56b00;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    font-weight:800;

    color:#7a5528;

    line-height:1.6;

    box-shadow:0 6px 16px rgba(0,0,0,.15);
}

.hero-label{

    font-size:14px;

    opacity:0.8;

    margin-bottom:14px;

    letter-spacing:1px;
}

.hero-left h1,
.hero-right h1{

    font-size:42px;

    margin-bottom:20px;
}

.hero-left p,
.hero-right p{

    font-size:18px;

    line-height:1.8;
}

.yasabadge-wrap{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    margin:18px 0;
}

.yasabadge{

    width:52px;

    height:52px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:#d4a017;

    color:white;

    font-size:26px;

    font-weight:800;

    box-shadow:
    0 4px 10px rgba(0,0,0,.12);
}

.plus{

    font-size:24px;

    font-weight:800;

    color:#7a5528;
}

.report-card{

    text-align:center;

    position:relative;
}

.report-bubble{

    background:#fffaf0;

    position:relative;

    z-index:2;

    border:2px solid rgba(120,90,40,.25);

    border-radius:20px;

    padding:16px;

    margin-bottom:12px;

    line-height:1.8;

    color:#5a3f1e;

    font-weight:600;

    position:relative;
}



.report-sagwan{

    width:130px;

    margin-top:8px;
}

.report-btn{

    margin-top:12px;

    padding:12px 20px;

    border:none;

    border-radius:30px;

    background:#7a5528;

    color:white;

    cursor:pointer;

    transition:.3s;
}

.report-btn:hover{

    transform:translateY(-2px);

    background:#5d3e18;
}

.bubble-tail{
    width:0;
    height:0;

    border-left:14px solid transparent;
    border-right:14px solid transparent;
    border-top:14px solid #f2e7cf;

    position:absolute;
    bottom:-14px;
    left:50%;
    transform:translateX(-50%);
}