/* 沿革だけに適用する、カレンダーと時系列の表示。 */
.history-year {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--subpage-green);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.history-year span {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.history-timeline > .history-entry {
  position: relative;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin: 0;
  padding: 0;
  border: 0;
}

.history-timeline > .history-entry + .history-entry {
  margin-top: 32px;
}

.history-entry:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: -32px;
  left: 61px;
  width: 2px;
  background: #c9d5be;
}

.history-calendar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  min-height: 118px;
  margin-top: 8px;
  color: #445148;
  background: #fffef9;
  border: 1px solid #c7d1c3;
  border-radius: 8px;
  box-shadow: 0 3px 0 #dce2d5;
  text-align: center;
  font-variant-numeric: lining-nums tabular-nums;
}

.history-calendar::before,
.history-calendar::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 6px;
  height: 14px;
  background: #82917b;
  border: 1px solid #fffef9;
  border-radius: 4px;
}

.history-calendar::before { left: 22px; }
.history-calendar::after { right: 22px; }

.history-calendar-year {
  box-sizing: border-box;
  width: 100%;
  padding: 9px 8px 7px;
  color: #fff;
  background: #445148;
  border-radius: 7px 7px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.history-calendar-month {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 4px 12px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.history-calendar-month small {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.history-calendar-range .history-calendar-month {
  gap: 2px;
  font-size: 34px;
}

.history-calendar-day {
  margin: -4px 0 10px;
  padding: 3px 10px;
  color: #445148;
  background: #edf2e4;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.history-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgb(23 27 30 / 6%);
}

.history-content h3 {
  margin: 0 0 12px;
  color: var(--subpage-green);
  font-size: 20px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.history-content p {
  margin: 0;
  color: #566159;
  font-size: 15px;
  line-height: 1.95;
}

.history-details {
  margin: 14px 0 0;
  padding-left: 1.25em;
  color: #566159;
  font-size: 15px;
  list-style: disc;
}

.history-details > li + li { margin-top: 8px; }
.history-details > li::marker { color: #87996a; }

@media (max-width: 600px) {
  .history-year { margin-bottom: 22px; font-size: 40px; }
  .history-timeline > .history-entry { display: block; }
  .history-timeline > .history-entry + .history-entry { margin-top: 26px; }
  .history-entry:not(:last-child)::before { left: 58px; bottom: -26px; }
  .history-calendar {
    position: absolute;
    top: 20px;
    left: 18px;
    z-index: 2;
    width: 82px;
    min-height: 96px;
    margin-top: 0;
  }
  .history-calendar::before { left: 15px; }
  .history-calendar::after { right: 15px; }
  .history-calendar-year { padding: 7px 4px 5px; font-size: 11px; }
  .history-calendar-month { gap: 2px; padding: 8px 3px; font-size: 32px; }
  .history-calendar-month small { font-size: 11px; }
  .history-calendar-range .history-calendar-month { gap: 1px; font-size: 23px; }
  .history-calendar-day { margin: -3px 0 8px; padding: 2px 8px; font-size: 11px; }
  .history-content { padding: 20px 18px; }
  .history-content h3 {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 108px;
    margin-bottom: 16px;
    padding-left: 100px;
    font-size: 18px;
  }
  .history-content p { font-size: 14px; }
  .history-details { font-size: 14px; }
}
