/*
Theme Name: K&K Japan Blog
Theme URI: https://kk-japan.com/
Description: 税理士法人K&K Japan ブログ（kk-japan.com）専用の子テーマ。Elementor Pro のテーマビルダーで作られていたヘッダー・フッター・記事一覧・記事ページを手書きテンプレートに置き換え、Elementor Pro なしで同じ見た目を再現します。スマホ・タブレットのメニューは右上固定。
Author: ONE-OFF Inc.
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kkjapan-blog
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   Base
   ========================================================================== */
body.kkj-blog {
	background-color: #fff;
}
.kkj-main {
	display: block;
}
.skip-link:focus {
	position: fixed !important;
	z-index: 2147483647;
}

/* ==========================================================================
   Header（旧 #7108）
   ========================================================================== */
.kkj-header {
	position: relative;
	background: #fff;
}
.kkj-header__inner {
	display: flex;
	flex-wrap: wrap;
	max-width: 1140px;
	margin: 0 auto;
	padding: 10px;
}
.kkj-header__brand,
.kkj-header__info {
	width: 50%;
	padding: 10px;
}
.kkj-logo {
	display: inline-block;
	line-height: 0;
}
.kkj-logo__img {
	display: block;
	width: 242px;
	max-width: 100%;
	height: auto;
}
.kkj-header__info {
	text-align: right;
}
.kkj-header__title {
	margin: 0 0 20px;
	font-family: "Roboto", Sans-serif;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
}
.kkj-header__title a {
	color: #000;
	text-decoration: none;
}
.kkj-header__contact {
	margin: 0 0 10px;
	line-height: 1.5;
	color: #000;
}
.kkj-header__tel {
	font-family: メイリオ, Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #000;
	text-decoration: none;
}
.kkj-header__hours {
	font-family: "Roboto", Sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #000;
}

/* PC メニュー */
.kkj-nav {
	width: 100%;
	padding: 10px;
}
.kkj-nav__list,
.kkj-nav__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}
.kkj-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.kkj-nav__list > li {
	position: relative;
}
.kkj-nav__list > li > a {
	position: relative;
	display: block;
	padding: 13px 20px;
	font-family: "Roboto", Sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	color: #000;
	text-decoration: none;
}
.kkj-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: #61ce70;
	opacity: 0;
	transition: opacity .4s;
}
.kkj-nav__list > li > a:hover::after,
.kkj-nav__list > li > a:focus-visible::after,
.kkj-nav__list > li.current-menu-item > a::after {
	opacity: 1;
}
.kkj-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	min-width: 12em;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.kkj-nav__list > li:hover > .sub-menu,
.kkj-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.kkj-nav__list .sub-menu a {
	display: block;
	padding: 10px 20px;
	font-family: "Roboto", Sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
	white-space: nowrap;
	color: #33373d;
	text-decoration: none;
}
.kkj-nav__list .sub-menu a:hover,
.kkj-nav__list .sub-menu a:focus-visible {
	background: #3f444b;
	color: #fff;
}

