@import url(//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSansNeo.css);

:root {
    --std: calc(16px * 1.5);
    --max: 840px;
    --half: calc((100% - var(--max)) / 2);
    --middle: 2rem;
    --basic: 1rem;
}

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    line-height: 1;
    list-style-type: none;
    color: inherit;
    font-size: inherit;
    font-family: 'Spoqa Han Sans Neo', 'sans-serif';
    font-weight: inherit;
    text-decoration: none;
    text-transform: none;
}

html {
    font-size: 16px;
    font-weight: 500;
}

#app {
    width: 100%;
}

#app.dark {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}

#main-header {
    padding: calc(var(--std) * 1.0) calc(var(--std) * 1.0);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    font-size: var(--middle);
    font-weight: 700;
    z-index: 100;
}

.menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: calc(var(--std) * 1.0);
}

#main-menu > .item-menu > a {
    padding-bottom: 0.1em;
    border-bottom: 3px solid rgb(0, 0, 0);
}

#main-menu > .item-menu.active > a {
    color: rgb(255, 255, 255);
    border-bottom: 3px solid rgb(255, 255, 255);
}

#app.dark #main-menu > .item-menu > a {
    border-bottom: 3px solid rgb(255, 255, 255);
}

#home {
    text-align: center;
}

#main-graphic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

#main-content {
    position: relative;
    z-index: 10;
}

#app.index > #main-content {
    padding: calc(var(--std) * (3.0 + 1.0)) var(--half);
    width: 100%;
    height: 100vh;
}

#additional {
    position: relative;
    padding: calc(var(--std) * 1.0) var(--half);
    padding-bottom: calc(var(--std) * 3.0);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.9);
    color: rgb(255, 255, 255);
    backdrop-filter: blur(4px);
    z-index: 200;
}

.item-additional {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: calc(var(--std) * 0.5);
}

.item-additional > .heading {
    font-weight: 700;
}

#main-footer {
    padding: calc(var(--std) * 1.0) calc(var(--std) * 1.0);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    z-index: 100;
}

.item-main-footer:nth-child(1) {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: calc(var(--std) * 1.0);
}

.item-main-footer:nth-child(1) > .menu {
    gap: calc(var(--std) * 0.5);
}

.item-main-footer:nth-child(1) > .menu > .item-menu {
    width: calc(var(--std) * 2.0);
    height: calc(var(--std) * 2.0);
    overflow: hidden;
    border-radius: 100%;
    border: 1px solid rgba(220, 220, 220, 0.5);
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
            box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
}

.item-main-footer:nth-child(1) > .menu > .item-menu > a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    font-size: 0.8rem;
}

.item-main-footer:nth-child(1) > .menu > .item-menu > a:hover {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}

.item-main-footer:nth-child(2) > .date {
    font-size: var(--middle);
    font-weight: 700;
    padding-bottom: 0.1em;
    border-bottom: 3px solid rgb(0, 0, 0);
}

/* page */
#app.page > #main-content {
    padding: calc(var(--std) * 7.5) var(--half);
    width: 100%;
    height: auto;
    min-height: 100vh;
}

#app.page > #main-graphic > canvas {
    opacity: 0.25;
}

#app.page > #main-graphic::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(var(--g-bottom), 0.5), rgba(var(--g-top), 0.5));
}

/* 배경 그라디언트 (가이드 맵 색상) */
#app.page {
    --g-bottom: 230, 35, 130;
    --g-top: 100, 195, 215;
}

#app.page.g-cyan-red { --g-bottom: 234, 90, 95;  --g-top: 0, 186, 239; }
#app.page.g-pink     { --g-bottom: 235, 110, 149; --g-top: 245, 175, 195; }
#app.page.g-red      { --g-bottom: 234, 90, 95;  --g-top: 245, 165, 168; }
#app.page.g-orange   { --g-bottom: 241, 142, 30; --g-top: 247, 190, 110; }
#app.page.g-green    { --g-bottom: 67, 177, 83;  --g-top: 150, 215, 160; }

#section-header {
    width: 100%;
    margin-bottom: calc(var(--std) * 4.0);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: calc(var(--std) * 1.0);
}

#section-header > a {
    font-size: var(--middle);
    font-weight: 700;
    padding-bottom: 0.1em;
    border-bottom: 3px solid rgb(0, 0, 0);
}

#section-header > a.active {
    color: rgb(255, 255, 255);
    border-bottom: 3px solid rgb(255, 255, 255);
}

#wrap-section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: calc(var(--std) * 4.0);
}

.section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: calc(var(--std) * 1.0);
}

.section .heading {
    padding: 1em;
    width: 100%;
    border-radius: 100px;
    border: 1px solid rgba(220, 220, 220, 0.5);
    background-color: rgba(100, 195, 215, 0.9);
    color: rgb(255, 255, 255);
    backdrop-filter: blur(4px);
    -webkit-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
            box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
}

