@charset "UTF-8";
/* ==========================================================================
   news.css
   お知らせ一覧（archive-news / taxonomy-news-category）／詳細（single-news）
   値はデザイン（PC 1440 / SP 375）の px を calc(N * var(--u)) で指定
   ========================================================================== */

/* ==========================================================================
   一覧
   ========================================================================== */

/* MV のリード文は1行のため位置を下げる */
.p-news-archive .p-under-hero__lead {
	margin-top: calc(122 * var(--u));
}

.p-news-archive__inner {
	width: var(--content-w);
	margin-inline: auto;
	padding-top: calc(120 * var(--u));
}

/* カテゴリー */
.p-news-cats {
	display: flex;
	align-items: center;
}

.p-news-cats__label {
	flex-shrink: 0;
	font-size: max(11px, calc(14 * var(--u)));
	line-height: 1.85;
}

.p-news-cats__list {
	display: flex;
	flex-wrap: wrap;
	gap: calc(10 * var(--u));
	margin-left: calc(42 * var(--u));
}

.p-news-cats__link {
	display: flex;
	align-items: center;
	height: calc(36 * var(--u));
	padding: 0 calc(19 * var(--u)); /* 枠線込みで左右 20 */
	border: 1px solid #d9d4c9;
	border-radius: 100px;
	background: var(--c-white);
	font-size: max(11px, calc(14 * var(--u)));
	line-height: 1.5;
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.p-news-cats__link.is-current {
	border-color: var(--c-red);
	background: var(--c-red);
	color: var(--c-white);
}

@media (hover: hover) {
	.p-news-cats__link:not(.is-current):hover {
		border-color: var(--c-red);
		color: var(--c-red);
	}
}

/* カード */
.p-news-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: calc(64 * var(--u)) calc(24 * var(--u));
	margin-top: calc(48 * var(--u));
}

.p-news-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.p-news-card__image {
	display: block;
	overflow: hidden;
	border-radius: calc(16 * var(--u));
	background: #f0ebe1;
	isolation: isolate;
}

.p-news-card__image img {
	width: 100%;
	aspect-ratio: 384 / 256;
	object-fit: cover;
	transition: transform 0.6s var(--ease-out);
}

.p-news-card__meta {
	display: flex;
	align-items: center;
	gap: calc(12 * var(--u));
	margin-top: calc(14 * var(--u));
	font-size: max(10px, calc(12 * var(--u)));
	line-height: 1.5;
}

.p-news-card__date {
	font-family: var(--ff-en);
	font-weight: 500;
}

.p-news-card__title {
	margin: calc(6 * var(--u)) 0 calc(16 * var(--u)); /* 矢印との間は最低 16 */
	padding-right: calc(40 * var(--u));
	font-size: max(13px, calc(18 * var(--u)));
	line-height: 1.7;
	transition: color 0.3s;
}

.p-news-card__arrow.c-arrow-btn {
	align-self: flex-end;
	width: calc(56.3 * var(--u));
	height: calc(30.8 * var(--u));
	margin: auto calc(40 * var(--u)) 0 0;
	font-size: calc(18 * var(--u));
}

@media (hover: hover) {
	.p-news-card:hover .p-news-card__image img {
		transform: scale(1.05);
	}

	.p-news-card:hover .p-news-card__title {
		color: var(--c-red);
	}
}

.p-news-empty {
	margin-top: calc(48 * var(--u));
	font-weight: 500;
	font-size: max(12px, calc(16 * var(--u)));
}

.p-news-archive .c-pagination {
	margin-top: calc(80 * var(--u));
}

/* ==========================================================================
   詳細
   ========================================================================== */
.p-news-head {
	width: var(--content-w);
	margin-inline: auto;
	padding-top: calc(155 * var(--u));
}

/* パンくず（クリーム背景用） */
.p-news-head__breadcrumb {
	display: flex;
	justify-content: flex-end;
	font-size: max(11px, calc(14 * var(--u)));
	line-height: 1;
}

.p-news-head__breadcrumb-list {
	display: flex;
	align-items: center;
}

.p-news-head__breadcrumb-item + .p-news-head__breadcrumb-item {
	display: flex;
	align-items: center;
}

