/*
 * World Heritage Quest — main stylesheet
 * 編集元: src/scss/（ビルドで本ファイルを再生成可能）。
 * ビルド無しでも編集できるよう、CSSカスタムプロパティで設計（Bootstrap非依存）。
 */

/* ===== Design tokens ===== */
:root {
	--whq-base: #ffffff;
	--whq-contrast: #1f2328;
	--whq-primary: #ad8c62;
	--whq-primary-dark: #8a6f4d;
	--whq-accent: #333333;
	--whq-muted: #f5f5f5;
	--whq-border: #e5e5e5;
	--whq-text-soft: #555b62;
	--whq-radius: 6px;
	--whq-shadow: 0 1px 4px rgba(0, 0, 0, .08);
	--whq-container: 1140px;
	--whq-gap: 24px;
	--whq-font: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Meiryo, sans-serif;
	--whq-fs-body: 1rem;
	--whq-lh: 1.8;
}

/* ===== Dark mode ===== */
body.darkcolor {
	--whq-base: #16181c;
	--whq-contrast: #e8eaed;
	--whq-muted: #1f2329;
	--whq-border: #2c313a;
	--whq-text-soft: #b3b9c2;
	--whq-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

/* ===== Reset-ish ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--whq-font);
	font-size: var(--whq-fs-body);
	line-height: var(--whq-lh);
	color: var(--whq-contrast);
	background: var(--whq-base);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
.site { overflow-x: clip; max-width: 100%; }

img { max-width: 100%; height: auto; }
a { color: var(--whq-primary-dark); text-decoration: none; }
a:hover { color: var(--whq-contrast); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--whq-primary); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { line-height: 1.4; font-weight: 700; }
figure { margin: 0; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--whq-base); padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Grid shim (container/row/col) ===== */
.container { width: 100%; max-width: var(--whq-container); margin: 0 auto; padding: 0 16px; }
.row { display: flex; flex-wrap: wrap; margin: 0 calc(var(--whq-gap) / -2); }
.row > [class*="col-"] { padding: 0 calc(var(--whq-gap) / 2); width: 100%; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.text-xs { font-size: .85rem; }
.mb-0 { margin-bottom: 0; }
.d-none { display: none !important; }

@media (min-width: 992px) {
	.row > .col-lg-3 { width: 25%; }
	.row > .col-lg-4 { width: 33.3333%; }
	.row > .col-lg-8 { width: 66.6667%; }
	.row > .col-lg-9 { width: 75%; }
	.row > .col-lg-12 { width: 100%; }
}
@media (min-width: 768px) {
	.col-md-4 { width: 33.3333%; }
	.col-md-6 { width: 50%; }
}

/* ===== Header ===== */
.whq-header { background: var(--whq-base); border-bottom: 1px solid var(--whq-border); }
.whq-header-bar {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 16px;
}
.whq-header-bar__brand { flex: 1; min-width: 0; }
.whq-header-bar__brand .site-logo,
.whq-header-bar__brand .site-branding-text { text-align: left; }
.whq-header-bar__brand .site-title { font-size: 1.05rem; line-height: 1.25; }
.whq-header-bar__brand .site-description { display: none; }
.whq-header-bar .navbar-toggler { flex-shrink: 0; margin: 0; }
.whq-header-main { padding: 22px 0; }
.whq-header-main .row { align-items: center; }
.whq-header-left .bs-social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.whq-header-right .right-nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.navbar-header { text-align: center; }
.site-title { margin: 0; font-size: 1.75rem; }
.site-title a { color: var(--whq-contrast); }
.site-description { margin: 2px 0 0; font-size: .85rem; color: var(--whq-text-soft); }
.site-logo .custom-logo-link,
.site-logo .navbar-brand { display: inline-block; line-height: 0; }
.site-logo img,
.site-logo .custom-logo {
	max-height: 64px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Search / subscribe / mode buttons */
.msearch, .whq-mode-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border: 1px solid var(--whq-border);
	border-radius: 50%; background: transparent; color: var(--whq-contrast); cursor: pointer;
}
.subscribe-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 16px; border-radius: 999px;
	background: var(--whq-primary); color: #fff; font-weight: 600;
}
.subscribe-btn:hover { background: var(--whq-primary-dark); color: #fff; }

/* Inline SVG icons (mask) */
.whq-icon {
	display: inline-block; width: 18px; height: 18px;
	background-color: currentColor;
	mask-repeat: no-repeat; mask-position: center; mask-size: contain;
	-webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
}
.whq-icon--search {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E");
}
.whq-icon--youtube {
	width: 20px; height: 20px;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.5 12 3.5 12 3.5s-7.5 0-9.4.6A3 3 0 0 0 .5 6.2 31.5 31.5 0 0 0 0 12a31.5 31.5 0 0 0 .5 5.8 3 3 0 0 0 2.1 2.1c1.9.6 9.4.6 9.4.6s7.5 0 9.4-.6a3 3 0 0 0 2.1-2.1A31.5 31.5 0 0 0 24 12a31.5 31.5 0 0 0-.5-5.8zM9.75 15.5v-7l6 3.5-6 3.5z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.5 12 3.5 12 3.5s-7.5 0-9.4.6A3 3 0 0 0 .5 6.2 31.5 31.5 0 0 0 0 12a31.5 31.5 0 0 0 .5 5.8 3 3 0 0 0 2.1 2.1c1.9.6 9.4.6 9.4.6s7.5 0 9.4-.6a3 3 0 0 0 2.1-2.1A31.5 31.5 0 0 0 24 12a31.5 31.5 0 0 0-.5-5.8zM9.75 15.5v-7l6 3.5-6 3.5z'/%3E%3C/svg%3E");
}
.whq-icon-up {
	display: inline-block; width: 20px; height: 20px;
	background-color: currentColor;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 4l8 8h-5v8h-6v-8H4z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 4l8 8h-5v8h-6v-8H4z'/%3E%3C/svg%3E");
	mask-repeat: no-repeat; mask-position: center; mask-size: contain;
	-webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
}
.subscribe-btn .whq-icon--youtube { background-color: #fff; }

/* Mode toggle */
.whq-mode-toggle { width: 52px; border-radius: 999px; padding: 0 4px; }
.whq-mode-toggle__track { position: relative; width: 100%; height: 18px; }
.whq-mode-toggle__thumb {
	position: absolute; top: 50%; left: 0; transform: translateY(-50%);
	width: 16px; height: 16px; border-radius: 50%; background: var(--whq-primary); transition: left .2s ease;
}
body.darkcolor .whq-mode-toggle__thumb { left: calc(100% - 16px); }

/* ===== Navigation ===== */
.bs-menu-full { background: var(--whq-base); border-bottom: 1px solid var(--whq-border); box-shadow: var(--whq-shadow); }
.navbar { position: relative; }
.navbar .container { display: flex; align-items: center; }
.navbar-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.navbar-nav .nav-link { display: block; padding: 12px 16px; font-weight: 600; color: var(--whq-contrast); }
.navbar-nav .nav-link:hover, .navbar-nav .current-menu-item > .nav-link { color: var(--whq-primary-dark); }
.mx-auto { margin-left: auto; margin-right: auto; }
.navbar-nav .menu-item { position: relative; }
.navbar-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 200px; z-index: 50;
	margin: 0; padding: 6px 0; list-style: none;
	background: var(--whq-base); border: 1px solid var(--whq-border); box-shadow: var(--whq-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.navbar-nav .menu-item.dropdown:hover > .sub-menu,
.navbar-nav .menu-item.dropdown.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: block; padding: 8px 16px; color: var(--whq-contrast); }
.dropdown-item:hover { background: var(--whq-muted); }
.whq-caret { display: inline-block; border: 4px solid transparent; border-top-color: currentColor; margin-left: 4px; vertical-align: middle; }

.navbar-toggler { display: none; width: 44px; height: 40px; border: 1px solid var(--whq-border); background: transparent; border-radius: var(--whq-radius); cursor: pointer; }
.navbar-toggler .icon-bar { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--whq-contrast); }

@media (max-width: 991.98px) {
	.whq-header-bar { display: flex; }
	.whq-header-main { display: none; }
	.whq-header-bar .site-logo img,
	.whq-header-bar .site-logo .custom-logo { max-height: 40px; }
	.navbar .container { flex-wrap: wrap; }
	.navbar-toggler { display: block; }
	.bs-menu-full .m-header { display: none; }
	.navbar-collapse { flex-basis: 100%; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
	.navbar-collapse.is-open { max-height: 80vh; overflow: auto; }
	.navbar-nav { flex-direction: column; width: 100%; }
	.navbar-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 16px; }
	.whq-header-left, .whq-header-right { display: none; }
}

/* ===== Main featured (front hero) ===== */
.mainfeatured { margin-top: 32px; overflow: hidden; }
.whq-hero { position: relative; }
.whq-hero__card { display: flex; gap: var(--whq-gap); align-items: stretch; }
.whq-hero__media {
	position: relative; flex: 0 0 55%; aspect-ratio: 16 / 9;
	border-radius: var(--whq-radius); overflow: hidden; background-color: var(--whq-muted);
}
.whq-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.whq-hero__body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.whq-hero__title { font-size: 2rem; margin: 8px 0; }
.whq-hero__title a { color: var(--whq-contrast); }
@media (max-width: 767.98px) {
	.whq-hero__card { flex-direction: column; }
	.whq-hero__media { flex-basis: auto; }
	.whq-hero__title { font-size: 1.4rem; }
}

/* ===== Main + cards ===== */
#content { padding: 32px 0 56px; }
.bs-card-box { background: var(--whq-base); border: 1px solid var(--whq-border); border-radius: var(--whq-radius); }
.padding-20 { padding: 20px; }
.page-entry-title { padding: 20px; margin-bottom: 28px; }
.page-entry-title .entry-title { font-size: 1.6rem; }

.bs-blog-post.list-blog { display: flex; gap: var(--whq-gap); margin-bottom: 40px; }
.bs-blog-post .bs-blog-thumb {
	position: relative; flex: 0 0 40%; min-height: 200px; border-radius: var(--whq-radius);
	overflow: hidden; background-size: cover; background-position: center; background-color: var(--whq-muted);
}
.bs-blog-thumb .link-div { position: absolute; inset: 0; }
.whq-card__body { flex: 1; }
.whq-card__body .title { margin: 6px 0; font-size: 1.3rem; }
.whq-card__body .title a { color: var(--whq-contrast); }
.whq-card__body .title a:hover { color: var(--whq-primary-dark); }
.whq-card__excerpt { color: var(--whq-text-soft); font-size: .95rem; }
@media (max-width: 767.98px) {
	.bs-blog-post.list-blog { flex-direction: column; }
	.bs-blog-post .bs-blog-thumb { flex-basis: auto; min-height: 200px; }
}

/* ===== Post listing grid ===== */
.whq-listing .container { max-width: var(--whq-container); }
.whq-post-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--whq-gap);
	margin-bottom: 40px;
}
.whq-grid-card { margin: 0; }
.whq-grid-card__media {
	position: relative;
	aspect-ratio: 3 / 2;
	border-radius: var(--whq-radius);
	overflow: hidden;
	background-color: var(--whq-muted);
}
.whq-grid-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.whq-grid-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.45) 65%, rgba(0, 0, 0, 0.78) 100%);
	pointer-events: none;
}
.whq-grid-card__badge {
	position: absolute;
	z-index: 3;
	max-width: calc(50% - 20px);
	padding: 3px 10px;
	font-size: .7rem;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	background: var(--whq-primary);
	border-radius: 999px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}