.section .heading p {
    font-size: 1.5rem;
    line-height: 1.5;
    text-align: center;
    font-weight: 700;
}

.section .content {
    padding: calc(var(--std) * 1.5);
    width: 100%;
    border-radius: 1em;
    border: 1px solid rgba(220, 220, 220, 0.5);
    background-color: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(4px);
    -webkit-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
            box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
}

.section .content p {
    font-size: 1.125rem;
    line-height: 1.5;
}

.section .content p strong {
    font-weight: 700;
    color: rgb(100, 195, 215);
}

/* 가이드 맵 색상 */
.section.c-cyan   { --accent: 0, 186, 239; }
.section.c-pink   { --accent: 235, 110, 149; }
.section.c-red    { --accent: 234, 90, 95; }
.section.c-orange { --accent: 241, 142, 30; }
.section.c-green  { --accent: 67, 177, 83; }

.section[class*="c-"] .heading {
    background-color: rgba(var(--accent), 0.9);
}

.section[class*="c-"] .content p strong {
    color: rgb(var(--accent));
}

.thumb.ratio-16-9 {
    width: 100%;
    height: 0;
    padding-top: calc(100% * (4 / 3));
    border: 1px solid rgba(220, 220, 220, 0.5);
    background-color: rgba(220, 220, 220, 0.9);
}

.thumb.ratio-1-1 {
    width: 100%;
    height: 0;
    padding-top: calc(100% * (1 / 1));
    border: 1px solid rgba(220, 220, 220, 0.5);
    background-color: rgba(220, 220, 220, 0.9);
}

.thumb.profile {
    max-width: 12rem;
    padding-top: 12rem;
}

.section .content .entry + .entry {
    margin-top: calc(var(--std) * 1.0);
    padding-top: calc(var(--std) * 1.0);
    border-top: 1px solid rgba(200, 200, 200, 0.8);
}

.slogan img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
    height: auto;
}

.guide-map-wrap {
    width: 100%;
    overflow-x: auto;
}

.guide-map {
    display: block;
    width: 100%;
    min-width: 720px;
    height: auto;
}

.guide-map .hot {
    fill: rgba(255, 255, 255, 0);
    stroke: rgba(0, 0, 0, 0);
    stroke-width: 3;
    cursor: pointer;
    -webkit-transition: fill 0.15s, stroke 0.15s;
    transition: fill 0.15s, stroke 0.15s;
}

.guide-map a:hover .hot,
.guide-map a:focus .hot {
    fill: rgba(255, 255, 255, 0.35);
    stroke: rgb(0, 0, 0);
}

.guide-map a:hover {
    opacity: 1;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table-wrap table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    text-align: center;
}

.table-wrap th,
.table-wrap td {
    padding: 0.75em 0.5em;
    border: 1px solid rgb(200, 200, 200);
    line-height: 1.5;
}

.table-wrap thead th {
    font-weight: 700;
    background-color: rgba(100, 195, 215, 0.3);
}

.table-wrap tbody th {
    font-weight: 700;
}

.map {
    width: 100%;
    height: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: calc(var(--std) * 0.75);
}

.map {
    --map-h: calc(var(--std) * 3.0 + 2rem + 2px);
}

.map > a {
    height: var(--map-h);
    padding: 0 calc(var(--std) * 2.0);
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    overflow: hidden;
    white-space: nowrap;
    -webkit-animation: map-grow 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
            animation: map-grow 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    border-radius: 100px;
    border: 1px solid rgba(220, 220, 220, 0.5);
    -webkit-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
            box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
    font-size: 2rem;
}

/* 처음엔 원 → 가로로 늘어나는 애니메이션 */
@-webkit-keyframes map-grow {
    from { width: var(--map-h); color: rgba(255, 255, 255, 0); }
    40%  { color: rgba(255, 255, 255, 0); }
    to   { width: 100%; color: rgb(255, 255, 255); }
}

@keyframes map-grow {
    from { width: var(--map-h); color: rgba(255, 255, 255, 0); }
    40%  { color: rgba(255, 255, 255, 0); }
    to   { width: 100%; color: rgb(255, 255, 255); }
}

.map > a:nth-child(2) { animation-delay: 0.1s; }
.map > a:nth-child(3) { animation-delay: 0.2s; }
.map > a:nth-child(4) { animation-delay: 0.3s; }
.map > a:nth-child(5) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .map > a {
        -webkit-animation: none;
                animation: none;
    }
}

/* heading: 원 → 가로로 열리는 애니메이션 (화면에 들어올 때 .in 추가) */
.section .heading {
    --head-h: calc(2rem + 2.25rem + 2px);
}

.js .section .heading {
    -webkit-clip-path: inset(0 calc(100% - var(--head-h)) 0 0 round 100px);
            clip-path: inset(0 calc(100% - var(--head-h)) 0 0 round 100px);
}

.js .section .heading.in {
    -webkit-animation: heading-grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
            animation: heading-grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    -webkit-clip-path: none;
            clip-path: none;
}

