/* -----------------------------------------------
 * Base Styles
 * ----------------------------------------------- */
html {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fafafa;
}

body {
  margin: 0;
  padding: 1rem;
}

/* -----------------------------------------------
 * Hyperlinks
 * ----------------------------------------------- */
a {
  color: #0066cc;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #008b8b;
  text-decoration: underline;
  background-color: #ffe4e1;
}

/* -----------------------------------------------
 * Headings
 * ----------------------------------------------- */
h1 {
  font-size: 1.6rem;
  color: #fff;
  background-color: #0033cc;
  font-weight: bold;
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

h2 {
  font-size: 1.3rem;
  color: #0033cc;
  background-color: #ffe4e1;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  border-left: 5px solid #0033cc;
  border-radius: 4px;
}

h2.practice {
  background-color: #396;
  color: white;
  border-left: 5px solid #2e5;
  margin-left: 1rem;
}

h3 {
  color: #0033cc;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0.5rem 0 0.3rem 0.5rem;
}

/* -----------------------------------------------
 * Text blocks
 * ----------------------------------------------- */
p {
  margin: 0.5rem 0 0.5rem 0.8rem;
}

.source {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: #444;
  background: #f3f3f3;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  margin: 0.5rem 0;
}

.updatetime {
  text-align: right;
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}

p .migi {
  float: right;
  margin-left: 1em;
  margin-bottom: 1em;
}

/* -----------------------------------------------
 * Tables
 * ----------------------------------------------- */
td {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  padding: 0.4rem;
  border-bottom: 1px solid #ddd;
}

/* -----------------------------------------------
 * Responsive adjustments
 * ----------------------------------------------- */
@media (max-width: 600px) {
  body {
    padding: 0.5rem;
  }

  h1, h2, h3 {
    font-size: 1rem;
  }

  .source {
    font-size: 0.8rem;
  }
}
