/* ==========================================================================
   JINR 互換スタイル
   JINR のブロック（jinr-blocks/*）で作成済みの本文を、テーマ変更後も読める見た目で
   表示するためのもの。JINR の装飾を再現するのではなく、このテーマの意匠に寄せている。
   本文に JINR のクラスが含まれるページでのみ読み込まれる（inc/enqueue.php）。
   ========================================================================== */

/* Inline decorations
   マーカー・太字・文字色・文字サイズは、エディターでも同じ見た目にするため blocks.css にある。
   -------------------------------------------------------------------------- */
.entry-content .ef {
	font-family: "Outfit", "Noto Sans JP", sans-serif;
}

.entry-content .t--round {
	border-radius: 12px;
}

/* JINR のアイコンフォントは読み込まないので、意味のある記号だけ文字で置き換える。 */
.entry-content :is(.jin-icons, .jif) {
	display: none;
}

.entry-content :is(.jin-ifont-backslash, .jin-ifont-slash) {
	display: inline;
	color: #00aeef;
	font-style: normal;
	font-weight: 500;
}

.entry-content .jin-ifont-backslash::before {
	content: "＼";
}

.entry-content .jin-ifont-slash::before {
	content: "／";
}

/* Simple box / heading box
   -------------------------------------------------------------------------- */
.entry-content .b--jinr-box {
	position: relative;
	padding: 1.5em 1.75em;
	border: 1px solid #e4e9ed;
	border-radius: 12px;
	background: #fff;
}

.entry-content .b--jinr-box:is(.d--simple-box1, .d--simple-box4, .d--simple-box5, .d--simple-box10) {
	border-color: transparent;
	background: #f4f8fb;
}

.entry-content .b--jinr-box[class*="d--heading-box"] {
	margin-top: 1em;
	padding-top: 2em;
	border-color: #cfe6f5;
}

.entry-content .a--simple-box-title {
	position: absolute;
	top: 0;
	left: 1.25em;
	translate: 0 -50%;
	padding: 0.15em 1em;
	border-radius: 999px;
	background: #1e2328;
	color: #fff;
	font-size: 0.875em;
	line-height: 1.8;
	letter-spacing: 0.06em;
}

.entry-content .d--heading-box2 .a--simple-box-title {
	background: #0076b6;
}

.entry-content .c--simple-box-inner > * {
	margin-block: 0;
}

.entry-content .c--simple-box-inner > * + * {
	margin-top: 1em;
}

.entry-content .c--simple-box-inner :is(ul, ol) {
	padding-left: 1.4em;
}

/* Icon box
   -------------------------------------------------------------------------- */
.entry-content [class*="d--simple-iconbox"] {
	--pl-note-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%230076b6'/%3E%3Ccircle cx='12' cy='7.2' r='1.6' fill='%23fff'/%3E%3Crect x='10.6' y='10.2' width='2.8' height='8' rx='1.4' fill='%23fff'/%3E%3C/svg%3E");
	display: flex;
	gap: 0.9em;
	padding: 1.2em 1.4em;
	border-radius: 12px;
	background: #eaf6ff;
}

/* 1行目（行の高さ 2em）の中央にそろえる */
.entry-content [class*="d--simple-iconbox"]::before {
	content: "";
	flex: none;
	width: 1.4em;
	height: 1.4em;
	margin-top: calc((2em - 1.4em) / 2);
	background: var(--pl-note-image) center / contain no-repeat;
}

.entry-content [class*="d--simple-iconbox"]:has(.jin-ifont-v2caution, .jin-ifont-caution) {
	--pl-note-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23ff6b7a'/%3E%3Crect x='10.6' y='5.6' width='2.8' height='8.4' rx='1.4' fill='%23fff'/%3E%3Ccircle cx='12' cy='17.4' r='1.6' fill='%23fff'/%3E%3C/svg%3E");
	background: #fff1f3;
}

.entry-content [class*="d--simple-iconbox"]:has(.jin-ifont-v2speaker) {
	--pl-note-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%235fae14'/%3E%3Cpath d='M7 7.6h10v6.2h-5.4L8.6 16.4v-2.6H7z' fill='%23fff'/%3E%3C/svg%3E");
	background: #f1faea;
}

.entry-content .a--jinr-iconbox > * {
	margin: 0;
}

.entry-content .a--jinr-iconbox > * + * {
	margin-top: 0.8em;
}

/* Background block
   -------------------------------------------------------------------------- */
