/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HTMLとBODYスタイル */
html, body {
  width: 100%;
  height: 100%;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  overflow: hidden; /* スクロールバーを隠す */
}

/* コンテナ */
.container {
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0);
  border: 10px solid #ff0000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 2;
  overflow: hidden; /* コンテンツがはみ出さないようにする */
}

/* ヘッダースタイル */
header {
  margin-top: 10px;
  margin-bottom: 5px;
}

header img {
  max-width: 80%;
  height: auto;
  margin-top: 20px;
}

/* メッセージ */
.message {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 0;
}

.message span {
  display: block;
}

/* サーベイメッセージ */
.survey-message {
  font-size: 16px;
  line-height: 1.5;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.survey-message span {
  display: block;
}

/* thankyou-survey-message */
.thankyou-survey-message {
  font-size: 16px;
  line-height: 1.5;
  margin: 30px 0;
}

.thankyou-survey-message span {
  display: block;
}

/* 評価用の星 */
.rating {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.star {
  font-size: 40px;
  color: #ccc;
  cursor: pointer;
}

.star.selected {
  color: #ffcc00;
}

/* ボタン */
button {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  padding: 1em 3em;
  color: white;
  font-size: 18px;
  font-weight: 700;
  background-color: #ff0000;
  border: 2px solid #fff;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1;
  transition: 0.3s;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  transform: translate(-50%, -50%);
  border: 1px solid #ff0000;
  border-radius: 5px;
  z-index: -1;
  transition: 0.3s;
}

button:hover {
  background-color: #cc0000;
}

button:hover::before {
  width: calc(100% + 20px);
  height: calc(100% + 20px);
}

/* 薄い赤色の円 */
.circle {
  position: absolute;
  width: 300px;
  height: 300px;
  background: url('/img/circle.png') no-repeat center/cover;
  border-radius: 50%;
  z-index: 1;
  opacity: 30%;
}

.circle.top-left {
  top: -100px;
  left: -100px;
  width: 250px;
  height: 250px;
}

.circle.top-right {
  top: -100px;
  right: -130px;
}

.circle.bottom-left {
  bottom: -120px;
  left: -130px;
}

.circle.bottom-right {
  bottom: -140px;
  right: -130px;
  width: 400px;
  height: 400px;
}

/* レスポンシブデザイン */
@media (max-width: 600px) {
  .container {
    width: 100%;
    height: 100%;
    padding: 10px;
    /* overflow: auto; 折りたたみスマホでのスクロール対応 */
  }

  .circle {
    width: 200px;
    height: 200px;
  }

  .circle.bottom-right {
    width: 300px;
    height: 300px;
  }

  .message {
    font-size: 20px;
  }

  .survey-message {
    font-size: 14px;
    margin: 25px 0;
  }

  .thankyou-survey-message {
    font-size: 14px;
    margin: 25px 0;
  }
}
