/* ========================================
   通常投稿詳細ページ
   ======================================== */

/* ========================================
   単一投稿セクション
   ======================================== */
.p-single {
	background-color: #FFF9F1;
	padding: 100px 0px 86px;
}

.p-single__inner {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 20px;
}
.l-breadcrumb-wrapper {
	margin-bottom: 15px;
}
.breadcrumb-list {
	padding: 0;
}

.p-single__title {
	color: #141429;
	font-family: "Source Han Sans JP", "源ノ角ゴシック JP", sans-serif;
	font-weight: 700;
	font-size: 2.4rem;
	line-height: 1.6;
	letter-spacing: 0;
	margin: 0 0 15px;
}

/* ========================================
   記事ヘッダー
   ======================================== */
.p-single__article {
	margin-bottom: 60px;
}

.p-single__header {
	margin-bottom: 40px;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 30px;
}

.p-single__meta {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	margin-bottom: 31px;
	flex-wrap: wrap;
}

.p-single__date {
	color: #141429;
	font-family: "Lato", sans-serif;
	font-weight: 400;
	font-size: 1.4rem;
	line-height: 1;
	letter-spacing: 0.06em;
}

.p-single__categories {
	display: flex;
	flex-wrap: wrap;
}

.p-single__category {
	display: inline-block;
	color: #E15C45;
	font-family: "Source Han Sans JP", "源ノ角ゴシック JP", sans-serif;
	font-weight: 400;
	font-size: 1.4rem;
	line-height: 1.42;
	letter-spacing: 0;
}

.p-single__category::before {
	content: "#";
	letter-spacing: -0.2em;
}



/* ========================================
   記事コンテンツ
   ======================================== */
.p-single__content {
	margin-bottom: 40px;
}

.p-single__thumbnail {
	margin-bottom: 31px;
	border-radius: 16px;
	overflow: hidden;
}

.p-single__thumbnail-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.p-single__text {
	color: #141429;
	font-family: "Source Han Sans JP", "源ノ角ゴシック JP", sans-serif;
	font-size: 1.6rem;
	line-height: 1.8;
	letter-spacing: 0;
}

/* ブロックエディタ要素のスタイル */
.p-single__text h2 {
	font-family: "Source Han Sans JP", "源ノ角ゴシック JP", sans-serif;
	font-weight: 700;
	font-size: 2.2rem;
	line-height: 1.6;
	letter-spacing: 0;
	color: #141429;
	margin: 20px 0;
}

.p-single__text h3 {
	font-family: "Source Han Sans JP", "源ノ角ゴシック JP", sans-serif;
	font-weight: 700;
	font-size: 2rem;
	line-height: 1.44;
	color: #141429;
	margin: 32px 0 15px 0;
}

.p-single__text h4 {
	font-family: "Source Han Sans JP", "源ノ角ゴシック JP", sans-serif;
	font-weight: 700;
	font-size: 1.8rem;
	line-height: 1.6;
	color: #141429;
	margin: 16px 0;
}

.p-single__text p {
	margin:20px 0;
}

.p-single__text ul,
.p-single__text ol {
	margin: 0 0 20px 20px;
	padding-left: 20px;
}

.p-single__text li {
	margin-bottom: 10px;
}

.p-single__text img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 20px 0;
}
.p-single__text p>a {
	color: #141429;
}

.wp-block-buttons.is-content-justification-center {
	display: flex;
	justify-content: center;
}
.wp-block-buttons>.wp-block-button.wp-block-button__width-100 {
	text-align: center;
}
.wp-block-button__link {
	max-width: 310px;
	width: 100%;
	color: #fff;
	text-decoration: none;
	text-align: left;
	background-color: #E15C45;
	border-radius: 12px;
	transition: all 0.3s ease;
	position: relative;
}

.wp-block-button__link::after {
    content: '';
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 36px;
    width: 100%;
    height: initial;
    border-radius: 6px;
    aspect-ratio: 42 / 52;
    background-color: #FF8357;
    background-image: url(../../img/icon_arrow_w.svg);
    background-size: 1.6rem;
    background-position: center;
    background-repeat: no-repeat;
}


.p-single__text a:hover {
	color: #e55a38;
	border-bottom-color: #e55a38;
}

.p-single__text blockquote {
	border-left: 4px solid #ff6b4a;
	padding-left: 20px;
	margin: 20px 0;
	color: #666;
	font-style: italic;
}

.p-single__text code {
	background-color: #f5f5f5;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: 'Courier New', monospace;
	font-size: 13px;
}

.p-single__text pre {
	background-color: #f5f5f5;
	padding: 20px;
	border-radius: 4px;
	overflow-x: auto;
	margin: 20px 0;
}
.wp-block-table td,
.wp-block-table th {
	border: none;
	border-bottom: 1px solid rgba(20, 20, 41, 0.15);
}

.wp-block-table td:first-of-type {
    width: 22%;
}



/* ========================================
   一覧に戻るリンク
   ======================================== */
.p-single__back-link-wrapper {
	padding: 40px 20px;
}

.p-single__back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 15px;
	color: #141429;
	font-family: "Source Han Sans JP", "源ノ角ゴシック JP", sans-serif;
	font-weight: 400;
	font-size: 1.6rem;
	line-height: 1.8;
	letter-spacing: 0;
	text-decoration: none;
	background-color: #fff;
	border: 1px solid #EAEAEA;
	transition: all 0.3s ease-out;
	position: relative;
}

@media (any-hover: hover) {
	.p-single__back-link:hover {
		opacity: 0.7;
	}
}
.p-single__back-link::before {
    content: "";
    position: relative;
    top: 50%;
    left: -2px;
    transform: rotate(45deg);
    width: 10px;
    height: 10px;
    border-left: 2px solid #BEBEBE;
    border-bottom: 2px solid #BEBEBE;
}


/* ========================================
   投稿がない場合
   ======================================== */
.p-single__no-posts {
	text-align: center;
	padding: 60px 20px;
	font-size: 16px;
	color: #666;
	background-color: #f9f9f9;
	border-radius: 4px;
}

/* ===== レスポンシブ ===== */

/* タブレット以上（769px以上） */
@media (min-width: 769px) {
	.p-single {
		padding: 109px 0px 143px;
	}
	.l-breadcrumb-wrapper {
		margin-bottom: 22px;
	}
	.p-single__title {
		font-size: 3.2rem;
		margin-bottom: 24px;
	}
	.p-single__meta {
		margin-bottom: 83px;
	}
	.p-single__text h2 {
		font-size: 2.4rem;
	}
	.p-single__text h3 {
		font-size: 2.2rem;
	}
	.p-single__text h4 {
		font-size: 2rem;
	}
	.wp-block-table {
		max-width: 511px;
		margin: 0 auto;
	}
	.p-single__back-link-wrapper {
		max-width: 820px;
		margin: 0 auto;
	}
}