/* =========================================================
   Owned media single article foundation
========================================================= */

.hs-article-media-page {
	background: linear-gradient(180deg, #f7fbfd 0%, #fff 420px);
}

.hs-article-shell {
	width: min(100% - 48px, 1180px);
	margin: 0 auto;
}

.hs-article-hero {
	padding: 56px 0 48px;
}

.hs-article-hero .hs-article-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 46%);
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
}

.hs-article-hero__content {
	min-width: 0;
}

.hs-article-hero__categories,
.hs-article-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-article-hero__categories {
	margin-bottom: 18px;
}

.hs-article-hero__title {
	margin: 0;
	color: var(--color-text);
	font-size: clamp(30px, 4vw, 50px);
	font-weight: 900;
	letter-spacing: .02em;
	line-height: 1.38;
}

.hs-article-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 18px;
	color: var(--color-text-sub);
	font-size: 13px;
	font-weight: 800;
}

.hs-article-hero__meta > * {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.article-single__reading-time {
	color: var(--color-main);
}

.hs-article-hero__lead {
	position: relative;
	margin: 24px 0 0;
	padding: 20px 22px;
	border-left: 5px solid var(--color-accent);
	border-radius: 0 18px 18px 0;
	background: rgba(255, 255, 255, .82);
	box-shadow: 0 12px 34px rgba(0, 80, 110, .08);
	color: var(--color-text);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.95;
}

.hs-article-hero__tags {
	margin-top: 22px;
}

.hs-article-hero__thumbnail {
	position: relative;
	overflow: hidden;
	margin: 0;
	border-radius: 30px;
	background: var(--color-bg-light-blue);
	box-shadow: 0 26px 70px rgba(0, 80, 110, .16);
}

.hs-article-hero__thumbnail::after {
	content: "ISHIGAKI MEDIA";
	position: absolute;
	right: 18px;
	bottom: 16px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .86);
	color: var(--color-main);
	font-family: var(--font-en, inherit);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .14em;
}

.hs-article-hero__thumbnail img {
	display: block;
	width: 100%;
	height: clamp(280px, 34vw, 480px);
	object-fit: cover;
}

.hs-article-main-section {
	padding: 24px 0 70px;
}

.hs-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 780px) 320px;
	gap: 46px;
	align-items: start;
}

.hs-article-main {
	min-width: 0;
}

.hs-article-content {
	padding: 0;
	color: var(--color-text);
	font-size: 16px;
	font-weight: 500;
	line-height: 2;
}

.hs-article-content > *:first-child {
	margin-top: 0;
}

.hs-article-content h2,
.hs-article-content h3,
.hs-article-content h4 {
	scroll-margin-top: 120px;
}

.hs-article-content .hs-article-lead {
	margin: 0 0 34px;
	padding: 20px 22px;
	border-radius: 18px;
	background: #f1fbfe;
	color: var(--color-text);
	font-size: 18px;
	font-weight: 800;
	line-height: 2;
}

.hs-article-content .wp-block-image,
.hs-article-content .wp-block-gallery {
	margin: 34px 0;
}

.hs-article-content .wp-block-image img,
.hs-article-content .wp-block-gallery img {
	border-radius: 18px;
}

.hs-article-content .wp-block-quote {
	padding: 24px 28px;
	border-left: 5px solid var(--color-accent);
	border-radius: 0 18px 18px 0;
	background: #f7fbfd;
}

.hs-article-content .wp-block-table {
	overflow-x: auto;
}

.hs-article-content .wp-block-table table {
	min-width: 640px;
}

.hs-article-sidebar {
	position: relative;
	min-width: 0;
}

.hs-article-sidebar__inner {
	position: sticky;
	top: calc(var(--hs-header-height, 90px) + 22px);
	display: grid;
	gap: 18px;
}

.admin-bar .hs-article-sidebar__inner {
	top: calc(var(--hs-header-height, 90px) + 54px);
}

