/*
Theme Name: 美容整形ジャーナル Redesign
Theme URI: https://biyouseikei-journal.com/
Description: SWELLを親テーマとして、既存の記事・固定ページを維持したままメディア型デザインへ切り替える子テーマです。
Author: Biyouseikei Journal
Version: 1.0.17
Template: swell
Text Domain: bj-redesign
*/

:root {
	--bj-ink: #14233b;
	--bj-ink-soft: #536174;
	--bj-blue: #215db8;
	--bj-blue-dark: #174a91;
	--bj-pink: #e96678;
	--bj-pink-soft: #fff0f2;
	--bj-sky: #eef6ff;
	--bj-cream: #fff8eb;
	--bj-white: #ffffff;
	--bj-bg: #f7f9fc;
	--bj-border: #dce4ee;
	--bj-shadow: 0 12px 34px rgba(25, 50, 87, 0.09);
	--bj-container: 1180px;
	--bj-reading: 760px;
}

.bj-redesign {
	margin: 0;
	background: var(--bj-white);
	color: var(--bj-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	letter-spacing: 0;
}

.bj-redesign *,
.bj-redesign *::before,
.bj-redesign *::after { box-sizing: border-box; }

.bj-redesign img { max-width: 100%; height: auto; vertical-align: middle; }
.bj-redesign a { color: inherit; text-decoration: none; }
.bj-redesign button,
.bj-redesign input { font: inherit; }
.bj-redesign button { color: inherit; }
.bj-redesign .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.bj-redesign .screen-reader-text:focus {
	clip: auto;
	width: auto;
	height: auto;
	left: 8px;
	top: 8px;
	z-index: 99999;
	padding: 10px 14px;
	background: var(--bj-white);
	color: var(--bj-ink);
}

.bj-container { width: min(calc(100% - 40px), var(--bj-container)); margin-inline: auto; }
.bj-reading-width { width: min(100%, var(--bj-reading)); }

/* Header */
.bj-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--bj-border);
	backdrop-filter: blur(12px);
}
.admin-bar .bj-site-header { top: 32px; }
.bj-header-inner {
	display: grid;
	grid-template-columns: minmax(230px, 1fr) auto auto;
	align-items: center;
	gap: 26px;
	min-height: 74px;
}
.bj-brand { display: inline-flex; align-items: center; min-width: 0; }
.bj-brand__logo { display: block; width: min(100%, 320px); height: auto; }
.bj-brand__name {
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: clamp(19px, 2vw, 27px);
	font-weight: 600;
	line-height: 1.15;
	white-space: nowrap;
}
.bj-brand__sub { margin-top: 4px; font-size: 8px; letter-spacing: .22em; color: var(--bj-ink-soft); }
.bj-primary-menu,
.bj-primary-menu ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.bj-primary-menu a { display: block; padding: 25px 0 22px; font-size: 13px; font-weight: 700; line-height: 1.2; }
.bj-primary-menu a:hover,
.bj-primary-menu .current-menu-item > a { color: var(--bj-blue); }
.bj-primary-menu .menu-item-has-children { position: relative; }
.bj-primary-menu .sub-menu {
	position: absolute;
	left: -18px;
	top: calc(100% - 3px);
	display: none;
	width: 220px;
	padding: 10px 0;
	background: var(--bj-white);
	border: 1px solid var(--bj-border);
	box-shadow: var(--bj-shadow);
}
.bj-primary-menu .sub-menu a { padding: 10px 18px; }
.bj-primary-menu .menu-item-has-children:hover > .sub-menu,
.bj-primary-menu .menu-item-has-children:focus-within > .sub-menu { display: block; }
.bj-header-actions { display: flex; align-items: center; gap: 10px; }
.bj-icon-button {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.bj-icon-button:hover { background: var(--bj-sky); color: var(--bj-blue); }
.bj-icon-button .dashicons { width: 22px; height: 22px; font-size: 22px; }
.bj-header-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	background: var(--bj-pink-soft);
	border: 1px solid #f5d5da;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}
.bj-header-cta:hover { background: var(--bj-pink); color: var(--bj-white); }
.bj-menu-toggle { display: none; }
.bj-menu-lines,
.bj-menu-lines::before,
.bj-menu-lines::after { width: 21px; height: 2px; background: currentColor; }
.bj-menu-lines { position: relative; display: block; }
.bj-menu-lines::before,
.bj-menu-lines::after { content: ""; position: absolute; left: 0; }
.bj-menu-lines::before { top: -6px; }
.bj-menu-lines::after { top: 6px; }

/* Search dialog */
.bj-search-dialog {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: none;
	place-items: start center;
	padding: 120px 20px 30px;
	background: rgba(20, 35, 59, .55);
}
.bj-search-dialog.is-open { display: grid; }
.bj-search-dialog__panel { position: relative; width: min(100%, 680px); padding: 34px; background: var(--bj-white); border-radius: 8px; box-shadow: var(--bj-shadow); }
.bj-search-dialog__title { margin: 0 0 16px; font-size: 21px; }
.bj-search-dialog__close { position: absolute; top: 9px; right: 9px; }

/* Forms */
.bj-search-form { position: relative; display: flex; align-items: center; }
.bj-search-form .dashicons { position: absolute; left: 17px; z-index: 1; color: var(--bj-ink-soft); }
.bj-search-form__input {
	width: 100%;
	height: 54px;
	padding: 0 58px 0 48px;
	background: var(--bj-white);
	border: 1px solid var(--bj-border);
	border-radius: 999px;
	color: var(--bj-ink);
	font-size: 14px;
}
.bj-search-form__input:focus { outline: 3px solid rgba(33, 93, 184, .18); border-color: var(--bj-blue); }
.bj-search-form__button {
	position: absolute;
	right: 7px;
	display: grid;
	place-items: center;
	width: 41px;
	height: 41px;
	padding: 0;
	background: var(--bj-white);
	border: 1px solid var(--bj-border);
	border-radius: 50%;
	cursor: pointer;
}
.bj-search-form__button:hover { background: var(--bj-blue); color: var(--bj-white); }

/* Hero */
.bj-hero { position: relative; overflow: hidden; background: #edf3f8; }
.bj-hero__inner { position: relative; min-height: 560px; }
.bj-hero__image { position: absolute; inset: 0 0 0 48%; }
.bj-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.bj-hero__image::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .08); }
.bj-hero__content {
	position: relative;
	z-index: 2;
	width: 48%;
	padding: 64px 0 38px;
}
.bj-hero__eyebrow { margin: 0 0 15px; font-family: "Yu Mincho", serif; font-size: 15px; letter-spacing: .1em; }
.bj-hero__title {
	margin: 0;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	max-width: 12em;
	font-size: clamp(36px, 4.2vw, 54px);
	font-weight: 500;
	line-height: 1.45;
	overflow-wrap: anywhere;
}
.bj-hero__lead { max-width: 510px; margin: 16px 0 25px; font-size: 14px; font-weight: 500; line-height: 2; }
.bj-hero .bj-search-form { width: min(100%, 540px); }
.bj-popular-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; font-size: 11px; }
.bj-popular-search strong { margin-right: 2px; }
.bj-search-tag { padding: 5px 10px; background: rgba(255,255,255,.85); border: 1px solid var(--bj-border); border-radius: 999px; font-weight: 700; }
.bj-search-tag:hover { border-color: var(--bj-blue); color: var(--bj-blue); }