/* スマホ・タブレット：右上固定のハンバーガー */
.kkj-menu-toggle,
.kkj-drawer {
	display: none;
}
@media (max-width: 1024px) {
	.kkj-nav {
		display: none;
	}
	.kkj-menu-toggle {
		position: fixed;
		top: calc(10px + env(safe-area-inset-top));
		right: 10px;
		z-index: 2147483001;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		background: #fff;
		color: #1f2a44;
		border: 1px solid #d0d6e0;
		border-radius: 8px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.kkj-menu-toggle:hover,
	.kkj-menu-toggle:focus {
		background: #fff;
		color: #1f2a44;
	}
	.kkj-menu-toggle .kkj-icon {
		width: 24px;
		height: 24px;
		fill: currentColor;
	}
	.kkj-menu-toggle .kkj-menu-toggle__close,
	.kkj-menu-toggle[aria-expanded="true"] .kkj-menu-toggle__open {
		display: none;
	}
	.kkj-menu-toggle[aria-expanded="true"] .kkj-menu-toggle__close {
		display: block;
	}
	.kkj-drawer {
		position: fixed;
		top: calc(62px + env(safe-area-inset-top));
		left: 10px;
		right: 10px;
		z-index: 2147483000;
		display: block;
		max-height: calc(100vh - 72px);
		max-height: calc(100dvh - 72px - env(safe-area-inset-top));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		background: #fff;
		border-radius: 8px;
		box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
	}
	body.admin-bar .kkj-menu-toggle {
		top: 56px;
	}
	body.admin-bar .kkj-drawer {
		top: 108px;
		max-height: calc(100vh - 118px);
	}
}
.kkj-drawer[hidden] {
	display: none !important;
}
.kkj-drawer__list,
.kkj-drawer__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}
.kkj-drawer__list a {
	display: block;
	padding: 10px 20px;
	font-family: "Roboto", Sans-serif;
	font-weight: 500;
	font-size: 15px;
	line-height: 20px;
	color: #33373d;
	text-decoration: none;
}
.kkj-drawer__list .sub-menu a {
	padding-left: 40px;
	font-size: 14px;
}
.kkj-drawer__list a:hover,
.kkj-drawer__list a:focus-visible,
.kkj-drawer__list .current-menu-item > a {
	background: #3f444b;
	color: #fff;
}
@media (min-width: 768px) and (max-width: 1024px) {
	.kkj-header__info {
		padding-right: 58px;
	}
}
@media (max-width: 767px) {
	.kkj-header__brand,
	.kkj-header__info {
		width: 100%;
	}
}

/* ==========================================================================
   一覧（旧 #7139）
   ========================================================================== */
