/* =========================================
   沿革年表
========================================= */

.history-list,
.history-list__row {
	list-style: none;
}

.history-list {
	padding: 0;
	margin: 0;
}

.history-list__wrap {
	margin-top: 30px;
	width: 100%;
	max-width: 800px;
	margin-left: 45px;
}

.history-list__row {
	--history-time-width: 252px;
	--history-content-gap: 50px;

	display: flex;
	justify-content: flex-start;
	gap: var(--history-content-gap);
	position: relative;
	margin-bottom: 30px;
	padding: 0;
}

.history-list__row:last-child {
	margin-bottom: 0;
}

.history-list__row::before {
	position: absolute;
	content: "";
	height: calc(100% + 50px);
	width: 2px;
	background-color: #034D7A;
	top: 50%;
	left: 4px;
}

.history-list__row:last-child::before {
	height: 50%;
}

.history-list__row::after {
	position: absolute;
	top: 50%;
	left: 0;
	content: "●";
	transform: translateY(-90%);
	line-height: 1;
	font-size: 10px;
	color: #034D7A;
}

.history-list__row.is-no-year::after,
.history-list__row:has(.no-year)::after {
	display: none;
}

.history-list__time {
	display: flex;
	justify-content: flex-start;
	gap: 27px;
	width: var(--history-time-width);
	flex: 0 0 var(--history-time-width);
	box-sizing: border-box;
	padding-left: 15px;
}

.history-list__time .year {
	width: 120px;
	text-align: right;
	padding: 0;
	margin: 0;
	line-height: 1;
}

.history-list__time .year.no-year {
	height: 0;
}

.history-list__time .month {
	width: 90px;
	text-align: right;
	padding: 0;
	margin: 0;
	line-height: 1;
}

.history-list__time .history-num {
	font-size: 34px;
	color: #034D7A;
	font-family: "Noto Sans", sans-serif;
	font-weight: 600;
	margin: 0;
	line-height: 1;
}

.history-list__time .history-unit {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 24px;
	padding-left: 7px;
	color: #034D7A;
	font-weight: 700;
	margin: 0;
	line-height: 1;
}

.history-list__content {
	display: flex;
	align-items: center;
	width: calc(100% - var(--history-time-width) - var(--history-content-gap));
	flex: 0 1 calc(100% - var(--history-time-width) - var(--history-content-gap));
	min-width: 0;
	box-sizing: border-box;
}

.history-list__content p {
	margin: 0;
	line-height: 1;
	text-align: left;
	padding-top: 5px;
	font-weight: 500;
	color: #0F1524;
}

.history-list__content ul,
.history-list__content ol {
	margin: 0;
	padding-left: 1.4em;
	color: #0F1524;
}

.history-list__content li {
	list-style: inherit;
	margin-bottom: 0.35em;
}

.history-list__content li:last-child {
	margin-bottom: 0;
}

/* =========================================
   編集画面用
========================================= */

.history-list__wrap--editor {
	padding: 16px;
	border: 1px dashed #d7dce2;
}

.history-list__editor-note {
	margin: 0 0 20px;
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.6;
	background: #f4f8fb;
	border: 1px solid #d5e6f2;
	border-radius: 6px;
	color: #0F1524;
}

.history-list__row-tools {
	position: absolute;
	top: -34px;
	right: 0;
	z-index: 5;
	display: flex;
	justify-content: flex-end;
	gap: 6px;
}

.history-list__row:first-child .history-list__row-tools {
	top: -38px;
}

.history-list__row-add-wrap {
	margin-top: 24px;
	padding-left: 15px;
}

.history-list__row-add-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.history-list__time .block-editor-plain-text.history-num--input {
	display: inline-block;
	width: auto;
	min-width: 1.5em;
	max-width: 5em;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	box-shadow: none;
	outline: none;
	color: #034D7A;
	font-size: inherit;
	font-family: inherit;
	font-weight: inherit;
	line-height: inherit;
	text-align: right;
	resize: none;
	overflow: hidden;
}

.history-list__time .block-editor-plain-text.history-num--input::placeholder {
	color: rgba(3, 77, 122, 0.35);
}

.history-list__content .block-editor-block-list__layout {
	width: 100%;
}

.history-list__content .block-editor-button-block-appender {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	padding: 0 !important;
	border-radius: 2px !important;
	background: #111 !important;
	color: #fff !important;
	box-shadow: none !important;
}

.history-list__content .block-editor-button-block-appender svg {
	fill: currentColor !important;
}

.editor-styles-wrapper .history-list p,
.editor-styles-wrapper .history-list span {
	line-height: 1;
}

.editor-styles-wrapper .history-list__content p {
	margin: 0;
}

/* =========================================
   767px以下
========================================= */

@media screen and (max-width: 767px) {
	.history-list p,
	.history-list span {
		line-height: 1;
		padding: 0;
		margin: 0;
	}

	.history-list__wrap {
		margin-left: 10px;
	}

	.history-list__row {
		--history-time-width: 125px;
		--history-content-gap: 10px;

		gap: var(--history-content-gap);
		margin-bottom: 20px;
	}

	.history-list__row::before {
		width: 2px;
		top: 25%;
		left: 4px;
		height: calc(100% + 30px);
	}

	.history-list__row:last-child::before {
		height: 75%;
	}

	.history-list__row::after {
		top: 25%;
		transform: translateY(-10%);
		font-size: 10px;
	}

	.history-list__time {
		flex-direction: column;
		align-items: end;
		gap: 10px;
		width: var(--history-time-width);
		flex: 0 0 var(--history-time-width);
		box-sizing: border-box;
		padding-left: 8px;
	}

	.history-list__time .year {
		width: 100%;
		text-align: right;
	}

	.history-list__time .year .history-num {
		font-size: 32px;
	}

	.history-list__time .month {
		width: 100%;
		text-align: right;
		height: fit-content;
	}

	.history-list__time .month .history-num {
		font-size: 27px;
	}

	.history-list__time .history-unit {
		padding-left: 2px;
		font-size: 21px;
	}

	.history-list__content {
		align-items: end;
	}

	.history-list__row-tools {
		position: static;
		order: 3;
		width: 100%;
		margin-top: 8px;
	}

	.history-list__row-add-wrap {
		padding-left: 8px;
	}
}

/* =========================================
   575px以下
========================================= */

@media screen and (max-width: 575px) {
	.history-list__row {
		--history-time-width: 80px;
		--history-content-gap: 10px;

		gap: var(--history-content-gap);
		margin-bottom: 10px;
	}

	.history-list__row::before {
		width: 1px;
		top: 30%;
		left: 3px;
	}

	.history-list__row::after {
		font-size: 7px;
	}

	.history-list__time {
		flex-direction: column;
		align-items: end;
		gap: 0;
		width: var(--history-time-width);
		flex: 0 0 var(--history-time-width);
		box-sizing: border-box;
		padding-left: 12px;
	}

	.history-list__time .year {
		width: 100%;
		text-align: right;
	}

	.history-list__time .year .history-num {
		font-size: 20px;
	}

	.history-list__time .month {
		width: 100%;
		text-align: right;
		height: fit-content;
	}

	.history-list__time .month .history-num {
		font-size: 16px;
	}

	.history-list__time .history-unit {
		font-size: 12px;
		padding-left: 2px;
	}

	.history-list__content {
		font-size: 14px;
	}
}