/* Trust navigation */
.bj-trust-nav { padding: 16px 0; background: var(--bj-white); border-bottom: 1px solid var(--bj-border); }
.bj-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bj-trust-item { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 86px; padding: 12px 14px; background: var(--bj-sky); border-radius: 6px; }
.bj-trust-item .dashicons { flex: 0 0 auto; width: 34px; height: 34px; font-size: 34px; color: var(--bj-blue); }
.bj-trust-item span:last-child { font-size: 12px; font-weight: 700; line-height: 1.55; }

/* Shared sections */
.bj-section { padding: 54px 0; }
.bj-section--soft { background: var(--bj-bg); }
.bj-section--blue { background: var(--bj-sky); }
.bj-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.bj-section-title { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; }
.bj-section-kicker { display: block; margin-bottom: 5px; color: var(--bj-pink); font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.bj-more-link { display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--bj-blue); font-size: 12px; font-weight: 700; }
.bj-more-link:hover { text-decoration: underline; }
.bj-more-link .dashicons { width: 17px; height: 17px; font-size: 17px; }

/* Cards */
.bj-card { min-width: 0; background: var(--bj-white); }
.bj-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #eaf0f6; border-radius: 6px; }
.bj-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bj-card:hover .bj-card__image img { transform: scale(1.025); }
.bj-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #96a6b8; }
.bj-image-placeholder .dashicons { width: 40px; height: 40px; font-size: 40px; }
.bj-card__body { padding: 13px 3px 2px; }
.bj-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; background: var(--bj-white); border: 1px solid #f0cdd2; border-radius: 999px; color: #b84051; font-size: 10px; font-weight: 700; }
.bj-card__title { margin: 9px 0 8px; font-size: 15px; font-weight: 700; line-height: 1.65; }
.bj-card__title a:hover { color: var(--bj-blue); }
.bj-card__meta { display: flex; align-items: center; gap: 12px; color: var(--bj-ink-soft); font-size: 10px; }
.bj-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