.hs-article-toc-card,
.hs-article-side-cta,

.hs-article-side-posts {
	padding: 18px;
	border: 1px solid rgba(40, 87, 184, .14);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(0, 80, 110, .08);
}

.hs-article-side-posts__label {
	margin: 0 0 12px;
	color: var(--color-main);
	font-family: var(--font-en, inherit);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .14em;
}

.hs-article-side-posts__list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-article-side-posts__list li {
	margin: 0;
	padding: 0 0 12px;
	border-bottom: 1px solid #e3eef2;
}

.hs-article-side-posts__list li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.hs-article-side-posts__list a {
	display: grid;
	gap: 5px;
	color: var(--color-text);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.6;
	text-decoration: none;
}

.hs-article-side-posts__list span {
	color: var(--color-text-sub);
	font-size: 11px;
	font-weight: 800;
}

.hs-article-side-links {
	border: 1px solid rgba(40, 87, 184, .14);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(0, 80, 110, .08);
}

.hs-article-toc-card {
	padding: 22px;
}

.hs-article-toc-card[data-hs-toc-empty="true"] {
	display: none;
}

.hs-article-toc-card > p,
.hs-article-side-cta__label {
	margin: 0 0 14px;
	color: var(--color-main);
	font-family: var(--font-en, inherit);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .14em;
}

.hs-article-toc-card ol {
	counter-reset: toc;
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-article-toc-card li {
	counter-increment: toc;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-article-toc-card a {
	display: grid;
	grid-template-columns: 26px 1fr;
	gap: 8px;
	align-items: baseline;
	color: var(--color-text);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.55;
	text-decoration: none;
}

.hs-article-toc-card a::before {
	content: counter(toc, decimal-leading-zero);
	color: var(--color-main);
	font-family: var(--font-en, inherit);
	font-size: 11px;
	font-weight: 900;
}

.hs-article-toc-card li[data-level="3"] {
	padding-left: 18px;
}

.hs-article-side-cta {
	overflow: hidden;
	padding: 18px;
}

.hs-article-side-cta__image {
	display: block;
	overflow: hidden;
	margin: 0 -4px 16px;
	border-radius: 18px;
	background: var(--color-bg-light-blue);
	text-decoration: none;
}

.hs-article-side-cta__image img {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: cover;
	transition: transform .3s ease;
}

.hs-article-side-cta__image:hover img {
	transform: scale(1.04);
}

.hs-article-side-cta h2 {
	margin: 0 0 12px;
	color: var(--color-text);
	font-size: 18px;
	font-weight: 900;
	line-height: 1.55;
}

.hs-article-side-cta__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.hs-article-side-cta__meta span {
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--color-bg-light-blue);
	color: var(--color-main);
	font-size: 12px;
	font-weight: 900;
}

.hs-article-side-cta__note {
	margin: 0 0 14px;
	color: var(--color-text-sub);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.8;
}

.hs-article-side-cta__button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--color-main), var(--color-accent));
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	text-decoration: none;
	box-shadow: 0 12px 24px rgba(40, 87, 184, .22);
}

.hs-article-side-links {
	display: grid;
	gap: 0;
	overflow: hidden;
}

.hs-article-side-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	color: var(--color-text);
	font-size: 13px;
	font-weight: 900;
	text-decoration: none;
}

.hs-article-side-links a + a {
	border-top: 1px solid #e3eef2;
}

.hs-article-side-links a::after {
	content: "›";
	color: var(--color-main);
	font-size: 18px;
	font-weight: 900;
}

.hs-article-footer {
	margin-top: 58px;
}

.hs-article-author {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 18px;
	align-items: center;
	padding: 24px;
	border-radius: 24px;
	background: #f7fbfd;
}

.hs-article-author__avatar img {
	display: block;
	width: 80px;
	height: 80px;
	border-radius: 50%;
}

