@charset "utf-8";

:root {
    --color-main: #020001;
    --color-sub: #f2f5fe;

    --font-size-h2: 50px;
    --font-size-h3: 30px;
    --font-size-p: 14px;
    --font-size-p-800: 14px;
    --font-size-span: 15px;
    --font-size-header: 12px;
}

html {
    font-size: 1.56vw;
    scroll-behavior: smooth;
}

img {
    vertical-align: bottom;
    max-width: 100%;
    height: auto;
}

body {
    font-family: "Montserrat", "Noto Sans JP", sans-serif;
    background-color: var(--color-main);
    color: var(--color-sub);
    line-height: 1.3;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url(../img/bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(8px);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    margin: 50px auto 0;
    padding: 0 10%;
}

@media (max-width: 800px) {
    .container {
        padding: 15%;
    }
}

/* ========================================
loading  */

#loading {
  display: grid;
  place-items: center;
  background-color: var(--color-main);
  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);
}

/* ========================================
profile_sec  */

.profile_sec {
    margin: 100px 0;
}

.profile_sec h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--color-sub);
    text-align: center;
    margin-bottom: 30px;
}

.profile_sec .profile_content {
    display: flex;
    gap: 3rem;
    margin-top: 40px;
}

.profile_img {
    flex: 1;
    min-width: 200px;
}

.profile_sec .text-area {
    margin-top: -25px;
    flex: 2;
}

.profile_sec h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.profile_sec h3 span {
    font-size: var(--font-size-span);
}

.profile_sec p {
    font-size: var(--font-size-p);
    margin: 30px 0;
    text-align: center;
}

.text-area li {
    text-align: center;
    font-size: var(--font-size-p);
}

@media (max-width:800px) {
    .profile_sec {
        margin: 0;
    }

    .profile_sec .profile_content {
        flex-direction: column;
        margin-top: 0;
    }

    .profile_img {
        display: flex;
        justify-content: center;
    }

    .profile_img img {
        width: 200px;
    }

    .profile_sec p {
        font-size: var(--font-size-p-800);
        margin-top: 30px;
    }

    .text-area li {
        font-size: var(--font-size-p-800);
    }
}

/* ========================================
footer  */

footer {
    text-align: center;
    padding-bottom: 50px;
}

footer p {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-sub);
}

/* ========================================
flower  */

.flower {
    position: fixed;
    top: -50px;
    left: 50px;
    animation: rakka 10s linear infinite, kaiten 3s linear infinite, boya 3s ease-in-out infinite;
    animation-delay: 1s;
    z-index: -1;
    width: 30px;
}

.flower:nth-of-type(2) {
    left: initial;
    right: 50px;
    animation: rakka 10s linear infinite, kaiten 3s linear infinite, boya 3s ease-in-out infinite;
    animation-delay: 2s;
}

.flower:nth-of-type(3) {
    left: 10px;
    animation: rakka 10s linear infinite, kaiten 3s linear infinite, boya 3s ease-in-out infinite;
    animation-delay: 5s;
}

.flower:nth-of-type(4) {
    left: initial;
    right: 80px;
    animation: rakka 10s linear infinite, kaiten 3s linear infinite, boya 3s ease-in-out infinite;
    animation-delay: 8s;
}

@keyframes rakka {
    0% {
        top: -50px;
    }

    100% {
        top: 100vh;
    }
}

@keyframes kaiten {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes boya {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.8;
    }
}