.whq-grid-card__badge--cat { top: 10px; left: 10px; }
.whq-grid-card__badge--country { top: 10px; right: 10px; text-align: right; }
.whq-grid-card__inner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	min-width: 0;
	padding: 12px 14px 14px;
}
.whq-grid-card__title {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	max-height: calc(1.3em * 2);
	text-overflow: ellipsis;
	word-break: break-word;
	white-space: normal;
	pointer-events: none;
}
@media (min-width: 992px) {
	.whq-grid-card__title {
		font-size: .85rem;
		max-height: calc(1.3em * 2);
	}
}
.whq-grid-card__title a { color: #fff; }
.whq-grid-card__title a:hover { color: #fff; opacity: .9; }
.whq-grid-card .link-div {
	position: absolute;
	inset: 0;
	z-index: 4;
}
@media (hover: hover) {
	.whq-grid-card__img { transition: transform 0.25s ease; }
	.whq-grid-card__media::after { transition: background 0.25s ease; }
	.whq-grid-card:hover .whq-grid-card__img { transform: scale(1.04); }
	.whq-grid-card:hover .whq-grid-card__media::after {
		background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.9) 100%);
	}
}

.whq-term-index { margin-top: 48px; }
.whq-term-index__heading { margin-bottom: 16px; }
.whq-term-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.whq-term-list__link {
	display: inline-block;
	padding: 6px 14px;
	font-size: .9rem;
	color: var(--whq-contrast);
	background: var(--whq-muted);
	border: 1px solid var(--whq-border);
	border-radius: var(--whq-radius);
}
.whq-term-list__link:hover {
	color: var(--whq-primary-dark);
	border-color: var(--whq-primary);
}

