@import "icon v1.0.1.css";
@import "animation.css";

@font-face {
    font-family: "ATR";
    src: url("../fonts/ATR.woff2") format("woff2"), url("fonts/ATR.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: block;
}

@font-face {
    font-family: "ATR-B";
    src: url("../fonts/ATR-B.woff2") format("woff2"), url("fonts/ATR-B.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: block;
}

:root {
    --color-bg1: #1e90ff;
    --color-bg2: #ffffff;
    --color-text1: #ffffff;
    --color-text2: #000000;
    --header-bg: #0A246A;
    --transition-default: all 0.5s ease;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-full: 50%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-size: 16px;
}

body {
    font-family: ATR, sans-serif;
    display: grid;
    grid-template-rows: auto 2fr auto;
    min-height: 100dvh;
    line-height: 1;
}

body.no-scroll {
    position: fixed;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: ATR-B, sans-serif;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

p {
    text-align: justify;
    line-height: 2;
    padding-top: 0.5vw;
}

ol, ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.desktop {
    display: none !important;
}

.rel {
    position: relative;
}

.ct {
    text-align: center;
}

.hide {
    display: none;
}

.bold {
    font-weight: bold;
}

.container {
    margin: auto;
    width: 84vw;
}

.separator1 {
    height: 1px;
    margin: 0.5vw 0;
    background: linear-gradient(to right, transparent, var(--color-bg2), transparent);
}

.separator-page {
    height: 1px;
    margin: 0.5vw 0;
    background: linear-gradient(to right, transparent, #ccc, transparent);
}

#overfly {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 600;
    opacity: 0;
    transition: opacity 1s ease-out;
}

#overfly.show {
    opacity: 1;
}
header {
    color: var(--color-text1);
}
#header-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2vw;
    justify-content: center;
    padding: 0.5vw 0;
}

#header-menu-box {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 700;
    background-color: var(--header-bg);
    max-height: 0;
    transition: max-height 1s;
    overflow: hidden;
}

#header-menu-box.fixed {
    max-height: 20vw;
}

#main-menu {
    position: absolute;
    top: 0;
    right: 0;
}

#main-menu-box {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 900;
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.8s ease-in-out;
    width: 80vw;
    height: 100dvh;
    overflow: hidden;
    justify-content: start;
    flex-direction: column;
    gap: 1rem;
    padding: 6rem 2rem 0 0;
    background-color: #fff;
}

#main-menu-box.show {
    clip-path: circle(150% at 100% 0%);
}

#header-menu-open, #header-menu-open-fixed, #header-menu-close {
    font-size: 1.5rem;
    margin: 0.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: var(--border-radius-full);
    line-height: 3rem;
    text-align: center;
}

#header-menu-open {
    position: fixed;
    background-color: rgba(0, 170, 238, 0.3);
    z-index: 99;
}

#header-menu-close {
    position: fixed;
    background-color: rgba(253, 0, 72, 0.7);
    z-index: 999;
    top: 0;
    transform: scale(0);
    transition: transform 0.5s ease-out;
}

#header-menu-close.show {
    transform: scale(1);
}

#header-mini-logo {
    width: 30px;
    height: 30px;
}

#header-mini-logo img {
    width: 22px;
    height: 19px;
}

#header-mini-title {
    padding: 1rem 0;
    font-size: 0.9rem;
    margin: 0 auto;
    opacity: 0;
}

#main-menu {
    flex: 1;
}

/*#main-menu .menu-item-has-children:after {*/
/*    content: '\f053';*/
/*    font-family: icon;*/
/*    position: absolute;*/
/*    left: 0;*/
/*    top: 0;*/
/*    width: 15vw;*/
/*    height: 10vw;*/
/*    text-align: center;*/
/*    line-height: 10vw;*/
/*    background-color: cyan;*/
/*}*/
#main-menu li {
    position: relative;
}
#main-menu a {
    color: var(--color-text1);
    background-color: var(--color-bg1);
    display: block;
    text-indent: 3vw;
    line-height: 10vw;
    height: 10vw;
}
#main-menu .sub-menu li {
    padding: 2vw 6vw 0 0;
}

#menu-placeholder {
    height: 5vw;
}

#header-mini-logo {
    background-color: var(--color-bg2);
    border-radius: var(--border-radius-full);
    width: 38px;
    height: 38px;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}

#header-mini-logo img {
    width: 30px;
    height: 27px;
    vertical-align: middle;
}

#header-mini-title {
    text-align: center;
    font-weight: bold;
    position: relative;
    z-index: 99;
    width: fit-content;
    justify-self: center;
    opacity: 0;
}

#header-menu-box.fixed #header-mini-title {
    animation: lensFade 1s ease-out forwards;
}

main {
    padding: 20vw 0;
}

#page h1 {
    font-size: 5vw;
    text-align: center;
    padding: 2vw 0;
}
.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    padding: 0.5vw 0;
    flex-wrap: wrap;
}

.wrapper .image-box {
    width: 100%;
    flex: 0 0 100%;
}