.kkj-archive {
	max-width: 1520px;
	margin: 12% auto 0;
	padding: 0 8% 80px;
}
.kkj-archive__title {
	margin: 0 0 30px;
	text-align: center;
	font-family: "Roboto", Sans-serif;
	font-weight: 600;
	font-size: 2.5rem;
	line-height: 1;
	color: #6ec1e4;
}
.kkj-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 35px;
}
.kkj-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-radius: 3px;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15);
	transition: box-shadow .25s;
}
.kkj-card:hover {
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, .15);
}
.kkj-card__thumb {
	position: relative;
	display: block;
	margin-bottom: 20px;
	overflow: hidden;
	line-height: 0;
}
.kkj-card__thumb img,
.post .kkj-card__thumb .wp-post-image {
	display: block;
	width: 100%;
	height: 200px;
	max-height: none;
	object-fit: cover;
}
.kkj-card__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 75%);
	opacity: 1;
	transition: opacity .3s ease-out;
}
.kkj-card:hover .kkj-card__thumb::after {
	opacity: .5;
}
.kkj-card__noimg {
	display: block;
	height: 200px;
	background: #e9edf3;
}
.kkj-card__badge {
	position: absolute;
	top: 0;
	right: 0;
	margin: 20px;
	padding: .6em 1.2em;
	border-radius: 999px;
	background: #467ff7;
	color: #fff;
	font-family: "Roboto", Sans-serif;
	font-weight: 500;
	font-size: 12px;
	line-height: 1;
	text-transform: uppercase;
}
.kkj-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	margin-top: 20px;
	padding: 0 30px;
}
.kkj-card__title {
	margin: 0 0 25px;
	font-family: "Roboto", Sans-serif;
	font-weight: 600;
	font-size: 21px;
	line-height: 1.2;
}
.kkj-card__title a {
	color: #000;
	text-decoration: none;
}
.kkj-card__excerpt {
	margin-bottom: 25px;
	line-height: 1.7;
}
.kkj-card__excerpt p {
	margin: 0;
	font-family: "Roboto", Sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5em;
	color: #777;
}
.kkj-card__more {
	align-self: flex-start;
	display: inline-block;
	margin-bottom: 20px;
	font-family: "Roboto", Sans-serif;
	font-weight: 500;
	font-size: 12px;
	text-transform: uppercase;
	color: #467ff7;
	text-decoration: none;
}
.kkj-card__meta {
	margin-top: auto;
	padding: 15px 30px;
	border-top: 1px solid #eaeaea;
	font-family: "Roboto Slab", Sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.3em;
	color: #adadad;
}
.kkj-loadmore {
	margin-top: 50px;
	text-align: center;
}
.kkj-button {
	display: inline-block;
	padding: 12px 24px;
	border: 1px solid #467ff7;
	border-radius: 50px;
	background: #467ff7;
	color: #fff;
	font-family: "Poppins", Sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: all .3s;
}
.kkj-button:hover,
.kkj-button:focus-visible {
	background: transparent;
	color: #467ff7;
}
.kkj-loadmore__btn.is-loading {
	opacity: .6;
	pointer-events: none;
}
.kkj-nothing,
.kkj-404__lead {
	margin: 0 0 40px;
	text-align: center;
	color: #4a4a4a;
}
.kkj-404__home {
	margin: 50px 0 0;
	text-align: center;
}
@media (max-width: 1024px) {
	.kkj-archive {
		padding: 0 5% 80px;
	}
	.kkj-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.kkj-button {
		font-size: 14px;
	}
}
@media (max-width: 767px) {
	.kkj-cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   記事ページ（旧 #7161）
   ========================================================================== */
.kkj-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 250px;
	padding: 0 4%;
	background: #211f40;
}
.kkj-hero__inner {
	width: 100%;
	max-width: 650px;
}
.kkj-hero__title {
	margin: 0;
	text-align: center;
	font-family: "Merriweather", Sans-serif;
	font-weight: 300;
	font-size: 45px;
	line-height: 1.5em;
	text-transform: capitalize;
	color: #fff;
}
.kkj-single__wrap {
	margin: 150px 0 80px;
	padding: 0 4%;
}
.kkj-single__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 1200px;
	margin: 0 auto;
}
.kkj-single__main {
	width: calc(65% - 5px);
	min-width: 0;
	padding-right: 50px;
}
.kkj-single__side {
	width: calc(35% - 5px);
	min-width: 0;
}
.kkj-postinfo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 25px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: "Montserrat", Sans-serif;
	font-weight: 300;
	font-size: 16px;
	text-transform: capitalize;
	color: #000;
}
.kkj-postinfo li {
	position: relative;
}
.kkj-postinfo li + li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -15px;
	width: 5px;
	height: 5px;
	margin-top: -2.5px;
	border-radius: 50%;
	background: #4a4a4a;
}
.kkj-content {
	margin-top: 50px;
	font-family: "Montserrat", Sans-serif;
	font-size: 16px;
	color: #000;
	text-align: left;
}
.kkj-page {
	max-width: 900px;
	margin: 80px auto;
	padding: 0 25px;
}
.kkj-page .kkj-content {
	margin-top: 0;
}
.kkj-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 80px;
	padding: 20px 0;
	border-top: 1px solid rgba(22, 22, 63, .2);
	border-bottom: 1px solid rgba(22, 22, 63, .2);
}
.kkj-side__heading {
	margin: 0;
	font-family: "Merriweather", Sans-serif;
	font-weight: 300;
	font-size: 18px;
	line-height: 1;
	text-transform: capitalize;
	color: #16163f;
}
.kkj-share__list {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.kkj-share__list a {
	display: flex;
	color: #16163f;
	transition: color .3s;
}
.kkj-share__list a:hover,
.kkj-share__list a:focus-visible {
	color: #d3b574;
}
.kkj-share__list .kkj-icon {
	width: 16px;
	height: 16px;
	fill: currentColor;
}
.kkj-more {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: 35px;
	column-gap: 30px;
	margin-top: 10px;
	padding-top: 20px;
}
.kkj-more__item {
	display: flex;
	align-items: flex-start;
}
.kkj-more__thumb {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: 30%;
	margin-right: 18px;
	overflow: hidden;
	background: #e9edf3;
}
.kkj-more__thumb::before {
	content: "";
	display: block;
	padding-bottom: 66%;
}
.kkj-more__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.kkj-more__text {
	min-width: 0;
}
.kkj-more__title {
	margin: 0 0 9px;
	font-family: "Montserrat", Sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.35;
	text-transform: capitalize;
}
.kkj-more__title a {
	color: #4a4a4a;
	text-decoration: none;
}
.kkj-more__excerpt {
	margin: 0;
	font-family: "Montserrat", Sans-serif;
	font-weight: 200;
	font-size: 14px;
	line-height: 1.2em;
	color: #4a4a4a;
}
.kkj-postnav-wrap {
	margin: 0 0 150px;
	padding: 0 4%;
}
.kkj-postnav {
	display: flex;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 0;
	border-top: 1px solid #d2d1d8;
	border-bottom: 1px solid #d2d1d8;
}
.kkj-postnav__link {
	width: calc(50% - .5px);
	min-width: 0;
}
.kkj-postnav__sep {
	flex-shrink: 0;
	width: 1px;
	background: #d2d1d8;
}
.kkj-postnav__link a {
	display: flex;
	align-items: center;
	max-width: 100%;
	text-decoration: none;
}
.kkj-postnav__link--next a {
	justify-content: flex-end;
	text-align: right;
}
.kkj-postnav__arrow {
	flex-shrink: 0;
	font-size: 21px;
	line-height: 1;
	color: #16163f;
}
.kkj-postnav__link--prev .kkj-postnav__arrow {
	padding-right: 20px;
}
.kkj-postnav__link--next .kkj-postnav__arrow {
	padding-left: 20px;
}
.kkj-postnav__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.kkj-postnav__label {
	font-family: "Montserrat", Sans-serif;
	font-weight: 400;
	font-size: 16px;
	text-transform: capitalize;
	color: #4a4a4a;
}
.kkj-postnav__title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-family: "Merriweather", Sans-serif;
	font-size: 20px;
	text-transform: capitalize;
	color: #16163f;
}
.kkj-pagelinks {
	margin: 30px 0 0;
}
@media (max-width: 1024px) {
	.kkj-hero {
		padding: 0 5%;
	}
	.kkj-hero__title {
		font-size: 38px;
	}
	.kkj-single__wrap {
		margin: 80px 0;
		padding: 0 25px;
	}
	.kkj-single__main,
	.kkj-single__side {
		width: 100%;
		padding-right: 0;
	}
	.kkj-more {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.kkj-more__title {
		font-size: 14px;
	}
	.kkj-postnav-wrap {
		padding: 0 25px;
	}
}
@media (max-width: 767px) {
	.kkj-hero {
		padding: 0 25px;
	}
	.kkj-hero__title {
		font-size: 30px;
	}
	.kkj-more {
		grid-template-columns: minmax(0, 1fr);
	}
	.kkj-more__thumb {
		width: 32%;
	}
}

/* ==========================================================================
   Footer（旧 #7112）
   ========================================================================== */
.kkj-footer {
	background: #263b5e;
	color: #fff;
}
.kkj-footer__main {
	padding: 4%;
}
.kkj-footer__inner {
	display: flex;
	flex-wrap: wrap;
	max-width: 1790px;
	margin: 0 auto;
}
.kkj-footer__col {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}
.kkj-footer__col--links {
	width: 15.981%;
}
.kkj-footer__col--company {
	width: 37%;
}
.kkj-footer__col--map {
	width: 44%;
	gap: 20px;
}
.kkj-footer__heading {
	margin: 0;
	font-family: "Poppins", Sans-serif;
	font-weight: 600;
	font-size: 22px;
	line-height: 1.2em;
	text-transform: capitalize;
	color: #fff;
}
.kkj-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}
.kkj-footer__menu li + li {
	margin-top: 10px;
}
.kkj-footer__menu a {
	font-family: "Poppins", Sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.5em;
	color: #fff;
	text-decoration: none;
}
.kkj-footer__menu a:hover,
.kkj-footer__menu a:focus-visible {
	color: #c8d5dc;
}
.kkj-footer__contact {
	margin: 0;
	font-family: "Roboto", Sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	color: #fff;
}
.kkj-footer__tel {
	font-family: "Poppins", Sans-serif;
	color: #fff;
	text-decoration: none;
}
.kkj-footer__map {
	display: block;
	width: 100%;
	height: 245px;
	margin: 0;
	border: 0;
}
.kkj-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 45px;
	background: #263b5e;
}
.kkj-footer__copy {
	margin: 0;
	text-align: center;
	font-family: "Poppins", Sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.5em;
	color: #c8d5dc;
}
@media (max-width: 1024px) {
	.kkj-footer__main {
		padding: 8% 4%;
	}
	.kkj-footer__col--links,
	.kkj-footer__col--company {
		width: 32%;
		padding-left: 4%;
	}
	.kkj-footer__col--map {
		width: 100%;
		margin-top: 8%;
	}
	.kkj-footer__menu a,
	.kkj-footer__copy {
		font-size: 14px;
	}
}
@media (max-width: 767px) {
	.kkj-footer__main {
		padding: 20% 6%;
	}
	.kkj-footer__col--links {
		width: 50%;
		padding: 0 4% 0 0;
	}
	.kkj-footer__col--company {
		width: 50%;
		padding: 0 0 0 4%;
	}
	.kkj-footer__col--map {
		margin: 20% 0;
	}
	.kkj-footer__heading {
		font-size: 18px;
	}
	.kkj-footer__menu li + li {
		margin-top: 8px;
	}
}

