:root {
    --primary: #FF3366;
    --secondary: #333333;
    --background: #FFFFFF;
    --text: #111111;
    --light-gray: #F5F5F7;
    --border: #E5E5E5;
    --content-max-width: 1270px;
    --offset: 0px;
}

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

body, html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.5;
    width: 100vw;
    height: 100vh;
    margin: 0px;
    padding: 0px;
}

hr {
    width: 100%;
    height: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    appearance: none;
    color: transparent;
    background: transparent;
    outline: none;
    border: none;
}
hr::after
{
    content: "";
    display: block;
    width: 50%;
    height: 100%;
    background: black;
    mix-blend-mode: darken;
    border-radius: 2px;
}

.flex {
    display: flex;
}

.flex-1{
    flex: 1;
}

.flex-col {
    flex-direction: column;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

a {
    text-decoration: none;
    color: inherit;
}

.w-full {
    width: 100%;
}

.container {
    width: 100%;
}
.page-container {
    width: 100%;
    padding-top: 120px;
}

.transparent {
    background: transparent;
}

.bg {

}

.content-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* MARK: Page - Common */

/* Header */

.header-container {
    position: fixed;
    padding-top: 30px;
    left: 0;
    width: 100%;
    height: 90px;
    justify-content: center;
    align-items: center;
    display: flex;
    z-index: 1000;
    pointer-events: none;
    transform: translateY(clamp(-90px, calc(var(--offset) * -0.6), 0px));
}
.header-container * {
    pointer-events: auto;
}
.header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* position: absolute; */
    height: 60px;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 60px;
    gap: 10px;
    letter-spacing: 8px;
}
.languages {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 60px;
    padding: 0 20px;
}
#language-switcher {
    appearance: none;
    outline: none;
}
#language-switcher {
    padding-right: 28px;
}
.languages {
    position: relative;
}
.languages .chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    pointer-events: none;
    color: var(--text);
}
.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

/* bg */
.bg-mix {
    background: #ffffff;
    mix-blend-mode: soft-light;
    backdrop-filter: brightness(0.9) saturate(2.5) contrast(1.1);
}

#bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

/* Page Content Wrapper to push footer down */
body {
    display: flex;
    flex-direction: column;
}
.page {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Footer */
.footer-container
{
    padding-top: 40px;
    cursor: initial;
}
.footer {
    padding: 40px 0;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--secondary);
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.footer .links {
    display: flex;
    gap: 20px;
}

.footer a:hover {
    text-decoration: underline;
}

/* MARK: Page - 404 */
.page-404 {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    background: transparent;
}
.page-404>p
{
    color: white;
    background: black;
    mix-blend-mode: exclusion;
}

/* MARK: Page - Index */

/* Hero */
.hero {
    position: relative;
    text-align: center;
    height: 100vh;
    background: transparent;
}


.hero > .flex-center {
    padding: 80px 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    mix-blend-mode: exclusion;
    text-shadow: black 2px 1px 3px;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    mix-blend-mode: exclusion;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    white-space: pre-wrap;
    text-shadow: black 2px 1px 3px;
}


.contact-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 60px;
}
.contact-btn>a {
    margin: 0px;
    height: 60px;
    width: 160px;
    background: #000000;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 60px;
    font-weight: lighter;
    font-size: 1.4rem;
}
.contact-btn>a:hover {
    background: #333333;
}
html[lang="ja"] .contact-btn>a {
    font-size: 1.2rem;
}  


/* features */
.features {
    padding: 80px 0px;
    gap: 20px;
}
.features .features-title {
    display: flex;
    justify-content: flex-end;
    flex: 1;
    background: black;
}
.features h2 {
    max-width: calc((var(--content-max-width) - 20px) / 2);
    text-align: right;
    font-size: calc(((var(--content-max-width) - 20px) / 2) / 4.2);
    font-weight: bold;
    color: white;
    overflow: hidden;
}
.features.contact {
    justify-content: center;
}

.articles {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

article {
    background: transparent;
    position: relative;
    color: black;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
article h3
{
    font-weight: bold;
    font-size: 2rem;
    padding: 10px 20px;
}
article h3.bg-mix {
    background: black;
    color: white;
}
article main {
    color: var(--text);
    font-size: 1.2rem;
}
article a {
    color: white;
    font-weight: bold;
    background: black;
    display: block;
    align-self: self-start;
    padding: 10px 20px;
}
article a:hover {
    outline: 2px solid white;
    outline-offset: 2px;
}
article main {
    max-width: calc((var(--content-max-width) - 20px) / 2);
}
.services article {
    flex: 1;
}
.services article>h3 {
    color: white;
    background: black;
}
.services article>main {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}
.services article>main h4 {
    background: var(--background);
    color: var(--text);
    font-size: 1.4rem;
    padding: 10px 20px;
}
.services article>main p {
    margin-bottom: 10px;
}
.services article>main>div>p {
    padding: 0px 20px;
}





/* Responsive */
@media (max-width: 1270px) {
    .header {
        padding: 0px 20px;
    }
    .content-container {
        padding: 0px 20px;
    }
    .hero-text {
        padding: 0px 20px;
    }
    #language-switcher {
        max-width: 100px;
    }
    .footer {
        padding: 20px;
    }
    .features:not(.contact) {
        flex-direction: column;
    }
    .features-title {
        height: 30vh;
    }
    .features h2 {
        max-width: calc(((100vw) / 1));
        font-size: calc(((100vw) / 1) / 5);
        line-height: calc(((100vw) / 1) / 5);
        justify-content: center;
        align-items: center;
        text-align: right;
    }
    article main {
        padding: 0px 20px;
    }
    article a {
        margin: 0px 20px;
    }
}