/**
 * ニュース一覧・詳細
 * 1.6rem = 16px の既存サイト設定を前提にしています。
 */


.news-category-select {
  display: none;
}

.news-category-select__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.news-archive,
.news-single {
	--news-text: #333;
	--news-muted: #777;
	--news-line: #aaa;
	--news-ease: cubic-bezier(.2, .7, .2, 1);
	background: #fff;
	color: var(--news-text);
}

.news-container {
	max-width: 124rem;
	width: calc(100% - 8em);
	margin-inline: auto;
}

.news-archive {
	padding: 7.5em 0 8em;
}

.news-archive__header {
	margin-bottom: 3.5em;
}

.news-archive__header h1 {
	margin: 0 0 1.25em;
	font-family: Georgia, "Times New Roman", "Yu Mincho", YuMincho, serif;
	font-size: 4rem;
	font-weight: 400;
	letter-spacing: .02em;
}

.news-tabs {
	display: flex;
	align-items: flex-end;
	gap: .9em;
	flex-wrap: wrap;
}

.news-tabs__item {
	position: relative;
	padding: 0 .7em .7em;
	border-bottom: 4px solid #bbb;
	color: #999;
	font-size: 2.2rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: color .3s var(--news-ease), border-color .3s var(--news-ease);
}

.news-tabs__item::after {
	position: absolute;
	right: 0;
	bottom: -4px;
	left: 0;
	height: 4px;
	background: #111;
	content: "";
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform .35s var(--news-ease);
}

.news-tabs__item:hover,
.news-tabs__item:focus-visible,
.news-tabs__item.is-current {
	color: #222;
}

.news-tabs__item:hover::after,
.news-tabs__item:focus-visible::after,
.news-tabs__item.is-current::after {
	transform: scaleX(1);
	transform-origin: left center;
}

.news-list,
.news-related__list {
	display: grid;
	gap: 2.2em;
}

.news-card__link {
	display: grid;
	grid-template-columns: minmax(28rem, 42%) minmax(0, 1fr);
	gap: 3em;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.news-card__media {
	position: relative;
	display: grid;
	overflow: hidden;
	place-items: center;
	aspect-ratio: 16 / 9.5;
	border: .1rem solid var(--news-line);
	background: #fff;
}

.news-card__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform .65s var(--news-ease), opacity .45s ease;
}

.news-card__media--empty {
	border-color: transparent;
	background: #eef1f4;
	color: #9aa2a9;
	font-family: Arial, sans-serif;
	font-size: 1.2rem;
	letter-spacing: .15em;
}

.news-card__body {
	min-width: 0;
	transition: transform .4s var(--news-ease);
}

.news-card__title {
	margin: 0;
	font-family: Georgia, "Times New Roman", "Yu Mincho", YuMincho, serif;
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: .02em;
}

.news-card__excerpt {
	margin: 1em 0 0;
	font-size: 1.4rem;
	line-height: 1.7;
}

.news-card__meta,
.news-detail__meta {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: .5em;
	margin-top: 2.5em;
}

.news-card__meta time,
.news-detail__meta time {
	color: #555;
	font-size: 1.3rem;
	font-variant-numeric: tabular-nums;
}

.news-category-label {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8em;
    padding: 0.7em 0.5em 0.5em;
    border: .1rem solid #888;
    font-size: 1.3rem;
    line-height: 1.1;
    text-align: center;
}

.news-card__link:hover .news-card__media img,
.news-card__link:focus-visible .news-card__media img {
	opacity: .9;
	transform: scale(1.035);
}

.news-card__link:hover .news-card__body,
.news-card__link:focus-visible .news-card__body {
	transform: translateX(.6em);
}

.news-pagination,
.news-detail-nav {
	display: flex;
    justify-content: space-between;
	align-items: center;
	gap: 1em;
	margin-top: 5em;
}


.news-pagination > :last-child,
.news-detail-nav > :last-child {
	justify-self: end;
}

.news-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 10em;
	min-height: 3.2em;
	padding: .7em 1.5em;
	border: .1rem solid #000;
	border-radius: .4rem;
	background: #000;
	color: #fff;
	font-size: 1.3rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease, transform .25s var(--news-ease);
}

.news-button:hover,
.news-button:focus-visible {
	background: #fff;
	color: #000;
	transform: translateY(-.15em);
}

.news-empty {
	padding: 5em 0;
	text-align: center;
}

/* 詳細ページ */
.news-single {
	padding: 7em 0 9em;
}

.news-wrapper{
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
}

.news-detail__visual {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 1200 / 640;
	margin-bottom: 2.2em;
	border: .1rem solid var(--news-line);
	background: #fff;
}

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

.news-detail__header h1 {
	max-width: 110rem;
	margin: 0;
	font-family: Georgia, "Times New Roman", "Yu Mincho", YuMincho, serif;
	font-size: 2.8rem;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: .02em;
}

.news-detail__meta {
	margin-top: 1.5em;
}

.news-detail__content {
	margin-top: 3.5em;
	font-size: 1.4rem;
	line-height: 1.85;
}

.news-detail__content > :first-child {
	margin-top: 0;
}

.news-detail__content > :last-child {
	margin-bottom: 0;
}

.news-detail__content p {
	margin: 0 0 1.5em;
	font-size: 1.4rem;
}

.news-detail__content a {
	color: inherit;
	text-decoration-thickness: .1rem;
	text-underline-offset: .3em;
}

.news-detail__content img {
	max-width: 100%;
	height: auto;
}

.news-detail__content iframe {
	max-width: 100%;
}

