@charset "UTF-8";
/*
Template: arkhe
Theme Name: Arkhe Child
Theme URI: https://arkhe-theme.com/ja/
Description: Arkhe用子テーマ（kaitoring.com ルートのデザインに合わせたカスタマイズ）
Version: 1.1.0
Text Domain: arkhe
License: GNU General Public License
License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ==========================================================================
   kaitoring.com ルートのデザインに合わせる
   - 参照元: https://kaitoring.com/ （home.css）
   - ブランドカラー: #11cbd7 / #82eded / フッター #ffffea / コピーライト #515151
   ========================================================================== */

:root {
	--kr-main: #11cbd7;
	--kr-main-light: #82eded;
	--kr-footer-bg: #ffffea;
	--kr-copyright-bg: #515151;
	--kr-wrapper: 1200px;
	--kr-wrapper-padding: 1rem;
	--kr-header-h: 69px;
	--kr-font: "Noto Sans JP", "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "ＭＳ Ｐゴシック", "MS PGothic", "MS UI Gothic", Helvetica, Arial, sans-serif;
}

body {
	background-color: #fff;
	color: #000;
	font-family: var(--kr-font);
	word-wrap: break-word;
}

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */
/* 追尾しない通常配置（スクロールとともに流れる） */
.kr-header {
	position: relative;
	z-index: 1000;
	background: #fff;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.kr-header__wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: var(--kr-wrapper);
	margin: 0 auto;
	padding: 0.4rem;
}

.kr-header__logo {
	display: grid;
	grid-template-columns: 1fr 5fr;
	align-items: center;
	width: clamp(180px, 60%, 350px);
}

.kr-header__logo img {
	display: block;
	max-width: 100%;
	height: auto;
}

.kr-header__right {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.6rem;
	min-width: 12rem;
}

/* ログインボタン */
.kr-login {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2px 6px;
	border-radius: 0.4rem;
	color: #a3a3a3;
	font-size: 8px;
	line-height: 1.4;
	text-decoration: none;
}

.kr-login__icon {
	width: 22px;
	fill: #777;
}

.kr-login:hover,
.kr-login:active {
	background: var(--kr-main);
	color: #fff;
}

.kr-login:hover .kr-login__icon,
.kr-login:active .kr-login__icon {
	fill: #fff;
}

/* ハンバーガー */
.kr-hamburger {
	position: relative;
	z-index: 10;
	width: 36px;
	height: 30px;
	margin-right: var(--kr-wrapper-padding);
	padding: 0;
	border: 0;
	background: transparent;
	opacity: 0.6;
	cursor: pointer;
	outline: none;
	transition: opacity 0.2s ease-out;
}

.kr-hamburger:hover {
	opacity: 1;
}

.kr-hamburger:active {
	transform: translateY(2px);
}

.kr-hamburger::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 100%;
	background: linear-gradient(
		to bottom,
		var(--kr-main), var(--kr-main) 20%,
		transparent 20%, transparent 40%,
		var(--kr-main) 40%, var(--kr-main) 60%,
		transparent 60%, transparent 80%,
		var(--kr-main) 80%, var(--kr-main) 100%
	);
	transition: opacity 0.2s ease-out, width 0.2s 0.2s ease-out;
}

.kr-hamburger::after {
	content: "×";
	position: absolute;
	top: 16px;
	left: -4px;
	opacity: 0;
	font-family: Arial, sans-serif;
	font-size: 76px;
	line-height: 0;
	color: var(--kr-main);
	transition: opacity 0.4s ease-out;
}

/* 全画面ナビ */
.kr-nav {
	position: fixed;
	top: -100vh;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 999;
	overflow: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.kr-nav::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 100%;
	height: 0;
	padding-bottom: 100%;
	border-radius: 100%;
	background: var(--kr-main-light);
	overflow: hidden;
}

