html,
body {
  height: 100%;
  margin: 0;
  text-align: center;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
header {
  margin-bottom: 0;
}
.main {
  flex: 1; /* メインが伸びる */
  margin-bottom: 20px;
}
img {
  max-width: 100%;
  height: auto;
}
img.sho {
  max-width: 300px;
}
.news-list {
  width: fit-content;
  margin: 0 auto;
}

.news-list li {
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid;
  list-style: none;
}

.news-list a {
  color: #3e3e3b;
}
ul {
  text-align: center;
  width: fit-content;
  margin: 20px auto;
}

footer {
  background: #fef4f4;
  padding: 20px;
  text-align: center;
}

/* contact form */
.required {
  color: red;
  font-weight: bold;
}
form.contact table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}
form.contact table th {
  width: 25%;
  border: 1px solid #ccc;
  padding: 0.5rem;
  background-color: #eee;
}
form.contact table td {
  width: 75%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  text-align: center;
}
form.contact table td input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
  background: #f8f8f8;
  display: block;
  font-size: 16px;
  padding: 12px 15px;
  width: 90%;
  transition: 0.8s;
  border-radius: 0;
}
form.contact table td input[type="text"],
input[type="number"]:focus,
textarea:focus {
  background: #e9f5fb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
form.contact button {
  display: inline-block;
  padding: 10px 10px;
  font-size: 1em;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
form.contact button:hover {
  background-color: #0056b3;
}
form.contact button.cancel {
  background-color: aqua;
  color: black;
}
/* オーバーレイ全体の背景 */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0.5s;
  z-index: 9999;
}

/* メッセージボックス */
#message-box {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
@media screen and (min-width: 768px) {
  /* PC用CSS記述 */
}

@media screen and (max-width: 768px) {
  /* スマートフォン用CSS記述 */
  .wrapper {
    width: 80%;
  }
}
