@media (min-width: 768px) {
  #container {
    width: 1020px;
    margin: auto;
    padding: 10px;
    background-color: #ffffff;
  }
  #input-reply-container {
    text-align: center;
  }
  #input-reply-div {
    text-align: left;
    display: inline-block;
  }

  #possible-dates-table th.date-th {
    width: 10em;
  }

  #bbs-poster-input-text {
    width: 25em;
    margin-bottom: 5px;
  }

  #bbs-textarea {
    width: 500px;
    height: 4em;
  }
}

@media (max-width: 768px) {
  #container {
    width: 100%;
    margin: auto;
    padding: 10px;
    background-color: #ffffff;
  }
  #input-reply-container {
    text-align: center;
  }
  #input-reply-div {
    text-align: left;
    display: inline-block;
  }
  #bbs-input-photo {
    width: calc(100% - 40px);
  }
  img.bbs-photo {
    width: 100%;
  }

  #bbs-poster-input-text {
    width: 100%;
    margin-bottom: 5px;
  }

  #bbs-textarea {
    width: 100%;
    height: 4em;
  }
}

h3 {
  padding: 0.4em 0.5em;
  font-weight: bold;
  background: #f4f4f4;
  border-left: solid 5px #e06d15;
  margin-bottom: 10px;
}

dl {
  margin: 1em 0;
}

dd {
  margin-left: 1em;
  margin-bottom: 0.5em;
}

ol {
  list-style-position: inside;
  list-style-type: decimal;
}

li {
  all: revert;
}

#organizer-name-line {
  margin-bottom: 10px;
}

#organizer-name-line .title {
  font-weight: bold;
}

#organizer-name-line .title::after {
  content: "：";
}

#deadline-line {
  margin-bottom: 10px;
}

#deadline-line .title {
  font-weight: bold;
}

#deadline-line .title::after {
  content: "：";
}

#event-description {
  margin-bottom: 10px;
}

#possible-dates-table {
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 10px;
}

table th, table td {
  border: solid 1px black;
  text-align: center;
  vertical-align: middle;
  word-break: break-all;
}

table th {
  background-color: whitesmoke;
}

table th.count-th {
  background-color: #f0f0f0;
  width: 3em;
}

table td.count {
  background-color: #ffffee;
}

div.reply-button-div {
  min-height: 80px;
  padding-top: 10px;
  text-align: center;
}

button#reply-button {
  width: 60%;
  min-height: 60px;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  font-size: 25px;
  color: white;
  background-color: #e06d15;
  border-radius: 5px;
}

div.delete-button-div {
  width: 60%;
  margin: 0 auto;
  text-align: right;
}

#reply-button:hover {
  background-color: #eda975;
}

#reply-table td {
  padding: 5px;
}

#reply-table label {
  display: inline-block;
  min-width: 50px;
  min-height: 50px;
  margin: 5px;
  font-size: 30px;
  padding: 5px;
  border: 1px solid #808080;
  border-radius: 8px;
}

label:has(input[type="radio"]:checked) {
  color: white;
  background-color: #e06d15;
}

label:has(input[type="radio"]:not(:checked)) {
  color: black;
  background: linear-gradient(#eeeeee, #bbbbbb);
}

label:has(input[type="radio"]:not(:checked)):hover {
  color: black;
  background: linear-gradient(#bbbbbb, #eeeeee);
}

#input-reply-div p {
  margin-top: 10px;
}

#input-reply-div input[type="text"] {
  width: 25em;
}

#input-reply-div textarea {
  width: 25em;
  height: 4em;
}

span.input-reply-comment {
  margin-left: 2em;
  font-size: 14px;
}

#bbs-input-area {
  margin-bottom: 10px;
}

#bbs-input-button-area p {
  margin-top: 5px;
}

#bbs-input-photo {
  margin-top: 5px;
}

#bbs-photo-trash-bin {
  cursor: pointer;
}

div.one-bbs-message {
  margin-top: 10px;
}

p.bbs-message-poster-p {
  margin: 5px 0;
}

#bbs-message-area {
  margin-bottom: 10px;
}

#now-uploading-dialog {
  background-color: rgba(0, 0, 0, 0);
}
