@charset "utf-8";

@keyframes titleAnimation {
  0% {
    letter-spacing: .3em;
    opacity: 0;
  }
}

body {
  background-color: #0000cc;
  color: #fff;
  font-family: serif;
  text-align: center;
  letter-spacing:2px;
}

.contents {
  display: flex;
  color: #0000e6;
  justify-content: center;
  font-size: 20px;
  align-items: center;
}

.contents li {
  background-color: #0000cc;
  width: 200px;
  height: 60px;
  padding: 2px;
  list-style: none;
  margin-left: 10px;
 }

a {
 color:#fff;
 text-decoration: none;
 transition: background-color 0.3s ease
 padding: 4px;
}

a:hover {
 background-color: #ddd;
}

@media only screen and (min-width: 480px) {
 .sp-menu {
   display: none;
  }

 .sp-menu2 {
   display: none;
 }
}

@media only screen and (max-width: 479px) {
 .sp-menu {
   width: 40px;
   height: 40px;
  }

}

.menu-icon {
  width: 30px;
  height: 30px;
  font-size: 25px;
}
 

.sp-menu #open.hide {
  display: none;
}

.overlay span {
 top: 100px;
}

.overlay {
  position: fixed;
  /* ここにとどめる */
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  margin-left: 0px;
  margin-top: 0px;
  padding: 5px;
  border-radius: 5px;
  background: rgba(255,255,255,0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity .9S;
  z-index: 1;
}

.overlay.show {
  opacity: 5;
  pointer-events: auto;
  z-index: 3;
  width: 370px;
  height:930px;
}

.overlay #close {
  position: absolute;
  /* これが大事 */
  color: #333;
  top: 15px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1;
}

.overlay ul{
  list-style:  none;
  margin-top: 50px;
  text-align: left;
  font-size: 15px;
  padding: 10;
}

.overlay li{
 margin-top:5px;
 opacity: 0;
 transition:  opacity .3s, transfrom .3s;
}

.overlay li a {
  color: #333;
}

.overlay.show li {
  opacity: 1;
  transform: none;
}

.overlay.show li:nth-child(1) {
  transition-delay: .1S;
}
.overlay.show li:nth-child(2) {
  transition-delay: .2S;
}
.overlay.show li:nth-child(3) {
  transition-delay: .3S;
}


@media only screen and (max-width: 480px) {
  .contents {
   display: none;
 }
}


.menu {
  position: relative;
    /* ↑画像の場所 */
  height: 100%; 
  background-attachment: fixed;
    /* ↑後ろの写真の固定 */
  background-position: center;
  background-size: cover;
    /* ↑画面一杯に配置 */
  background-repeat: no-repeat;
    /* ↑何かの命令の打消し */
}

.menu h1 {
  color:#fff;
  text-shadow: -1px -1px 1px #808080,1px 1px 1px #808080;
  font-size: 100px;
  text-align: center;
  position: fixed;
  /* ↑矢印場所の話 */
  width :100%;
  top: 20%;
  animation: titleAnimation 1.5s;


}

.menu p {
  font-size: 40px;
  text-shadow: -0.5px -0.5px 0.5px #808080,0.5px 0.5px 0.5px #808080;
  text-align: center;
  position: fixed;
  /* ↑矢印場所の話 */
  width :100%;
  top: 30%;
  z-index: 1;

}

@media only screen and (min-width: 480px) and (max-width: 1100px) {

.contents li {
  font-size: 20px;
}


.menu {
    font-size: 15px;
    margin-left: 0px;
    display: block;
    }

 .menu h1 {
    font-size: 60px;
    text-align: center;
    top: 150px;
    width: 100%;
   }

 .menu p {
    font-size: 25px;
    text-align: center;
    top: 150px;
    width: 100%;
   }


}

@media only screen and (max-width: 480px) {
  .menu {
    font-size: 12px;
    margin-left: -40px;
    display: block;
    }

 .menu h1 {
    font-size: 40px;
    text-align: center;
    top: 60px;
    width: 480px;
   }

 .menu p {
    font-size: 20px;
    text-align: center;
    top: 70px;
    width: 480px;
   }

}


.menu a {
  color: #fff;
}

img {
  z-index: 0;
  width: 1200px;
}

@media only screen and (min-width: 480px) and (max-width: 1100px) {
 
img {
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
  }

}

@media only screen and (max-width: 480px) {
  img {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
  }
}


.content {
  position: relative;
  z-index: 2;
  height:800px;
  font-size:20px;
  background: #fff;
  color: #333;
  padding: 50px 20px;
  text-align :center;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
h1 {
  text-align: center;
  margin-bottom: 24px;
}
form label {
  display: block;
  margin-bottom: 15px;
  font-weight: bold;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 16px;
}
fieldset {
  border: none;
  margin-bottom: 15px;
  padding: 0;
}
legend {
  font-weight: bold;
  margin-bottom: 10px;
}
fieldset label {
  display: block;
  margin-bottom: 8px;
  font-weight: normal;
}
button {
  width: 100%;
  padding: 12px;
  background-color: #0078d7;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}
button:hover {
  background-color: #005fa3;
}

.button-group {
  display: flex;
  gap: 10px;
}
.button-group button {
  flex: 1;
}
button[type="reset"] {
  background-color: #cccccc;
  color: #333;
}
button[type="reset"]:hover {
  background-color: #aaaaaa;
}

.radio-group {
  display: flex;
  flex-direction: column;
  align-items: center; /* 全体を中央に配置 */
  gap: 10px;
  margin-bottom: 20px;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  /* ここがポイント！ */
  width: 250px;                /* 固定幅で箱を中央に */
  text-align: left;            /* テキストは左寄せ */
  justify-content: flex-start;
}

.home {
  align-items: center;
  gap: 8px;
  /* ここがポイント！ */
  width: 350px;                /* 固定幅で箱を中央に */
  text-align: left;            /* テキストは左寄せ */
  justify-content: flex-start;
  margin-left: 130px;
}

@media only screen and (min-width: 480px) and (max-width: 1100px) {

.content {
    }

   .content h2 {
    
    }

   .content p {
    }


}

@media only screen and (max-width: 480px) {
  main {
     width: 400px;
    }


}



@media only screen and (min-width: 480px) and (max-width: 1100px) {



}


@media only screen and (max-width: 480px) {
  .container {
   width: 300px;
    
   }
   h1 {
    font-size: 18px;
   }
   fieldset {
     width: 300px;
  }
  .home {
   margin-left: 0px;
 }
}



footer {
  color:#fff;
  margin:100px 0;
}

@media only screen and (max-width: 480px) {
  .content2 h2 {
    font-size: 15px; 
   }
}
