/* ==============================
   額縁（外側）
============================== */

body {
  margin: 0;
  font-family: sans-serif;
  background-color: #00afcc;
  color: #333;
  text-align: center;

  min-height: 100svh;

  /* 額縁の太さ */
  padding: 40px;
  box-sizing: border-box;

  display: flex;

  /* 額縁は角丸にしない */
}

/* ==============================
   白いカード（中身）
============================== */

.center-lane {
  width: 100%;
  min-height: calc(100svh - 80px);

  padding: 60px 16px 40px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;

  background-color: #ffffff;

  /* 境界だけ丸める */
  border-radius: 14px;

  /* ボーダー＆影（境界表現） */
  outline: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.35),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

/* ==============================
   タイトル
============================== */
.center-lane h1 {
  color: #c0392b;
  margin-bottom: 6px;
  font-size: 26px;
}

.subtitle {
  margin-top: 0;        /* h1側の余白を消す */
  margin-bottom: 24px;  /* ガチャボタンとの間はしっかり */
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ==============================
   ガチャボタン
============================== */

#gachaBtn {
  display: inline-block;

  padding: 12px 22px;
  font-size: 20px;
  font-weight: bold;

  margin-bottom: 16px;

  background: linear-gradient(135deg, #ff8a00, #ffb347);
  color: #fff;

  border: none;
  border-radius: 999px;

  cursor: pointer;

  box-shadow: 0 6px 0 #d96c00;

  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.2s;
}

#gachaBtn:hover {
  opacity: 0.9;
}

#gachaBtn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #d96c00;
}

/* ==============================
   ガチャボタン（押せない状態）
============================== */

#gachaBtn:disabled {
  opacity: 0.5;              /* ちょい薄くする */
  cursor: not-allowed;       /* 🚫カーソル */
  box-shadow: none;          /* 押せない感 */
  transform: none;           /* へこまない */
}

/* ==============================
   結果アニメーション
============================== */

#result {
  margin-top: 40px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#result.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   結果表示
============================== */

#shop {
  font-size: 22px;
  color: #1f3b57;
  margin-bottom: 12px;
}

#comment {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* ==============================
   スマホ用（額縁を少し細く）
============================== */

@media (max-width: 480px) {

  body {
    padding: 24px; /* スマホは少し細め */
    font-size: 14px;
  }

  .center-lane {
    min-height: calc(100svh - 48px);
    padding-top: 32px;
    padding-bottom: 24px;
    border-radius: 12px;
  }

  h1 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  #gachaBtn {
    font-size: 16px;
    padding: 10px 18px;
    margin-bottom: 12px;
  }

  #result {
    margin-top: 24px;
  }

  #shop {
    font-size: 18px;
  }

  #comment {
    font-size: 14px;
  }
}


/* ==============================
   フッター調整用
============================== */

.footer {
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
}

.footer a {
  color: #999;
  text-decoration: none;
}

/* ==============================
   about.html調整用
============================== */

.about {
  align-items: stretch;
}

.about h1 {
  text-align: center;
}

.about-text {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.7;

  /* ここが肝 */
  white-space: pre-line;
}
