
/* =========================
   Reset
========================= */

/* =========================
   Modal
========================= */
.modal {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pc{display:block;}
.sp{display:none;}

/* =========================
   Stage
========================= */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 260px;
}

/* =========================
   Count
========================= */
.count {
  position: relative;
  width: 4.5em;
  height: 1.2em;      /* ← 少し余裕を持たせる */
  line-height: 1.2;   /* ← 高さと完全一致 */
  overflow: hidden;

  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 88px;
  font-weight: 600;

  color: #c9a24d;
  text-align: center;
  margin-bottom: 24px;
}

.count {
  visibility: hidden;
}

.count.ready {
  visibility: visible;
}


/* =========================
   Message
========================= */
.text {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 32px;
  line-height: 1.6;

  color: #c9a24d;

  text-align: center;      /* ← これが必須 */
  width: 100%;             /* ← 親幅基準 */
  max-width: 90vw;         /* ← モバイル対策 */

  opacity: 0;
  transition:
    opacity 1.2s ease,
    filter 1.2s ease;
}

.text.show {
  opacity: 1;
}

/* =========================
   Buttons
========================= */
.actions {
  margin-top: 80px;
  display: flex;
  gap: 28px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.actions.show {
  opacity: 1;
  pointer-events: auto;
}

.actions button,
.actions a {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid #c9a24d;
  background: transparent;
  color: #c9a24d;
  cursor: pointer;
  text-decoration: none;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
}

.actions a.primary {
  background: #c9a24d;
  color: #fff;
}

.actions button:hover,
.actions a.primary:hover {
  background: #b08d3c;
  color: #fff;
  transform: translateY(-2px);
}


/* =========================
   Mobile
========================= */
@media screen and (max-width: 768px) {

.pc{display:none;}
.sp{display:block;}

  .actions {
    flex-direction: column;
    align-items: center;
    gap: 14px;

    width: 100%;
    padding: 0 20px;
  }

  .actions button,
  .actions a {
    width: 100%;
    max-width: 320px;

    text-align: center;
  }

  .count {
    font-size: 64px;
    margin-bottom: 16px;
  }

  .text {
    font-size: 28px;
    line-height: 1.5;
    padding: 0 16px;
  }

}