.wrapper .img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

#front header {
    height: 100vh;
}
#header-front {
    top: 50%;
    position: relative;
    transform: translateY(-75%);
}
#front #header-logo {
    width: 15vw;
    height: 15vw;
    background-color: var(--color-bg2);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    opacity: 0;
    animation: fadeScale 1s ease forwards 0.5s, glow 3s ease-in-out infinite;
}

#front #header-logo img {
    width: 12vw;
}

#front #header-brand span {
    display: inline-block;
    animation: rotateReveal 0.5s linear forwards;
}

#front #header-brand span:nth-child(1) {
    opacity: 0;
    animation-delay: 1.5s;
}

#front #header-brand span:nth-child(2) {
    opacity: 0;
    animation-delay: 1.75s;
}

#front #header-brand span:nth-child(3) {
    opacity: 0;
    animation-delay: 2s;
}

#front #header-brand span:nth-child(4) {
    opacity: 0;
    animation-delay: 2.25s;
}

#front #header-brand {
    text-align: center;
    font-size: 5vw;
    font-family: ATR-B;
    direction: ltr;
    text-shadow: 1px 1px 5px #000;
    margin-top: 2vw;
}

#front #header-title {
    text-align: center;
    margin: 3vw auto 0 auto;
    width: min(90%, 800px);
    opacity: 0;
    transform: translateY(30vw);
    animation: slideUp 1s ease forwards 3s;
}

#front #header-title h1 {
    font-size: 6vw;
}

#front #header-title span {
    font-size: 3vw;
    color: gold;
    font-family: ATR-B;
    line-height: 4;
}

#front section h2 {
    position: relative;
    border-left: 8vw solid transparent;
    border-right: 8vw solid transparent;
    border-top: 7vw solid #0082C1;
    margin: 0 auto;
    width: 0;
    height: 0;
    z-index: 99;
    top: -0.5rem;
    line-height: 1;
}

#front section h2 span {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 2vw;
    font-weight: bold;
    white-space: nowrap;
}

#sm-box {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 0.25vw;
    background-color: #ffffff0f;
    border-radius: 5vw;
    margin: 1vw;
}

#sm-box .sm {
    font-size: 3vw;
    color: white;
    margin: 0.5vw 0;
    text-align: center;
    width: 4vw;
    height: 4vw;
    line-height: 4vw;
    border-radius: var(--border-radius-full);
}

#sm-box .sm.disabled {
    color: #888;
    cursor: not-allowed;
}

#sm-box .sm:hover {
    background-color: rgba(0, 170, 238, 0.3);
}

#scroll-to-content {
    position: absolute;
    text-align: center;
    width: 4vw;
    height: 6vw;
    top: 80vh;
    right: calc(50% - 2vw);
    color: white;
    line-height: 4vw;
    border-radius: var(--border-radius-lg);
    background-color: black;
    opacity: 0.5;
    cursor: pointer;
}

#scroll-to-content::before {
    animation: scroll 1s ease-out infinite;
    position: absolute;
    width: 2vw;
    margin-left: -1vw;
    left: 50%;
    top: 30%;
    padding: 0;
}

#scroll-to-content::after {
    content: '|';
    width: 0.5vw;
    margin-left: -0.25vw;
    top: 0.25vw;
    left: 50%;
    position: absolute;
    font-size: 1.5rem;
}

.scroll-indicator {
    text-align: center;
    font-size: 3rem;
    animation: scroll 1s ease-out infinite;
}

article {
    opacity: 0;
    transform: translateY(100px);
    transition: var(--transition-default);
}

article.visible {
    opacity: 1;
    transform: translateY(0);
}

article ul {
    padding-right: 2rem;
    line-height: 1.5;
}

article li {
    padding-top: 0.5vw;
    list-style: disc outside;
}

article {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

article h3 {
    text-shadow: 1px 1px 2px #000;
    text-align: center;
    background-color: rgba(0, 130, 193, 0.5);
    padding: 2rem 0;
    position: absolute;
    top: 0;
    width: 100%;
    color: var(--color-text1);
    right: 0;
    font-size: 1.2rem;
}

.service {
    border-radius: 12px;
    transition: transform 0.3s;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    flex-direction: column;
}

.service::after {
    content: " ";
    display: block;
    height: 1px;
    margin-top: 1rem;
    background: linear-gradient(to right, transparent, rgb(0, 130, 193), transparent);
}

.service img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.service:hover img {
    transform: scale(1.08);
}

.service-img {
    overflow: hidden;
    min-width: 200px;
}

.service-text {
    padding-right: 2vw;
    flex: 1;
    min-width: 200px;
}

.service-text ul {
    font-size: 0.9rem;
}

#map {
    margin-top: 5vw;
}



#post article p {
    line-height: 3;
}

#post article ul {
    padding-right: 2rem;
    line-height: 2;
}

#footer {
    background-color: var(--header-bg);
    padding: 3vw 0;
    color: #fff;
}