.p-news-head__breadcrumb-item + .p-news-head__breadcrumb-item::before {
	content: "";
	flex-shrink: 0;
	width: calc(14 * var(--u));
	height: 2px;
	margin: 0 calc(14 * var(--u));
	background: var(--c-ink);
}

.p-news-head__breadcrumb-item[aria-current="page"] {
	color: #6b6b6b;
}

.p-news-head__breadcrumb a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (hover: hover) {
	.p-news-head__breadcrumb a:hover {
		opacity: 0.7;
	}
}

.p-news-head__body,
.p-news-single__inner {
	width: calc(880 * var(--u));
	margin-inline: auto;
}

.p-news-head__body {
	margin-top: calc(81.5 * var(--u));
	padding-bottom: calc(40 * var(--u));
	border-bottom: 1px solid #d9d4c9;
}

.p-news-head__meta {
	display: flex;
	align-items: center;
	gap: calc(20 * var(--u));
}

.p-news-head__date {
	font-family: var(--ff-en);
	font-weight: 500;
	font-size: max(11px, calc(14 * var(--u)));
	line-height: 1.5;
}

.p-news-head__cat {
	display: flex;
	align-items: center;
	height: calc(36 * var(--u));
	padding: 0 calc(19 * var(--u)); /* 枠線込みで左右 20 */
	border: 1px solid #d9d4c9;
	border-radius: 100px;
	background: var(--c-white);
	font-size: max(11px, calc(14 * var(--u)));
	line-height: 1;
}

.p-news-head__title {
	margin-top: calc(23.5 * var(--u));
	font-size: max(18px, calc(36 * var(--u)));
	line-height: 1.5;
}

.p-news-single__image {
	margin-top: calc(48 * var(--u));
	overflow: hidden;
	border-radius: calc(16 * var(--u));
}

.p-news-single__image img {
	width: 100%;
	aspect-ratio: 880 / 587;
	object-fit: cover;
}

/* 一覧に戻る */
.p-news-single__foot {
	display: flex;
	justify-content: flex-end;
	margin-top: calc(96 * var(--u));
	padding-top: calc(47 * var(--u));
	border-top: 1px solid #d9d4c9;
}

.p-news-back {
	display: inline-flex;
	align-items: center;
	gap: calc(14 * var(--u));
	height: calc(53.2 * var(--u));
	padding: 0 calc(15 * var(--u)) 0 calc(18 * var(--u));
	border-radius: 100px;
	background: var(--c-white);
	color: var(--c-red);
	font-size: max(12px, calc(18 * var(--u)));
	line-height: 1;
	white-space: nowrap;
	transition: background-color 0.3s, color 0.3s;
}

.p-news-back__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: calc(37 * var(--u));
	height: calc(20.2 * var(--u));
	border-radius: 100px;
	background: var(--c-ink);
	color: var(--c-white);
	font-size: calc(12 * var(--u));
}

.p-news-back__chip .c-icon-arrow {
	transform: rotate(180deg);
	transition: transform 0.3s var(--ease-out);
}

@media (hover: hover) {
	.p-news-back:hover {
		background: var(--c-red);
		color: var(--c-white);
	}

	.p-news-back:hover .p-news-back__chip .c-icon-arrow {
		transform: rotate(180deg) translateX(calc(3 * var(--u)));
	}
}

/* --------------------------------------------------------------------------
   本文（ブロックエディター）
   -------------------------------------------------------------------------- */
.c-post-content {
	margin-top: calc(56 * var(--u));
	font-weight: 500;
	font-size: max(12px, calc(16 * var(--u)));
	line-height: calc(30 * var(--u)); /* デザインは 1.85 を 30px に丸めた行送り */
}

.c-post-content > * {
	margin-top: calc(30 * var(--u));
}

.c-post-content > :first-child {
	margin-top: 0;
}

