body {
    touch-action: manipulation;
    overscroll-behavior: none;
    font-family: 'Arial Rounded MT Bold', 'Helvetica', sans-serif;
    background-image: url("hadapink.PNG");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden; /* スクロールを無効にする */
    touch-action: manipulation; /* タップの挙動を制御 */
  }
  
  .title {
    font-size: 3em;
    font-weight: bold;
    color: #FF69B4; /* 明るいピンク色 */
    margin: 20px 0 10px;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.5); /* 影をつけて立体感を出す */
    transition: transform 0.3s; /* アニメーション効果 */
}

.title:hover {
    transform: scale(1.1); /* ホバー時に少し大きくなる */
}
  
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    padding-bottom: 200px;
    min-height: 100vh;
    box-sizing: border-box;
    gap: 10px;
  }
  
  .nikibi-img {
    width: 300px;
    height: auto;
    cursor: pointer;
    margin-Top: 20px;
    
  }
  
  .bubble {
    background-color: #ffffff;
    
    border-radius: 50px;
    padding: 15px 25px;
    max-width: 80%;
    font-size: 1.2em;
    position: relative;
    margin: 20px;
    color: #000000;
  }
  
  .bubble::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 50%;
    margin-left: -15px;
    border-width: 15px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
  }
  
  button {
    touch-action: manipulation;
    font-size: 1.2em;
    padding: 10px 20px;
    margin: 5px 0;
    border: none;
    border-radius: 10px;
    background-color: #000000;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  button:hover {
    background-color: #585858;
  }

  .button-area {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* 最初は非表示 */
    gap: 10px;
    z-index: 999;
    flex-wrap: wrap;
    justify-content: center;
  }
  @keyframes shake {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(2px, 1px) rotate(1deg); }
    50%  { transform: translate(-2px, -2px) rotate(-1deg); }
    75%  { transform: translate(1px, 2px) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
  }
  
  .shake {
    animation: shake 0.3s ease-in-out;
  }

  /* 👇 スマホ画面（600px以下）になったらこのスタイルに切り替える */
  @media (max-width: 600px) {
  
    .title {
      font-size: 7vw;
      margin-top: 30px;
    }
  
    .bubble {
      font-size: 4.5vw;
    }
  
    .button-area {
      position: fixed;
      bottom: 0px;
      left: 50%;
      transform: translateX(-50%);
      display: none; /* 最初は非表示 */
      gap: 10px;
      z-index: 999;
      flex-wrap: wrap;
      justify-content: center;
    }
    .sound-btn {
      position: fixed;
      top: 20px;
      right: 20px;
      background-color: #ffe066;
      border: none;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      font-size: 16px;
      font-weight: bold;
      color: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      cursor: pointer;
      transition: background-color 0.3s;
      z-index: 1000;
    }
    
    .sound-btn:hover {
      background-color: #ffcc00;
    }
    
  }
  