/* Procedure finder */
.bj-procedure-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.bj-procedure-item { display: grid; place-items: center; min-height: 116px; padding: 13px 7px; background: var(--bj-white); border: 1px solid var(--bj-border); border-radius: 6px; text-align: center; }
.bj-procedure-item:hover { border-color: var(--bj-pink); color: #b84051; transform: translateY(-2px); }
.bj-procedure-icon { display: block; width: 38px; height: 38px; margin-bottom: 8px; object-fit: contain; transition: transform .2s ease; }
.bj-procedure-item:hover .bj-procedure-icon { transform: translateY(-2px); }
.bj-procedure-item span:last-child { font-size: 11px; font-weight: 700; }

/* Latest and ranking */
.bj-news-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .7fr); gap: 38px; }
.bj-latest-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.bj-latest-list { display: grid; gap: 14px; }
.bj-compact-card { display: grid; grid-template-columns: 150px 1fr; gap: 13px; align-items: center; }
.bj-compact-card .bj-card__image { aspect-ratio: 4 / 3; }
.bj-compact-card .bj-card__body { padding: 0; }
.bj-compact-card .bj-card__title { margin: 5px 0; font-size: 12px; }
.bj-ranking { padding-left: 24px; border-left: 1px solid var(--bj-border); }
.bj-ranking__title { margin: 0 0 14px; font-family: "Yu Mincho", serif; font-size: 23px; }
.bj-ranking-list { margin: 0; padding: 0; list-style: none; counter-reset: ranking; }
.bj-ranking-item { counter-increment: ranking; display: grid; grid-template-columns: 28px 70px 1fr; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--bj-border); }
.bj-ranking-item::before { content: counter(ranking); color: var(--bj-blue); font-family: Georgia, serif; font-size: 19px; font-weight: 700; }
.bj-ranking-item:first-child::before { color: #d99b1d; }
.bj-ranking-item img { width: 70px; height: 54px; object-fit: cover; border-radius: 4px; }
.bj-ranking-item__placeholder { display: grid; place-items: center; width: 70px; height: 54px; background: var(--bj-sky); color: var(--bj-blue); border-radius: 4px; }
.bj-ranking-item__content { min-width: 0; }
.bj-ranking-item a { display: block; font-size: 11px; font-weight: 700; line-height: 1.5; }
.bj-ranking-item a:hover { color: var(--bj-blue); }
.bj-ranking-item__views { display: inline-flex; align-items: center; gap: 3px; margin-top: 5px; color: var(--bj-ink-soft); font-size: 9px; }
.bj-ranking-item__views .dashicons { width: 13px; height: 13px; font-size: 13px; }

/* Areas */
.bj-area-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.bj-area-item { position: relative; min-height: 120px; overflow: hidden; padding: 20px; background: var(--bj-white); border: 1px solid var(--bj-border); border-radius: 6px; }
.bj-area-item::after { content: ""; position: absolute; right: -22px; bottom: -45px; width: 100px; height: 100px; border-radius: 50%; background: var(--bj-sky); }
.bj-area-item strong,
.bj-area-item small { position: relative; z-index: 1; display: block; }
.bj-area-item strong { font-family: "Yu Mincho", serif; font-size: 20px; }
.bj-area-item small { margin-top: 4px; color: var(--bj-ink-soft); }
.bj-area-item:hover { border-color: var(--bj-blue); }

/* Footer */
.bj-site-footer { background: #12243a; color: var(--bj-white); }
.bj-footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; padding: 52px 0 40px; }
.bj-footer-brand { font-family: "Yu Mincho", serif; font-size: 25px; }
.bj-footer-lead { max-width: 420px; margin: 16px 0 0; color: #c7d2df; font-size: 12px; }
.bj-footer-title { margin: 0 0 13px; font-size: 13px; }
.bj-footer-menu,
.bj-footer-menu ul { margin: 0; padding: 0; list-style: none; }
.bj-footer-menu a { display: block; padding: 5px 0; color: #d9e2ec; font-size: 11px; }
.bj-footer-menu a:hover { color: var(--bj-white); text-decoration: underline; }
.bj-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0 22px; border-top: 1px solid rgba(255,255,255,.15); color: #aebccc; font-size: 10px; }

/* Breadcrumb */
.bj-breadcrumb { padding: 17px 0; color: var(--bj-ink-soft); font-size: 11px; }
.bj-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.bj-breadcrumb li { display: flex; align-items: center; min-width: 0; }
.bj-breadcrumb li:not(:last-child)::after { content: "/"; margin: 0 8px; color: #a8b2bf; }
.bj-breadcrumb li:last-child { overflow: hidden; max-width: 62ch; text-overflow: ellipsis; white-space: nowrap; }
.bj-breadcrumb a:hover { color: var(--bj-blue); }

/* Article */
.bj-article-shell { padding-bottom: 80px; background: var(--bj-white); }
.bj-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.bj-article { min-width: 0; }
.bj-article-header { margin-bottom: 25px; }
.bj-article-category { margin-bottom: 11px; }
.bj-article-category .bj-chip { background: var(--bj-blue); border-color: var(--bj-blue); border-radius: 2px; color: var(--bj-white); }
.bj-article-title { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.45; font-weight: 800; }
.bj-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 14px; color: var(--bj-ink-soft); font-size: 11px; }
.bj-article-meta span { display: inline-flex; align-items: center; gap: 4px; }
.bj-article-meta .dashicons { width: 15px; height: 15px; font-size: 15px; }
.bj-article-hero { overflow: hidden; margin-bottom: 22px; border-radius: 6px; }
.bj-article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bj-article-guide { margin: 0 0 20px; }
.bj-article-guide ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.bj-article-guide a { display: flex; min-width: 0; min-height: 108px; padding: 13px 8px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; background: #fff8fa; border: 1px solid #f5dfe4; border-radius: 4px; color: var(--bj-ink); text-align: center; }
.bj-article-guide a:hover { border-color: #efb9c4; color: var(--bj-blue); }
.bj-article-guide .dashicons { width: 27px; height: 27px; color: var(--bj-pink); font-size: 27px; }
.bj-article-guide__label { display: -webkit-box; overflow: hidden; font-size: 10px; font-weight: 700; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.bj-article-supervisor-card { display: none; }
.bj-article-points { margin: 24px 0; padding: 19px 21px; background: var(--bj-sky); border: 1px solid #d4e8f8; border-radius: 5px; }
.bj-article-points__title { margin: 0 0 12px; padding-left: 10px; border-left: 4px solid var(--bj-blue); color: var(--bj-blue-dark); font-size: 16px; line-height: 1.45; }
.bj-article-points ul { margin: 0; padding: 0; list-style: none; }
.bj-article-points li { position: relative; padding-left: 28px; font-size: 13px; line-height: 1.7; }
.bj-article-points li + li { margin-top: 7px; }
.bj-article-points li::before { content: "✓"; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 19px; height: 19px; background: #4b98d1; border-radius: 50%; color: var(--bj-white); font-size: 11px; font-weight: 700; }
.bj-article-mobile-toc { display: none; }
.bj-conclusion { margin: 24px 0; padding: 20px 23px; background: var(--bj-pink-soft); border: 1px solid #f6d6dc; border-radius: 6px; }
.bj-conclusion__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #b63349; font-size: 16px; }
.bj-conclusion__title .dashicons { color: var(--bj-pink); }
.bj-conclusion ul { margin: 0; padding: 0; list-style: none; }
.bj-conclusion li { position: relative; padding-left: 27px; font-size: 14px; }
.bj-conclusion li + li { margin-top: 6px; }
.bj-conclusion li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 19px; height: 19px; background: var(--bj-pink); border-radius: 50%; color: var(--bj-white); font-size: 11px; font-weight: 700; }
.bj-article-content { counter-reset: bj-article-section; font-size: 16px; line-height: 2; }
.bj-article-content > *:first-child { margin-top: 0; }
.bj-article-content h2 { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 11px; align-items: center; margin: 58px 0 24px; padding: 0 0 11px; border-bottom: 2px solid #83bde5; border-left: 0; font-size: 25px; line-height: 1.45; }
.bj-article-content h2::before { content: counter(bj-article-section); counter-increment: bj-article-section; color: #54a5dc; font-family: Georgia, "Times New Roman", serif; font-size: 64px; font-style: italic; font-weight: 400; line-height: .85; }
.bj-article-content h3 { margin: 40px 0 17px; padding-bottom: 9px; border-bottom: 2px solid var(--bj-border); font-size: 21px; line-height: 1.55; }
.bj-article-content h4 { margin: 32px 0 13px; font-size: 18px; }
.bj-article-content p { margin: 0 0 1.8em; }
.bj-article-content a { color: var(--bj-blue); text-decoration: underline; text-underline-offset: 3px; }
.bj-article-content ul,
.bj-article-content ol { margin: 1.4em 0; padding-left: 1.5em; }
.bj-article-content table { width: 100%; margin: 26px 0; border-collapse: collapse; }
.bj-article-content th,
.bj-article-content td { padding: 12px; border: 1px solid var(--bj-border); text-align: left; }
.bj-article-content th { background: var(--bj-sky); }
.bj-article-content blockquote { margin: 28px 0; padding: 20px 23px; background: var(--bj-bg); border-left: 4px solid var(--bj-blue); }
.bj-article-content .wp-block-image img { border-radius: 6px; }
.bj-article-content .p-toc[hidden] { display: none !important; }

.bj-article-sidebar { position: sticky; top: 98px; display: grid; gap: 16px; }
.bj-side-box { padding: 19px; background: var(--bj-white); border: 1px solid var(--bj-border); border-radius: 6px; }
.bj-side-box__title { margin: 0 0 13px; font-size: 14px; }
.bj-side-box--toc .bj-side-box__title { margin-bottom: 3px; padding: 0 0 7px 7px; border-bottom: 1px solid var(--bj-border); border-left: 3px solid var(--bj-blue); line-height: 1.4; }
.bj-toc-list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.bj-toc-list li { counter-increment: toc; border-bottom: 1px solid var(--bj-border); }
.bj-toc-list li:last-child { border-bottom: 0; }
.bj-toc-list a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 30px; padding: 3px 0; color: var(--bj-ink); font-size: 11px; line-height: 1.45; }
.bj-toc-list a::before { content: counter(toc); display: grid; place-items: center; width: 23px; height: 23px; background: #5a9ed1; border-radius: 50%; color: var(--bj-white); font-size: 11px; font-weight: 700; }
.bj-toc-list a:hover { color: var(--bj-blue); }
.bj-supervisor { display: grid; grid-template-columns: 76px 1fr; gap: 13px; align-items: start; }
.bj-supervisor__image { width: 76px; height: 92px; object-fit: cover; background: var(--bj-sky); border-radius: 4px; }
.bj-supervisor__placeholder { display: grid; place-items: center; width: 76px; height: 92px; background: var(--bj-sky); border-radius: 4px; color: var(--bj-blue); }
.bj-supervisor__placeholder .dashicons { width: 36px; height: 36px; font-size: 36px; }
.bj-supervisor__role { color: var(--bj-blue); font-size: 9px; font-weight: 700; }
.bj-supervisor__name { display: block; margin: 3px 0; font-size: 14px; font-weight: 700; }
.bj-supervisor__title { display: block; color: var(--bj-ink-soft); font-size: 10px; line-height: 1.55; }
.bj-supervisor__profile { margin: 12px 0 0; color: var(--bj-ink-soft); font-size: 10px; line-height: 1.7; }
.bj-supervisor__more { display: inline-flex; align-items: center; align-self: center; gap: 1px; color: var(--bj-blue); font-size: 10px; font-weight: 700; white-space: nowrap; }
.bj-supervisor__more .dashicons { width: 14px; height: 14px; font-size: 14px; }
.bj-source-note { margin-top: 18px; padding: 16px 18px; background: var(--bj-cream); border-left: 4px solid #e8ad3f; font-size: 12px; }
.bj-source-note strong { display: block; margin-bottom: 4px; }
.bj-inline-toc { display: none; }

.bj-related { margin-top: 55px; padding-top: 35px; border-top: 1px solid var(--bj-border); }
.bj-related__title { margin: 0 0 18px; font-family: "Yu Mincho", serif; font-size: 25px; }
.bj-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Pages and archives */
.bj-page-shell,
.bj-archive-shell { padding-bottom: 80px; }
.bj-page-header,
.bj-archive-header { margin: 30px 0 35px; }
.bj-page-title,
.bj-archive-title { margin: 0; font-family: "Yu Mincho", serif; font-size: clamp(31px, 4vw, 45px); line-height: 1.4; }
.bj-archive-description { max-width: 760px; margin-top: 14px; color: var(--bj-ink-soft); font-size: 14px; }
.bj-page-content { width: min(100%, 860px); margin-inline: auto; }
.bj-pagination { margin-top: 45px; }
.bj-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.bj-pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--bj-border); border-radius: 4px; font-size: 12px; }
.bj-pagination .current,
.bj-pagination a:hover { background: var(--bj-blue); border-color: var(--bj-blue); color: var(--bj-white); }
.bj-empty { padding: 50px 0; text-align: center; }
.bj-empty .dashicons { width: 48px; height: 48px; font-size: 48px; color: #a8b6c6; }
.bj-empty h2 { margin: 15px 0 8px; }
.bj-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 15px; padding: 0 20px; background: var(--bj-blue); border: 1px solid var(--bj-blue); border-radius: 999px; color: var(--bj-white); font-size: 12px; font-weight: 700; }
.bj-button:hover { background: var(--bj-blue-dark); }

@media (max-width: 1120px) {
	.bj-header-inner {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"brand actions"
			"nav nav";
	}
	.bj-brand { grid-area: brand; }
	.bj-header-actions { grid-area: actions; justify-self: end; }
	.bj-primary-menu { grid-area: nav; display: none; padding-bottom: 18px; }
	.bj-primary-menu.is-open { display: block; }
	.bj-primary-menu ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
	.bj-primary-menu a { padding: 12px; border-bottom: 1px solid var(--bj-border); }
	.bj-primary-menu .sub-menu { position: static; display: block; width: auto; padding: 0 0 5px 12px; border: 0; box-shadow: none; }
	.bj-primary-menu .sub-menu a { padding: 7px 12px; font-weight: 500; }
	.bj-menu-toggle { display: inline-grid; }
	.bj-hero__image { left: 46%; }
	.bj-hero__content { width: 52%; }
	.bj-procedure-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
	.admin-bar .bj-site-header { top: 46px; }
	.bj-hero__inner { min-height: 520px; }
	.bj-hero__image { left: 45%; }
	.bj-hero__content { width: 53%; }
	.bj-card-grid { grid-template-columns: repeat(2, 1fr); }
	.bj-news-layout { grid-template-columns: 1fr; }
	.bj-ranking { padding: 24px 0 0; border-top: 1px solid var(--bj-border); border-left: 0; }
	.bj-ranking-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 22px; }
	.bj-area-grid { grid-template-columns: repeat(3, 1fr); }
	.bj-article-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; }
	.bj-footer-main { grid-template-columns: 1fr 1fr; }
	.bj-footer-about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
	.bj-container { width: min(calc(100% - 28px), var(--bj-container)); }
	.bj-site-header { position: relative; top: auto; }
	.admin-bar .bj-site-header { top: auto; }
	.bj-header-inner {
		grid-template-areas: "brand actions";
		grid-template-rows: 61px;
		min-height: 61px;
		column-gap: 8px;
		row-gap: 0;
		align-items: center;
	}
	.bj-brand,
	.bj-header-actions { align-self: center; }
	.bj-primary-menu {
		grid-area: auto;
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
	}
	.bj-primary-menu.is-open { margin-top: 8px; }
	.bj-brand__name { font-size: 18px; }
	.bj-brand__sub { font-size: 7px; }
	.bj-brand__logo { width: min(100%, 220px); }
	.bj-header-cta { display: none; }
	.bj-header-actions { gap: 0; }
	.bj-icon-button { width: 39px; height: 39px; }
	.bj-primary-menu ul { grid-template-columns: 1fr; }
	.bj-search-dialog { padding-top: 76px; }
	.bj-search-dialog__panel { padding: 26px 18px; }
	.bj-hero { overflow: visible; }
	.bj-hero__inner { display: flex; flex-direction: column; min-height: 0; }
	.bj-hero__image { position: relative; inset: auto; order: 1; aspect-ratio: 4 / 3; }
	.bj-hero__image::after { background: rgba(255,255,255,.02); }
	.bj-hero__content { order: 2; width: auto; padding: 28px 0 25px; }
	.bj-hero__eyebrow { font-size: 12px; }
	.bj-hero__title { font-size: clamp(31px, 9vw, 42px); line-height: 1.5; }
	.bj-hero__lead { font-size: 12px; line-height: 1.8; }
	.bj-trust-grid { grid-template-columns: repeat(2, 1fr); }
	.bj-trust-item { min-height: 92px; padding: 11px 7px; text-align: center; flex-direction: column; gap: 6px; }
	.bj-trust-item .dashicons { width: 29px; height: 29px; font-size: 29px; }
	.bj-trust-item span:last-child { font-size: 10px; }
	.bj-section { padding: 38px 0; }
	.bj-section-head { align-items: center; }
	.bj-section-title { font-size: 25px; }
	.bj-more-link { font-size: 10px; }
	.bj-card-grid { gap: 15px 10px; }
	.bj-card__title { font-size: 13px; }
	.bj-procedure-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
	.bj-procedure-item { min-height: 100px; padding: 10px 4px; }
	.bj-procedure-icon { width: 32px; height: 32px; }
	.bj-latest-grid { grid-template-columns: 1fr; }
	.bj-compact-card { grid-template-columns: 112px 1fr; }
	.bj-ranking-list { grid-template-columns: 1fr; }
	.bj-area-grid { grid-template-columns: repeat(2, 1fr); }
	.bj-area-item { min-height: 100px; padding: 15px; }
	.bj-footer-main { grid-template-columns: 1fr; gap: 28px; padding: 38px 0 28px; }
	.bj-footer-about { grid-column: auto; }
	.bj-footer-bottom { display: block; }
	.bj-footer-bottom span { display: block; margin-top: 4px; }
	.bj-breadcrumb { padding: 12px 0; font-size: 9px; }
	.bj-article-layout { grid-template-columns: 1fr; }
	.bj-article-sidebar { display: none; }
	.bj-article-header { margin-bottom: 20px; }
	.bj-article-title { font-size: 27px; }
	.bj-article-meta { gap: 8px 12px; }
	.bj-article-hero { margin-bottom: 13px; border-radius: 4px; }
	.bj-article-guide { margin-bottom: 14px; }
	.bj-article-guide ul { gap: 4px; }
	.bj-article-guide a { min-height: 102px; padding: 10px 4px; gap: 7px; }
	.bj-article-guide .dashicons { width: 24px; height: 24px; font-size: 24px; }
	.bj-article-guide__label { font-size: 9px; line-height: 1.4; }
	.bj-article-supervisor-card { display: block; margin: 16px 0; padding: 13px; border: 1px solid #cfe2f2; border-radius: 5px; }
	.bj-article-supervisor-card__heading { margin: 0 0 9px; color: var(--bj-ink-soft); font-size: 10px; font-weight: 700; }
	.bj-article-supervisor-card .bj-supervisor { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
	.bj-article-supervisor-card .bj-supervisor__image,
	.bj-article-supervisor-card .bj-supervisor__placeholder { width: 58px; height: 58px; border-radius: 50%; }
	.bj-article-supervisor-card .bj-supervisor__role { font-size: 8px; }
	.bj-article-supervisor-card .bj-supervisor__name { margin: 1px 0; font-size: 13px; }
	.bj-article-supervisor-card .bj-supervisor__title { font-size: 9px; }
	.bj-article-supervisor-card .bj-supervisor__profile { display: -webkit-box; overflow: hidden; margin: 8px 0 0 68px; font-size: 9px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
	.bj-article-points { margin: 17px 0; padding: 15px 14px; }
	.bj-article-points__title { margin-bottom: 10px; font-size: 15px; }
	.bj-article-points li { padding-left: 27px; font-size: 12px; }
	.bj-article-mobile-toc { display: block; margin: 18px 10px 30px; padding: 10px 11px 9px; background: var(--bj-white); border: 1px solid var(--bj-border); border-radius: 3px; }
	.bj-article-mobile-toc__title { margin: 0 0 3px; padding: 0 0 6px 7px; border-bottom: 1px solid var(--bj-border); border-left: 3px solid var(--bj-blue); font-size: 14px; line-height: 1.4; }
	.bj-article-mobile-toc__list { margin: 0; padding: 0; list-style: none; counter-reset: bj-mobile-toc; }
	.bj-article-mobile-toc__list li { counter-increment: bj-mobile-toc; border-bottom: 1px solid var(--bj-border); }
	.bj-article-mobile-toc__list li:last-child { border-bottom: 0; }
	.bj-article-mobile-toc__list a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 29px; padding: 3px 0; color: var(--bj-ink); font-size: 11px; line-height: 1.45; text-decoration: none; }
	.bj-article-mobile-toc__list a::before { content: counter(bj-mobile-toc); display: grid; place-items: center; width: 23px; height: 23px; background: #5a9ed1; border-radius: 50%; color: var(--bj-white); font-size: 11px; font-weight: 700; }
	.bj-side-box--toc { display: none; }
	.bj-article-content .p-toc.bj-toc-ready .p-toc__list {
		display: block !important;
		visibility: visible !important;
		height: auto !important;
		max-height: none !important;
		opacity: 1 !important;
		margin: 12px 0 0 !important;
		padding: 15px 20px 17px 40px !important;
	}
	.bj-article-content .p-toc.bj-toc-ready .p-toc__item { margin: 0; padding: 5px 0; }
	.bj-article-content .p-toc.bj-toc-ready .p-toc__link { color: var(--bj-ink); font-size: 13px; line-height: 1.6; text-decoration: none; }
	.bj-inline-toc { display: block; margin: 32px 0 38px; padding: 18px 20px; background: var(--bj-bg); border: 1px solid var(--bj-border); border-radius: 6px; }
	.bj-inline-toc__title { margin-bottom: 10px; font-size: 18px; font-weight: 700; text-align: center; }
	.bj-inline-toc__list { margin: 0 !important; padding-left: 22px !important; }
	.bj-inline-toc__list li { padding: 4px 0; }
	.bj-inline-toc__list a { color: var(--bj-ink); font-size: 13px; line-height: 1.6; text-decoration: none; }
	.bj-article-content { counter-reset: bj-article-section; font-size: 15px; }
	.bj-article-content h2 { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; align-items: center; margin: 44px 10px 19px; padding: 0 0 8px; border-left: 0; border-bottom: 1px solid #83bde5; font-size: 20px; line-height: 1.45; }
	.bj-article-content h2::before { content: counter(bj-article-section); counter-increment: bj-article-section; color: #54a5dc; font-family: Georgia, "Times New Roman", serif; font-size: 55px; font-style: italic; font-weight: 400; line-height: .85; }
	.bj-article-content h3 { margin-top: 32px; padding: 6px 0 6px 12px; border-bottom: 0; border-left: 4px solid var(--bj-blue); font-size: 19px; }
	.bj-related-grid { grid-template-columns: 1fr; }
	.bj-related-grid .bj-card { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: center; }
	.bj-related-grid .bj-card__body { padding: 0; }
	.bj-page-header,
	.bj-archive-header { margin: 21px 0 28px; }
}

@media (max-width: 390px) {
	.bj-brand__name { font-size: 16px; }
	.bj-brand__sub { letter-spacing: .13em; }
	.bj-card-grid { grid-template-columns: 1fr; }
	.bj-procedure-grid { grid-template-columns: repeat(2, 1fr); }
}
