@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'InkLipquid';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/InkLipquid.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
  font-family: 'MoveSans-Bold';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2405-2@1.0/MoveSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'PartialSansKR-Regular';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2307-1@1.1/PartialSansKR-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'RixYeoljeongdo_Regular';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2102-01@1.0/RixYeoljeongdo_Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Ownglyph_corncorn-Rg';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2412-1@1.0/Ownglyph_corncorn-Rg.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Cafe24Ssurround';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2105_2@1.0/Cafe24Ssurround.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color:#FCFCFC ;
    /*padding: 50px;*/
    font-family: 'Pretendard-Regular';
    src: url('//fonts.googleapis.com/earlyaccess/hanna.css');
}
#container{
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /*width: 1700px;*/
}
.content{
    flex: 1;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
}
header{
    width: 100%;
    height: 100px;
}
nav{
    float: right;
    width: 900px;
    height: 100px;
    padding-top: 40px;
}
#top_menu > li{
    float: left;
    position: relative;
}
#top_menu > li > a{
    display: block;
    padding: 20px 30px;
    color: #1B4644;
    font-size: 1.8em;
    font-weight: 0.1em;
    transition: transform 0.15s ;
    font-family: 'Cafe24Ssurround' ;
  }
#top_menu > li > a:hover{
    color: #1B4644;
    text-shadow: 0 - 2px #1B4644 ;
    transform: scale(1.1);
}
footer{
    width: 100%;
    background-color: #1B4644;
    /*position: relative;
    left: 0;
    bottom: 0;*/
    color: #DCE2D4;
    text-align: center;
    font-size: 0.8em;
    line-height: 1.5em;
    padding: 20px;
}
h2{
    font-size: 3em;
    text-align: center;
    color: #80b071;
    letter-spacing: 0.3em;
    margin-top: 5px;
    padding: 20px;
    font-family: 'Cafe24Ssurround';
}
.contents{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 50px 0;
    flex-wrap: wrap;
}
.main_text{
    width: 45%;
    /*height: 400px;
    margin: 10px auto;*/
    text-align: center;
    /*margin: 50px;*/
    font-family: 'InkLipquid';
    padding: 20px;
}
.main_text > p {
    font-size: 1.5em;
    color: grey;
    letter-spacing: 0.5em;
    animation: ani_title 5s;
}
.main_text > h1 {
    font-family: 'Cafe24Ssurround';
    font-weight: 700;
    font-size: 1.2em;
    letter-spacing: -0.02em;
    line-height: 1.4;
    color: #1B4644;
    margin: 20px;
    
    padding: 20px;
    animation: ani_title 5s;
}
.main_img {
    width: 45%;
    /*height: 400px;*/
    text-align: center;
    position: relative;
}
.main_img video {
    width: 100%;
    max-width: 600px;
    height: auto;
    position: relative;
}
.ct_text {
    color: #1B4644;
    font-weight: bold;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    margin: 30px;
    font-family: 'Ownglyph_corncorn-Rg' !important;
}
.ct_box {
    width: 320px;
    background-color: #FCFCFC;
    border-radius: 20px;
    padding: 20px 24px;
    color: #000;
    margin: 30px auto;
    text-align: center;
    line-height: 1.8;
    color: ;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset; 
}
.ct_box > p {
    font-size: 1.2em;
    line-height: 2em;
    font-family: 'Ownglyph_corncorn-Rg';
    text-align: left;
}
.ct_img{
    width: 400px; 
    margin: 20px auto;
    text-align: center;
}
.ct_img > img{
    width: 100%;
    height: auto;
}
.about{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 50px;
    height: 800px;   
    padding: auto;

}
.left{
    grid-row: span 4;
    margin: auto;
    text-align: center;
    align-items: center;
    justify-content: center;
} 
.left > img {
    width: 250px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 30px;
}
.about_text {
    background-color: #FCFCFC;
    border-radius: 15px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset; 
    color: #333;
    width: 350px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    font-family: 'Ownglyph_corncorn-Rg';
}   
h4{
    display: block;
    padding: 5px;
    font-size: 1.4em;
    font-weight: bold;

}
.vision{
    color: #1B4644;
    font-size: 25px;
    line-height: 35px;
    font-weight: bold;
    margin: 30px;
    text-align: center;
    font-family: 'Ownglyph_corncorn-Rg';
}
.right {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0 , 0, 0.3);
    padding: 20px;
    color: #333;    
}
.right > h3 {
    font-size: 1.2em;
    padding-bottom: 15px;
}
.right > p {
    line-height: 2em;
    padding-left: 15px;
}
.sill{
    position: relative;
    float: left;
}
.skill > ul {
    padding: 0;
    margin: 0;
    display: flex;
}
.skill > ul > li {
    margin: 5px;
}
.skill > ul > li > img{
    width: 40%;
    height: auto;
}
#work{
    max-width: 1000px;
    margin: 20px auto;
    width: 100%;
}
.work_list{
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.work_list li {
    padding: 0;
    margin: 10px;
    overflow: hidden;
    flex-basis: calc(33.333% - 20px);
    position: relative;
}
.work_list img{
    width: 100%;
    height: auto;
    z-index: 5;    
}
.work_list .caption {
    position: absolute;
    top: 200px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0 , 0, 0.6);
    opacity: 0;
    transition: all 0.6s ease-in-out;
    z-index: 10;
    margin: 0px auto;
    text-align: center;
    padding: 20px;
}
.work_list li:hover .caption{
    opacity: 1;
    transform: translateY(-200px);
}
.cp_title{
    color: white;
    font-size: 1.5em;
    text-align: center;
}
.caption > p {
    color: white;
    text-align: center;
    font-size: 0.8em;
    line-height: 2em;
    padding-top: 20px;
}
/* 모달창을 띄워서 보여주는 work 페이지 */
.work2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.image-box{
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    margin: 30px;
}
.image-box img{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}
.image-box .hover-imag {
    opacity: 0;
}
.image-box:hover .hover-imag {
    opacity: 1;
}
.modal {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0 , 0, 0.5);   
}
.modal-content {
    background-color: #DCE2D4;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #1B4644;
    width: 80%;
}
.modal-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.close {
    color: black;
    float: right;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
}
.close:hover, .close:focus {
    color: #1B4644;
    text-decoration: none;
    cursor: pointer;
}
iframe{
    border: 1px solid rgba(0, 0 , 0, 0.1);
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 1200px;
    height: 800px;
} 
.work-section {
    padding: auto
}
  
  .custom-bg {
    background-color: #f0f8ff; /* 예: 연한 파랑 */
  }
  .work-section h2{
    padding : 20px
  }
  
  .work-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* 반응형 대비 */
  }
  .work-title {
    padding: 20px; /* 숫자는 상황에 맞게 조절 가능 */
  }
  .work-img img {
    width: 350px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .work-text {
    margin: 20px;
    padding: 20px;

  }
  
  .work-text h3 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .work-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-top: 20px;
  }