.hs-article-author__label {
	margin: 0 0 4px;
	color: var(--color-main);
	font-family: var(--font-en, inherit);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .14em;
}

.hs-article-author h2 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 900;
}

.hs-article-author p:last-child {
	margin: 0;
	color: var(--color-text-sub);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.8;
}

.hs-article-bottom-plans {
	padding: 70px 0;
	background: linear-gradient(180deg, #fff 0%, #eefaff 100%);
}

.hs-article-section-heading {
	margin-bottom: 34px;
	text-align: center;
}

.hs-article-section-heading p {
	margin: 0 0 8px;
	color: var(--color-main);
	font-family: var(--font-en, inherit);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .16em;
}

.hs-article-section-heading h2 {
	margin: 0;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 900;
	line-height: 1.45;
}

.hs-article-section-heading span {
	display: block;
	margin-top: 10px;
	color: var(--color-text-sub);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.8;
}

.hs-article-related {
	padding-bottom: 86px;
}

.hs-article-mobile-cta {
	position: fixed;
	right: 12px;
	bottom: 12px;
	left: 12px;
	z-index: 900;
	display: none;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 10px;
	border-radius: 18px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 14px 34px rgba(0, 40, 70, .22);
	visibility: hidden;
	opacity: 0;
	transform: translateY(14px);
	pointer-events: none;
	transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
	backdrop-filter: blur(12px);
}

.hs-article-mobile-cta[data-hs-visible] {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.hs-article-mobile-cta > div {
	min-width: 0;
	padding-left: 4px;
}

.hs-article-mobile-cta span {
	display: block;
	color: var(--color-text-sub);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .04em;
}

.hs-article-mobile-cta strong {
	display: block;
	overflow: hidden;
	color: var(--color-main);
	font-size: 16px;
	font-weight: 900;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hs-article-mobile-cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--color-main), var(--color-accent));
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	text-decoration: none;
	white-space: nowrap;
}

@media screen and (max-width: 1024px) {
	.hs-article-hero .hs-article-shell,
	.hs-article-layout {
		grid-template-columns: 1fr;
	}

	.hs-article-sidebar {
		display: none;
	}

	.hs-article-hero__thumbnail {
		max-width: 760px;
		margin: 0 auto;
	}
}

@media screen and (max-width: 767px) {
	.hs-article-shell {
		width: min(100% - 28px, 1180px);
	}

	.hs-article-hero {
		padding: 38px 0 28px;
	}

	.hs-article-hero .hs-article-shell {
		gap: 24px;
	}

	.hs-article-hero__title {
		font-size: 27px;
		line-height: 1.5;
	}

	.hs-article-hero__meta,
	.hs-article-hero__tags {
		justify-content: flex-start;
	}

	.hs-article-hero__lead {
		padding: 16px 18px;
		font-size: 15px;
		line-height: 1.9;
	}

	.hs-article-hero__thumbnail {
		border-radius: 22px;
	}

	.hs-article-hero__thumbnail img {
		height: 230px;
	}

	.hs-article-main-section {
		padding: 22px 0 54px;
	}

	.hs-article-content {
		font-size: 15px;
		line-height: 1.9;
	}

	.hs-article-content h2,
	.hs-article-content h3,
	.hs-article-content h4 {
		scroll-margin-top: 92px;
	}

	.hs-article-author {
		grid-template-columns: 56px 1fr;
		gap: 14px;
		padding: 18px;
		border-radius: 18px;
	}

	.hs-article-author__avatar img {
		width: 56px;
		height: 56px;
	}

	.hs-article-bottom-plans {
		padding: 48px 0 76px;
	}

	.hs-article-mobile-cta {
		display: grid;
	}

	body.hs-has-article-mobile-cta {
		padding-bottom: 76px;
	}
}

@media screen and (max-width: 420px) {
	.hs-article-mobile-cta {
		grid-template-columns: 1fr;
	}

	.hs-article-mobile-cta a {
		width: 100%;
	}
}