.c-post-content a:not(.wp-block-button__link) {
	color: var(--c-red);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.c-post-content strong {
	font-weight: 700;
}

/* 見出し：赤い縦線 */
.c-post-content h2 {
	position: relative;
	margin-top: calc(56 * var(--u));
	padding-left: calc(20 * var(--u));
	font-weight: 700;
	font-size: max(15px, calc(22 * var(--u)));
	line-height: 1.6;
}

.c-post-content h2::before {
	content: "";
	position: absolute;
	top: calc(4 * var(--u));
	left: 0;
	width: calc(4 * var(--u));
	height: calc(28 * var(--u));
	background: var(--c-red);
}

.c-post-content h2 + * {
	margin-top: calc(20 * var(--u));
}

.c-post-content h3 {
	margin-top: calc(40 * var(--u));
	font-weight: 700;
	font-size: max(14px, calc(18 * var(--u)));
	line-height: 1.6;
}

.c-post-content h3 + * {
	margin-top: calc(12 * var(--u));
}

.c-post-content ul,
.c-post-content ol {
	padding-left: 1.5em;
}

.c-post-content ul {
	list-style: disc;
}

.c-post-content ol {
	list-style: decimal;
}

.c-post-content li + li {
	margin-top: calc(4 * var(--u));
}

.c-post-content .wp-block-image img,
.c-post-content figure img {
	height: auto;
	border-radius: calc(16 * var(--u));
}

.c-post-content figcaption {
	margin-top: calc(8 * var(--u));
	color: #666;
	font-size: max(11px, calc(13 * var(--u)));
	line-height: 1.6;
}

.c-post-content table {
	width: 100%;
	border-collapse: collapse;
	background: var(--c-white);
}

.c-post-content th,
.c-post-content td {
	padding: calc(14 * var(--u)) calc(20 * var(--u));
	border: 1px solid #d9d4c9;
	text-align: left;
	vertical-align: top;
}

.c-post-content th {
	background: #f0ebe1;
	font-weight: 700;
}

/* ボタン：標準は白、スタイル「黒」 */
.c-post-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: calc(24 * var(--u));
	margin-top: calc(32 * var(--u));
}

.c-post-content .wp-block-buttons > .wp-block-button {
	flex: 1 1 calc(428 * var(--u));
	max-width: calc(428 * var(--u));
	margin: 0;
}

.c-post-content .wp-block-button .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: calc(60 * var(--u));
	padding: 0 calc(28 * var(--u)) 0 calc(32 * var(--u));
	border: 0;
	border-radius: 100px;
	background: var(--c-white);
	color: var(--c-red);
	font-weight: 700;
	font-size: max(12px, calc(16 * var(--u)));
	line-height: 1.5;
	text-align: left;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s;
}