.whq-recent-posts { margin-top: 48px; }
.whq-recent-grid { margin-bottom: 0; }

@media (max-width: 991.98px) {
	.whq-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
	.whq-post-grid { grid-template-columns: 1fr; }
}

/* Category pills + meta */
.bs-blog-category { display: flex; flex-wrap: wrap; gap: 6px; }
.blogus-categories { display: inline-block; padding: 2px 10px; font-size: .75rem; font-weight: 600; color: #fff; background: var(--whq-primary); border-radius: 999px; }
.blogus-categories:hover { background: var(--whq-primary-dark); color: #fff; }
.bs-blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 8px 0; font-size: .85rem; color: var(--whq-text-soft); }
.bs-blog-meta a { color: var(--whq-text-soft); }
.bs-author img, .bs-blog-meta img { width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.bs-blog-meta .blogus-tags a { margin-right: 6px; }

/* ===== Sidebar ===== */
.bs-sidebar .bs-widget { margin-bottom: 32px; background: var(--whq-base); }
.bs-widget-title .title { font-size: 1.1rem; border-left: 4px solid var(--whq-primary); padding-left: 10px; margin: 0 0 14px; }
.bs-sticky { position: sticky; top: 16px; }

/* ===== Single ===== */
.bs-blog-post.single .bs-header .title { font-size: 2rem; margin: 10px 0; }
.bs-blog-post.single .bs-blog-thumb { margin: 20px 0; border-radius: var(--whq-radius); overflow: hidden; }
.featured-image-caption { display: block; font-size: .8rem; color: var(--whq-text-soft); margin-top: 6px; }
.whq-entry { font-size: 1.05rem; }
.whq-by { font-weight: 600; }

/* Article typography（旧 style.css より移植） */
.article .wp-block-aioseo-table-of-contents,
article .wp-block-aioseo-table-of-contents {
	background-color: var(--whq-muted); padding: 30px 15px 15px; margin: 30px 0 60px; border-radius: var(--whq-radius);
}
.whq-entry h2, article:not(.whq-grid-card) h2 {
	margin: 40px 0 16px; border-bottom: 2px solid var(--whq-accent); padding: 20px 0 6px 12px; font-size: 1.5rem;
}
.whq-entry h3, article:not(.whq-grid-card) h3 {
	border-left: 5px solid var(--whq-primary); padding: 5px 0 5px 12px; margin: 30px 0; font-size: 1.25rem;
}
.whq-entry h4, article:not(.whq-grid-card) h4 { margin: 32px 0 12px; font-size: 1.1rem; }
.whq-entry p a, article p a { text-decoration: underline; }
.wp-block-image figcaption { margin-top: .25em; font-size: .75em; color: var(--whq-text-soft); }

/* Post navigation */
.post-navigation { display: flex; gap: var(--whq-gap); margin: 32px 0; }
.post-navigation .nav-links { display: flex; gap: var(--whq-gap); width: 100%; }
.post-navigation .nav-previous, .post-navigation .nav-next { flex: 1; padding: 14px; border: 1px solid var(--whq-border); border-radius: var(--whq-radius); }
.post-navigation .nav-next { text-align: right; }
.whq-postnav__label { display: block; font-size: .75rem; color: var(--whq-text-soft); }
.whq-postnav__title { font-weight: 600; }

/* Share */
.whq-share { display: flex; align-items: center; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.whq-share__label { font-weight: 600; }
.post-share-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.whq-share__btn { padding: 6px 14px; border-radius: var(--whq-radius); color: #fff; font-size: .85rem; font-weight: 600; }
.whq-share__btn--x { background: #000; }
.whq-share__btn--facebook { background: #1877f2; }
.whq-share__btn--line { background: #06c755; }
.whq-share__btn--hatena { background: #00a4de; }
.whq-share__btn:hover { color: #fff; opacity: .9; }

/* Author box + related */
.whq-single-terms { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.whq-single-terms .bs-blog-category { margin: 0; }
.whq-author-box {
	margin-bottom: 32px;
	padding: 20px;
	border: 1px solid var(--whq-border);
	border-radius: var(--whq-radius);
	background: var(--whq-base);
}
.whq-author-box__title {
	margin: 0 0 16px;
	font-size: 1.1rem;
	border-left: 4px solid var(--whq-primary);
	padding-left: 10px;
}
.whq-author-box__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
}
@media (min-width: 992px) {
	.whq-author-box__inner {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
	}
	.whq-author-box__inner .bs-author-pic { flex: 0 0 auto; }
	.whq-author-box__body { flex: 1; min-width: 0; }
}
.whq-author-box img { border-radius: 50%; }
.whq-author-box__name {
	margin: 0 0 8px;
	font-size: 1.05rem;
}
.whq-author-box__name a { color: var(--whq-contrast); }
.whq-related { margin: 32px 0; }
.whq-related-grid {
	margin-bottom: 0;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 991.98px) {
	.whq-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
	.whq-related-grid { grid-template-columns: 1fr; }
}

/* ===== Pagination ===== */
.whq-pagination { margin-top: 24px; }
.whq-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.whq-pagination .page-numbers {
	display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center;
	padding: 0 10px; border: 1px solid var(--whq-border); border-radius: var(--whq-radius); color: var(--whq-contrast);
}
.whq-pagination .page-numbers.current { background: var(--whq-primary); color: #fff; border-color: var(--whq-primary); }
.whq-arrow { display: inline-block; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.whq-arrow--left { transform: rotate(-135deg); }
.whq-arrow--right { transform: rotate(45deg); }

/* ===== Footer ===== */
.whq-footer { background: var(--whq-accent); color: #cfd3d8; margin-top: 40px; }
.whq-footer a { color: #e8eaed; }
.whq-footer .bs-footer-widget-area { padding: 48px 0 24px; }
.whq-footer-cols { gap: var(--whq-gap) 0; }
.whq-footer-col { padding: 0 12px; }
.whq-footer-cols--2 .whq-footer-col { width: 50%; }
.whq-footer-cols--3 .whq-footer-col { width: 33.3333%; }
.whq-footer-cols--4 .whq-footer-col { width: 25%; }
.whq-footer .bs-widget-title .title { color: #fff; border-left-color: var(--whq-primary); }
.divide-line { border-top: 1px solid rgba(255,255,255,.15); margin: 24px 0; }
.bs-footer-bottom-area { padding: 16px 0; }
.bs-footer-copyright { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.whq-footer .bs-social, .whq-footer-nav .info-right { display: flex; gap: 12px; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
@media (max-width: 767.98px) {
	.whq-footer-col, .whq-footer-cols--2 .whq-footer-col, .whq-footer-cols--3 .whq-footer-col, .whq-footer-cols--4 .whq-footer-col { width: 100%; }
	.whq-footer .bs-social, .whq-footer-nav .info-right { justify-content: center; }
}

/* ===== Social icons (Font Awesome brands) ===== */
.bs-social { list-style: none; }
.whq-social {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor;
	font-size: 1rem; line-height: 1;
}
.whq-social:hover { color: var(--whq-primary-dark); border-color: var(--whq-primary-dark); }

/* ===== Breadcrumbs ===== */
.whq-breadcrumbs { margin: 10px 0; font-size: .82rem; }
.whq-breadcrumbs .breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--whq-text-soft); }
.whq-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 6px; color: var(--whq-text-soft); }

/* ===== Scroll to top ===== */
.bs_upscr {
	position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 44px; height: 44px;
	border: 0; border-radius: 50%; background: var(--whq-primary); color: #fff; cursor: pointer;
	opacity: 0; visibility: hidden; transition: .2s ease;
}
.bs_upscr.is-visible { opacity: 1; visibility: visible; }

/* ===== Modal ===== */
.whq-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; }
.whq-modal[hidden] { display: none; }
.whq-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.whq-modal__dialog { position: relative; z-index: 2; width: min(680px, 92vw); margin-top: 12vh; background: var(--whq-base); border-radius: var(--whq-radius); padding: 28px; box-shadow: var(--whq-shadow); }
.whq-modal__close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--whq-contrast); }

/* ===== Search form ===== */
.whq-search-form { display: flex; gap: 8px; }
.whq-search-form__field { flex: 1; padding: 12px 14px; border: 1px solid var(--whq-border); border-radius: var(--whq-radius); background: var(--whq-base); color: var(--whq-contrast); }
.whq-search-form__submit {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 48px; padding: 0 16px; border: 0; border-radius: var(--whq-radius);
	background: var(--whq-primary); color: #fff; font-size: 1rem; cursor: pointer;
}
.whq-search-form__submit:hover { background: var(--whq-primary-dark); color: #fff; }

/* ===== Single / page 2-column ===== */
@media (min-width: 992px) {
	.single-class .row,
	.page-class .row { align-items: flex-start; }
	.single-class .content-right,
	.page-class .content-right { padding-right: calc(var(--whq-gap) * 0.75); }
	.single-class .sidebar-right,
	.page-class .sidebar-right { padding-left: calc(var(--whq-gap) * 0.75); }
}

/* ===== Buttons ===== */
.whq-btn, .whq-entry .wp-block-button__link { background: var(--whq-primary); color: #fff; border: 0; padding: 10px 20px; border-radius: var(--whq-radius); cursor: pointer; }

/* ===== Legacy author comment (投稿内HTML .authors-comment 系) ===== */
.authors-comment { display: flex; margin: 30px 0; }
img.authors-comment-img { width: 75px; height: 75px; border-radius: 100px; box-shadow: 0 0 10px rgba(0,0,0,.2); }
p.authors-comment-text {
	background-color: var(--whq-muted); margin-bottom: 0; padding: 30px; margin-left: 30px;
	border-radius: var(--whq-radius); line-height: 1.5em; position: relative; font-size: .9em;
}
p.authors-comment-text::after {
	position: absolute; content: ""; border: 10px solid transparent; border-right: 10px solid var(--whq-muted);
	top: 15px; left: -19px;
}

/* ===== New author comment shortcode ===== */
.whq-author-comment { display: flex; align-items: flex-start; gap: 16px; margin: 30px 0; }
.whq-author-comment__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 10px rgba(0,0,0,.15); }
.whq-author-comment__author { text-align: center; flex: 0 0 auto; }
.whq-author-comment__name { display: block; font-size: .8rem; margin-top: 4px; }
.whq-author-comment__bubble {
	position: relative; background: var(--whq-muted); border-radius: var(--whq-radius); padding: 18px 22px; flex: 1;
}
.whq-author-comment__bubble::after {
	content: ""; position: absolute; top: 18px; left: -18px; border: 10px solid transparent; border-right-color: var(--whq-muted);
}
.whq-author-comment__text { margin: 0; font-size: .92rem; line-height: 1.6; }

@media (max-width: 575.98px) {
	.authors-comment, .whq-author-comment { flex-direction: column; }
	p.authors-comment-text { margin-left: 0; margin-top: 16px; }
	p.authors-comment-text::after, .whq-author-comment__bubble::after { display: none; }
}