.kr-nav__menu {
	position: fixed;
	top: 50%;
	left: 50%;
	margin: 0;
	padding: 0;
	list-style: none;
	transform: translate3d(-50%, -50%, 0);
	white-space: nowrap;
	/* 閉じている間は画面中央に透明のまま残りクリックを奪うため、操作不可にする */
	visibility: hidden;
	pointer-events: none;
}

.kr-nav-open .kr-nav__menu {
	visibility: visible;
	pointer-events: auto;
}

.kr-nav__menu li {
	padding: 6px 20px;
	font-size: 3.8rem;
	font-weight: 700;
	text-align: center;
	opacity: 0;
	transform: translate3d(0, 36px, 0);
}

.kr-nav__menu a {
	color: #000;
	text-decoration: none;
}

.kr-nav-open {
	overflow: hidden;
}

.kr-nav-open .kr-hamburger {
	opacity: 1;
}

.kr-nav-open .kr-hamburger::before {
	opacity: 0;
	width: 0;
}

.kr-nav-open .kr-hamburger::after {
	opacity: 1;
	transform: translate3d(0, 0, 0) rotate(360deg);
	transition: transform 0.4s 1s ease-out, opacity 0.4s 1s ease-out;
}

.kr-nav-open .kr-nav {
	top: 0;
	min-height: 60rem;
	overflow-y: auto;
}

.kr-nav-open .kr-nav::before {
	animation: kr-menu-animation 0.8s ease-out forwards;
}