/* 矢印のチップ */
.c-post-content .wp-block-button .wp-block-button__link::after {
	content: "";
	flex-shrink: 0;
	width: calc(37 * var(--u));
	height: calc(20 * var(--u));
	margin-left: calc(16 * var(--u));
	border-radius: 100px;
	background: var(--c-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcfbf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 19l7-7-7-7'/%3E%3C/svg%3E") center / calc(11.8 * var(--u)) no-repeat;
	transition: background-color 0.3s;
}

.c-post-content .wp-block-button.is-style-rb-dark .wp-block-button__link {
	background: var(--c-ink);
	color: var(--c-white);
}

.c-post-content .wp-block-button.is-style-rb-dark .wp-block-button__link::after {
	background-color: var(--c-red);
}

@media (hover: hover) {
	.c-post-content .wp-block-button .wp-block-button__link:hover {
		background: var(--c-ink);
		color: var(--c-white);
	}

	.c-post-content .wp-block-button .wp-block-button__link:hover::after {
		background-color: var(--c-red);
	}

	.c-post-content .wp-block-button.is-style-rb-dark .wp-block-button__link:hover {
		background: var(--c-red);
	}

	.c-post-content .wp-block-button.is-style-rb-dark .wp-block-button__link:hover::after {
		background-color: var(--c-ink);
	}
}

/* ==========================================================================
   SP
   ========================================================================== */
@media (max-width: 767px) {

	/* 一覧 */
	.p-news-archive .p-under-hero--noimage {
		height: calc(388 * var(--u));
	}

	.p-news-archive .p-under-hero__lead {
		margin-top: calc(49 * var(--u));
	}

	.p-news-archive__inner {
		width: calc(328 * var(--u));
		padding-top: calc(80 * var(--u));
	}

	.p-news-cats {
		display: block;
	}

	.p-news-cats__label {
		font-size: calc(14 * var(--u));
	}

	.p-news-cats__list {
		gap: calc(8 * var(--u));
		margin: calc(12 * var(--u)) 0 0;
	}

	.p-news-cats__link {
		padding: 0 calc(15 * var(--u));
		font-size: calc(14 * var(--u));
	}

	.p-news-list {
		grid-template-columns: 1fr;
		gap: calc(40 * var(--u));
		margin-top: calc(40 * var(--u));
	}

	.p-news-card__image img {
		aspect-ratio: 328 / 219;
	}

	.p-news-card__meta {
		font-size: calc(12 * var(--u));
	}

	.p-news-card__title {
		margin: calc(8 * var(--u)) 0 calc(12 * var(--u));
		padding-right: 0;
		font-size: calc(16 * var(--u));
	}

	.p-news-card__arrow.c-arrow-btn {
		width: calc(48 * var(--u));
		height: calc(26.2 * var(--u));
		margin-right: 0;
		font-size: calc(15.4 * var(--u));
	}

	.p-news-archive .c-pagination {
		margin-top: calc(100 * var(--u));
	}

	/* 詳細 */
	.p-news-head {
		width: calc(328 * var(--u));
		padding-top: calc(73 * var(--u));
	}

	.p-news-head__breadcrumb {
		justify-content: flex-start;
		font-size: calc(12 * var(--u));
	}

	.p-news-head__breadcrumb-list {
		align-items: flex-start;
	}

	.p-news-head__breadcrumb-item {
		flex-shrink: 0;
		padding-top: calc(3 * var(--u));
	}

	.p-news-head__breadcrumb-item + .p-news-head__breadcrumb-item::before {
		width: calc(6 * var(--u));
		margin: 0 calc(8 * var(--u));
	}

	/* 記事タイトルは折り返す */
	.p-news-head__breadcrumb-item[aria-current="page"] {
		flex-shrink: 1;
		padding-top: 0;
		line-height: 1.5;
	}

	.p-news-head__breadcrumb-item[aria-current="page"]::before {
		margin-top: calc(9 * var(--u));
		align-self: flex-start;
	}

	.p-news-head__body,
	.p-news-single__inner {
		width: calc(328 * var(--u));
	}

	.p-news-head__body {
		margin-top: calc(40 * var(--u));
		padding-bottom: calc(24 * var(--u));
	}

	.p-news-head__meta {
		gap: calc(12 * var(--u));
	}

	.p-news-head__date {
		font-size: calc(13 * var(--u));
	}

	.p-news-head__cat {
		height: calc(30 * var(--u));
		padding: 0 calc(17 * var(--u)); /* 枠線込みで左右 18 */
		font-size: calc(12 * var(--u));
	}

	.p-news-head__title {
		margin-top: calc(16 * var(--u));
		font-size: calc(22 * var(--u));
	}

	.p-news-single__image {
		margin-top: calc(32 * var(--u));
		border-radius: calc(8 * var(--u));
	}

	.p-news-single__image img {
		aspect-ratio: 328 / 219;
	}

	.p-news-single__foot {
		margin-top: calc(40 * var(--u));
		padding-top: calc(40 * var(--u));
	}

	.p-news-back {
		height: calc(53.2 * var(--u));
		font-size: calc(15 * var(--u));
	}

	.c-post-content {
		margin-top: calc(32 * var(--u));
		font-size: calc(15 * var(--u));
		line-height: 1.8;
	}

	.c-post-content > * {
		margin-top: calc(27 * var(--u));
	}

	.c-post-content h2 {
		margin-top: calc(40 * var(--u));
		padding-left: calc(14 * var(--u));
		font-size: calc(20 * var(--u));
	}

	.c-post-content h2::before {
		top: calc(5 * var(--u));
		height: calc(22 * var(--u));
	}

	.c-post-content h2 + * {
		margin-top: calc(12 * var(--u));
	}

	.c-post-content .wp-block-buttons {
		flex-direction: column;
		gap: calc(12 * var(--u));
	}

	.c-post-content .wp-block-buttons > .wp-block-button {
		flex: none;
		width: 100%;
		max-width: none;
	}

	.c-post-content .wp-block-button .wp-block-button__link {
		height: calc(56 * var(--u));
		padding: 0 calc(20 * var(--u)) 0 calc(24 * var(--u));
		font-size: calc(15 * var(--u));
	}
}
