body {
  font-family: "Noto Sans JP", sans-serif;
  background: white;
  background: linear-gradient(to right, #8c54ff, #5de0e6);
  color: #333;
  max-width: 600px;
  margin: auto;
}

body > div.inner {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
h1 {
  text-align: center;
  margin-top: -6rem;
  margin-bottom: 2rem;
  color: #291b4c;
}
form {
  background: rgba(255, 255, 255, 0.5);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  width:calc(100% - 8rem);
  max-width: 600px;
}
.form-group {
  margin-bottom: 2rem;
}
label {
  font-weight: bold;
  display: block;
}
#birthWrapper label{
  margin-bottom: 10px;
}
.radio-wrapper > label {
  margin-bottom: 10px;
}



input[type="date"] {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}
.radio-wrapper {
  position: relative;
}
.radio-group {
  display: flex;
  position: relative;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.radio-group label {
  background: white;
}
.radio-option {
  flex: 1;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}
input[type="radio"] {
  display: none;
}
.radio-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #5944ec;
  border-radius: 8px;
  z-index: 0;
  transition: left 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
input[type="submit"], button[type="submit"] {
  display: block;
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  background: linear-gradient(0deg, #5944ec, #09bafe);
  border-radius: 200px 200px 200px 200px;
}
input[type="submit"]:hover, button[type="submit"]:hover {
  opacity: 0.9;
}
.error {
  color: red;
  text-align: center;
  margin-bottom: 1rem;
}
#startButton{
  display: block;
  background: #007BFF;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(0deg, #5944ec, #09bafe);
  border-radius: 200px 200px 200px 200px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
a.btn  {
  display: block;
  background: #007BFF;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(0deg, #5944ec, #09bafe);
  border-radius: 200px 200px 200px 200px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    text-align: center;
}
#startButton:hover,
 a.btn:hover{
  opacity: 0.9;
}


.result{
  margin: 2rem;

}

.result .title {
  display: flex;
  align-items: center;
  margin-left: -2rem;
  margin-right: -2rem;
}
.result .title h2 {
  margin-right: 10px;
  background-image: url(./images/title_back.png);
  background-size: auto 100% ;
  background-position: right center;
    background-repeat: no-repeat;
  color:white;
  text-shadow:  0 0 10px rgba(0, 0, 0, 0.4);
  font-size: 160%;
  letter-spacing: 3px;
  padding: 7px 20px 10px 15px;
  line-height: 1;
}
.result .title > h4 {
   color:white;
  text-shadow:  0 0 10px rgba(0, 0, 0, 0.4); 
  font-size: 120%;
}
.result h3 {
  color:#ffff00;
  text-shadow:  0 0 10px rgba(0, 0, 0, 0.4);
  background-image: url(./images/type_back.png);
    background-size: auto 100% ;
    background-repeat: no-repeat;
    background-position: center bottom ;
  font-size: 250%;
  display: block;
  text-align: center;
  font-weight: 900;
  padding: 5px 0 15px 0;
  margin-top: 0;
  margin-left: -2rem;
  margin-right: -2rem;
  margin-bottom: 25px;
}

.result .card {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;

}
.result .card img{
  width: 55%;
  height: auto;
}
.result .card img:first-child{
    transform: rotate(-10deg);
    z-index: 10;
    margin-right: -10%;
}
.result .card img:last-child{
    transform: rotate(10deg);
}

@media screen and (max-width:599px) {
.result h3 {
    background-size: 100% auto;
}
}

.result_box {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  color:white;
  display: block;
  margin-bottom: 25px;
  border-radius: 15px;
}
.result_box h4 {
  border-bottom: 1px solid white;
  line-height: 1.4;
  margin: 0;
  padding-bottom: 7px;
  font-size: 100%;
}
.result_box h4 strong {
  color:#33ff66 ;
  font-size: 200%;
  margin-left: 10px;
  font-weight: normal;
}

.result_box p,
.white_angle p,
.black_devil p {
  line-height: 1.6;
}

.white_angle,
.black_devil{
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  display: block;
  margin-bottom: 25px;
  border-radius: 15px;
}
.white_angle h4,
.black_devil h4{
  font-size: 200%;
  line-height: 1.4;
  margin: 10px 0 15px 0;
  padding-bottom: 7px;
  border-bottom: 1px solid gray;
  font-weight: normal;
}
.white_angle h4{
  color:#ff33ff;
}
.black_devil h4{
  color:#ff0000;
}
.white_angle h5,
.black_devil h5{
  font-size: 100%;
  margin: 0;
}


select, input, date {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 120%;
}