@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru&display=swap');

body {
  background-color: #f9f7f2;
  color: #333;
  font-family: 'Kiwi Maru', 'Noto Sans JP', sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #e8e4d9;
  color: #4b3f2f;
  padding: 20px;
  font-weight: bold;
  font-size: 1.2em;
  border-bottom: 2px solid #c9c2b4;
  text-align: left;
}

main {
  padding: 20px;
  max-width: 80%;
  margin: 0 auto;
}

section {
  background-color: #fffdf9;
  border: 1px solid #ddd4c3;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 20px;
  box-shadow: 2px 2px 5px rgba(200,180,160,0.1);
}

#number {
  font-weight: bold;
  color: #a0743f;
}

#name {
  font-weight: bold;
  color: #5c4f45;
  margin-top: 5px;
}

#time {
  font-size: 0.9em;
  color: #999;
  margin-bottom: 10px;
}

#message {
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  background-color: #f0ede6;
  color: #888;
  border-top: 1px solid #dcd2c0;
  margin-top: 30px;
}

#overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      color: #fff;
      font-size: 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 999;
      opacity: 0;
      pointer-events: none;
      transition: opacity 1s ease;
    }

    #overlay.show {
      opacity: 1;
      pointer-events: auto;
    }
    #title-container {
      display: flex;
      flex-direction: column;
      align-items: center;  
    }
    #fixed-title {
      font-size: 1.2em;
      margin-bottom: 0.5em;
    /* 必要なら不気味な装飾も可能 */
    }
    #message2 {
      min-height: 2em; /* 高さを確保しておく */
      transition: all 1s ease;
    }
    #message2.invisible {
      opacity: 0;
      filter: blur(4px);    
    }
    .show #message2 {
      opacity: 1;
    }
    #message2.blur-out {
      filter: blur(4px);
      opacity: 0;
      transition: all 1s ease;
    }

    #message2.fade-in {
      filter: blur(0);
      opacity: 1;
      transition: all 1s ease;
    }

@media screen and (max-width: 600px) {
  body {
    font-size: 16px;
    padding: 10px;
  }

  header {
    font-size: 1em;
    padding: 15px;
  }

  main {
    text-align: left;
    max-width: 100%;
    margin-left: 5px;
    padding-left: 0px;
  }

  section {
    padding: 2px 2px;
  }

  #name, #number, #time {
    display: block;
    margin-top: 5px;
  }

  #message {
    font-size: 1em;
    text-align: left;
    padding-left: 4px;
  }

  footer {
    font-size: 0.8em;
    padding: 10px;
    text-align: left;
  }
  
  * {
  box-sizing: border-box;
}

}