@charset "utf-8";

:root {
    --color-main: #020001;
    --color-sub: #f2f5fe;

    --font-size-h2: 50px;
    --font-size-h3: 30px;
    --font-size-h4: 18px;
    --font-size-p: 16px;
    --font-size-li: 14px;
    --font-size-p-800: 14px;
    --font-size-span: 20px;
    --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: 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);
}

/* ========================================
contact_sec  */

.plan_sec {
    margin: 100px 0;
}

.notice h3 {
    margin: 1.2em 0;
    color: var(--color-sub);
}

.notice h4 {
    font-size: var(--font-size-h4);
    margin-bottom: 10px;
}

.notice ul {
    margin: 0 0 20px 1.5em;
}

.notice li {
    margin-bottom: 0.5em;
    font-size: var(--font-size-li);
}


.plan_sec p {
    font-size: var(--font-size-p);
}

.center-text {
    text-align: center;
}

.plan_sec h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--color-sub);
    text-align: center;
    margin-bottom: 30px;
}

.plan_sec span {
    display: none;
}

.plan_sec .plan_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.plan_sec .kome {
    width: 100%;
    text-align: left;
    margin-top: -20px;
}

.plan_sec h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    text-align: center;
    margin-top: 50px;
}

.plan_sec th,
.plan_sec td {
    border: 1px solid var(--color-sub);
    padding: 20px 10px;
    background-color: var(--color-main);
    font-size: var(--font-size-p);
}

.plan_sec td:first-child {
    white-space: nowrap;
}

@media (max-width:800px) {
    .plan_sec {
        margin: 0;
    }

    .plan_sec .plan_content {
        margin-top: 0;
    }

    .plan_sec tbody {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .plan_sec tr {
        display: flex;
        flex-direction: column;
    }

    .plan_sec th,
    .plan_sec td {
        font-size: 15px;
    }

    .plan_sec span {
        display: block;
    }

    .plan_sec td:first-child {
        display: flex;
        justify-content: space-between;
    }

    .plan_sec td:nth-child(2) {
        border: none;
        border-left: 1px solid var(--color-sub);
        border-right: 1px solid var(--color-sub);
        border-bottom: 1px solid var(--color-sub);
    }

    .plan_sec td:last-child {
        display: none;
    }
}

/* ========================================
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;
    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;
    }
}