@charset "UTF-8";

/* ============================
   Base Reset & Typography
   ============================ */

html {
  box-sizing: border-box;
  font-size: 16px;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body,
h1, h2, h3, h4, h5, h6,
p, div,
ul, li,
table, tr, td, th,
figure,
address, cite,
dl, dt, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
  font-style: normal;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #222;
  background-color: #f5f5f7;
  line-height: 1.7;
}

/* ============================
   Links
   ============================ */

a {
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.15s ease-out, opacity 0.15s ease-out;
}

a:hover {
  color: #0a58ca;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* ============================
   Headings
   ============================ */

h1 {
  font-size: 14px;
  font-weight: normal;
  background: #f2f2f2;
  padding: 5px 10px;
  border-bottom: 1px solid #ddd;
  letter-spacing: 0.12em;
}

h2 {
  font-size: 16px;
  margin-bottom: 8px;
  border-left: 4px solid #0d6efd;
  padding-left: 8px;
}

h3 {
  font-size: 14px;
}

/* ============================
   Images & Figure
   ============================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  display: inline-block;
}

/* ============================
   Tables
   ============================ */

table {
  border-collapse: collapse;
  width: 100%;
}

td, th {
  padding: 6px 4px;
  vertical-align: middle;
  font-size: 13px;
}

/* ============================
   Forms & Buttons
   ============================ */

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 14px;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

input::placeholder,
textarea::placeholder {
  color: #aaa;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

input[type="submit"],
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #0d6efd;
  background: #0d6efd;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out,
    box-shadow 0.15s ease-out, transform 0.1s ease-out;
}

input[type="submit"]:hover,
button:hover,
.btn:hover {
  background-color: #0a58ca;
  border-color: #0a58ca;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

input[type="submit"]:active,
button:active,
.btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* ============================
   Article / Card base
   ============================ */

article {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e3e3e3;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* ============================
   Utility
   ============================ */

.text-muted {
  color: #777;
}

.time {
  font-size: 11px;
  color: #888;
}

/* clearfix for old floats */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}