.news-detail__content h2{
  padding: 0.2em 0.5em 0.6em;
  border-bottom: 1px solid #000;
  font-size: 2.2rem;
  line-height: 1.6;
  margin-bottom: 1em;
  margin-top: 2em;
  font-weight: 500;
  position: relative;
}

.news-detail__content h3{
  padding: 0em 0 0 0.6em;
  font-size: 2rem;
  line-height: 2;
  margin-bottom: 1em;
  margin-top: 2em;
  font-weight: 500;
  border-left: 7px solid #000;
}

.news-detail__content h4{
  font-size: 1.8rem;
  padding: 0.5em 0em;
  margin-bottom: 1em;
  margin-top: 2em;
  position: relative;
  display: block;
  font-weight: 500;
}

.news-detail__content img.aligncenter{
  display: block;
  margin: 1em auto;
} 

.news-detail__content a{
  color: #000;
  text-decoration: underline;
}

.news-detail__content a:hover{
  text-decoration: none;
}

.news-detail__content ol{
  padding-left: 1.8em;
  margin-bottom: 0.5em!important;
}

.news-detail__content ol li{
  list-style-type:decimal!important;
}

.news-detail__content ul{
  padding-left: 1.8em;
  margin-bottom: 0.5em!important;
}

.news-detail__content ul li{
  list-style-type: disc!important;
}

.news-detail-nav > :nth-child(2) {
 justify-self: center;
}

.news-related {
	margin-top: 6em;
}

.news-related > h2 {
	margin: 0 0 1em;
	font-family: Georgia, "Times New Roman", "Yu Mincho", YuMincho, serif;
	font-size: 2.4rem;
	font-weight: 400;
}

.news-card--related .news-card__link {
	grid-template-columns: minmax(24rem, 39%) minmax(0, 1fr);
	gap: 2.5em;
}

.news-card--related .news-card__title {
	font-size: 1.8rem;
}

.news-card--related .news-card__meta {
	margin-top: 2em;
}

@media (max-width: 900px) {
	.news-container {
		width: calc(100% - 3em);
	}

	.news-archive,
	.news-single {
		padding-top: 5em;
	}

	.news-card__link,
	.news-card--related .news-card__link {
		grid-template-columns: minmax(20rem, 43%) minmax(0, 1fr);
		gap: 2em;
	}

	.news-card__title,
	.news-card--related .news-card__title {
		font-size: 1.55rem;
	}

	.news-detail__header h1 {
		font-size: 2.25rem;
	}
}

@media (max-width: 640px) {
	.news-container {
		width: calc(100% - 2.5em);
	}

	.news-archive,
	.news-single {
		padding: 5.5em 0 5em;
	}

	.news-archive__header {
		margin-bottom: 2.5em;
	}

	.news-archive__header h1 {
		margin-bottom: .9em;
		font-size: 2.2rem;
	}

	.news-tabs {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: .8em;
	}

	.news-tabs__item {
		min-width: 0;
		font-size: .85rem;
	}

	.news-list,
	.news-related__list {
		gap: 2.5em;
	}

	.news-card__link,
	.news-card--related .news-card__link {
		grid-template-columns: 1fr;
		gap: 1.25em;
	}

	.news-card__title,
	.news-card--related .news-card__title {
		font-size: 1.6rem;
	}

	.news-card__excerpt {
		font-size: 1.4rem;
	}

	.news-card__meta,
	.news-detail__meta {
		margin-top: 1.5em;
	}

	.news-card__link:hover .news-card__body,
	.news-card__link:focus-visible .news-card__body {
		transform: none;
	}

	.news-pagination,
	.news-detail-nav {
		grid-template-columns: repeat(2, 1fr);
		margin-top: 3.5em;
	}

	.news-pagination > :last-child {
		grid-column: 2;
	}

	.news-detail-nav {
		grid-template-columns: 1fr 1fr;
	}

	.news-detail-nav > :nth-child(2) {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.news-button {
		min-width: 0;
		/*width: 100%;*/
		padding-inline: .8em;
		font-size: 1.3rem;
	}

	.news-detail__visual {
		aspect-ratio: 4 / 3;
		margin-bottom: 1.5em;
	}

	.news-detail__header h1 {
		font-size: 1.8rem;
	}

	.news-detail__content {
		margin-top: 2.5em;
		font-size: .95rem;
	}

	.news-related {
		margin-top: 4.5em;
	}

	.news-related > h2 {
		font-size: 1.9rem;
	}

	.news-category-label {
		padding: 0.4em 0.5em 0.4em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.news-tabs__item::after,
	.news-card__media img,
	.news-card__body,
	.news-button {
		transition: none;
	}
}

@media (max-width: 640px) {
  .news-tabs {
    display: none;
  }

  .news-category-select {
    display: block;
    width: 100%;
  }

  .news-category-select__control {
    position: relative;
  }

  .news-category-select__control::after {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    width: 0;
    height: 0;
    content: "";
    border-top: 1.2rem solid #111;
    border-right: 0.7rem solid transparent;
    border-left: 0.7rem solid transparent;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .news-category-select select {
    width: 100%;
    height: 5.2rem;
    padding: 0 4.5rem 0 1.5rem;
    color: #222;
    background: #fff;
    border: 0.1rem solid #999;
    border-radius: 0;
    font-family: var(--font-sans);
    font-size: 1.4rem;
    appearance: none;
    cursor: pointer;
  }

  .news-category-select select:focus-visible {
    outline: 0.2rem solid #111;
    outline-offset: 0.2rem;
  }

  .news-category-select noscript button {
    margin-top: 1rem;
  }
}