/* ================================================
   UshiP Blog – Cyan & White / readable mobile
   ================================================ */

:root {
  --bg: #0b1320;
  --ink: #eaf6fb;
  --muted: #9bb7c7;
  --line: #13283a;
  --cyan: #05a1bd;
  --cyan-200: #a5f3fc;
  --link: #00ffff;
  --link-hover: #ff4081;
  --table-line: #00eaff;
  --shadow: 0 14px 36px rgba(0, 0, 0, .35);
  --r: 18px;
  --content-width: 48em;
}

/* base */
html {
  font-family:
    system-ui, -apple-system, "Segoe UI", Roboto,
    "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Yu Gothic", Meiryo,
    Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 2.1;
  letter-spacing: 0.01em;
}

/* link */
a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* header / footer */
header,
footer {
  background: color-mix(in srgb, var(--cyan-200) 10%, var(--bg));
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 1rem;
}

header a,
footer a {
  color: var(--cyan);
  text-decoration: none;
}

/* layout */
main {
  padding: 2rem 0;
}

.container {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

/* text */
h1,
h2,
h3 {
  line-height: 1.3;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

h2 {
  max-width: 21em;
  font-size: 2.2rem;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

p {
  text-align: left;
  font-size: 18px;
  margin: 0 0 1.25em;
}

/* image */
img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* button */
.button {
  display: inline-block;
  padding: .6rem 1rem;
  background: var(--cyan);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: var(--shadow);
}

/* list */
ol,
ul {
  text-align: left;
  list-style-position: outside;
  padding-left: 1.75em;
  margin: 0.75em 0 1em;
}

li {
  line-height: 1.8;
  margin: 0.25em 0;
}

ol li::marker {
  font-weight: 600;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

ul li::marker {
  color: var(--cyan);
}

/* table */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

table {
  width: 100%;
  max-width: var(--content-width);
  border-collapse: collapse;
  margin: 2rem auto;
  background: color-mix(in srgb, var(--bg) 90%, black 10%);
  box-shadow: var(--shadow);
  border: 1px solid var(--table-line);
  border-radius: var(--r);
  overflow: hidden;
}

th,
td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  font-size: 16px;
  color: var(--ink);
  border: 1px solid var(--table-line);
}

thead {
  background: #00a7c8;
  color: #fff;
  border-bottom: 2px solid #00ffff;
}

tr:nth-child(even) {
  background: color-mix(in srgb, var(--bg) 70%, #001f2f 30%);
}

tr:hover {
  background: color-mix(in srgb, #00ffff 20%, var(--bg) 80%);
  transition: background 0.2s ease-in-out;
}

/* mobile */
@media (max-width: 768px) {
  body {
    line-height: 2;
  }

  .container {
    width: min(100% - 2rem, var(--content-width));
  }

  p {
    font-size: 18px;
    margin-bottom: 1.15em;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.85rem;
    line-height: 1.4;
    max-width: 11em;
  }

  h3 {
    font-size: 1.3rem;
  }

  th,
  td {
    font-size: 14px;
    padding: 0.7rem 0.8rem;
  }
}

.ref-no {
  font-size: 0.6em;
  vertical-align: baseline;
  margin-left: 0.3em;
}