/*
 * 投稿・アーカイブ専用の共通ヘッダー／フッター用スタイル。
 * 管理画面「追加 CSS」にあるDanganページビルダー用スタイルを、子テーマの
 * .site-chrome-header / .site-chrome-footer 構造へ移植している。
 */

.site-chrome-header,
.site-chrome-header *,
.site-chrome-footer,
.site-chrome-footer * {
	box-sizing: border-box;
}

.site-chrome-header {
	border-top: 1px solid #8f7227;
	border-bottom: 1px solid #8f7227;
	background: linear-gradient(180deg, #151515 0%, #050505 100%);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
	font-family: "Noto Sans Japanese", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Meiryo, "メイリオ", Verdana, "ＭＳ Ｐゴシック", sans-serif;
}

.site-chrome-header .global-navigation {
	display: grid;
	grid-template-columns: 160px minmax(0, 1000px) 160px;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 16px 20px;
}

.site-chrome-header .global-navigation__logo {
	display: block;
	width: min(100%, 130px);
	justify-self: start;
}

.site-chrome-header .global-navigation__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.site-chrome-header .global-navigation ul {
	display: flex;
	justify-content: center;
	gap: 8px;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.site-chrome-header .global-navigation li {
	position: relative;
	flex: 1 1 0;
	max-width: 210px;
	margin: 0;
}

.site-chrome-header .global-navigation li + li::before {
	position: absolute;
	top: 20%;
	bottom: 20%;
	left: 0;
	width: 1px;
	background: linear-gradient(transparent, #8f7227, transparent);
	content: "";
}

.site-chrome-header .global-navigation li a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 14px;
	border-bottom: 1px solid transparent;
	color: #d8b85a;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: border-color .2s, color .2s, text-shadow .2s;
}

.site-chrome-header .global-navigation li a:hover,
.site-chrome-header .global-navigation li a:focus-visible {
	border-color: #f1d47c;
	color: #f1d47c;
	text-shadow: 0 0 12px rgba(216, 184, 90, .28);
}

/* 各メニューの対応ページでは、マウスを外しても現在地を示す。 */
body.is-current-nav-home .site-chrome-header .global-navigation a[href="/"],
body.is-current-nav-how-to-buy .site-chrome-header .global-navigation a[href="/how-to-buy/"],
body.is-current-nav-how-to-sell .site-chrome-header .global-navigation a[href="/how-to-sell/"],
body.is-current-nav-about .site-chrome-header .global-navigation a[href="/about/"],
body.is-current-nav-explanation .site-chrome-header .global-navigation a[href="/category/explanation/"] {
	border-color: #f1d47c;
	color: #f1d47c;
	text-shadow: 0 0 12px rgba(216, 184, 90, .28);
}

/* トップページと共通の、投稿・カテゴリー一覧向け導入部。 */
.wp-block-template-part:has(.site-chrome-header) + .wp-block-template-part:has(.site-chrome-intro) {
	margin-block-start: 0;
}

.site-chrome-intro {
	color: #fff;
	font-family: "Noto Sans Japanese", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Meiryo, "メイリオ", Verdana, "ＭＳ Ｐゴシック", sans-serif;
	text-align: center;
}

.site-chrome-intro__hero {
	padding: 8rem 15px;
	background-image: url("/wp-content/uploads/2026/08/Center.png");
	background-position: center center;
	background-repeat: no-repeat;
}

.site-chrome-intro__content {
	margin: 0 auto;
	max-width: 960px;
}

.site-chrome-intro__eyebrow,
.site-chrome-intro__subtitle {
	margin: .6rem 0;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.3;
}

.site-chrome-intro__title {
	margin: .6rem 0;
	font-size: 3.8rem;
	font-weight: 700;
	line-height: 1.3;
}

.site-chrome-intro__message {
	padding: 1.5rem 15px;
	background: #000;
	color: #fff;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.3;
}

/* カテゴリー一覧の投稿サムネイル。 */
.archive-post-thumbnail {
	display: block;
	width: min(100%, 320px);
	margin: 0 0 1.25rem;
}

.archive-post-thumbnail img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

/* 投稿・カテゴリー本文をトップページのDanganデザインに寄せる。 */
.site-chrome-content {
	--wp--style--global--content-size: 960px;
	--wp--style--global--wide-size: 960px;
	color: #495057;
	font-family: "Noto Sans Japanese", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Meiryo, "メイリオ", Verdana, "ＭＳ Ｐゴシック", sans-serif;
	font-size: 1.1rem;
	line-height: 1.8;
}

@media (min-width: 768px) and (max-width: 991px) {
	.site-chrome-content {
		--wp--style--global--content-size: 720px;
		--wp--style--global--wide-size: 720px;
	}
}

@media (min-width: 576px) and (max-width: 767px) {
	.site-chrome-content {
		--wp--style--global--content-size: 540px;
		--wp--style--global--wide-size: 540px;
	}
}

.site-chrome-content a {
	color: #765d22;
}

.site-chrome-content > .wp-block-query-title {
	margin-bottom: 2rem;
	padding-bottom: .75rem;
	border-bottom: 2px solid #b49858;
	color: #212529;
	font-size: 2.2rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}

.site-chrome-content .wp-block-post-title {
	color: #212529;
	font-weight: 600;
	line-height: 1.3;
}

.site-chrome-content .wp-block-post-title a {
	color: inherit;
	text-decoration-color: rgba(180, 152, 88, .45);
	text-underline-offset: .18em;
}

.site-chrome-content .wp-block-post-template > li > .wp-block-group,
.site-chrome-content .wp-block-post-template > .wp-block-group {
	border-top-color: #b49858 !important;
}

.site-chrome-content .wp-block-post-excerpt {
	color: #495057;
	line-height: 1.8;
}

.site-chrome-content .wp-block-post-date,
.site-chrome-content .wp-block-post-date a {
	color: #777;
	font-size: .9rem;
}

/* 外部サイトのカテゴリーページに合わせた横並び一覧。 */
.archive-category-layout > .wp-block-query-title {
	margin-bottom: .75rem;
	padding-bottom: 0;
	border-bottom: 0;
	font-size: 2rem;
	text-align: left;
}

.archive-category-layout > .taxonomy-description {
	margin-bottom: 2.5rem;
}

.archive-category-layout .archive-post-card {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	gap: 30px;
	padding-top: 1.75rem !important;
	padding-bottom: 1.75rem !important;
	border-top: 1px solid #e3e3e3;
}

.archive-category-layout .archive-post-card--without-thumbnail {
	grid-template-columns: minmax(0, 1fr);
}

.archive-category-layout .archive-post-thumbnail {
	width: 128px;
	margin: 0;
}

.archive-category-layout .archive-post-thumbnail img {
	height: 128px;
}

.archive-category-layout .archive-post-card__body {
	position: relative;
	min-width: 0;
	margin-block-start: 0 !important;
	padding-right: 145px;
}

.archive-category-layout .archive-post-card__title {
	margin: 0 0 .55rem;
	font-size: 1.4rem !important;
	font-weight: 600;
	line-height: 1.3;
}

.archive-category-layout .archive-post-card__title a {
	color: #212529;
	text-decoration-color: rgba(180, 152, 88, .45);
	text-underline-offset: .18em;
}

.archive-category-layout .archive-post-card__excerpt {
	margin: 0;
	font-size: .95rem;
	line-height: 1.7;
}

.archive-category-layout .archive-post-card__category {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	padding: .15rem .65rem;
	border-radius: 3px;
	background: #999;
	font-size: .75rem;
	line-height: 1.4;
}

.archive-category-layout .archive-post-card__category,
.archive-category-layout .archive-post-card__category:hover,
.archive-category-layout .archive-post-card__category:focus-visible {
	color: #fff !important;
	text-decoration: none !important;
}

.site-chrome-content .wp-block-post-content {
	max-width: 960px;
}

.site-chrome-content .wp-block-post-title {
	position: relative;
	margin-bottom: 2.25rem;
	padding-bottom: 1.15rem;
	border-bottom: 1px solid #d8d2c4;
	color: #1a1a1a;
	font-size: 2.4rem;
	font-weight: 600;
	letter-spacing: .045em;
	line-height: 1.45;
}

.site-chrome-content .wp-block-post-title::after {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 76px;
	height: 3px;
	background: #b49858;
	content: "";
}

.site-chrome-content .wp-block-post-content > * {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

.site-chrome-content .wp-block-post-content h2,
.site-chrome-content .wp-block-post-content h3 {
	color: #212529;
	font-weight: 600;
	line-height: 1.3;
}

.site-chrome-content .wp-block-post-content h2 {
	margin-top: 3.5rem;
	padding: .75rem 1rem;
	border-left: 4px solid #b49858;
	background: #f8f8f8;
	font-size: 1.9rem;
}

.site-chrome-content .wp-block-post-content h3 {
	margin-top: 2.5rem;
	padding-bottom: .55rem;
	border-bottom: 1px solid #b49858;
	font-size: 1.6rem;
}

.site-chrome-content .wp-block-post-content p,
.site-chrome-content .wp-block-post-content li {
	line-height: 1.8;
}

.site-chrome-content .wp-block-post-content img {
	display: block;
	max-width: 100%;
	height: auto;
}

@media (max-width: 700px) {
	.site-chrome-content {
		font-size: .95rem;
	}

	.site-chrome-content > .wp-block-query-title {
		font-size: 1.7rem;
	}

	.site-chrome-content .wp-block-post-content h2 {
		margin-top: 2.5rem;
		font-size: 1.4rem;
	}

	.site-chrome-content .wp-block-post-title {
		margin-bottom: 1.75rem;
		padding-bottom: .9rem;
		font-size: 1.7rem;
	}

	.site-chrome-content .wp-block-post-content h3 {
		font-size: 1.2rem;
	}

	.archive-category-layout > .wp-block-query-title {
		font-size: 1.6rem;
	}

	.archive-category-layout .archive-post-card {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 18px;
	}

	.archive-category-layout .archive-post-thumbnail {
		width: 96px;
	}

	.archive-category-layout .archive-post-thumbnail img {
		height: 96px;
	}

	.archive-category-layout .archive-post-card__body {
		padding-right: 0;
	}

	.archive-category-layout .archive-post-card__category {
		position: static;
		display: inline-block;
		margin-bottom: .5rem;
	}

	.archive-category-layout .archive-post-card__title {
		font-size: 1.4rem !important;
	}
}

@media (max-width: 700px) {
	.site-chrome-intro__hero {
		padding: 8rem 15px;
	}

	.site-chrome-intro__title {
		font-size: 1.8rem;
	}

	.site-chrome-intro__eyebrow,
	.site-chrome-intro__subtitle,
	.site-chrome-intro__message {
		font-size: 1rem;
	}

	.site-chrome-intro__message {
		padding: 1.5rem 15px;
	}
}

.site-chrome-footer {
	border-top: 1px solid #8f7227;
	border-bottom: 1px solid #8f7227;
	background: linear-gradient(180deg, #151515 0%, #050505 100%);
	box-shadow: 0 -6px 20px rgba(0, 0, 0, .18);
	font-family: "Noto Sans Japanese", "Hiragino Sans", "ヒラギノ角ゴシック", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Meiryo, "メイリオ", Verdana, "ＭＳ Ｐゴシック", sans-serif;
	font-size: 1.1rem;
	font-weight: normal;
	line-height: 1.8;
}

@media (min-width: 701px) {
	.site-chrome-footer {
		min-height: 465px;
	}
}

.site-chrome-footer .site-footer-copy {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 70px 50px 50px;
	color: #d8b85a;
	font-family: Manrope, sans-serif;
}

.site-chrome-footer .site-footer-copy__inner {
	display: flex;
	justify-content: space-between;
	gap: 48px;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
}

.site-chrome-footer .site-footer-copy__brand {
	flex: 1 1 auto;
	min-width: 0;
}

.site-chrome-footer .site-footer-copy__brand p {
	margin: 12px 0 0;
	margin-block-start: 12px !important;
	margin-block-end: 0 !important;
	color: #bca45f;
	letter-spacing: .04em;
}

.site-chrome-footer .site-footer-copy__brand .site-footer-copy__contact {
	margin-top: 20px;
	margin-block-start: 20px !important;
	line-height: 1.8;
}

.site-chrome-footer .site-footer-copy__logo {
	display: block;
	width: 120px;
	margin-bottom: 20px;
}

.site-chrome-footer .site-footer-copy__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.site-chrome-footer .site-footer-copy__title {
	display: inline-block;
	color: #f1d47c;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-shadow: 0 0 16px rgba(216, 184, 90, .18);
	white-space: nowrap;
}

.site-chrome-footer .site-footer-copy__menus {
	display: flex;
	flex: 0 0 auto;
	gap: 0;
	padding-left: 48px;
	border-left: 1px solid rgba(216, 184, 90, .35);
}

.site-chrome-footer .site-footer-copy__menus nav + nav {
	margin-left: 32px;
	padding-left: 32px;
	border-left: 1px solid rgba(216, 184, 90, .35);
}

.site-chrome-footer .site-footer-copy ul {
	min-width: 130px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-chrome-footer .site-footer-copy li + li {
	margin-top: 8px;
}

.site-chrome-footer .site-footer-copy li,
.site-chrome-footer .site-footer-copy a:not(.site-footer-copy__title) {
	color: #d8b85a;
	line-height: 1.6;
	white-space: nowrap;
}

.site-chrome-footer .site-footer-copy a:not(.site-footer-copy__title) {
	text-decoration-color: transparent;
	text-underline-offset: 5px;
	transition: color .2s, text-decoration-color .2s, text-shadow .2s;
}

.site-chrome-footer .site-footer-copy a:hover,
.site-chrome-footer .site-footer-copy a:focus-visible {
	color: #f1d47c;
	text-decoration-color: currentColor;
	text-shadow: 0 0 12px rgba(216, 184, 90, .28);
}

@media (max-width: 1100px) {
	.site-chrome-header .global-navigation {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.site-chrome-header .global-navigation__logo {
		width: 120px;
		justify-self: center;
	}
}

@media (max-width: 700px) {
	.site-chrome-header .global-navigation {
		padding: 12px;
	}

	.site-chrome-header .global-navigation ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-chrome-header .global-navigation li {
		max-width: none;
	}

	.site-chrome-header .global-navigation li + li::before {
		display: none;
	}

	.site-chrome-header .global-navigation li a {
		min-height: 44px;
		padding: 8px;
		font-size: 14px;
	}

	.site-chrome-footer .site-footer-copy {
		padding: 48px 24px 40px;
	}

	.site-chrome-footer .site-footer-copy__inner {
		flex-direction: column;
	}

	.site-chrome-footer .site-footer-copy__title {
		font-size: 26px;
		white-space: normal;
	}

	.site-chrome-footer .site-footer-copy__menus {
		justify-content: space-between;
		gap: 0;
		padding-top: 28px;
		padding-left: 0;
		border-top: 1px solid rgba(216, 184, 90, .35);
		border-left: 0;
	}

	.site-chrome-footer .site-footer-copy__menus nav + nav {
		margin-left: 16px;
		padding-left: 16px;
	}

	.site-chrome-footer .site-footer-copy a:not(.site-footer-copy__title) {
		white-space: normal;
	}
}