.entry-content .b--jinr-background .o--background-container {
	position: relative;
}

.entry-content .c--background-inner {
	position: relative;
	z-index: 1;
	padding: 1.75em;
	border: 1px solid #e4e9ed !important;
	border-radius: 12px;
	background: #f4f8fb;
}

.entry-content .c--background-inner > * + * {
	margin-top: 1.25em;
}

.entry-content :is(.a--background-color, .a--background-image) {
	display: none;
}

/* Timeline (steps)
   -------------------------------------------------------------------------- */
.entry-content .o--timeline-list {
	counter-reset: jinr-step;
}

.entry-content .c--timeline-item {
	position: relative;
	padding: 0 0 1.75em 3.25em;
	counter-increment: jinr-step;
}

.entry-content .c--timeline-item::before {
	content: "";
	position: absolute;
	top: 2.2em;
	bottom: 0.2em;
	left: 1em;
	width: 1px;
	background: #d3dbe1;
}

.entry-content .c--timeline-item:last-child {
	padding-bottom: 0;
}

.entry-content .c--timeline-item:last-child::before {
	display: none;
}

.entry-content .c--timeline-heading {
	display: flex;
	align-items: center;
	min-height: 2em;
}

.entry-content .a--timeline-step {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2em;
	height: 2em;
	border-radius: 50%;
	background: #00aeef;
	color: #fff;
	font-family: "Outfit", sans-serif;
	font-size: 1em;
	font-weight: 600;
}

.entry-content .a--timeline-step-text::before {
	content: counter(jinr-step);
}

.entry-content .a--timeline-label {
	font-size: 1.05em;
	line-height: 1.6;
}

.entry-content .c--timeline-contents {
	margin-top: 0.6em;
}

.entry-content .a--timeline-text > * {
	margin-block: 0;
}

.entry-content .a--timeline-text > * + * {
	margin-top: 1em;
}

/* Speech bubble
   -------------------------------------------------------------------------- */
.entry-content .o--jinr-fukidashi {
	display: flex;
	align-items: flex-start;
	gap: 1.25em;
}

.entry-content .d--fukidashi-right {
	flex-direction: row-reverse;
}

.entry-content .c--fukidashi-contents {
	display: contents;
}

.entry-content .o--fukidashi-inner {
	position: relative;
	flex: 1;
	order: 2;
	padding: 1.1em 1.4em;
	border: 0 !important;
	border-radius: 18px;
	background: #eaf5fd !important;
	word-break: auto-phrase;
	text-wrap: pretty;
}

