body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  padding: 0;
  background-image: url('./image_back.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: #003366;
}

.navbar {
  background-color: #4a60a1;
  padding: 1em;
  text-align: center;
}

.navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar ul li {
  display: inline;
  margin: 0 15px;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #a3d2ff;
}

.title {
  padding: 2em;
  background-color: rgba(163, 210, 255, 0.8);
  text-align: center;
  border-radius: 8px;
  margin: 1em;
}

main {
  max-width: 1000px;
  margin: auto;
  padding: 2em;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 8px;
}

section {
  margin-bottom: 3em;
}

h1, h2, h3 {
  color: #003366;
}

h2 {
  background-color: #4a60a1;
  color: white;
  font-size: 1.8em;
  padding: 10px;
  border-radius: 8px;
  margin-top: 30px;
}

.figures-row figcaption {
  margin-top: 8px;
  font-size: 0.95em;
  font-weight: 600;          /* makes text bold but not too heavy */
  background-color: #ffffff;
  border: 1px solid #ccd2da;
  border-radius: 6px;
  padding: 6px 10px;
  color: #1e3a8a;
  font-family: "Noto Sans JP", sans-serif;
}

footer {
  background-color: #4a60a1;
  color: white;
  text-align: center;
  padding: 1em;
  margin-top: 2em;
  border-radius: 8px;
  margin-left: 1em;
  margin-right: 1em;
}

.figures-row {
  display: flex;
  justify-content: center;       /* centre the whole group */
  align-items: center;
  gap: 20px;                     /* space between figures */
  flex-wrap: wrap;               /* allows stacking on small screens */
  margin: 20px 0;
}

.figures-row figure {
  flex: 1 1 45%;                 /* each figure takes ~45% width */
  max-width: 500px;              /* prevents overflow on large screens */
  text-align: center;
  margin: 0;
}

.figures-row img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 0.5px solid #000000; /* thin black frame */
}

.figures-row figcaption {
  margin-top: 8px;
  font-size: 0.95em;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
}

.full-width {
  width: 90%;
  text-align: center;
  margin: 30px auto;
}

.full-width img {
  width: 100%;              /* takes entire available width */
  height: auto;             /* preserves proportions */
  border: 0.5px solid #000; /* thin black frame, as before */
  border-radius: 6px;
}

.full-width figcaption {
  margin-top: 8px;
  width: 100%;                /* matches the image width automatically */
  box-sizing: border-box;     /* ensures border/padding doesn’t affect width */
  font-size: 1em;
  font-weight: 600;
  color: #1e3a8a;           /* deep navy */
  background-color: #ffffff;
  border: 1px solid #ccd2da;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: "Noto Sans JP", sans-serif;
}