@font-face {
    font-family: 'Comic Sans MS';
    src: url('../fonts/comic/design.graffiti.comicsansmsgras.ttf');
}

@font-face {
    font-family: 'Comic Sans MS2';
    src: url('../fonts/comic/comics.ttf');
    font-weight: normal;
}

@font-face {
    font-family: cursive;
    src: url('../fonts/cursive/cursive.ttf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: cursive;
}

body {
    background-color: #F5F0E6 !important;
}

/* ****** */
/* Header */
/* ****** */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F5F0E6;
    padding: 20px 30px;
    width: 100%;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.header .logo {
    background-image: url('../img/logo.png');
    background-repeat: no-repeat;
    background-size: cover;
    width: 163px;
    height: 62px;
    display: block;
    margin-left: 40px;
}

.header .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #F5F0E6;
}

.header .menu li {
    margin-right: 50px;
}

.header .menu li a {
    display: block;
    padding: 5px 0;
    color: #8d1c2a !important;
    text-decoration: none !important;
    font-family: 'Comic Sans MS2';
    font-size: 16px;
    position: relative;
}

.header .menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background-color: #8d1c2a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.header .menu li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
    width: 100%;
}

.header .menu li a:not(:hover)::after {
    transform-origin: right;
}

.header .menu-icon {
    cursor: pointer;
    padding: 25px 20px;
    display: block;
}

.header .navicon {
    background: #8d1c2a;
    width: 22px;
    height: 2px;
    position: relative;
    display: block;
    transition: background 0.2s ease-out;
}

.header .navicon:before, .header .navicon:after {
    content: '';
    background: #8d1c2a;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    transition: all 0.2s ease-out;
}

.header .navicon:before {
    top: 6px;
}
.header .navicon:after {
    top: -6px;
}

.header .menu-btn {
    display: none;
}

.header .menu-btn:checked ~ .menu {
    max-height: 300px;
}

.header .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:before, .header .menu-btn:checked ~ .menu-icon .navicon:after {
    top: 0;
}

/* ********** */
/* End Header */
/* ********** */


/* **** */
/* Main */
/* **** */

.main-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    max-width: 850px !important;
    margin: 0 auto;
    padding: 20px;
    color: #8d1c2a;
    margin-bottom: 40px;
}

.main-content p {
    margin-bottom: 0;
}

.history-text {
    font-family: 'Comic Sans MS2';
    padding: 20px;
    margin-bottom: 20px;
}

.border-main-content {
    border-top: 1px solid rgba(141, 28, 42, 0.5) !important;
    margin-top: 40px;
    margin-bottom: 20px;
    width: 40px;
}

/* ******** */
/* End Main */
/* ******** */


/* ****** */
/* Footer */
/* ****** */