/* ==========================================================================
   記事本文（旧「追加 CSS」から移植：AddQuicktag の装飾と ONE-OFF のスマホ対策）
   ========================================================================== */
.marker_yellow {
	background: linear-gradient(transparent 60%, #ffff66 60%);
}
.deco1 {
	display: block;
	margin-top: 1em;
	padding: 0 .5em;
	border-bottom: 2px solid #273b5c;
	border-left: 10px solid #273b5c;
	background: rgba(39, 59, 92, .05);
	color: #273b5c !important;
}
.deco2 {
	display: block;
	margin-top: 1em;
	padding: 0 .5em;
	font-size: 1.5rem;
	line-height: 200%;
	border-bottom: 2px solid #273b5c;
	border-left: 4px solid #273b5c;
	background: rgba(39, 59, 92, .05);
	color: #273b5c !important;
}
.deco3 {
	display: block;
	margin-top: 1em;
	padding: .5em;
	font-size: 1.25rem;
	border-left: 4px solid #273b5c;
	background: rgba(39, 59, 92, .05);
	color: #273b5c !important;
}
.deco4 {
	display: block;
	margin-top: 1em;
	padding: .5em;
	font-size: 1.125rem;
	border-left: 4px solid #273b5c;
	color: #273b5c !important;
}
.deco5 {
	display: block;
	margin-top: 1em;
	padding: .5em;
	font-size: 1.0625rem;
	border-top: 2px solid #273b5c;
	border-bottom: 2px solid #273b5c;
	color: #273b5c !important;
}
.deco6 {
	display: block;
	margin-top: 1em;
	padding: 0 .5em;
	font-size: 1rem;
	border-bottom: 2px solid #273b5c;
	color: #273b5c !important;
}
.kkj-content,
.kkj-content p,
.kkj-content li,
.kkj-content span,
.kkj-content td,
.kkj-content th {
	overflow-wrap: anywhere;
	word-break: break-word;
}
.kkj-content a {
	overflow-wrap: anywhere;
	word-break: break-all;
}
.kkj-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}
/* 表の下に全角スペースで位置合わせした注記行（例：「▲判定」）がスマホで画面外にはみ出さないようにする */
.kkj-content table + span {
	line-break: anywhere;
}
.kkj-content img {
	max-width: 100%;
	height: auto;
}
.kkj-content iframe {
	max-width: 100%;
}
@media (max-width: 767px) {
	#ez-toc-container .ez-toc-list a {
		font-size: 13px !important;
	}
	#ez-toc-container .ez-toc-list ul a {
		font-size: 12px !important;
	}
}
