/* ======================================================
   Modern Flat Design CSS
   ====================================================== */

/* --- Base Layout --- */
html {
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Meiryo", sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #f9fafb;
}

body {
  margin: 0;
  padding: 2rem 1rem;
  max-width: 900px;
  margin-inline: auto;
}

/* --- Links --- */
a {
  color: #0077b6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: #023e8a;
  background-color: #caf0f8;
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
}

/* --- Headings --- */
h1 {
  font-size: 2rem;
  color: #ffffff;
  background: linear-gradient(135deg, #0077b6, #0096c7);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  text-align: center;
  margin-top: 0;
}

h2 {
  font-size: 1.4rem;
  color: #0077b6;
  border-left: 5px solid #00b4d8;
  padding-left: 0.6rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h2.practice {
  background-color: #00b894;
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-left: none;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h3 {
  color: #555;
  font-size: 1.1rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.3rem;
  margin-top: 1rem;
}

/* --- Text blocks --- */
p {
  margin: 0.8rem 0;
  line-height: 1.8;
}

.source {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  background-color: #f1f3f5;
  border-left: 4px solid #00b4d8;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  color: #444;
}

.updatetime {
  text-align: right;
  font-size: 0.8rem;
  color: #777;
  margin-top: 1rem;
}

p .migi {
  float: right;
  margin-left: 1em;
  margin-bottom: 1em;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th, td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

th {
  background-color: #e6f4f1;
  color: #006d77;
  font-weight: 600;
}

td {
  background-color: #ffffff;
  font-family: "Courier New", monospace;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .source {
    font-size: 0.8rem;
  }
}