/* 텍스트 스타일 */
.main_text {
    padding: 80px;
    font-family: 'Pretendard', sans-serif;
  }
  
  .main_text h1 {
    font-size: 48px;
    font-weight: bold;
    color: #12342b;
    margin-bottom: 10px;
  }
  
  .main_text p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #222;
  }
  
  .cta-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #f5c23c;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s;
  }
  
  .cta-button:hover {
    background-color: #f7d95a;
  }
  
  /* 이미지 배치 */
  .main_img {
    position: relative;
    margin-top: 40px;
  }
  
  .head-base {
    position: relative;
    width: 280px;
    z-index: 1;
  }
  
  .head-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    z-index: 2;
    animation: popUp 1s ease-in-out forwards;
  }
  /* 추가: 캐릭터 전체 래퍼 */
.character-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  /* 추가: 확대경 */
.blue-outline {
    position: absolute;
    left: 210px;
    top: 40px;
    width: 100px;
    z-index: 0;
  }
  /* 추가: 그림자 */
.shadow {
    position: absolute;
    bottom: -20px;
    left: 160px;
    width: 80px;
    z-index: 0;
  }
  .projects {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    background:#fff;
    border-radius: 16px;
    padding: 40px 24px;
    box-shadow: 0px 4px 8px rgba(0, 0 , 0, 0.3);
  }
  .project {
    background-color: #faefdc;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0 , 0, 0.3);
    padding: 16px;
    width: 250px;
    text-align: center;
    transition: transform 0.2s, ease;
  }
  .project h3{
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 21px;
  }
  .project p{
    margin-bottom: 18px;
    font-size: 18px;
    color: #373737;
  }
  .project:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .project img {
    width: 300px;
    height: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
    background: #e9ecef;
  }

  .projects .project-list {
    display: flex;
    justify-content: center; /* 가로축 가운데 정렬*/
    flex-wrap: wrap; /* 줄바꿈 허용*/
    max-width: 1200px; /*최대 너비 설정 */
    margin: 0 auto; /*부모 기준 가운데 정렬*/
    flex-direction: column;
    gap:32px; /*카드 간 간격*/
  }
  .project {
    width: 100%;
  }