@-webkit-keyframes heading-grow {
    from { -webkit-clip-path: inset(0 calc(100% - var(--head-h)) 0 0 round 100px); clip-path: inset(0 calc(100% - var(--head-h)) 0 0 round 100px); }
    to   { -webkit-clip-path: inset(0 0 round 100px); clip-path: inset(0 0 round 100px); }
}

@keyframes heading-grow {
    from { -webkit-clip-path: inset(0 calc(100% - var(--head-h)) 0 0 round 100px); clip-path: inset(0 calc(100% - var(--head-h)) 0 0 round 100px); }
    to   { -webkit-clip-path: inset(0 0 round 100px); clip-path: inset(0 0 round 100px); }
}

@media (prefers-reduced-motion: reduce) {
    .js .section .heading,
    .js .section .heading.in {
        -webkit-animation: none;
                animation: none;
        -webkit-clip-path: none;
                clip-path: none;
    }
}

/* 로고 그리드 (업체명 - 로고 이미지) */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--std) * 0.75);
}

.logo-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 12%;
    border: 1px solid rgba(220, 220, 220, 0.9);
    background-color: rgba(220, 220, 220, 0.9);
    color: rgb(150, 150, 150);
}

.logo-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.section .content .logo-name {
    margin-top: 0.5em;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.section .content .logo-desc {
    margin-top: 0.25em;
    font-size: 0.875rem;
    text-align: center;
}

.logo-grid.works .logo-img {
    padding: 0;
    overflow: hidden;
}

.logo-grid.works .logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 가이드 맵 색상 (기본: 하늘색) */
.map > a {
    --accent: 0, 186, 239;
    background-color: rgb(var(--accent));
    color: rgb(255, 255, 255);
}

.map > a.c-cyan   { --accent: 0, 186, 239; }
.map > a.c-pink   { --accent: 235, 110, 149; }
.map > a.c-red    { --accent: 234, 90, 95; }
.map > a.c-orange { --accent: 241, 142, 30; }
.map > a.c-green  { --accent: 67, 177, 83; }

.map > a:hover {
    background-color: rgb(var(--accent));
    color: rgb(255, 255, 255);
}

a:hover {
    opacity: 0.5;
}

/* mobile menu toggle (desktop: hidden) */
#menu-toggle {
    display: none;
    padding: 0 0 0.1em;
    border: none;
    border-bottom: 3px solid rgb(0, 0, 0);
    background: none;
    cursor: pointer;
    font-size: inherit;
    font-weight: 700;
    color: inherit;
    line-height: 1;
}

#app.dark #menu-toggle {
    border-bottom-color: rgb(255, 255, 255);
}

/* responsive: below 1000px */
@media (max-width: 999px) {
    :root {
        --half: var(--std);
        --middle: 1.25rem;
    }

    #main-header {
        align-items: flex-start;
    }

    #menu-toggle {
        display: block;
    }

    #main-header #main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: calc(var(--std) * 1.0);
        flex-direction: column;
        gap: calc(var(--std) * 0.75);
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(4px);
        -webkit-box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
                box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    #main-header.open #main-menu {
        display: flex;
    }

    #main-header #main-menu > .item-menu > a {
        display: inline-block;
    }

    #main-header #main-menu > .item-menu.active > a {
        color: rgb(0, 186, 239);
        border-bottom-color: rgb(0, 186, 239);
    }

    #app.dark #main-header #main-menu {
        background-color: rgba(0, 0, 0, 0.9);
    }

    #app.dark #main-header #main-menu > .item-menu.active > a {
        color: rgb(0, 186, 239);
        border-bottom-color: rgb(0, 186, 239);
    }

    #app.page > #main-content {
        padding-top: calc(var(--std) * 5.0);
        padding-bottom: calc(var(--std) * 4.0);
    }

    #section-header {
        margin-bottom: calc(var(--std) * 2.0);
    }

    .section .heading p {
        font-size: 1.25rem;
    }

    .section .heading {
        --head-h: calc(2rem + 1.875rem + 2px);
    }

    .section .content {
        padding: calc(var(--std) * 1.0);
    }

    .section .content p {
        font-size: 1rem;
    }

    .map {
        --map-h: calc(var(--std) * 2.0 + 1.25rem + 2px);
    }

    .map > a {
        padding: 0 calc(var(--std) * 1.5);
        font-size: 1.25rem;
    }

    #additional {
        flex-direction: column;
        gap: calc(var(--std) * 0.5);
        padding-bottom: calc(var(--std) * 5.0);
    }

    #main-footer {
        flex-wrap: wrap;
        align-items: flex-end;
        gap: calc(var(--std) * 0.5);
    }

    .item-main-footer:nth-child(1) > .menu > .item-menu {
        width: calc(var(--std) * 1.5);
        height: calc(var(--std) * 1.5);
    }

    .item-main-footer:nth-child(1) > .menu > .item-menu > a {
        font-size: 0.7rem;
    }
}