.kr-nav-open .kr-nav__menu li {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.kr-nav-open .kr-nav__menu li:nth-child(1) { transition-delay: 0.75s; }
.kr-nav-open .kr-nav__menu li:nth-child(2) { transition-delay: 0.85s; }
.kr-nav-open .kr-nav__menu li:nth-child(3) { transition-delay: 0.95s; }
.kr-nav-open .kr-nav__menu li:nth-child(4) { transition-delay: 1.05s; }
.kr-nav-open .kr-nav__menu li:nth-child(5) { transition-delay: 1.15s; }
.kr-nav-open .kr-nav__menu li:nth-child(6) { transition-delay: 1.25s; }
.kr-nav-open .kr-nav__menu li:nth-child(7) { transition-delay: 1.35s; }

@keyframes kr-menu-animation {
	0%    { opacity: 0; transform: scale(0.04) translateY(300%); }
	40%   { transform: scale(0.04) translateY(0); }
	60%   { opacity: 1; transform: scale(0.02) translateY(0); }
	61%   { transform: scale(0.04); }
	99.9% { height: 0; padding-bottom: 100%; border-radius: 100%; }
	100%  { transform: scale(2); height: 100%; padding-bottom: 0; border-radius: 0; }
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.kr-footer {
	background-color: var(--kr-footer-bg);
	color: #000;
}

.kr-footer__inner {
	max-width: var(--kr-wrapper);
	margin: auto;
	padding: 4rem 0.8rem 2rem;
	font-size: clamp(12px, 10px + 0.48vw, 14px);
}

.kr-footer__logo {
	display: grid;
	grid-template-columns: 1fr 5fr;
	align-items: center;
	width: clamp(240px, 70%, 350px);
}

.kr-footer__logo img {
	display: block;
	max-width: 100%;
	height: auto;
}

.kr-footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.kr-footer__nav {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 2rem 0 3rem;
	padding: 0;
	list-style: none;
}

/* 注目のページ（重要ページへの導線） */
.kr-footer__pickup {
	grid-column: 1 / -1;
	margin-top: 0.4rem;
	padding: 1.2rem 1.4rem;
	border: 2px solid #087f19;
	border-radius: 5px;
	background: #fff;
}

.kr-footer__pickup-link {
	display: block;
	margin-top: 0.6rem;
	color: #087f19;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
}

.kr-footer__pickup-link::before {
	content: "▶ ";
	font-size: 0.8em;
}

.kr-footer__pickup-link:hover {
	text-decoration: underline;
}

.kr-footer__site {
	grid-column: 1 / -1;
	margin-top: 1rem;
	padding-top: 1.6rem;
	border-top: 1px dotted #b8b8a0;
}

.kr-footer__navtitle {
	margin: 0;
	font-weight: 700;
}

.kr-footer__site .kr-footer__nav {
	flex-direction: row;
	gap: 0.8rem 2.4rem;
	margin: 1.2rem 0 1rem;
}

.kr-footer__nav a {
	color: #000;
	text-decoration: none;
}

.kr-footer__nav a:hover {
	text-decoration: underline;
}

.kr-footer__copyright {
	padding: 2rem 2rem 11rem;
	background: var(--kr-copyright-bg);
	color: #fff;
	text-align: center;
}

/* ==========================================================================
   本文の見出し・テーブル（kaitoring.com トップの記事デザイン）
   ========================================================================== */

/* リンク色 */
.c-postContent a:not([class]) {
	color: #0dade8;
	text-decoration: none;
	transition: 0.3s ease-in-out;
}

.c-postContent a:not([class]):hover {
	color: #ffbdff;
}

/* H2: 緑のバナー + 左のアイコン枠 + 右下の折り返し */
.c-postContent h2:not([class]),
.c-postContent h2.wp-block-heading {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	aspect-ratio: 778 / 154;
	margin: 3.2rem 0 2rem 2.3%;
	padding: 0.5em 1em 0.5em 23%;
	border: 0;
	border-radius: 0;
	background:
		linear-gradient(to top right, #004408 50%, transparent 50%) left top / 17.4% 11.7% no-repeat,
		linear-gradient(to bottom right, #11a811 50%, transparent 50%) right bottom / 41px 41px no-repeat,
		#087f19;
	box-shadow: inset 0 0 0 2px #11a811;
	color: #ffff39;
	font-size: clamp(18px, 5.2vw, 34px);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	clip-path: polygon(
		-30px -30px,
		calc(100% + 30px) -30px,
		calc(100% + 30px) calc(100% - 70px),
		calc(100% - 70px) calc(100% + 30px),
		-30px calc(100% + 30px)
	);
}

.c-postContent h2:not([class])::before,
.c-postContent h2.wp-block-heading::before {
	content: "";
	position: absolute;
	top: 11.7%;
	left: -2.3%;
	height: 100%;
	aspect-ratio: 1 / 1;
	background: url("assets/img/h2-icon.svg") center / contain no-repeat;
}

.c-postContent h2:not([class])::after,
.c-postContent h2.wp-block-heading::after {
	content: none;
}

/* H3: ピンクの枠 + 左のストライプ */
.c-postContent h3:not([class]),
.c-postContent h3.wp-block-heading {
	position: relative;
	margin: 2.4rem 0 1.6rem;
	padding: 0.4rem 1rem 0.4rem 2.8rem;
	border: 3px solid #ffbdff;
	border-radius: 0;
	background: transparent;
	color: #000;
	font-size: inherit;
	font-weight: 700;
}

.c-postContent h3:not([class])::before,
.c-postContent h3.wp-block-heading::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 100%;
	background: repeating-linear-gradient(-45deg, #ffbdff, #ffbdff 5px, #fff 5px, #fff 10px);
}

.c-postContent h3:not([class])::after,
.c-postContent h3.wp-block-heading::after {
	content: none;
}

/* テーブル: 水色の罫線 + ピンクの見出しセル */
.c-postContent .wp-block-table {
	margin: 1.6rem 0;
	overflow-x: auto;
}

.c-postContent table {
	width: 100%;
	margin: 1.6rem 0;
	border-collapse: collapse;
	border-spacing: 0;
	text-align: left;
	vertical-align: middle;
}

.c-postContent .wp-block-table table {
	margin: 0;
}

.c-postContent table th,
.c-postContent table td {
	padding: 1rem 0.8rem;
	border: 2px solid #82caec;
	background: #fff;
	vertical-align: middle;
}

/* 見出し行 */
.c-postContent table thead th,
.c-postContent table thead td,
.c-postContent table:not(:has(thead)) tr:first-child > th,
.c-postContent table:not(:has(thead)) tr:first-child > td {
	background: #ffe1f1;
	font-weight: 700;
	text-align: center;
}

/* 見出し列（左端のth） */
.c-postContent table tbody th {
	background: #fffff2;
	font-weight: 700;
}

/* 強調セル／行: <tr class="is-kaitoring"> を付けるとトップの比較表の「カイトリング」列風に */
.c-postContent table tr.is-kaitoring > th,
.c-postContent table tr.is-kaitoring > td {
	border: 3px solid #f585c7;
	background: #ffffe3;
	color: #ff459a;
	font-weight: 700;
}
/* ==========================================================================
   FAQ（SWELL の FAQ ブロック: dl.swell-block-faq）
   kaitoring.com トップの FAQ デザイン（水色の枠 + Q/A バッジ）に合わせる（スタッフ画像は使わず CSS で描画）
   ========================================================================== */
.c-postContent .swell-block-faq {
	margin: 2rem 0;
	padding: 0;
}

.c-postContent .swell-block-faq__item {
	margin: 0 0 2.4rem;
	border: 2px solid #5cb7f0;
	border-radius: 5px;
	background: #fff;
}

/* 質問 */
.c-postContent .swell-block-faq__item .faq_q {
	position: relative;
	display: block;
	margin: 0;
	padding: 1.4rem 1.2rem 1.4rem 7.2rem;
	min-height: 6.4rem;
	font-weight: 700;
	line-height: 1.6;
}

.c-postContent .swell-block-faq__item .faq_q::before {
	content: "Q";
	position: absolute;
	top: 1rem;
	left: 1.2rem;
	display: grid;
	place-items: center;
	width: 4.4rem;
	height: 4.4rem;
	border-radius: 50%;
	background: #5cb7f0;
	color: #fff;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1;
}

/* 回答 */
.c-postContent .swell-block-faq__item .faq_a {
	position: relative;
	margin: 0 1rem 1rem;
	padding: 1.4rem 1rem 0.6rem 6.4rem;
	border-top: 2px dotted #dadada;
	min-height: 6.4rem;
}

.c-postContent .swell-block-faq__item .faq_a::before {
	content: "A";
	position: absolute;
	top: 1.4rem;
	left: 0.2rem;
	display: grid;
	place-items: center;
	width: 4.4rem;
	height: 4.4rem;
	border-radius: 50%;
	background: #ffbdff;
	color: #fff;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1;
}

.c-postContent .swell-block-faq__item .faq_a > :first-child {
	margin-top: 0;
}

.c-postContent .swell-block-faq__item .faq_a > :last-child {
	margin-bottom: 0;
}

@media screen and (max-width: 599px) {
	.c-postContent .swell-block-faq__item .faq_q {
		padding-left: 6.4rem;
	}

	.c-postContent .swell-block-faq__item .faq_a {
		padding-left: 5.6rem;
	}
}

/* ==========================================================================
   STEP（SWELL のステップブロック: .swell-block-step）
   緑の丸い番号 + 縦の点線 + ピンク枠の本文
   ========================================================================== */
.c-postContent .swell-block-step {
	margin: 2.4rem 0;
	padding: 0;
	counter-reset: kr-step;
}

.c-postContent .swell-block-step__item {
	position: relative;
	display: grid;
	grid-template-columns: 6.4rem 1fr;
	column-gap: 1.6rem;
	margin: 0;
	padding: 0 0 2.8rem;
	counter-increment: kr-step;
}

/* 番号どうしをつなぐライン */
.c-postContent .swell-block-step__item::before {
	content: "";
	position: absolute;
	top: 6.4rem;
	bottom: 0;
	left: 3.1rem;
	width: 0.4rem;
	border-radius: 2px;
	background: repeating-linear-gradient(to bottom, #087f19 0 0.6rem, transparent 0.6rem 1.2rem);
	opacity: 0.45;
}

.c-postContent .swell-block-step__item:last-child {
	padding-bottom: 0;
}

.c-postContent .swell-block-step__item:last-child::before {
	content: none;
}

/* 番号の丸 */
.c-postContent .swell-block-step__number {
	grid-row: 1 / 3;
	grid-column: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 6.4rem;
	height: 6.4rem;
	margin: 0;
	border-radius: 50%;
	border: 0.3rem solid #11a811;
	background: #087f19;
	box-shadow: 0 0 0 0.3rem #fff;
	color: #fff;
	line-height: 1;
}

.c-postContent .swell-block-step__number .__label {
	display: block;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #ffff39;
}

.c-postContent .swell-block-step__number::after {
	content: counter(kr-step);
	display: block;
	margin-top: 0.2rem;
	font-size: 2.6rem;
	font-weight: 700;
}

/* 見出し */
.c-postContent .swell-block-step__title {
	grid-column: 2;
	align-self: center;
	min-height: 6.4rem;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem);
	font-weight: 700;
	line-height: 1.4;
}

/* 本文 */
.c-postContent .swell-block-step__body {
	grid-column: 2;
	margin: 0.8rem 0 0;
	padding: 1.2rem 1.6rem;
	border: 2px solid #ffbdff;
	border-radius: 5px;
	background: #fffff2;
}

.c-postContent .swell-block-step__body > :first-child {
	margin-top: 0;
}

.c-postContent .swell-block-step__body > :last-child {
	margin-bottom: 0;
}

@media screen and (max-width: 599px) {
	.c-postContent .swell-block-step__item {
		grid-template-columns: 5.2rem 1fr;
		column-gap: 1.2rem;
	}

	.c-postContent .swell-block-step__number {
		width: 5.2rem;
		height: 5.2rem;
	}

	.c-postContent .swell-block-step__number::after {
		font-size: 2.1rem;
	}

	.c-postContent .swell-block-step__item::before {
		top: 5.2rem;
		left: 2.5rem;
	}

	.c-postContent .swell-block-step__title {
		min-height: 5.2rem;
	}
}

/* ==========================================================================
   目次（functions.php で自動挿入）
   ========================================================================== */
.kr-toc {
	margin: 2.4rem 0;
	border: 3px solid #ffbdff;
	border-radius: 5px;
	background: #fffff2;
}

.kr-toc__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	padding: 1rem;
	background: #ffbdff;
	color: #000;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	list-style: none;
}

.kr-toc__title::-webkit-details-marker {
	display: none;
}

.kr-toc__title::after {
	content: "";
	width: 0.7em;
	height: 0.7em;
	border-right: 2px solid #000;
	border-bottom: 2px solid #000;
	transform: translateY(-20%) rotate(45deg);
	transition: transform 0.2s;
}

.kr-toc details[open] > .kr-toc__title::after {
	transform: translateY(20%) rotate(-135deg);
}

.kr-toc__list,
.kr-toc__sub {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: kr-toc;
}

.kr-toc__list {
	padding: 1.2rem 1.6rem 1.4rem;
}

.kr-toc__list > li {
	counter-increment: kr-toc;
	margin: 0.6rem 0;
	line-height: 1.6;
}

.kr-toc__list > li > a::before {
	content: counter(kr-toc) ".";
	display: inline-block;
	min-width: 1.8em;
	margin-right: 0.2em;
	color: #087f19;
	font-weight: 700;
}

.kr-toc__list a {
	color: #000;
	text-decoration: none;
}

.kr-toc__list a:hover {
	color: #087f19;
	text-decoration: underline;
}

.kr-toc__sub {
	margin: 0.4rem 0 0.6rem 2rem;
}

.kr-toc__sub > li {
	position: relative;
	margin: 0.3rem 0;
	padding-left: 1.4rem;
	font-size: 0.92em;
}

.kr-toc__sub > li::before {
	content: "";
	position: absolute;
	top: 0.7em;
	left: 0.2rem;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: #5cb7f0;
}

/* 著者ボックスの「記事一覧へ」リンクは非表示 */
.p-authorBox__archivelink {
	display: none;
}
