/* 星空の背景 */
html{
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: #fff;
  background: url(horoscope.img/最背景顔.png) no-repeat center center fixed;
  background-size: cover;
}

.main-wrap {
  max-width: 810px;
  margin: 0 auto;
}
main {
  position: relative;
  margin-top: 25vh;
  width: 100%;
  z-index: 2;
  padding-bottom: 100px;
}

/* 魔法陣レイヤー */
main::before {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 100%;   
  background: url(horoscope.img/星座盤.png) no-repeat center;
  background-size: contain;
  background-position: center top;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(circle, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
}

@media (max-width: 768px) {
  main::before {
    width: 380px;
    height: 380px;
    top: -80px;
  }
}

/* タイトル */
h1 {
  font-size: 4rem;
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #99ccff;
}

/* 説明文 */
p.description {
  max-width: 766px;
  margin: 20px auto 40px;
  font-size: 24px;
  line-height: 1.8;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px 20px;
  border-radius: 10px;
}

/* 入力フォーム */
.form-area {
  text-align: center;
  margin-bottom: 30px;
}

input[type="date"] {
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
}

/* ボタン */
button {
  display: block;
  margin: 20px auto;
  padding: 10px 25px;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, #5a8dee, #8e6de9);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* 両端の星座イラスト配置 */
.side-images {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  pointer-events: none;
  z-index: 20;
  
}
.side-images img {
  position: relative;
  width: 180%;
  height: auto;
  opacity: 0.85;
}
.left img {
  transform: translateX(20%);
}

.right img {
  transform: translateX(-20%);
}
.side-images img:hover {
  opacity: 1;
}
/* 左右それぞれ */
.left { left: 0; }
.right { right: 0; }

/* スマホ用調整 */
/* style.css の末尾に追記 */

/* --- レスポンシブデザインの調整 --- */
@media (max-width: 768px) {
  /* 左右の星座イラストを完全に非表示にする */
  .side-images {
    display: none !important; /* !important を使用して確実に非表示にする */
  }

  /* タイトルを小さくする */
  h1 {
    font-size: 2rem;
    margin-top: 20px;
  }

  /* 説明文の幅を調整し、パディングを小さくする */
  p.description {
    max-width: 90%; /* 画面幅に合わせて調整 */
    margin: 10px auto 20px;
    font-size: 16px;
    padding: 10px;
  }

  /* 入力欄とボタンのサイズを調整 */
  input[type="date"],
  button {
    font-size: 1rem;
    padding: 12px;
    width: 80%; /* 幅を画面に合わせて広げる */
    margin: 5px auto;
  }

  /* 結果表示エリアの幅を調整 */
  #result {
    max-width: 95%; /* 結果エリアも画面に合わせて調整 */
    margin: 20px auto;
    padding: 15px;
  }

  /* 結果内のテキストサイズとマージンを調整 */
  .result-box h2 {
    font-size: 1.5rem;
  }
  .result-box p {
    font-size: 1rem;
    line-height: 1.6;
  }
  .result-box .planet-text {
    font-size: 0.9rem;
    padding: 5px 0 10px;
  }
}

/* 結果表示エリア */
ul,li{
  list-style: none;
}
#result {
  max-width: 700px;
  margin: 40px auto;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

#result h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #99ccff;
  text-shadow: 0 0 8px #99ccff;
}
.zodiac{
  text-align: center;
}

#result p {
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.6;
}

#result .message {
  margin-top: 15px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffecb3;
}
.planet-text {
    font-size: 1.1rem;
    margin: 5px 0 15px;
    line-height: 1.7;
    color: #ffecb3;
}
