@charset "UTF-8";


/* ------------------------------背景------------------------------ */
.back {
  min-height: 100vh;
  background-color: #9dd2e5;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  text-align: center;
  width: 100%;
  position: relative;
  color: #000000;
}

.back-img {
  background-image: url(../img/noon/noon_background.webp);
}

/* ------------------------------夜背景------------------------------ */
.night {
  background-image: url(../img/night/night_background.webp);
  background-color: #0b1d2a;
  color: #ffffff;
}

.night .cloud {
  display: none;
}

/* ------------------------------雲------------------------------ */
.sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: var(--cluds);
  opacity: 0.7;
}

.cloud-layer,
.star-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cloud-layer { 
  z-index: var(--cluds);
 }

.star-layer {
  z-index: var(--stars);
  display: none; 
}

.night .star-layer {
  display: block; 
}


.cloud {
  position: absolute;
  top: 0;
  left: -300px;
  animation-name: cloud-move;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

@keyframes cloud-move {
  from {
    transform: translateX(-310px);
  }
  to {
    transform: translateX(200vw);
  }
}


/* ------------------------------星------------------------------ */
/* 共通 */
.star {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* 小さい固定星 */
.star-small {
  width: 2px;
  height: 2px;
  background: white;
  opacity: 0.6;
}

.star-twinkle {
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s infinite alternate ease-in-out;
}

@keyframes twinkle {
  from {
    opacity: 0.2;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1.6);
  }
}

.shooting-star {
  position: absolute;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, white, transparent);
  transform: rotate(45deg);
  animation: shoot 1s linear forwards;
  filter: drop-shadow(0 0 6px white);
}

@keyframes shoot {
  from {
    transform: translate(0, 0) rotate(45deg);
    opacity: 1;
  }
  to {
    transform: translate(400px, 400px) rotate(45deg);
    opacity: 0;
  }
}

.star-layer {
  opacity: 0;
  transition: opacity .6s ease;
}

.night .star-layer {
  opacity: 1;
}


/* ------------------------------テキスト配置------------------------------ */
main {
  display: grid;
  grid-template-columns: 1fr;
  padding-top: calc(var(--header-height) + 2rem);
  padding-left: 2rem;
  padding-right: 2rem;
  /* margin: auto 2rem; */
  position: relative;
  z-index: var(--z-main);
}

h1 {
  font-size: 3rem;
  color: #000000;
  padding-bottom: 2rem;
}

h2 {
  font-family: var(--font-body);
  color: #000000;
  font-size: 1.5rem;
  padding-bottom: 2rem;
}

.fonts-en {
  font-family: var(--font-sub);
}

p {
  font-family: var(--font-body);
  color: #000000;
}

.night h1,
.night h2,
.night p {
  color: #ffffff;
}

/* ------------------------------フォーム------------------------------ */
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}

.form-left,
.form-right {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

input,
textarea {
  width: 100%;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: none;
  outline: none;
  background-color: rgba(255, 255, 255, 0.85);
  color: #000000;
}

.night input,
.night textarea {
  background-color: rgba(255, 255, 255, 0.85);
  color: #000000;
}

textarea {
  border-radius: 1.2rem;
  min-height: 180px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.6);
}

.night input:focus,
.night textarea:focus {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.4);
}

.submit-btn {
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.night .submit-btn:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------メッセージ------------------------------ */
.form-complete {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.form-complete.is-show {
  opacity: 1;
}

.form-complete p {
  font-size: 2rem;
  padding-top: 3rem;
  color: #000000;
}

.night .form-complete p {
  font-size: 2rem;
  padding-top: 3rem;
  color: #ffffff;
}

/* ------------------------------bot対策------------------------------ */
.hp {
  position: absolute;
  left: -9999px;
}

/* ------------------------------pc------------------------------ */
@media (min-width: 800px) {
  .contact-form {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }
}
