@font-face {
    font-family: 'Yeongwol';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2507-2@1.0/YeongwolTTF-Regular.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #faebd7;
}
#container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.contents {
    flex: 1;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
header {
    width: 100%;
    height: 100px;
}
nav {
    width: 900px;
    height: 100px;
    padding-top: 40px;
    float: right;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
}
#top_menu > li {
    float: left;
    position: relative;
}
#top_menu > li > a {
    display: block;
    padding: 20px 50px;
    font-size: 1.1em;
    font-weight: 600;
    color: #7A5D36;
    transition: transform 0.2s;
}
#top_menu > li > a:hover {
    transform: scale(1.1);
}
.main_txt {
    width: 100%;
    height: 200px;
    margin: 10px auto;
    text-align: center;
    margin-top: 50px;
    font-family: 'Yeongwol';
}
.main_txt > p {
    font-size: 1.5em;
    color: #9098a8;
    letter-spacing: 0.5em;
}
.main_txt > h1 {
    font-size: 4em;
    color: #364C7A;
    letter-spacing: 0.5em;
}
.main_img {
    width: 100%;
    height: 100%;
    text-align: center;
}
.main_img > img {
    width: 25%;
    height: auto;
}
footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    background-color: #364C7A;
    color: #D7E2FA;
    font-size: 0.8em;
    line-height: 1.5em;
}
h2 {
    color: #364C7A;
    font-size: 2em;
    text-align: center;
    letter-spacing: 0.3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 50px;
    padding: auto;
    height: 720px;
}
.left {
    margin: auto;
    text-align: center;
    align-items: center;
    justify-content: center;
    grid-row: span 4;
}
.left > img {
    width: 250px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 30px;
}
.about_txt {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: #333;
    text-align: center;
    width: 350px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;
}
h4 {
    font-size: 1.2em;
    font-weight: bold;
    padding: 5px;
    display: block;
}
.vision {
    color: #7A5D36;
    font-size: 30px;
    text-align: center;
    /* font-weight: 100; */
    line-height: 50px;
    margin: 30px;
    font-family: 'Yeongwol';
}
.right {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 15px;
    color: #333;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.right > h3 {
    font-size: 1.2em;
    padding-bottom: 15px;
}
.right > p {
    line-height: 2em;
    padding-left: 15px;
    font-size: 0.9em;
}
.skill {
    position: relative;
    float: left;
}
.skill > ul {
    padding: 0;
    margin: 0;
    display: flex;
}
.skill > ul > li {
    margin: 5px;
}
.skill > ul > li > img {
    width: 50%;
    height: auto;
}
.ct_txt {
    color: #7A5D36;
    font-weight: bold;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    margin: 30px;
}
.ct_box {
    width: 400px;
    background-color: #D7E2FA;
    border-radius: 15px;
    padding: 40px;
    color: #333;
    margin: 20px auto;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.ct_box > p {
    font-size: 1.2em;
    line-height: 2em;
}
.ct_img {
    width: 400px;
    padding: 30px;
    margin: 20px auto;
    text-align: center;
}
.ct_img > img {
    width: 100%;
    height: auto;
}
.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;
    border-radius: 15px;
    overflow: hidden;
    margin: 30px;
}
.image_box img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}
.image_box .hover_img {
    opacity: 0;
}
.image_box:hover .hover_img {
    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);
    z-index: 1;
}
.modal_content {
    width: 80%;
    max-width: 600px;
    margin: 5% auto;
    padding: 20px;
    background-color: #7A5D36;
}
.close {
    color: #364C7A;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
    float: right;
}
.close:hover, .close:focus {
    color: #D7E2FA;
    text-decoration: none;
    cursor: pointer;
}
.modal_content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
#work {
    max-width: 1000px;
    margin: 20px auto;
    width: 100%;
}
.work_list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0;
}
.work_list li {
    margin: 10px;
    padding: 0;
    overflow: hidden;
    flex-basis: calc(33.333% - 20px);
    position: relative;
    border-radius: 15px;
}
.work_list a {
    width: 800px;
    margin: 30px auto;
    text-align: center;
}
.work_list img {
    width: 100%;
    height: auto;
    z-index: 5;
}
.work_list .caption {
    position: absolute;
    top: 200px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.6s ease-in-out;
    z-index: 10;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}
.work_list li:hover .caption {
    opacity: 1;
    transform: translateY(-200px);
}
.cp title {
    color: #D7E2FA;
    text-align: center;
    font-size: 1.5em;
    line-height: 3em;
    padding-top: 20px;
    font-weight: bold;
}
.caption > p {
    color: white;
    text-align: center;
    font-size: 1.1em;
    line-height: 2em;
    padding-top: 20px;
}
iframe {
    width: 1200px;
    height: 800px;
    margin: 20px auto;
    text-align: center;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.3);
}