.index a {
  color: inherit;
  display: block;
  text-decoration: none;
}

ul {
  list-style: none;
  padding-left: 0;
  margin: 1em 0;
}

ul li {
  border: 1px solid #ddd;
  background: #f9f9f9;
  border-left: 3px solid #888;
  padding: 6px 10px;
  margin: 6px 0;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: background 0.2s, border-color 0.2s;
}

ul.index li:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

li.test1 {
  background: #eef7ff;
  border-left-color: #55b7f9;
}

li.test2 {
  background: #fff8e6;
  border-left-color: #e6b800;
}

li.test3 {
  background: #e8f7e9;
  border-left-color: #3fa353;
}

li.test4 {
  background: #ffeaea;
  border-left-color: #d9534f;
}

li.test5 {
  background: #f4efff;
  border-left-color: #8a6de9;
}

ol:not(nav ol) {
  list-style: decimal;
  list-style-position: inside;
  padding-left: 0;
  margin: 1em 0;
}

ol:not(nav ol) li {
  border: 1px solid #ddd;
  background: #f9f9f9;
  border-left: 3px solid #888;
  padding: 6px 10px;
  margin: 6px 0;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

ol:not(nav ol) li::marker {
  color: #555;
}

h1 {
  border: 2px solid #000;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1.8em;
  box-shadow: 2px 2px 0 #000;
  margin: 0 3px 10px 0;
}

h2 {
  border: 1.5px solid #333;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1.4em;
  box-shadow: 1px 1px 0 #555;
  background: #fafafa;
  margin: 0 2px 10px 0;
}

h3 {
  border: 1px solid #888;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 1.1em;
  background: #fff;
}

[id] {
  scroll-margin-top: 60px;
}

summary {
  list-style: none;
}

summary.h2 {
  border: 1.5px solid #333;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1.4em;
  font-weight: bold;
  box-shadow: 1px 1px 0 #555;
  background: #fafafa;
  margin: 0 2px 10px 0;
}

summary.h3 {
  border: 1px solid #888;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 1.1em;
  font-weight: bold;
  background: #fff;
  margin: 0 2px 10px 0;
}

summary:hover {
  background: #f3f3f3;
  box-shadow: 2px 2px 0 #333;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

th,
td {
  border: 1px solid #ddd;
  padding: 6px 10px;
  text-align: center;
}

th {
  background: #f9f9f9;
  font-weight: bold;
  color: #333;
}

td {
  background: #ffffff;
}

td.exam {
  background: #d9534f;
}

td.gray {
  background: #d9d9d9;
}

td.private {
  background: #3fa353;
}

td.trip {
  background: #55b7f9;
}

.left {
  text-align: left;
}

.tdleft td {
  text-align: left;
}

.bianchi th {
  font-size: 17px;
}
.bianchi td {
  font-size: 17px;
}

.calendar th {
  font-size: 30px;
}
.calendar td {
  font-size: 30px;
}

.breadcrumbs {
  position: sticky;
  top: 0;
  z-index: 1000; /* 見出しなどより上に */
  background: #fff; /* 背景白で下の要素が透けないように */
  padding: 10px 0px;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px; /* ボタン間の余白 */
}

.breadcrumbs li + li {
  position: relative;
  padding-left: 18px;
}

.breadcrumbs li + li::before {
  content: ">";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: black;
  font-weight: 600;
}

.breadcrumbs a {
  display: inline-block;
  text-decoration: none;
  color: #111;
  background: #fff; /* h3寄りの白地 */
  border: 1.5px solid #333; /* h2と同系の濃さ */
  border-radius: 6px; /* h2に合わせる */
  padding: 4px 10px;
  box-shadow: 1px 1px 0 #555; /* h2と同じ“1px角影” */
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.breadcrumbs a:hover {
  background: #f5f5f5;
  border-color: #222;
}

.breadcrumbs li[aria-current="page"] a,
.breadcrumbs li.current a {
  cursor: default;
  pointer-events: none;
  font-weight: 600;
  background: #fafafa; /* h2と統一感 */
  border-color: #000;
  box-shadow: 2px 2px 0 #000; /* h1の影量に合わせる */
}

.font_white {
  color: white;
}

.hide input {
  display: none;
}

.hide input:checked ~ p {
  display: inline;
}

.hide p {
  display: none;
}

.highlight {
  background-color: #d9d9d9;
}

.flashcard button {
  font-size: 30px;
  padding: 0px 10px;
  width: 100%;
}

#timer {
  font-size: 30px;
  padding: 0px 10px;
  width: 90%;
}

.red {
  color: red;
}

.square h3 {
  border-color: #55b7b3;
  border-style: solid;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.time-block .bar {
  width: 1px;
  height: 10px;
  background: #000000;
  margin: 2px 0;
}

.white a {
  color: white;
  text-decoration: none;
}

.d9d9d9 {
  background-color: #d9d9d9;
}

@media screen and (max-width: 480px) {
  body {
    font-size: 16px;
  }
}
