@charset "utf-8";

:root {
    --color-main: #020001;
    --color-sub: #f2f5fe;

    --font-size-h2: 50px;
    --font-size-h3: 30px;
    --font-size-h4: 22px;
    --font-size-h5: 16px;
    --font-size-p: 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  */

.contact_sec {
    margin: 100px 0;
}

.contact_sec p {
    font-size: var(--font-size-p);
}

.contact_sec h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--color-sub);
    text-align: center;
    margin-bottom: 30px;
}

.contact_sec .contact_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.contact_sec .x-icon {
    width: 10%;
    min-width: 100px;
}

.contact_sec .center-text {
    text-align: center;
    white-space: nowrap;
}

.contact_sec .order-template {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 3px solid var(--color-sub);
    margin: 30px 0 50px;
    padding: 50px;
    background-color: var(--color-main);
}

.contact_sec .order-template ul {
    border: 1px dotted var(--color-sub);
    border-left: none;
    border-right: none;
    padding: 10px;
}


.contact_sec h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.contact_sec li {
    font-size: var(--font-size-p);
}

.contact_sec .order-flow_box {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.contact_sec .order-flow {
    position: relative;
    max-width: 600px;
    width: 100%;
    border: 2px solid var(--color-sub);
    padding: 30px 20px;
    background-color: var(--color-main);
}

.contact_sec .order-flow ul {
    display: flex;
    flex-direction: column;
    align-items: left;
    margin-top: 20px;
}

.contact_sec .order-flow li {
    padding: 0 20px;
}

.contact_sec h4 {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-main);
    padding: 0 10px;
    font-size: var(--font-size-h4);
    white-space: nowrap;
}

.contact_sec h4 span {
    background: linear-gradient(transparent 50%, #ad5151 50%);
}

.contact_sec .order-flow_box p {
    text-align: center;
}

.contact_sec .order-flow_box img {
    width: 50px;
}

.accordion {
    border-bottom: 1px solid var(--color-sub);
    overflow: hidden;
    max-width: 400px;
    margin: 20px auto;
    font-family: sans-serif;
    font-size: var(--font-size-h5);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    background-color: var(--color-main);
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    padding-left: 0;
}

.accordion-header h5 {
    padding-left: 10px;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--color-main);
  border-top: 1px solid var(--color-sub);
}

.accordion.open .accordion-content {
  max-height: 500px;
  padding: 15px;
}

#paymentAccordion .accordion-content li,
#paymentAccordion .accordion-content p {
    text-align: left;
}

#paymentAccordion .accordion-content li {
    list-style-type: disc;
    margin-left: 20px;
    padding: 0;
}

.accordion.open .accordion-content {
    display: block;
}

@media (max-width:800px) {
    .contact_sec {
        margin: 0;
    }

    .contact_sec .contact_content {
        margin-top: 0;
    }

    .contact_sec h3 {
        font-size: 20px;
    }
}

/* ========================================
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;
    }
}