* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  background-color: #0844E7;
  padding: 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.wrap-logo {
  display: flex;
  align-items: center;
}

header a {
  color: #FFFFFF;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 18px;
  border-radius: 4px;
  margin: 5px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

header a.logo {
  font-size: 28px;
  font-weight: bold;
}

header a:hover {
  background-color: #5080FF;
  color: #212121;
  transform: scale(1.05);
}

nav {
  display: flex;
  align-items: center;
  padding: 5px;
  margin-left: 10px;
}

.head {
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
}

h1, h3, h4, h5 {
  text-align: center;
  margin: 10px 0;
}

h1 {
  font-size: 2.5em;
  color: #0844E7;
}

h5 {
  font-size: 1.2em;
  font-weight: 800;
}

figcaption {
  text-align: center;
  font-weight: 700;
  font-size: 1.8em;
  margin-top: 10px;
  color: #555;
}

figure {
  text-align: center;
  margin: 20px 0;
}

img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

div.time {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

div.text {
  text-align: center;
  max-width: 800px;
  margin: 20px auto 0;
  border-top: 1px solid gray;
  padding-top: 15px;
  font-size: 16px;
}

.lb1 {
  margin-top: -15px;
  font-size: 14px;
}

@media only screen and (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  nav {
    margin-left: 0;
  }

  header a {
    padding: 8px 12px;
  }

  .head {
    padding: 0 20px;
  }

  h1 {
    font-size: 2em;
  }
}