header, footer {
    color: grey;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

footer p, footer a {
    font-size: 12px;
    font-family: 'Calibri', sans-serif;
}

footer h6 {
    font-family: 'Calibri', sans-serif;
    margin-bottom: 40px;
    position: relative;
}

footer h6:after {
    position: absolute;
    content: "";
    background: #8d1c2a;
    width: 12%;
    height: 1px;
    left: 0;
    bottom: -20px;
}

.logo-footer {
    background-image: url('../img/logo.png');
    background-repeat: no-repeat;
    background-size: cover;
    width: 163px;
    height: 62px;
}

.information {
    text-decoration: none !important;
    color: #8d1c2a;
}

.information:hover {
    color: rgb(141, 28, 42, 0.7) !important;
}

.btn-footer {
    color: grey;
    text-decoration: none;
    border: 1px solid;
    border-radius: 43px;
    font-size: 13px;
    padding: 7px 30px;
    line-height: 47px;
}

.btn-footer:hover {             
    text-decoration: none;             
}

footer ul li {
    list-style: none;
    display: block;
}

footer ul {
    padding-left: 0;
}

footer ul li a {
    text-decoration: none;
    color: grey;
    text-decoration: none;
}

footer ul li a:hover {
    text-decoration: none;
    color: #f5f5f5 !important;
}

.logo-part {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.button-sp {
    --offset: 5px;
    --border-size: 0.5px;
    font-size: 18px !important;
    position: relative;
    padding: 15px !important;
    background: transparent;
    color: #8d1c2a;
    outline: none;
    border-radius: 0 !important;
}

.button-sp:hover {
    opacity: 0.8;
}

.button-sp:focus {
    box-shadow: none !important;
}

.button-sp p {
    margin-bottom: 0;
    font-family: 'Comic Sans MS2';
}

.button__horizontal, .button__vertical {
    position: absolute;
    top: var(--horizontal-offset, 0);
    right: var(--vertical-offset, 0);
    bottom: var(--horizontal-offset, 0);
    left: var(--vertical-offset, 0);
    transition: transform 0.8s ease;
    will-change: transform;
}

.button__horizontal::before, .button__vertical::before {
    content: '';
    position: absolute;
    border: inherit;
}

.button__horizontal {
    --vertical-offset: calc(var(--offset) * -1);
    border-top: var(--border-size) solid currentcolor;
    border-bottom: var(--border-size) solid currentcolor;
}

.button__horizontal::before {
    top: calc(var(--vertical-offset) - var(--border-size));
    bottom: calc(var(--vertical-offset) - var(--border-size));
    left: calc(var(--vertical-offset) * -1);
    right: calc(var(--vertical-offset) * -1);
}

.button-sp:hover .button__horizontal {
    transform: scaleX(0);
}

.button__vertical {
    --horizontal-offset: calc(var(--offset) * -1);
    border-left: var(--border-size) solid currentcolor;
    border-right: var(--border-size) solid currentcolor;
}

.button__vertical::before {
    top: calc(var(--horizontal-offset) * -1);
    bottom: calc(var(--horizontal-offset) * -1);
    left: calc(var(--horizontal-offset) - var(--border-size));
    right: calc(var(--horizontal-offset) - var(--border-size));
}

.button-sp:hover .button__vertical {
    transform: scaleY(0);
}

.main-top {
    margin-top: 40px;
}

.container hr {
    border-color: white;
    opacity: 0.5;
}

.container hr.small {
    margin: 20px 0;
}

.border-footer {
    margin-bottom: 50px;
    border-top: 0.5px solid rgba(141, 28, 42, 0.2) !important;
}

.cpy {
    margin-top: 40px;
}

/* ********** */
/* End Footer */
/* ********** */


/* **** */
/* Menu */
/* **** */

.table {
    margin-top: 40px;
    margin-bottom: 40px !important;
}

.table-responsive {
    color: #8d1c2a;
}

.row-menu {
    border-top: 1px solid rgba(141, 28, 42, 0.2) !important;
    margin-top: 40px;
}

.title_menu {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 50px;
    font-family: 'Comic Sans MS';
}

.title_menu_th {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 60px;
    font-family: 'Comic Sans MS';
}

.title_menu_cn {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 60px;
    font-family: 'Comic Sans MS';
}

.subtitle_menu {
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Comic Sans MS';
    font-size: 22px;
}

.subtitle_menu_bottom {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
    font-family: 'Comic Sans MS';
    font-size: 22px;
}

.title_formulas {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 60px;
    color: #8d1c2a;
    font-family: 'Comic Sans MS';
}

.border-formula {
    border: 10px double #8d1c2a;
}

.formula-2 {
    margin-top: 0;
}

.row-formula {
    margin-bottom: 40px;
}

.suggestion {
    font-weight: 600;
    margin-top: 40px;
    padding: 15px;
}

/* ******** */
/* End Menu */
/* ******** */


/* ****************** */
/* Back to Top Button */
/* ****************** */

.back-to-top {
    background-color: #8d1c2a;
    text-decoration: none;
    cursor: pointer;
    width: 56px;
    height: 56px;
    z-index: 999;
    position: fixed;
    right: 32px;
    bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 100%;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.4);
}

.back-to-top:hover {
    background-color: rgb(141, 28, 42, 0.7);
}

.back-to-top:active {
    box-shadow: none;
    background-color: rgb(141, 28, 42, 0.9);
}

.icon__arrow-up {
    fill: #f5f0e6;
    width: 32px;
    height: 32px;
}

/* ********************** */
/* End Back to Top Button */
/* ********************** */


/* ************* */
/* Media Queries */
/* ************* */

/* Mobile devices ≤ 768px */
@media screen and (max-width: 768px) {
    .header {
        flex-wrap: wrap;
    }

    .header .menu {
        display: block;
        max-height: 0;
        overflow: hidden;
        width: 100%;
        background-color: #F5F0E6;
    }

    .header .logo {
        width: 120px;
        height: 45px;
        margin-left: 0;
    }

    .header .menu li {
        margin: 25px 0;
    }

    .header .menu li a {
        padding: 0;
    }

    .header .menu-icon {
        display: block;
    }

    .header .menu-btn:checked ~ .menu {
        max-height: 300px;
    }

    .header .menu li a:hover::after {
        transform: none;
        transform-origin: unset;
        width: unset;
    }

    .header .menu li a:not(:hover)::after {
        transform-origin: unset;
    }

    .header .menu li a::after {
        content: unset;
        position: unset;
        left: unset;
        bottom: unset;
        height: unset;
        width: unset;
        background-color: unset;
        transform: none;
        transform-origin: unset;
        transition: unset;
    }

    .main-content p {
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }

    .main-content-mq {
        margin-bottom: 0 !important;
    }

    .table tbody td, .table tbody td p {
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }

    .content-form {
        padding: 30px;
    }

    .title_formulas {
        margin-bottom: 30px !important;
    }

    .row-formula {
        margin-bottom: 0 !important;
    }

    .logo-footer {
        width: 150px !important;
        height: 57px !important;
    }

    .footer-margin {
        margin-bottom: 40px;
    }

    .maps iframe {
        width: 100%;
        height: 300px;
        margin-top: 30px;
    }

    .ml-cgv {
        flex-direction: column;
    }
}

/* Desktop Version */
@media screen and (min-width: 800px) {
    .header .menu {
        display: flex;
        max-height: none;
        width: auto;
        overflow: visible;
        background: none;
    }

    .header .menu li {
        margin-right: 40px;
    }

    .header .menu-icon {
        display: none;
    }
}

/* ***************** */
/* End Media Queries */
/* ***************** */