/**************************************************** RESET ****************************************************/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-weight: normal;
    font-style: normal;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

img,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

button,
input,
select,
textarea {
    appearance: none;
    font: inherit;
}

/**************************************************** FONT ****************************************************/

@font-face {
    font-family: 'Ghost Mono';
    src: url('/font/GeistMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/**************************************************** VARIABLE ****************************************************/

:root {
    --padding-s: 8px;
    --padding-m: calc(var(--padding-s) * 2);

    --animationspeed: 600ms;

    --black: #000000;
    --white: #ffffff;

    --font-family: 'Ghost Mono', Helvetica, Arial, sans-serif;
    --fontsize-s: clamp(12px, 0.8vw, 0.8vw);
    --fontsize-m: clamp(16px, 1.6vw, 1.6vw);
    --fontsize-l: clamp(32px, 3.2vw, 3.2vw);
    --lineheight-s: 1.0;
    --lineheight-m: 1.2;
    --lineheight-l: 1.2;

}

/**************************************************** BASIC ****************************************************/

* {
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    -webkit-text-size-adjust: 100%;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-style: normal;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    touch-action: manipulation;
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-size: inherit;
    line-height: inherit;
}

body {
    font-family: var(--font-family) !important;
    font-size: var(--fontsize-m);
    line-height: var(--lineheight-m);
    font-weight: var(--fontweight-m);
    background-color:var(--black);
    color:white;
}

/**************************************************** LINK ****************************************************/

a {
    color:inherit;
    text-decoration:underline;
}

a:hover {
    color:inherit;
    text-decoration:none;
}

.underline-no {
    text-decoration: none;
}

*:focus {
    outline: 3px solid rgb(146, 146, 255) !important;
    outline-offset: -3px !important;
}

/**************************************************** TYPE ****************************************************/

.text-s {
    font-size: var(--fontsize-s);
    line-height: var(--lineheight-s);
}

.text-m {
    font-size: var(--fontsize-m);
    line-height: var(--lineheight-m);
}

.text-l {
    font-size: var(--fontsize-l);
    line-height: var(--lineheight-l);
}

h1, h2 {
    font-size: var(--fontsize-l);
    line-height: var(--lineheight-l);
    display: inline-block;
}

p:last-child,
h2:last-child {
    margin-bottom: 0;
}

.case-upper,
.case-upper * {
    text-transform: uppercase;
}

em {
    font-style: italic;
}

/**************************************************** PADDING ****************************************************/

.padding-s {
    padding:var(--padding-s);
}

.padding-m {
    padding:var(--padding-m);
}

.gap-s {
    gap:var(--padding-s);
}

.gap-m {
    gap:var(--padding-m);
}

/**************************************************** GRID ****************************************************/

.grid {
    display: flex;
    flex-flow: row wrap;
    flex-grow: 0;
    flex-shrink: 0;
    width: 100%;
    align-items: start;
    align-content: start;
}

.w-1-12 {
    width: calc(100% / 12 * 1);
}

.w-2-12 {
    width: calc(100% / 12 * 2);
}

.w-3-12 {
    width: calc(100% / 12 * 3);
}

.w-4-12 {
    width: calc(100% / 12 * 4);
}

.w-5-12 {
    width: calc(100% / 12 * 5);
}

.w-6-12 {
    width: calc(100% / 12 * 6);
}

.w-7-12 {
    width: calc(100% / 12 * 7);
}

.w-8-12 {
    width: calc(100% / 12 * 8);
}

.w-9-12 {
    width: calc(100% / 12 * 9);
}

.w-10-12 {
    width: calc(100% / 12 * 10);
}

.w-11-12 {
    width: calc(100% / 12 * 11);
}

.w-12-12 {
    width: calc(100% / 12 * 12);
}

.w-auto {
    width: auto;
}

/**************************************************** POSITION ****************************************************/

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.position-fixed {
    position: fixed;
    z-index: 50;
}

.position-sticky {
    position: sticky;
    top:0px;
    z-index: 50;
}

/**************************************************** MEDIA ****************************************************/

img,
video,
figure {
    width: 100%;
    display: block;
}

/**************************************************** ALIGN ****************************************************/

.align-center {
    justify-content: center;
    text-align: center;
}

.align-left {
    justify-content: flex-start;
    text-align: left;
}

.align-right {
    justify-content: flex-end;
    text-align: right;
}

/**************************************************** HEADER ****************************************************/

header {
    top:0px;
}

/**************************************************** FOOTER ****************************************************/

footer {
    bottom:0px;
}

/**************************************************** EFFECT ****************************************************/

.effect-onload span,
.effect-onslide span,
.effect-hover span {
    opacity: 1;
}

/**************************************************** SLIDER ****************************************************/

#content {
    height: 100dvh;
}

.slider {
    height: 100dvh;
    width: 100%;
    inset: 0px;
}

.slide {
    inset: 0px;
    opacity: 0;
    transition: opacity var(--animationspeed);
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.image {
    height: 100%;
    width: 100%;
}

.image img {
    position: relative;
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity:0.9;
}

.overlay {
    top: 50%;
    transform: translateY(-50%);
}