/* しっぽ（アイコンの中心の高さで、アイコンのほうを指す） */
.entry-content .o--fukidashi-inner::before {
	content: "";
	position: absolute;
	top: calc(1.75em - 11px);
	left: -14px;
	width: 15px;
	height: 22px;
	background: #eaf5fd;
	clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.entry-content .d--fukidashi-right .o--fukidashi-inner::before {
	right: -14px;
	left: auto;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.entry-content .o--fukidashi-inner > * {
	margin: 0;
}

.entry-content :is(.a--fukidashi-parts-after, .a--fukidashi-parts-before, .a--fukidashi-img-circle) {
	display: none;
}

.entry-content .c--fukidashi-img-box {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	gap: 0.3em;
	order: 1;
	width: 4.5em;
}

.entry-content .d--fukidashi-right .c--fukidashi-img-box {
	order: 3;
}

.entry-content .a--fukidashi-img img {
	width: 3.5em;
	height: 3.5em;
	border: 1px solid #e4e9ed;
	border-radius: 50%;
	object-fit: cover;
}

.entry-content .a--fukidashi-icon-name {
	color: #66717b;
	font-size: 0.6875em;
	line-height: 1.4;
	text-align: center;
	text-wrap: balance; /* 「株式会社ピコラボ」が入りきらないときは「株式会社／ピコラボ」と半分ずつに */
}

/* Rich menu (image link cards)
   -------------------------------------------------------------------------- */
.entry-content .b--jinr-richmenu {
	display: grid;
	grid-template-columns: repeat(var(--jinr-cols, 3), minmax(0, 1fr));
	gap: 12px;
}

.entry-content .d--richmenu-column2 { --jinr-cols: 2; }
.entry-content .d--richmenu-column3 { --jinr-cols: 3; }
.entry-content .d--richmenu-column4 { --jinr-cols: 4; }
.entry-content .d--richmenu-column6 { --jinr-cols: 6; }

@media (max-width: 600px) {
	.entry-content .b--jinr-richmenu {
		--jinr-cols: 1;
	}

	.entry-content .d--richmenu-column-2-sp {
		--jinr-cols: 2;
	}
}

.entry-content .o--richmenu-item {
	display: block;
	overflow: hidden;
	border: 1px solid #e4e9ed;
	border-radius: 12px;
	background: #fff;
	color: inherit !important;
	text-decoration: none !important;
	transition: border-color 0.3s, transform 0.3s;
}

.entry-content .o--richmenu-item:hover {
	border-color: #d3dbe1;
	transform: translateY(-2px);
}

.entry-content .a--richmenu-image img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 2;
	object-fit: cover;
}

.entry-content .d--richmenu-ratio16-9 .a--richmenu-image img {
	aspect-ratio: 16 / 9;
}

.entry-content .c--richmenu-contents {
	padding: 0.7em 0.9em;
	font-size: 0.875em;
	line-height: 1.6;
	text-align: center;
}

.entry-content .a--richmenu-subtext {
	display: block;
	color: #66717b;
	font-size: 0.8125em;
}

/* Blog card
   -------------------------------------------------------------------------- */
.entry-content .b--jinr-blogcard {
	position: relative;
	padding-top: 0.75em;
}

.entry-content .a--blogcard-label {
	position: absolute;
	top: 0;
	left: 1.25em;
	z-index: 1;
	padding: 0.05em 0.9em;
	border-radius: 999px;
	background: #0076b6;
	color: #fff;
	font-size: 0.75em;
	letter-spacing: 0.06em;
}

.entry-content .o--blogcard-link {
	display: flex;
	align-items: center;
	gap: 1.1em;
	padding: 1.2em 1.25em 1em;
	border: 1px solid #e4e9ed;
	border-radius: 12px;
	background: #fff;
	color: inherit !important;
	text-decoration: none !important;
	transition: border-color 0.3s;
}

.entry-content .o--blogcard-link:hover {
	border-color: #1e2328;
}

.entry-content .c--blogcard-image {
	flex: none;
	width: 8em;
}

.entry-content .a--blogcard-img-src {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	object-fit: cover;
}

.entry-content .a--blogcard-title {
	font-size: 0.9375em;
	line-height: 1.7;
}

/* Button
   -------------------------------------------------------------------------- */
.entry-content .o--button-inner {
	display: flex;
	justify-content: flex-start;
}

.entry-content .o--button-inner.d--button-center {
	justify-content: center;
}

.entry-content .o--button-inner a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75em;
	min-height: 3.4em;
	padding: 0.6em 2.4em;
	border-radius: 999px;
	background: #1e2328;
	color: #fff !important;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.06em;
	text-align: center;
	text-decoration: none !important;
	/* スマホで2行になるとき、語の途中で切らず、行の長さもそろえる。 */
	word-break: auto-phrase;
	text-wrap: balance;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.entry-content .o--button-inner a:hover {
	background: #0076b6;
}

.entry-content .o--button-inner.d--button-outline a {
	border: 1px solid #d3dbe1;
	background: #fff;
	color: #1e2328 !important;
}

.entry-content .o--button-inner.d--button-outline a:hover {
	border-color: #1e2328;
}

.entry-content .o--button-inner.d--button-arrow a::after {
	content: "→";
	transition: transform 0.3s;
}

.entry-content .o--button-inner.d--button-arrow a:hover::after {
	transform: translateX(4px);
}

/* Design title / full width (トップページ用。固定ページ側で使われた場合の保険)
   -------------------------------------------------------------------------- */
.entry-content .b--jinr-h2rich {
	text-align: center;
}

.entry-content .a--h2rich-subcopy {
	display: block;
	color: #66717b;
	font-size: 0.875em;
	letter-spacing: 0.16em;
}

.entry-content .a--h2rich-maincopy {
	margin: 0.2em 0 0;
	font-size: 1.6em;
	line-height: 1.5;
}

.entry-content .b--jinr-fullwidth {
	padding-block: 2.5em;
}

.entry-content .b--jinr-fullwidth .t--main-width {
	max-width: 1120px;
	margin-inline: auto;
	padding-inline: 20px;
}

/* JINR の投稿リストブロックはテーマ依存の動的ブロックのため表示できない。 */
.entry-content .b--jinr-postlist:empty {
	display: none;
}
