@charset "UTF-8";
/* CSS Document */

/* ===== モーダル全体 ===== */
.chart-b{
display: flex;
align-items: center;
justify-content: center;
margin: 60px 0;

}
.chart-b button{
display: inline-block;
background-color: #fff;
padding: 10px 20px;
border-radius: 5px;
font-size: 18px;
}
.chart-b button:hover{
background-color:#00c300;
color: #fff;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* 背景 */
.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

/* 本体 */
.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: calc(100% - 32px);
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;

  background: #fff;
  border-radius: 12px;
  padding: 20px;

  z-index: 2147483647;
}
.modal-content h2{
font-size: 21px;
margin: 20px 0;
font-weight: 500;
}
.modal-content p{
margin: 20px 0;
}
/* 閉じる */
.close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
}

/* ===== UI ===== */
.step { display: none; }
.step.active { display: block; }

.progress {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.question {
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

button {
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
}

.yes {
  background: #00c300;
  color: #fff;
  font-weight: bold;
}

.no {
  background: #eee;
}

.back {
  margin-top: 12px;
  font-size: 12px;
  cursor: pointer;
}

/* 結果 */
.result-ok {
  text-align: center;
}

.result-ok a {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 24px;
  background: #ff6b00;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.result-ng{
font-size: 18px;
color:#FF6063;
}
/* スクロール停止 */
body.modal-open {
  overflow: hidden;
}

/* スマホ慣性スクロール */
.modal-content {
  -webkit-overflow-scrolling: touch;
}

@media screen and (min-width: 769px) {
.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: calc(100% - 32px);
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;

  background: #fff;
  border-radius: 12px;
  padding: 20px;

  z-index: 2147483647;
}
}