@charset "utf-8";

:root {
    --color-main: #f5f5f5;
    --color-sub: #f2f5fe;
    --color-bg: #020001;

    --font-size-h2: 50px;
    --font-size-header: 12px;
}

html {
    font-size: 1.56vw;
}

img {
    vertical-align: bottom;
    max-width: 100%;
    height: auto;
}

body {
    font-family: "Montserrat", "Noto Sans JP", sans-serif;
    background-color: var(--color-bg);
    line-height: 1.3;
}

/* ========================================
loading  */

#loading {
  display: grid;
  place-items: center;
  background-color: var(--color-bg);
  color: var(--color-sub);
  position: fixed;
  inset: 0;
  font-size: 4rem;
  font-weight: 600;
  transition: opacity 0.5s ease;
  z-index: 200;
}

#loading.loaded {
  opacity: 0;
  pointer-events: none;
}

.now {
    animation: now 1.5s ease-in-out infinite;
}


.dots { display: flex; align-items: center; justify-content: center; }
.dots .dot {
    width: 1rem; height: 1rem;
    margin: 0 5px;
    background-color: var(--color-sub);
    border-radius: 50%;
    animation: now 1.5s ease-in-out infinite;
}
.dots .dot:nth-child(1) { animation-delay: 0s; }
.dots .dot:nth-child(2) { animation-delay: 0.2s; } /* Fixed delays for simplicity */
.dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes now {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@media (min-width: 800px) {
    #loading {
        font-size: 70px;
    }

    .dots .dot {
        width: 15px; height: 15px;
    }
}

/* ========================================
header  */

header {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: 100%;
    height: 50px;
    background-color: rgb(0, 0, 0, 0.8);
    border-radius: 25px;
    border: 1px solid var(--color-sub);
    z-index: 100;
}

header nav {
    position: relative;
}

header ul {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    gap: 25px;
}

header li {
    font-size: var(--font-size-header);
    font-weight: 600;
    color: var(--color-sub);
}

header a {
    display: block;
    padding: 5px;
}

header .under-line {
    border-bottom: 1px solid var(--color-sub);
}

/* ========================================
mainvisual_sec  */

.mainvisual_sec {
    position: relative;
    height: 100vh;
    border-bottom: 1px solid #000;
    overflow: hidden;
    z-index: -100;
}

.mainvisual_sec img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.mainvisual_sec h1 {
    height: 100%;
}

.mainvisual_sec h2 {
    position: absolute;
    z-index: 100;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-sub);
    white-space: nowrap;
    text-align: center;
    font-size: var(--font-size-h2);
    font-weight: 700;
    
}

.mainvisual_sec h2 span {
    font-size: 30px;
}

@media (max-width: 1080px) {
    .mainvisual_sec h2 {
        bottom: 160px;
    }
}

/* ========================================
footer  */

footer {
    margin-top: -60px;
    text-align: center;
}

footer p {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-sub);
}

@media (max-width: 1080px) {
    footer {
        margin-top: -130px;
    }
}