/* 모달 스타일 */
.modal2 {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
  }
  .modal2:target {
    display: flex;
  }
  .modal2-content {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px 28px 28px;
    max-width: 800px;
    width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
    animation: modalPop 0.3s;
  }
  @keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }
  .modal2-close {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 2rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
  }
  .modal2-close:hover {
    color: #222;
  }
  .modal2-img {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  }
  .modal2-content iframe {
    width: 100%;
    min-width: 320px;
    max-width: 100vw;
    height: 800px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(35,41,70,0.13);
    margin: 0 auto 24px auto;
    display: block;
    background: #e9ecef;
  } 
  .button {
    display: inline-block;
    padding: 7px 18px;
    background: #1B4644;
    color: #fff;
    border: 1.5px solid rgba(35, 41, 70, 0.18);
    border-radius: 9px;
    font-size: 0.98em;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(35,41,70,0.10);
    cursor: pointer;
    transition: background 0.22s, color 0.18s, transform 0.18s, box-shadow 0.18s;
    margin-top: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
  }
  /*.button::after {
    content: '→';
    display: inline-block;
    margin-left: 7px;
    font-size: 1em;
    transition: transform 0.2s;
    vertical-align: middle;
  }*/
  .button:hover {
    background: rgba(255,255,255,0.32);
    color: #121629 !important;
    border: 1.5px solid #232946;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 28px rgba(35,41,70,0.16);
  }
  .button:hover::after {
    transform: translateX(3px);
  }
  .projects .project-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-content: center;
  }
  @media (max-width: 1200px) {
    .projects .project-list {
      flex-direction: column;
      gap: 20px;
    }
  }
  @media (max-width: 900px) {
    .projects .project-list {
      flex-direction: column;
      gap: 20px;
    }
  }
  @media (max-width: 600px) {
    .projects .project-list {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 700px) {
    .modal2-content iframe {
      height: 450px;
    }
  @keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }
  /* 머리 위로 올라가는 모션 */
  @keyframes popUp {
    0% { transform: translateY(0); opacity: 0; }
    60% { transform: translateY(-80px); opacity: 1; }
    100% { transform: translateY(-60px); }
  } 
  .projects .project-list {
    flex-direction: column;
    gap: 20px;
  }
  .project {
    width: 100%;  
} 
.modal2-close {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 2rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
  }
  .modal2-content iframe {
    width: 100%;
    min-width: 320px;
    max-width: 100vw;
    height: 800px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(35,41,70,0.13);
    margin: 0 auto 24px auto;
    display: block;
    background: #e9ecef;
  }
  .modal2-close:hover {
    color: #222;
  }
  .modal2-img {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  }
  .project-wrapper {
    background-color: #999;
    padding: 40px 40px;
    border-radius: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }
  @keyframes ani_title {
    from{opacity: 0.0;}
    to{opacity: 1.0;}}