/*
 * 熊本建設業許可申請代行センター：デザイン刷新（kumamoto-kensetsu Issue #4）
 * 既存テーマ dafault の CSS は変えずに、後から読み込んで上書きする。ワンカラム。
 * 基調色：ロゴの深い青緑／差し色：ロゴのオレンジ
 */

:root {
	--kk-ink: #23292b;
	--kk-sub: #5b6468;
	--kk-teal: #1d5a52;
	--kk-teal-dark: #154640;
	--kk-orange: #ec7a22;
	--kk-orange-soft: #fdf1e6;
	--kk-bg: #f6f4ef;
	--kk-line: #e4e0d8;
	--kk-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	--kk-width: 860px;
	--kk-wide: 1160px;
}

/* ---------- 全体 ---------- */
html {
	scroll-behavior: smooth;
}

body {
	background: #fff !important;
	color: var(--kk-ink);
	font-family: var(--kk-sans) !important;
	font-size: 16.5px !important;
	line-height: 1.95;
	letter-spacing: 0.03em;
	-webkit-font-smoothing: antialiased;
	line-break: strict;
	margin: 0;
}

body p,
body li,
body td,
body th,
body dd,
body dt {
	font-family: var(--kk-sans);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--kk-teal);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--kk-orange);
}

/* 旧デザインの装飾を外す */
#gbutton,
#topimage {
	display: none !important;
}

.description {
	background: var(--kk-bg);
	border-bottom: 1px solid var(--kk-line);
}

.description p {
	max-width: var(--kk-wide);
	margin: 0 auto !important;
	padding: 6px 24px;
	font-size: 12px !important;
	color: var(--kk-sub);
	line-height: 1.6;
}

#rap {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	background: none !important;
}

/* ---------- ヘッダー ---------- */
.kk-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--kk-line);
	backdrop-filter: saturate(1.4) blur(6px);
}

.kk-header__in {
	max-width: var(--kk-wide);
	margin: 0 auto;
	padding: 10px 24px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.kk-logo-wrap {
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: none !important;
	line-height: 0;
	flex: 0 0 auto;
}

.kk-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none !important;
	line-height: 1.25;
}

.kk-logo__mark {
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	fill: var(--kk-orange);
	stroke: var(--kk-orange);
}

.kk-logo__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.kk-logo__tag {
	font-size: 10.5px;
	font-weight: 500;
	color: var(--kk-sub);
	letter-spacing: 0.04em;
}

.kk-logo__name {
	font-size: 21px;
	font-weight: 800;
	color: var(--kk-teal-dark);
	letter-spacing: 0.06em;
}

.kk-logo__by {
	font-size: 10.5px;
	font-weight: 500;
	color: var(--kk-sub);
	letter-spacing: 0.06em;
}

.kk-nav {
	display: flex;
	gap: 26px;
	margin-left: auto;
}

.kk-nav a {
	color: var(--kk-ink);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 500;
	letter-spacing: 0.06em;
}

.kk-nav a:hover {
	color: var(--kk-teal);
}

.kk-header-tel {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-decoration: none;
	line-height: 1.25;
}

.kk-header-tel__label {
	font-size: 11px;
	color: var(--kk-sub);
	letter-spacing: 0.08em;
}

.kk-header-tel__num {
	font-size: 22px;
	font-weight: 700;
	color: var(--kk-teal);
	letter-spacing: 0.04em;
}

.kk-menu-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--kk-teal);
	background: #fff;
	color: var(--kk-teal);
	border-radius: 999px;
	padding: 8px 16px;
	font: 600 13.5px var(--kk-sans);
	letter-spacing: 0.08em;
	cursor: pointer;
}

.kk-menu-btn:hover {
	background: var(--kk-teal);
	color: #fff;
}

.kk-menu-btn__bars,
.kk-menu-btn__bars::before,
.kk-menu-btn__bars::after {
	display: block;
	width: 16px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	position: relative;
}

.kk-menu-btn__bars::before,
.kk-menu-btn__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.kk-menu-btn__bars::before {
	top: -5px;
}

.kk-menu-btn__bars::after {
	top: 5px;
}

/* ---------- トップの紹介 ---------- */
.kk-hero {
	max-width: var(--kk-wide);
	margin: 0 auto;
	padding: 64px 24px 56px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 56px;
	align-items: center;
}

.kk-hero__text {
	min-width: 0;
}

.kk-hero-wrap {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--kk-bg) 0%, #fff 78%);
	padding-bottom: 36px;
}

/* 背景の写真（右側に薄く。左は白に溶かす） */
.kk-hero__bg {
	position: absolute;
	top: 0;
	right: 0;
	width: 50%;
	height: 100%;
	background: url(hero-bg.jpg) center 20% / cover no-repeat;
	opacity: 0.22;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 85%, transparent 100%), linear-gradient(180deg, #000 70%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 85%, transparent 100%), linear-gradient(180deg, #000 70%, transparent 100%);
	mask-composite: intersect;
	pointer-events: none;
}

.kk-hero,
.kk-trust {
	position: relative;
}

.kk-hero__eyebrow {
	display: inline-block;
	margin: 0 0 14px !important;
	padding: 3px 12px;
	border-left: 3px solid var(--kk-orange);
	background: #fff;
	color: var(--kk-teal);
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.kk-hero__title {
	margin: 0 0 18px !important;
	padding: 0 !important;
	background: none !important;
	border: none !important;
	color: var(--kk-teal-dark) !important;
	font-size: 34px !important;
	font-weight: 800 !important;
	line-height: 1.5 !important;
	letter-spacing: 0.04em;
}

.kk-hero__q {
	display: block;
	margin-bottom: 8px;
	color: var(--kk-orange);
	font-size: 0.56em;
	letter-spacing: 0.06em;
}

.kk-hero__q span {
	display: inline-block;
}

/* 相談から許可までの流れ */
.kk-hero__flow {
	list-style: none;
	margin: 0 0 24px !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	counter-reset: none;
}

.kk-hero__flow li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	background: none !important;
	font-size: 14px;
	color: var(--kk-ink);
}

.kk-hero__flow li + li::before {
	content: "";
	position: absolute;
	left: -15px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-top: 2px solid var(--kk-line);
	border-right: 2px solid var(--kk-line);
	transform: translateY(-50%) rotate(45deg);
}

.kk-hero__flow li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--kk-teal);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.kk-hero__flow b {
	color: var(--kk-teal-dark);
	font-weight: 800;
}

.kk-nb {
	display: inline-block; /* 文節のまとまりの途中で改行しない */
}

.kk-hero__clients {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 16px !important;
	padding: 4px 12px;
	border-radius: 4px;
	background: var(--kk-orange-soft);
	color: var(--kk-teal-dark);
	font-size: 13.5px !important;
	line-height: 1.6;
}

.kk-hero__clients strong {
	color: var(--kk-orange);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.kk-hero__clients span {
	font-size: 11.5px;
	color: var(--kk-sub);
}

.kk-hero__lead {
	margin: 0 0 20px !important;
	color: var(--kk-ink);
	font-size: 16.5px !important;
	line-height: 2;
}

.kk-hero__tags {
	list-style: none;
	margin: 0 0 26px !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kk-hero__tags li {
	margin: 0 !important;
	padding: 5px 14px !important;
	background: #fff !important;
	border: 1px solid var(--kk-line);
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--kk-teal);
	list-style: none !important;
}

.kk-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.kk-btn {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	min-height: 60px;
	padding: 8px 26px;
	border-radius: 6px;
	text-decoration: none !important;
	line-height: 1.3;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.kk-btn--primary {
	background: var(--kk-teal);
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(21, 70, 64, 0.18);
}

.kk-btn--primary:hover {
	background: var(--kk-teal-dark);
}

.kk-btn--ghost {
	border: 1px solid var(--kk-teal);
	color: var(--kk-teal) !important;
	background: #fff;
}

.kk-btn__sub {
	font-size: 12px;
	letter-spacing: 0.1em;
	opacity: 0.9;
}

.kk-btn__main {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.kk-btn--ghost .kk-btn__main {
	font-size: 16px;
}

.kk-btn--line {
	background: #06c755;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(6, 199, 85, 0.22);
}

.kk-btn--line:hover {
	background: #05b04b;
}

.kk-btn--line .kk-btn__main,
#content .kk-btn--line .kk-btn__main {
	font-size: 16px !important;
}

/* PC：電話・メール・LINE を横に並べ、受付時間はその下に */
.kk-hero__sub {
	display: contents;
}

.kk-hero__cta .kk-hero__note {
	order: 9;
	flex-basis: 100%;
}

/* メニュー内の LINE：スマホはボタン、パソコンは QR */
#menu .kk-menu-line {
	display: none;
	margin: 0 0 6px !important;
}

#menu .kk-menu-line .kk-check__line {
	display: flex;
	align-items: center;
	text-align: center;
}

#menu .kk-menu-line-qr {
	text-align: center;
	font-size: 13px !important;
}

@media (pointer: coarse), (max-width: 600px) {
	#menu .kk-menu-line {
		display: block;
	}
	#menu .kk-menu-line-qr {
		display: none;
	}
}

.kk-hero__note {
	margin: 0 !important;
	font-size: 13px !important;
	color: var(--kk-sub);
}

/* 右側：代表のプロフィールカード */
.kk-hero__card {
	background: #fff;
	border: 1px solid var(--kk-line);
	border-top: 3px solid var(--kk-teal);
	border-radius: 10px;
	padding: 26px 26px 22px;
	box-shadow: 0 14px 36px rgba(20, 40, 36, 0.08);
}

.kk-hero__card-label {
	margin: 0 0 16px !important;
	font-size: 12.5px !important;
	font-weight: 700;
	color: var(--kk-orange);
	letter-spacing: 0.08em;
}

.kk-hero__card-head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--kk-line);
}

.kk-hero__card-head img {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 20%;
	flex: 0 0 auto;
}

.kk-hero__card-head p {
	margin: 0 !important;
	font-size: 17px !important;
	font-weight: 700;
	color: var(--kk-teal-dark);
	line-height: 1.5 !important;
	letter-spacing: 0.04em;
}

.kk-hero__card-head p span {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: var(--kk-sub);
	letter-spacing: 0;
}

.kk-hero__facts {
	margin: 14px 0 0 !important;
}

.kk-hero__facts div {
	display: flex;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--kk-line);
	font-size: 13px;
	line-height: 1.6;
}

.kk-hero__card-msg {
	margin: 14px 0 0 !important;
	padding: 12px 14px;
	border-radius: 6px;
	background: var(--kk-bg);
	color: var(--kk-teal-dark);
	font-size: 14px !important;
	font-weight: 700;
	line-height: 1.7 !important;
	text-align: center;
}

.kk-hero__facts div:last-child {
	border-bottom: none;
}

.kk-hero__facts dt {
	flex: 0 0 5.6em;
	margin: 0;
	white-space: nowrap;
	color: var(--kk-sub);
	font-weight: 500;
}

.kk-hero__facts dd {
	margin: 0;
	color: var(--kk-ink);
	font-weight: 700;
}

.kk-hero__photo {
	margin: 0;
	position: relative;
}

.kk-hero__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(20, 40, 36, 0.14);
}

.kk-hero__photo figcaption {
	position: absolute;
	left: 16px;
	bottom: 16px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--kk-teal-dark);
	line-height: 1.4;
}

.kk-hero__photo figcaption span {
	display: block;
	font-size: 11px;
	font-weight: 500;
	color: var(--kk-orange);
	letter-spacing: 0.12em;
}

/* 安心材料 */
.kk-trust {
	max-width: var(--kk-wide);
	margin: 0 auto 8px !important;
	padding: 0 24px !important;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.kk-trust li {
	margin: 0 !important;
	padding: 18px 20px !important;
	border: 1px solid var(--kk-line);
	border-top: 3px solid var(--kk-orange);
	border-radius: 6px;
	background: #fff;
	list-style: none !important;
}

.kk-trust strong {
	display: block;
	font-size: 18px;
	color: var(--kk-teal-dark);
}

.kk-answers li {
	padding: 20px 22px !important;
}

.kk-answers em {
	display: inline-block;
	margin-bottom: 6px;
	padding: 1px 10px;
	border-radius: 999px;
	background: var(--kk-orange-soft);
	color: #b85510;
	font-size: 12.5px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.kk-answers strong {
	margin-bottom: 4px;
}

.kk-answers span {
	display: block;
	line-height: 1.75;
}

.kk-trust span {
	font-size: 13.5px;
	color: var(--kk-sub);
}

.kk-trust small {
	display: block;
	font-size: 11.5px;
	color: var(--kk-sub);
}

/* ---------- 本文（ワンカラム） ---------- */
#pankuzu {
	max-width: var(--kk-width);
	margin: 18px auto 0 !important;
	padding: 0 24px !important;
	border: none !important;
	background: none !important;
	font-size: 12.5px !important;
	color: var(--kk-sub);
}

#content {
	float: none !important;
	width: auto !important;
	max-width: var(--kk-width);
	margin: 0 auto !important;
	padding: 24px 24px 40px !important;
	box-sizing: content-box;
}

#content h1,
#content h2,
#content h3,
#content h4,
#content h2.top-content-header {
	background: none !important;
	font-family: var(--kk-sans) !important;
	color: var(--kk-teal-dark);
	letter-spacing: 0.04em;
	height: auto !important;
	text-indent: 0 !important;
}

#content h1 {
	font-size: 30px !important;
	font-weight: 800 !important;
	line-height: 1.5;
	margin: 28px 0 28px !important;
	padding: 0 0 14px !important;
	border-bottom: 1px solid var(--kk-line) !important;
	position: relative;
}

#content h1::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 64px;
	height: 3px;
	background: var(--kk-orange);
}

#content h2,
#content h2.top-content-header {
	font-size: 23px !important;
	font-weight: 700 !important;
	line-height: 1.55;
	margin: 52px 0 20px !important;
	padding: 2px 0 2px 16px !important;
	border: none !important;
	border-left: 5px solid var(--kk-orange) !important;
}

#content h2.top-content-header a {
	color: inherit;
	text-decoration: none;
}

#content h3 {
	font-size: 19px !important;
	font-weight: 700 !important;
	margin: 36px 0 14px !important;
	padding: 0 0 8px !important;
	border: none !important;
	border-bottom: 2px solid var(--kk-orange-soft) !important;
}

#content p,
#content li,
#content td,
#content th {
	font-size: 16.5px !important;
	line-height: 2 !important;
}

#content .section {
	margin: 0 0 16px !important;
}

/* 既存の黄色マーカー・強調を落ち着いた色に */
#content u {
	text-decoration: none;
	background: linear-gradient(transparent 62%, #ffe9a8 62%);
}

#content strong {
	color: var(--kk-teal-dark);
}

/* お知らせ */
#content .news {
	background: var(--kk-bg);
	border-radius: 8px;
	padding: 6px 26px 18px !important;
	margin-top: 40px !important;
}

#content .news h2 {
	margin-top: 22px !important;
}

#content .newslist {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}

#content .newslist li {
	list-style: none !important;
	border-bottom: 1px solid var(--kk-line);
	padding: 12px 0 !important;
	margin: 0 !important;
	background: none !important;
}

#content .info-date {
	display: inline-block;
	min-width: 7em;
	color: var(--kk-sub);
	font-size: 14px;
}

/* ---------- 建設業許可ガイド ---------- */
.kk-guide {
	margin: 24px 0 40px;
}

.kk-section-head {
	text-align: center;
	margin-bottom: 26px;
}

.kk-section-head__en {
	margin: 0 !important;
	color: var(--kk-orange);
	font-size: 12.5px !important;
	font-weight: 700;
	letter-spacing: 0.3em;
}

#content .kk-section-head__title {
	margin: 4px 0 8px !important;
	padding: 0 !important;
	border: none !important;
	font-size: 28px !important;
	text-align: center;
}

.kk-section-head__lead {
	margin: 0 !important;
	color: var(--kk-sub);
	font-size: 15px !important;
}

.kk-guide__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.kk-guide__card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--kk-line);
	border-radius: 8px;
	padding: 18px 20px 16px;
	background: #fff;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.kk-guide__card:hover {
	border-color: var(--kk-teal);
	box-shadow: 0 10px 24px rgba(20, 40, 36, 0.08);
}

#content .kk-guide__cat {
	margin: 0 0 10px !important;
	padding: 0 !important;
	border: none !important;
	font-size: 17px !important;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

#content .kk-guide__cat a {
	color: var(--kk-teal-dark);
	text-decoration: none;
}

.kk-guide__count {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 500;
	color: var(--kk-orange);
	background: var(--kk-orange-soft);
	border-radius: 999px;
	padding: 1px 10px;
}

#content .kk-guide__list {
	list-style: none;
	margin: 0 0 10px !important;
	padding: 0 !important;
}

#content .kk-guide__list li {
	list-style: none !important;
	margin: 0 !important;
	padding: 6px 0 6px 14px !important;
	font-size: 14.5px !important;
	line-height: 1.6 !important;
	border-top: 1px dashed var(--kk-line);
	position: relative;
	background: none !important;
}

#content .kk-guide__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 15px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--kk-orange);
}

#content .kk-guide__list a {
	color: var(--kk-ink);
	text-decoration: none;
}

#content .kk-guide__list a:hover {
	color: var(--kk-teal);
	text-decoration: underline;
}

.kk-guide__more {
	margin-top: auto;
	align-self: flex-end;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}

/* ---------- 記事下の関連記事 ---------- */
.kk-related {
	margin: 48px 0 8px;
	padding: 22px 26px;
	background: var(--kk-bg);
	border-radius: 8px;
}

#content .kk-related__title {
	margin: 0 0 10px !important;
	padding: 0 !important;
	border: none !important;
	font-size: 18px !important;
}

#content .kk-related ul {
	margin: 0 0 12px !important;
	padding: 0 !important;
	list-style: none;
}

#content .kk-related li {
	list-style: none !important;
	margin: 0 !important;
	padding: 7px 0 !important;
	border-bottom: 1px solid var(--kk-line);
	font-size: 15px !important;
	line-height: 1.6 !important;
	background: none !important;
}

.kk-related__more {
	font-size: 14px;
	font-weight: 700;
}

/* ---------- 全画面メニュー（元の右メニュー） ---------- */
#menu {
	position: fixed !important;
	top: 0;
	right: 0;
	bottom: 0;
	float: none !important;
	width: min(440px, 92vw) !important;
	margin: 0 !important;
	padding: 16px 24px 48px !important;
	background: #fff !important;
	overflow-y: auto;
	z-index: 1000;
	transform: translateX(105%);
	transition: transform 0.28s ease;
	box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
}

/* メニューの並び：About → 記事の分類 → LINE → プロフィール → バナー（中身は消さない） */
#menu {
	display: flex !important;
	flex-direction: column;
}

#menu > .kk-menu-close {
	order: 0;
}

#menu > div.menulist:nth-of-type(2) {
	order: 1;
}

#menu > div.menulist:nth-of-type(n+4) {
	order: 2;
}

#menu > div.menulist:nth-of-type(1) {
	order: 3;
}

#menu > div.menulist:nth-of-type(3) {
	order: 4;
}

#menu > #menu-freespace {
	order: 5;
	margin-top: 20px;
}

/* 役割がヘッダー・固定バーと重なる旧お問い合わせ画像と RSS は、メニュー内では表示しない */
#menu > p:first-of-type,
#menu > .rss-list,
#menu > .validator {
	display: none !important;
}

body.kk-menu-open #menu {
	transform: translateX(0);
}

body.kk-menu-open::after {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(15, 25, 23, 0.4);
	z-index: 999;
}

body.kk-menu-open {
	overflow: hidden;
}

/* 閉じるボタン：スクロールしても上に貼り付いたまま */
.kk-menu-close {
	position: sticky;
	top: -16px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: calc(100% + 48px);
	margin: -16px -24px 12px;
	padding: 14px 24px 12px;
	border: none;
	border-bottom: 1px solid var(--kk-line);
	background: #fff;
	box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.15);
	color: var(--kk-teal-dark);
	font: 700 14px var(--kk-sans);
	cursor: pointer;
}

.kk-menu-close::before {
	content: "×";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--kk-teal);
	color: #fff;
	font-size: 18px;
	line-height: 1;
}

.kk-menu-close:hover::before {
	background: var(--kk-teal-dark);
}

body.kk-menu-open::after {
	cursor: pointer;
}

#menu h2 {
	background: none !important;
	color: var(--kk-teal-dark) !important;
	font-family: var(--kk-sans) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	text-align: left !important;
	height: auto !important;
	margin: 18px 0 8px !important;
	padding: 0 0 6px !important;
	border-bottom: 1px solid var(--kk-line);
	text-indent: 0 !important;
}

#menu .menulist {
	background: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

#menu details {
	border-bottom: 1px solid var(--kk-line);
}

#menu summary {
	list-style: none;
	cursor: pointer;
	padding: 14px 28px 14px 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--kk-teal-dark);
	position: relative;
}

#menu summary::-webkit-details-marker {
	display: none;
}

#menu summary::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid var(--kk-orange);
	border-bottom: 2px solid var(--kk-orange);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

#menu details[open] summary::after {
	transform: rotate(-135deg);
	margin-top: -2px;
}

#menu .kk-count {
	margin-left: 8px;
	font-size: 12px;
	font-weight: 500;
	color: var(--kk-orange);
}

#menu ul {
	margin: 0 0 12px !important;
	padding: 0 !important;
	list-style: none;
}

#menu li {
	list-style: none !important;
	background: none !important;
	margin: 0 !important;
	padding: 6px 0 6px 14px !important;
	font-size: 14px !important;
	line-height: 1.55 !important;
	border: none !important;
	position: relative;
}

#menu li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--kk-line);
}

#menu li a {
	color: var(--kk-ink) !important;
	text-decoration: none;
}

#menu li a:hover {
	color: var(--kk-teal) !important;
	text-decoration: underline;
}

#menu img {
	max-width: 100%;
}

/* ---------- フッター ---------- */
.kk-sitemap {
	background: var(--kk-bg);
	border-top: 1px solid var(--kk-line);
	padding: 40px 24px;
}

.kk-sitemap__in {
	max-width: var(--kk-wide);
	margin: 0 auto;
}

.kk-sitemap__title {
	background: none !important;
	margin: 0 0 16px !important;
	padding: 0 !important;
	border: none !important;
	font: 700 18px var(--kk-sans) !important;
	color: var(--kk-teal-dark);
	height: auto !important;
	text-indent: 0 !important;
}

.kk-sitemap__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 28px;
	align-items: start;
}

.kk-sitemap__group {
	border-bottom: 1px solid var(--kk-line);
}

.kk-sitemap__group summary {
	cursor: pointer;
	padding: 10px 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--kk-teal-dark);
}

.kk-sitemap__group summary span {
	margin-left: 6px;
	font-weight: 500;
	font-size: 12px;
	color: var(--kk-orange);
}

.kk-sitemap__group ul {
	margin: 0 0 10px !important;
	padding: 0 0 0 1em !important;
}

.kk-sitemap__group li {
	font-size: 13px !important;
	line-height: 1.6 !important;
	padding: 3px 0;
}

.kk-sitemap__group a {
	color: var(--kk-ink);
	text-decoration: none;
}

#footer {
	width: auto !important;
	background: var(--kk-teal-dark) !important;
	color: #fff;
	padding: 28px 24px 90px !important;
	margin: 0 !important;
	height: auto !important;
}

#footer a {
	color: #fff !important;
}

#footer ul {
	max-width: var(--kk-wide);
	margin: 0 auto 8px !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	list-style: none;
}

#footer li {
	list-style: none !important;
	background: none !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13.5px !important;
}

h3#footer-logo,
p#footer-contact {
	display: none !important;
}

#smartweblab {
	background: var(--kk-teal-dark);
	color: rgba(255, 255, 255, 0.6);
	text-align: center;
	padding: 0 0 80px;
}

#smartweblab p,
#smartweblab a {
	font-size: 11px !important;
	color: rgba(255, 255, 255, 0.6) !important;
}

/* 画面下の固定バー（控えめ） */
.kk-fixbar {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 800;
	display: flex;
	gap: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
	border-radius: 8px;
	overflow: hidden;
}

.kk-fixbar a {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 8px 18px;
	text-decoration: none !important;
	line-height: 1.3;
}

.kk-fixbar__tel {
	background: var(--kk-teal);
	color: #fff !important;
}

.kk-fixbar__tel span {
	font-size: 11px;
	opacity: 0.9;
}

.kk-fixbar__tel strong {
	color: #fff !important;
	font-size: 19px;
	letter-spacing: 0.04em;
}

.kk-fixbar__mail {
	background: #fff;
	color: var(--kk-teal) !important;
	font-size: 14px;
	font-weight: 700;
}

.pagetop {
	display: none !important;
}

/* ---------- 記事下のお問い合わせ誘導（元の画像バナーをテキストで） ---------- */
.kk-cta {
	margin: 48px 0 32px;
	padding: 40px 32px 28px;
	background: var(--kk-bg);
	border-top: 3px solid var(--kk-teal);
	border-radius: 10px;
	text-align: center;
}

.kk-cta p {
	text-indent: 0 !important;
}

.kk-cta__eyebrow {
	margin: 0 0 6px !important;
	color: var(--kk-orange);
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.24em;
}

.kk-cta__title {
	margin: 0 0 14px !important;
	color: var(--kk-teal-dark);
	font-size: 22px !important;
	font-weight: 800;
	line-height: 1.6 !important;
	letter-spacing: 0.04em;
}

.kk-cta__lead {
	margin: 0 0 18px !important;
	color: var(--kk-ink);
	font-size: 15px !important;
	line-height: 1.9 !important;
}

.kk-cta__badge {
	display: inline-block;
	margin: 0 0 22px !important;
	padding: 4px 16px;
	border-radius: 999px;
	background: var(--kk-orange-soft);
	color: #b85510;
	font-size: 14px !important;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.kk-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 12px;
}

.kk-cta__tel,
.kk-cta__mail {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	min-height: 64px;
	padding: 8px 28px;
	border-radius: 6px;
	text-decoration: none !important;
	line-height: 1.3;
	transition: background-color 0.2s ease;
}

.kk-cta__tel {
	background: #fff;
	border: 1px solid var(--kk-teal);
	color: var(--kk-teal-dark) !important;
}

.kk-cta__tel-label {
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--kk-sub);
}

.kk-cta__tel-num {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.kk-cta__mail {
	background: var(--kk-teal);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.kk-cta__mail:hover {
	background: var(--kk-teal-dark);
}

.kk-cta__hours {
	margin: 12px 0 0 !important;
	color: var(--kk-sub);
	font-size: 12.5px !important;
}

.kk-cta__line {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 520px;
	margin: 26px auto 0;
	padding-top: 22px;
	border-top: 1px solid var(--kk-line);
	text-align: left;
}

.kk-cta__line-qr {
	flex: 0 0 auto;
	line-height: 0;
}

.kk-cta__line-qr img {
	width: 96px;
	height: auto;
	border-radius: 6px;
	background: #fff;
}

.kk-cta__line-title {
	margin: 0 0 4px !important;
	color: var(--kk-teal-dark);
	font-size: 15px !important;
	font-weight: 700;
}

.kk-cta__line-title span {
	display: inline-block;
	margin-right: 8px;
	padding: 1px 8px;
	border-radius: 3px;
	background: #06c755;
	color: #fff;
	font-size: 11.5px;
	vertical-align: 2px;
}

.kk-cta__line-text {
	margin: 0 !important;
	color: var(--kk-sub);
	font-size: 13px !important;
	line-height: 1.8 !important;
}

@media (max-width: 600px) {
	.kk-cta {
		padding: 32px 18px 24px;
	}
	.kk-cta__title {
		font-size: 19px !important;
	}
	.kk-cta__tel,
	.kk-cta__mail {
		width: 100%;
		align-items: center;
	}
}

/* ---------- ページ下の事務所概要 ---------- */
#about.kk-about {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
	margin: 40px 0 24px !important;
	padding: 32px 36px !important;
	background: #fff !important;
	border: 1px solid var(--kk-line) !important;
	border-radius: 10px;
}

.kk-about p {
	text-indent: 0 !important;
}

.kk-about__photo {
	text-align: center;
}

.kk-about__photo img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 20%;
	box-shadow: 0 6px 18px rgba(20, 40, 36, 0.12);
}

.kk-about__photo p {
	margin: 12px 0 0 !important;
	color: var(--kk-teal-dark);
	font-size: 14px !important;
	font-weight: 700;
	line-height: 1.5 !important;
}

/* 「代表」の小さな肩書き。本文の最後の数文字をまとめる .kk-nw には当てない（「渡邉／徳人」と改行・灰色になるため） */
.kk-about__photo p span:not(.kk-nw) {
	display: block;
	color: var(--kk-sub);
	font-size: 11.5px;
	font-weight: 500;
}

.kk-about__en {
	margin: 0 0 4px !important;
	color: var(--kk-orange);
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.24em;
}

.kk-about__name {
	margin: 0 0 14px !important;
	color: var(--kk-teal-dark);
	font-size: 20px !important;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.kk-about__name span {
	font-size: 13px;
	font-weight: 500;
	color: var(--kk-sub);
}

.kk-about__list {
	margin: 0 0 18px !important;
}

.kk-about__list div {
	display: flex;
	gap: 16px;
	padding: 9px 0;
	border-top: 1px solid var(--kk-line);
	font-size: 14.5px;
	line-height: 1.7;
}

.kk-about__list div:last-child {
	border-bottom: 1px solid var(--kk-line);
}

.kk-about__list dt {
	flex: 0 0 5.5em;
	margin: 0;
	color: var(--kk-sub);
	white-space: nowrap;
}

.kk-about__list dd {
	margin: 0;
	color: var(--kk-ink);
}

.kk-about__list a {
	color: var(--kk-teal-dark) !important;
	font-weight: 700;
	text-decoration: none !important;
}

.kk-about__sub {
	margin-left: 12px;
	color: var(--kk-sub);
	font-size: 13px;
}

.kk-about__link {
	display: inline-block;
	padding: 9px 22px;
	border: 1px solid var(--kk-teal);
	border-radius: 6px;
	color: var(--kk-teal) !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}

.kk-about__link::after {
	content: " →";
}

.kk-about__link:hover {
	background: var(--kk-teal);
	color: #fff !important;
}

@media (max-width: 700px) {
	#about.kk-about {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 26px 20px !important;
	}
	.kk-about__sub {
		display: block;
		margin-left: 0;
	}
}

/* ---------- 画面が狭いとき ---------- */
@media (max-width: 960px) {
	.kk-nav {
		display: none;
	}
	.kk-header-tel {
		margin-left: auto;
	}
	.kk-hero {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-top: 40px;
	}
	.kk-hero__card {
		max-width: 460px;
	}
	.kk-hero__bg {
		width: 100%;
		opacity: 0.12;
	}
	.kk-hero__title {
		font-size: 30px !important;
	}
	.kk-trust {
		grid-template-columns: 1fr;
	}
	.kk-guide__grid,
	.kk-sitemap__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.kk-logo__mark {
		width: 36px;
		height: 36px;
	}
	.kk-logo__name {
		font-size: 16px;
		letter-spacing: 0.02em;
	}
	.kk-logo__tag,
	.kk-logo__by {
		font-size: 9px;
		letter-spacing: 0;
	}
	.kk-header-tel__label {
		display: none;
	}
	.kk-header-tel__num {
		font-size: 17px;
	}
	.kk-fixbar {
		left: 0;
		right: 0;
		bottom: 0;
		border-radius: 0;
		gap: 0;
	}
	.kk-fixbar__tel {
		flex: 1;
		align-items: center;
	}
}

/* ---------- スマホ（新デザインをスマホでも使う。旧スマホテーマ gblog_sp の代わり） ---------- */
body {
	overflow-x: clip;
}

[class^="kk-"],
[class*=" kk-"] {
	box-sizing: border-box;
}

#menu {
	visibility: hidden;
	transition: transform 0.28s ease, visibility 0.28s;
}

body.kk-menu-open #menu {
	visibility: visible;
}

@media (max-width: 600px) {
	body {
		font-size: 16px !important;
	}
	.description {
		display: none;
	}
	.kk-hero {
		padding: 32px 18px 36px;
		gap: 24px;
	}
	.kk-hero__eyebrow {
		font-size: 12px !important;
		letter-spacing: 0.04em;
	}
	.kk-hero__title {
		font-size: 24px !important;
		letter-spacing: 0.02em;
	}
	.kk-hero__q {
		font-size: 14px;
		line-height: 1.6;
	}
	.kk-hero__clients {
		font-size: 12.5px !important;
	}
	.kk-hero__lead {
		font-size: 15px !important;
		line-height: 1.9;
	}
	.kk-hero__flow {
		flex-direction: column;
		gap: 10px;
		padding: 14px 16px !important;
		border: 1px solid var(--kk-line);
		border-radius: 8px;
		background: rgba(255, 255, 255, 0.85);
	}
	.kk-hero__flow li + li::before {
		display: none;
	}
	.kk-hero__cta {
		flex-direction: column;
	}
	.kk-hero__cta .kk-btn {
		width: 100%;
		align-items: center;
		text-align: center;
		min-height: 56px;
	}
	.kk-hero__note {
		font-size: 12.5px !important;
		text-align: center;
	}
	.kk-hero__note-sep {
		display: block;
		height: 0;
		overflow: hidden;
	}
	.kk-hero__cta .kk-hero__note {
		order: 0;
		margin: -4px 0 2px !important;
	}
	.kk-hero__sub {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.kk-hero__sub .kk-btn {
		padding: 8px 6px;
	}
	.kk-hero__card {
		padding: 22px 18px 18px;
	}
	.kk-hero__card-head img {
		width: 72px;
		height: 72px;
	}
	.kk-hero__card-head p {
		font-size: 16px !important;
	}
	.kk-hero__card-head p span {
		font-size: 11px;
	}
	.kk-trust {
		padding: 0 18px !important;
	}
}

@media (max-width: 480px) {
	.kk-header-tel {
		display: none;
	}
	.kk-menu-btn {
		margin-left: auto;
		flex: 0 0 auto;
		padding: 8px 12px;
		font-size: 12.5px;
		letter-spacing: 0.02em;
	}
	.kk-fixbar a {
		padding: 8px 12px;
	}
	.kk-fixbar__tel strong {
		font-size: 18px;
	}
	.kk-fixbar__mail {
		flex: 0 0 auto;
		font-size: 13px;
		white-space: nowrap;
	}
	.kk-logo__tag {
		display: none;
	}
}

/* ---------- 事務所紹介ページ ---------- */
.kk-office p {
	text-indent: 0 !important;
}

.kk-office__sec {
	margin: 0 0 48px;
}

.kk-office__sub {
	display: block;
	color: var(--kk-sub);
	font-size: 13px;
	font-weight: 400;
}

.kk-office__table {
	margin: 0 !important;
	border: 1px solid var(--kk-line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.kk-office__table div {
	display: grid;
	grid-template-columns: 9em minmax(0, 1fr);
	border-top: 1px solid var(--kk-line);
}

.kk-office__table div:first-child {
	border-top: none;
}

.kk-office__table dt {
	margin: 0;
	padding: 14px 18px;
	background: var(--kk-bg);
	color: var(--kk-teal-dark);
	font-size: 14px;
	font-weight: 700;
}

.kk-office__table dd {
	margin: 0;
	padding: 14px 20px;
	font-size: 15px;
	line-height: 1.8;
}

.kk-office__table a {
	color: var(--kk-teal-dark) !important;
	font-weight: 700;
	text-decoration: none !important;
}

.kk-office__room {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.kk-office__room img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(20, 40, 36, 0.1);
}

.kk-office__room p {
	margin: 0 0 12px !important;
	line-height: 1.9 !important;
}

.kk-office__room strong {
	color: var(--kk-teal-dark);
}

.kk-office__lead {
	color: var(--kk-teal-dark);
	font-size: 18px !important;
	font-weight: 800;
}

.kk-office__map {
	position: relative;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--kk-line);
	border-radius: 10px;
	overflow: hidden;
}

.kk-office__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.kk-office__maplink {
	margin: 10px 0 0 !important;
	text-align: right;
	font-size: 13.5px !important;
}

.kk-office__parking {
	float: left;
	padding: 1px 10px;
	border-radius: 4px;
	background: var(--kk-orange-soft);
	color: #b85510;
	font-weight: 700;
}

.kk-office__maplink a::after {
	content: " →";
}

.kk-office__profile {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	margin-bottom: 28px;
}

.kk-office__profile figure {
	margin: 0;
	text-align: center;
}

.kk-office__profile img {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 20%;
	box-shadow: 0 8px 22px rgba(20, 40, 36, 0.12);
}

.kk-office__profile figcaption {
	margin-top: 12px;
	color: var(--kk-teal-dark);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.kk-office__profile figcaption span {
	display: block;
	color: var(--kk-sub);
	font-size: 12px;
	font-weight: 500;
}

.kk-office__profile p {
	margin: 0 0 12px !important;
	line-height: 1.95 !important;
}

.kk-office__career {
	list-style: none !important;
	margin: 0 0 28px !important;
	padding: 0 !important;
}

.kk-office__career li {
	position: relative;
	margin: 0 !important;
	padding: 0 0 18px 30px !important;
	list-style: none !important;
	background: none !important;
	line-height: 1.8;
}

/* 縦の線（最後の項目の下には出さない） */
.kk-office__career li::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 16px;
	bottom: -4px;
	width: 2px;
	background: #e9c7a6;
}

.kk-office__career li:last-child {
	padding-bottom: 0 !important;
}

.kk-office__career li:last-child::after {
	display: none;
}

/* 丸（線の真上に重ねる） */
.kk-office__career li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--kk-orange);
	box-shadow: 0 0 0 3px var(--kk-orange-soft);
	z-index: 1;
}

.kk-office__note {
	padding: 14px 18px;
	border-radius: 8px;
	background: var(--kk-bg);
	font-size: 14px !important;
}

@media (max-width: 700px) {
	.kk-office__table div {
		grid-template-columns: 1fr;
	}
	.kk-office__table dt {
		padding: 10px 16px;
	}
	.kk-office__room,
	.kk-office__profile {
		grid-template-columns: 1fr;
	}
}

/* ---------- 3つの質問で簡易診断（トップ） ---------- */
.kk-check {
	max-width: var(--kk-width);
	margin: 56px auto 64px;
	padding: 0 24px;
}

.kk-check p {
	text-indent: 0 !important;
}

.kk-check [hidden] {
	display: none !important;
}

.kk-check__box {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 20px;
	padding: 28px 28px 22px;
	background: #fff;
	border: 1px solid var(--kk-line);
	border-radius: 14px;
	box-shadow: 0 14px 36px rgba(20, 40, 36, 0.08);
}

.kk-check__who {
	text-align: center;
}

.kk-check__who img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 20%;
}

.kk-check__who p {
	margin: 6px 0 0 !important;
	color: var(--kk-sub);
	font-size: 11px !important;
	line-height: 1.4 !important;
}

.kk-check__q {
	position: relative;
	margin: 0 0 6px !important;
	padding: 14px 18px;
	border: 1px solid var(--kk-line);
	border-radius: 4px 14px 14px 14px;
	background: var(--kk-bg);
	color: var(--kk-teal-dark);
	font-size: 17px !important;
	font-weight: 700;
	line-height: 1.6 !important;
}

.kk-check__q span:not(.kk-nw) {
	display: inline-block;
	margin-right: 10px;
	padding: 1px 9px;
	border-radius: 999px;
	background: var(--kk-teal);
	color: #fff;
	font-size: 12px;
	vertical-align: 2px;
}

.kk-check__hint {
	margin: 0 0 16px 4px !important;
	color: var(--kk-sub);
	font-size: 13px !important;
}

.kk-check__answers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.kk-check__answers button {
	padding: 16px 12px;
	border: 1px solid var(--kk-line);
	border-radius: 10px;
	background: #fff;
	color: var(--kk-ink);
	font: 700 16px var(--kk-sans);
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.kk-check__answers button:hover,
.kk-check__answers button:focus-visible {
	border-color: var(--kk-teal);
	background: #f1f6f5;
}

.kk-check__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 18px;
}

.kk-check__dots i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--kk-line);
}

.kk-check__dots i.is-on {
	background: var(--kk-teal);
}

.kk-check__result-title {
	margin: 0 0 12px !important;
	padding: 14px 18px;
	border-radius: 4px 14px 14px 14px;
	background: var(--kk-orange-soft);
	color: #9a4a0e;
	font-size: 18px !important;
	font-weight: 800;
	line-height: 1.6 !important;
}

.kk-check__result.is-ok .kk-check__result-title {
	background: #e8f3f1;
	color: var(--kk-teal-dark);
}

.kk-check__notes {
	margin: 0 0 14px !important;
	padding: 0 !important;
	list-style: none !important;
}

.kk-check__notes li {
	position: relative;
	margin: 0 !important;
	padding: 6px 0 6px 20px !important;
	list-style: none !important;
	background: none !important;
	font-size: 14px;
	line-height: 1.8;
}

.kk-check__notes li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 16px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--kk-orange);
}

.kk-check__lead {
	margin: 0 0 12px !important;
	color: var(--kk-teal-dark);
	font-size: 15px !important;
	font-weight: 700;
}

.kk-check__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.kk-check__line,
.kk-check__tel {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	min-height: 60px;
	padding: 8px 26px;
	border-radius: 8px;
	text-decoration: none !important;
	line-height: 1.3;
}

.kk-check__line {
	background: #06c755;
	color: #fff !important;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.06em;
	box-shadow: 0 6px 16px rgba(6, 199, 85, 0.22);
}

.kk-check__line span:not(.kk-nw),
.kk-check__tel span:not(.kk-nw) {
	font-size: 11.5px;
	font-weight: 500;
	opacity: 0.9;
}

.kk-check__line:hover {
	background: #05b04b;
}

.kk-check__tel {
	border: 1px solid var(--kk-teal);
	background: #fff;
	color: var(--kk-teal-dark) !important;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.kk-check__tel span:not(.kk-nw) {
	color: var(--kk-sub);
}

.kk-check__retry {
	margin-top: 14px;
	padding: 0;
	border: none;
	background: none;
	color: var(--kk-sub);
	font: 500 13px var(--kk-sans);
	text-decoration: underline;
	cursor: pointer;
}

.kk-check__foot {
	margin: 12px 4px 0 !important;
	color: var(--kk-sub);
	font-size: 12px !important;
	line-height: 1.7 !important;
}

@media (max-width: 600px) {
	.kk-check {
		padding: 0 18px;
	}
	.kk-check__box {
		grid-template-columns: 1fr;
		padding: 22px 18px 18px;
	}
	.kk-check__who {
		display: flex;
		align-items: center;
		gap: 10px;
		text-align: left;
	}
	.kk-check__who p br {
		display: none;
	}
	.kk-check__line,
	.kk-check__tel {
		width: 100%;
		align-items: center;
	}
}

/* LINE：パソコンでは QR をその場で大きく表示 */
.kk-line-dialog {
	position: fixed;
	inset: 0;
	margin: auto !important;
	height: fit-content;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	width: min(420px, calc(100vw - 32px));
	padding: 32px 28px 24px;
	border: none;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	text-align: center;
	font-family: var(--kk-sans);
	color: var(--kk-ink);
}

.kk-line-dialog::backdrop {
	background: rgba(20, 30, 28, 0.55);
}

.kk-line-dialog p {
	text-indent: 0 !important;
}

.kk-line-dialog__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: var(--kk-bg);
	color: var(--kk-sub);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.kk-line-dialog__en {
	margin: 0 0 4px !important;
	color: #06c755;
	font-size: 13px !important;
	font-weight: 800;
	letter-spacing: 0.24em;
}

.kk-line-dialog__title {
	margin: 0 0 18px !important;
	color: var(--kk-teal-dark);
	font-size: 17px !important;
	font-weight: 800;
	line-height: 1.6 !important;
}

.kk-line-dialog img {
	display: block;
	width: 150px;
	height: auto;
	margin: 0 auto 18px;
	padding: 10px;
	border: 1px solid var(--kk-line);
	border-radius: 12px;
	background: #fff;
	image-rendering: pixelated;
}

.kk-line-dialog__steps {
	margin: 0 0 16px !important;
	padding: 0 0 0 1.4em !important;
	text-align: left;
	font-size: 13.5px;
	line-height: 1.8;
}

.kk-line-dialog__steps li {
	margin: 0 0 4px !important;
	background: none !important;
}

.kk-line-dialog__alt {
	margin: 0 !important;
	padding-top: 14px;
	border-top: 1px solid var(--kk-line);
	color: var(--kk-sub);
	font-size: 13px !important;
}

.kk-line-dialog__alt a {
	white-space: nowrap;
	color: var(--kk-teal-dark) !important;
	font-weight: 700;
	text-decoration: none !important;
}

/* ---------- トップのメッセージ（旧トップページフリースペースを整形） ---------- */
.kk-topmsg {
	display: grid;
	gap: 28px;
	margin: 8px 0 56px;
}

.kk-topmsg p {
	text-indent: 0 !important;
	line-height: 1.95 !important;
}

.kk-topmsg__sec {
	padding: 32px 36px 26px;
	border: 1px solid var(--kk-line);
	border-radius: 14px;
	background: #fff;
}

.kk-topmsg__en {
	margin: 0 0 4px !important;
	color: var(--kk-orange);
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.22em;
}

#content .kk-topmsg__title {
	margin: 0 0 16px !important;
	padding: 0 !important;
	border: none !important;
	font-size: 22px !important;
	line-height: 1.55;
}

.kk-topmsg u {
	text-decoration: none;
	background: linear-gradient(transparent 62%, #fde3c8 62%);
}

.kk-topmsg h3 {
	margin: 24px 0 10px !important;
	font-size: 17px !important;
}

/* 表彰状：額装風（細い濃色の額＋白いマット＋影） */
.kk-award {
	display: grid;
	grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
	gap: 36px;
	align-items: center;
	background: linear-gradient(135deg, #fbf8f2 0%, #fff 60%);
}

.kk-award__frame {
	margin: 0;
	text-align: center;
}

.kk-award__zoom {
	display: block;
	padding: 14px;
	background: #fff;
	border: 7px solid #3a3029;
	border-radius: 2px;
	box-shadow: inset 0 0 0 1px #c9ab6b, 0 2px 0 #1f1914, 0 22px 44px rgba(40, 30, 20, 0.22);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kk-award__zoom img {
	display: block;
	width: 100%;
	height: auto;
	outline: 1px solid #e3d6b8;
	outline-offset: 5px;
}

.kk-award__zoom:hover {
	transform: translateY(-2px);
	box-shadow: inset 0 0 0 1px #c9ab6b, 0 2px 0 #1f1914, 0 28px 52px rgba(40, 30, 20, 0.28);
}

.kk-award__frame figcaption {
	margin-top: 16px;
	color: var(--kk-sub);
	font-size: 13px;
	line-height: 1.6;
}

.kk-award__frame figcaption span {
	display: block;
	font-size: 11.5px;
	color: #a3a8aa;
}

.kk-award__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px !important;
	padding: 6px 16px 6px 12px;
	border: 1px solid #d8bf86;
	border-radius: 999px;
	background: #fffaf0;
	color: #8a6a26;
	line-height: 1 !important;
}

.kk-award__badge strong {
	font-size: 26px;
	font-weight: 800;
	font-family: Georgia, "Times New Roman", serif;
}

.kk-award__badge span {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.2;
}

/* 業界ニュース */
.kk-topmsg__sec--2 {
	background: var(--kk-bg);
	border-color: transparent;
}

.kk-topmsg__sec--2 a {
	font-weight: 700;
}

/* いまのご相談状況 */
.kk-topmsg__sec--3 {
	border-left: 5px solid var(--kk-orange);
}

.kk-topmsg__sec--3 strong {
	color: var(--kk-teal-dark);
}

.kk-topmsg__sec--3 p[style*="center"] {
	margin: 0 !important;
}

.kk-topmsg__sec--3 p[style*="center"] img {
	width: 120px;
	height: auto;
	margin-top: 6px;
}

/* 強み */
.kk-topmsg__sec--4 {
	background: linear-gradient(135deg, #eef5f3 0%, #fff 70%);
	border-color: #d5e4e0;
}

.kk-topmsg__sec--4 p:last-child {
	margin-top: 12px !important;
	padding-top: 14px;
	border-top: 1px solid #d5e4e0;
	color: var(--kk-teal-dark);
	font-weight: 700;
}

/* 拡大表示 */
.kk-zoom {
	position: fixed;
	inset: 0;
	margin: auto !important;
	width: min(1000px, calc(100vw - 32px));
	height: fit-content;
	padding: 12px;
	border: none;
	border-radius: 8px;
	background: #fff;
	cursor: zoom-out;
}

.kk-zoom::backdrop {
	background: rgba(20, 20, 20, 0.7);
}

.kk-zoom img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 760px) {
	.kk-topmsg__sec {
		padding: 24px 20px 20px;
	}
	.kk-award {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.kk-topmsg__line {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-top: 22px;
	padding: 18px 20px;
	border-radius: 10px;
	background: #f2fbf5;
	border: 1px solid #cdeed9;
}

.kk-topmsg__line-qr {
	flex: 0 0 auto;
	line-height: 0;
}

.kk-topmsg__line-qr img {
	width: 96px;
	height: auto;
	padding: 6px;
	border-radius: 8px;
	background: #fff;
}

.kk-topmsg .kk-topmsg__line-title {
	margin: 0 0 2px !important;
	color: var(--kk-teal-dark);
	font-size: 16px !important;
	font-weight: 800;
	line-height: 1.6 !important;
}

.kk-topmsg__line-title span {
	display: inline-block;
	margin-right: 8px;
	padding: 1px 8px;
	border-radius: 3px;
	background: #06c755;
	color: #fff;
	font-size: 11.5px;
	vertical-align: 2px;
}

.kk-topmsg .kk-topmsg__line-text {
	margin: 0 0 10px !important;
	color: var(--kk-sub);
	font-size: 13.5px !important;
	line-height: 1.7 !important;
}

.kk-topmsg__line-btn {
	min-height: 48px;
	padding: 6px 22px;
	font-size: 15px;
}

/* ヘッダー：サイト名が長くなった分、狭い画面で詰まらないように */
.kk-logo__name,
.kk-nav a,
.kk-header-tel,
.kk-header-tel span,
.kk-menu-btn {
	white-space: nowrap;
}

@media (max-width: 1120px) {
	.kk-nav {
		display: none;
	}
	.kk-header-tel {
		margin-left: auto;
	}
}

/* ---------- スマホ：ヘッダー（サイト名が長いので詰める） ---------- */
@media (max-width: 480px) {
	.kk-header__in {
		padding: 8px 12px;
		gap: 8px;
	}
	.kk-logo {
		gap: 6px;
		min-width: 0;
	}
	.kk-logo__mark {
		width: 30px;
		height: 30px;
	}
	.kk-logo__name {
		font-size: 14px;
		letter-spacing: 0;
	}
	.kk-logo__by {
		font-size: 8.5px;
	}
	.kk-menu-btn {
		padding: 7px 10px;
		gap: 5px;
		font-size: 11.5px;
	}
}

@media (max-width: 360px) {
	.kk-logo__name {
		font-size: 12.5px;
	}
	.kk-menu-btn__text {
		display: none;
	}
}

/* ---------- スマホ：本文まわりの仕上げ ---------- */
@media (max-width: 600px) {
	/* 下の固定バー（電話・メール）に最後の内容が隠れないように */
	body {
		padding-bottom: 64px !important;
	}
	#content {
		padding: 18px 16px 32px !important;
	}
	.kk-hero__note {
		font-size: 11.5px !important;
	}
	/* セクション見出し */
	.kk-section-head__title {
		font-size: 22px !important;
		line-height: 1.5 !important;
	}
	.kk-section-head__lead {
		font-size: 14px !important;
	}
	/* 簡易診断 */
	.kk-check {
		padding: 0 16px;
		margin: 40px auto 48px;
	}
	.kk-check__box {
		padding: 18px 14px 14px;
		gap: 12px;
	}
	.kk-check__q {
		font-size: 16px !important;
		padding: 12px 14px;
	}
	.kk-check__result-title {
		font-size: 16px !important;
	}
	/* トップのメッセージ */
	.kk-topmsg__sec {
		padding: 22px 16px 18px;
	}
	#content .kk-topmsg__title {
		font-size: 19px !important;
	}
	.kk-topmsg p {
		font-size: 15px !important;
	}
	.kk-topmsg__line {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
		gap: 12px;
		padding: 16px 14px;
	}
	.kk-topmsg__line-qr {
		align-self: center;
	}
	.kk-topmsg__line-btn {
		width: 100%;
		align-items: center;
	}
	.kk-award__badge strong {
		font-size: 22px;
	}
	/* 記事下のお問い合わせ */
	.kk-cta__title {
		font-size: 17px !important;
	}
	.kk-cta__lead {
		font-size: 14px !important;
	}
	.kk-cta__line {
		flex-direction: column;
		text-align: center;
	}
	/* 事務所紹介 */
	.kk-office__table dd {
		padding: 10px 16px;
		font-size: 14.5px;
	}
	.kk-office__profile img {
		width: 130px;
		height: 130px;
	}
}

/* ---------- お問い合わせフォーム ---------- */
#content .form-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 20px;
}

#content .form-table th,
#content .form-table td {
	padding: 12px 14px !important;
	border: 1px solid var(--kk-line);
	vertical-align: top;
	font-size: 15px !important;
	line-height: 1.7 !important;
}

#content .form-table th {
	width: 11em;
	background: var(--kk-bg);
	color: var(--kk-teal-dark);
	font-weight: 700;
	text-align: left;
}

#content .form-area .form-note {
	margin: 18px 0;
	padding: 14px 18px;
	border-left: 4px solid var(--kk-teal);
	background: var(--kk-bg);
	font-size: 15px !important;
	line-height: 1.8 !important;
}

#content .form-table .required {
	color: #c0392b;
	margin-right: 2px;
}

#content .form-table .optional {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 7px;
	border-radius: 3px;
	background: #e7e3da;
	color: #6b665c;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.6;
	vertical-align: 1px;
}

#content .form-table input[type="text"],
#content .form-table input[type="email"],
#content .form-table input[type="tel"],
#content .form-table select,
#content .form-table textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid #cfc9bd;
	border-radius: 6px;
	background: #fff;
	font: 16px var(--kk-sans);
}

#content .form-table input:focus,
#content .form-table select:focus,
#content .form-table textarea:focus {
	outline: 2px solid rgba(29, 90, 82, 0.35);
	border-color: var(--kk-teal);
}

#content input[type="submit"] {
	min-width: 180px;
	min-height: 52px;
	padding: 10px 28px;
	border: none;
	border-radius: 6px;
	background: var(--kk-teal);
	color: #fff;
	font: 700 16px var(--kk-sans);
	letter-spacing: 0.1em;
	cursor: pointer;
}

#content input[type="submit"]:hover {
	background: var(--kk-teal-dark);
}

#content input[type="submit"][name="dispatch_default"] {
	background: #fff;
	color: var(--kk-teal);
	border: 1px solid var(--kk-teal);
	margin-right: 8px;
}

@media (max-width: 600px) {
	#content .form-table,
	#content .form-table tbody,
	#content .form-table tr,
	#content .form-table th,
	#content .form-table td {
		display: block;
		width: auto;
	}
	#content .form-table tr {
		margin-bottom: 12px;
	}
	#content .form-table th {
		border-bottom: none;
		padding: 8px 12px !important;
	}
	#content .form-table td {
		padding: 10px 12px !important;
	}
	#content input[type="submit"] {
		width: 100%;
		margin: 6px 0 0 !important;
	}
	/* ページ見出し・パンくず */
	#content h1 {
		font-size: 23px !important;
		line-height: 1.45 !important;
	}
	#content h2 {
		font-size: 19px !important;
	}
	#pankuzu,
	#pankuzu a {
		font-size: 12.5px !important;
		line-height: 1.7 !important;
	}
}

/* ---------- 本文内の部品：#content p の一律指定より優先させる（自動生成） ---------- */

#content .kk-btn {
	line-height: 1.3 !important;
}

#content .kk-btn__sub {
	font-size: 12px !important;
}

#content .kk-btn__main {
	font-size: 22px !important;
}

#content .kk-btn--ghost .kk-btn__main {
	font-size: 16px !important;
}

#content .kk-answers em {
	font-size: 12.5px !important;
}

#content .kk-answers span {
	line-height: 1.75 !important;
}

#content .kk-section-head__en {
	font-size: 12.5px !important;
}

#content .kk-section-head__lead {
	font-size: 15px !important;
}

#content .kk-guide__count {
	font-size: 12px !important;
}

#content .kk-guide__more {
	font-size: 13.5px !important;
}

#content .kk-related__more {
	font-size: 14px !important;
}

#content .kk-sitemap__group summary {
	font-size: 14px !important;
}

#content .kk-sitemap__group summary span {
	font-size: 12px !important;
}

#content .kk-sitemap__group li {
	font-size: 13px !important;
	line-height: 1.6 !important;
}

#content .kk-cta__eyebrow {
	font-size: 12px !important;
}

#content .kk-cta__title {
	font-size: 22px !important;
	line-height: 1.6 !important;
}

#content .kk-cta__lead {
	font-size: 15px !important;
	line-height: 1.9 !important;
}

#content .kk-cta__badge {
	font-size: 14px !important;
}

#content .kk-cta__tel, #content .kk-cta__mail {
	line-height: 1.3 !important;
}

#content .kk-cta__tel-label {
	font-size: 12px !important;
}

#content .kk-cta__tel-num {
	font-size: 26px !important;
}

#content .kk-cta__mail {
	font-size: 16px !important;
}

#content .kk-cta__hours {
	font-size: 12.5px !important;
}

#content .kk-cta__line-qr {
	line-height: 0 !important;
}

#content .kk-cta__line-title {
	font-size: 15px !important;
}

#content .kk-cta__line-title span {
	font-size: 11.5px !important;
}

#content .kk-cta__line-text {
	font-size: 13px !important;
	line-height: 1.8 !important;
}

#content .kk-about__photo p {
	font-size: 14px !important;
	line-height: 1.5 !important;
}

#content .kk-about__photo p span:not(.kk-nw) {
	font-size: 11.5px !important;
}

#content .kk-about__en {
	font-size: 12px !important;
}

#content .kk-about__name {
	font-size: 20px !important;
}

#content .kk-about__name span {
	font-size: 13px !important;
}

#content .kk-about__list div {
	font-size: 14.5px !important;
	line-height: 1.7 !important;
}

#content .kk-about__sub {
	font-size: 13px !important;
}

#content .kk-about__link {
	font-size: 14px !important;
}

#content .kk-office__sub {
	font-size: 13px !important;
}

#content .kk-office__table dt {
	font-size: 14px !important;
}

#content .kk-office__table dd {
	font-size: 15px !important;
	line-height: 1.8 !important;
}

#content .kk-office__room p {
	line-height: 1.9 !important;
}

#content .kk-office__lead {
	font-size: 18px !important;
}

#content .kk-office__maplink {
	font-size: 13.5px !important;
}

#content .kk-office__profile figcaption {
	font-size: 15px !important;
	line-height: 1.5 !important;
}

#content .kk-office__profile figcaption span {
	font-size: 12px !important;
}

#content .kk-office__profile p {
	line-height: 1.95 !important;
}

#content .kk-office__career li {
	line-height: 1.8 !important;
}

#content .kk-office__note {
	font-size: 14px !important;
}

#content .kk-check__who p {
	font-size: 11px !important;
	line-height: 1.4 !important;
}

#content .kk-check__q {
	font-size: 17px !important;
	line-height: 1.6 !important;
}

#content .kk-check__q span:not(.kk-nw) {
	font-size: 12px !important;
}

#content .kk-check__hint {
	font-size: 13px !important;
}

#content .kk-check__result-title {
	font-size: 18px !important;
	line-height: 1.6 !important;
}

#content .kk-check__notes li {
	font-size: 14px !important;
	line-height: 1.8 !important;
}

#content .kk-check__lead {
	font-size: 15px !important;
}

#content .kk-check__line, #content .kk-check__tel {
	line-height: 1.3 !important;
}

#content .kk-check__line {
	font-size: 17px !important;
}

#content .kk-check__line span:not(.kk-nw), #content .kk-check__tel span:not(.kk-nw) {
	font-size: 11.5px !important;
}

#content .kk-check__tel {
	font-size: 20px !important;
}

#content .kk-check__foot {
	font-size: 12px !important;
	line-height: 1.7 !important;
}

#content .kk-line-dialog__close {
	font-size: 20px !important;
	line-height: 1 !important;
}

#content .kk-line-dialog__en {
	font-size: 13px !important;
}

#content .kk-line-dialog__title {
	font-size: 17px !important;
	line-height: 1.6 !important;
}

#content .kk-line-dialog__steps {
	font-size: 13.5px !important;
	line-height: 1.8 !important;
}

#content .kk-line-dialog__alt {
	font-size: 13px !important;
}

#content .kk-topmsg p {
	line-height: 1.95 !important;
}

#content .kk-topmsg__en {
	font-size: 12px !important;
}

#content .kk-topmsg h3 {
	font-size: 17px !important;
}

#content .kk-award__frame figcaption {
	font-size: 13px !important;
	line-height: 1.6 !important;
}

#content .kk-award__frame figcaption span {
	font-size: 11.5px !important;
}

#content .kk-award__badge {
	line-height: 1 !important;
}

#content .kk-award__badge strong {
	font-size: 26px !important;
}

#content .kk-award__badge span {
	font-size: 10px !important;
	line-height: 1.2 !important;
}

#content .kk-topmsg__line-qr {
	line-height: 0 !important;
}

#content .kk-topmsg .kk-topmsg__line-title {
	font-size: 16px !important;
	line-height: 1.6 !important;
}

#content .kk-topmsg__line-title span {
	font-size: 11.5px !important;
}

#content .kk-topmsg .kk-topmsg__line-text {
	font-size: 13.5px !important;
	line-height: 1.7 !important;
}

#content .kk-topmsg__line-btn {
	font-size: 15px !important;
}

@media (max-width: 600px) {
	#content .kk-cta__title {
		font-size: 19px !important;
	}
	#content .kk-section-head__title {
		font-size: 22px !important;
		line-height: 1.5 !important;
	}
	#content .kk-section-head__lead {
		font-size: 14px !important;
	}
	#content .kk-check__q {
		font-size: 16px !important;
	}
	#content .kk-check__result-title {
		font-size: 16px !important;
	}
	#content .kk-topmsg p {
		font-size: 15px !important;
	}
	#content .kk-award__badge strong {
		font-size: 22px !important;
	}
	#content .kk-cta__title {
		font-size: 17px !important;
	}
	#content .kk-cta__lead {
		font-size: 14px !important;
	}
	#content .kk-office__table dd {
		font-size: 14.5px !important;
	}
}

@media (max-width: 600px) {
	#content .kk-cta__title {
		font-size: 15.5px !important;
	}
	#content .kk-topmsg .kk-topmsg__line-title {
		font-size: 15px !important;
	}
	.kk-topmsg__line-title span {
		display: table;
		margin: 0 auto 6px !important;
	}
}

/* メニュー内のプロフィール写真（現在の代表写真に差し替え） */
#menu .face-picture img {
	width: 120px !important;
	height: 120px !important;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 20%;
}

/* ---------- 報酬額の表（サービス・報酬額ページ） ---------- */
#content table.kk-fee {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--kk-line);
	border-top: 3px solid var(--kk-teal);
	background: #fff;
}

#content table.kk-fee th,
#content table.kk-fee td {
	padding: 14px 18px !important;
	border: none;
	border-bottom: 1px solid var(--kk-line);
	text-align: left;
	vertical-align: middle;
}

#content table.kk-fee th {
	background: var(--kk-bg);
	color: var(--kk-teal-dark);
	font-size: 14px !important;
	font-weight: 700;
}

#content table.kk-fee td:first-child {
	font-weight: 700;
	white-space: nowrap;
}

#content table.kk-fee td strong {
	font-size: 20px;
	color: var(--kk-teal-dark);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* スマホ：見出し行を隠し、1件ずつ「サービス名 → 金額」の順に縦に並べる */
@media (max-width: 600px) {
	#content table.kk-fee,
	#content table.kk-fee tbody,
	#content table.kk-fee tr,
	#content table.kk-fee td {
		display: block;
		width: auto;
	}
	#content table.kk-fee tr:first-child {
		display: none;
	}
	#content table.kk-fee tr {
		padding: 14px 16px;
		border-bottom: 1px solid var(--kk-line);
	}
	#content table.kk-fee tr:last-child {
		border-bottom: none;
	}
	#content table.kk-fee td {
		padding: 0 !important;
		border: none;
	}
	#content table.kk-fee td:first-child {
		margin-bottom: 2px;
		color: var(--kk-teal);
		font-size: 14px !important;
		white-space: normal;
	}
	#content table.kk-fee td + td {
		font-size: 14.5px !important;
		line-height: 1.6 !important;
	}
	#content table.kk-fee td strong {
		display: block;
		font-size: 24px;
		line-height: 1.4;
	}
}

/* ---------- 事務所概要（スマホ）：項目名を上、内容を下にして、変な位置で改行させない ---------- */
.kk-about__mail {
	white-space: nowrap;
}

@media (max-width: 600px) {
	#content .kk-about__name {
		font-size: 19px !important;
		line-height: 1.5 !important;
	}
	#content .kk-about__name span {
		display: block;
		margin-top: 2px;
		font-size: 12.5px !important;
		letter-spacing: 0.08em;
	}
	#content .kk-about__list div {
		flex-direction: column;
		gap: 2px;
		padding: 10px 0;
	}
	#content .kk-about__list dt {
		flex: none;
		font-size: 12px !important;
		letter-spacing: 0.08em;
	}
	#content .kk-about__list dd {
		font-size: 15px !important;
	}
	#content .kk-about__link {
		display: block;
		text-align: center;
	}
}

/* ---------- 改行の整え（サイト全体） ----------
   ・見出し・リスト・表・ボタンなど短い文は、行の長さをそろえて1〜2文字だけ次の行に落ちないように
   ・本文の段落は、最後の行が1〜2文字だけにならないように */
body {
	overflow-wrap: break-word;
}

/* メールアドレス・「すべて見る →」は途中で改行しない */
a[href^="mailto:"],
.kk-related__more {
	white-space: nowrap;
}

.kk-related__more {
	display: inline-block;
	max-width: 100%;
	white-space: normal;
	text-wrap: balance;
}

h1, h2, h3, h4, h5, h6,
li, dt, dd, th, td, figcaption, label, button,
.kk-btn, .kk-related__more, .kk-about__link, .kk-check__line, .kk-check__tel,
#content h1, #content h2, #content h3, #content h4 {
	text-wrap: balance;
}

p, #content p, #content li, #content td {
	text-wrap: pretty;
}

#content .kk-hero__title, #content .kk-section-head__title, #content .kk-topmsg__title {
	text-wrap: balance;
}

/* 小さいスマホ（幅360px以下）：長い語が1行に収まらず「？」などが次の行に落ちないよう、見出しを少し小さく */
@media (max-width: 360px) {
	#content h1 {
		font-size: 21px !important;
	}
	#content h2 {
		font-size: 18px !important;
	}
	.kk-hero__sub .kk-btn__sub,
	#content .kk-hero__sub .kk-btn__sub {
		font-size: 11px !important;
		letter-spacing: 0;
	}
}

.kk-hero__clients strong,
.kk-hero__clients span {
	white-space: nowrap;
}

/* 途中で改行しないまとまり（電話番号・数字と単位・段落の最後の数文字） */
.kk-nw {
	white-space: nowrap;
}

/* ---------- スマホ：文字を横幅いっぱいまで入れる（オーナー指示 2026-09-30）----------
   行の長さをそろえる指定・区切りのよい位置での改行をやめ、自然に折り返す。
   電話番号・数字と単位（.kk-nw）とメールアドレスだけは途中で切らない */
@media (max-width: 600px) {
	body *,
	#content h1, #content h2, #content h3, #content h4, #content p, #content li, #content td,
	#content .kk-hero__title, #content .kk-section-head__title, #content .kk-topmsg__title {
		text-wrap: wrap !important;
	}
	.kk-nb {
		display: inline;
	}
	.kk-hero__note-sep {
		display: inline;
		height: auto;
		overflow: visible;
	}
}

/* スマホ：問い合わせ案内の説明文は、文の途中の改行をやめて横幅いっぱいに */
@media (max-width: 600px) {
	.kk-cta__lead br {
		display: none;
	}
}

/* トップの h1（熊本県の建設業許可（新規）申請）：見た目は小さなラベルのまま */
#content h1.kk-hero__eyebrow {
	display: inline-block;
	margin: 0 0 14px !important;
	padding: 3px 12px !important;
	border: none !important;
	border-left: 3px solid var(--kk-orange) !important;
	background: #fff;
	color: var(--kk-teal);
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.7;
	letter-spacing: 0.1em;
}

#content h1.kk-hero__eyebrow::after {
	display: none;
}

@media (max-width: 600px) {
	#content h1.kk-hero__eyebrow {
		font-size: 12px !important;
		letter-spacing: 0.04em;
	}
}

/* ---------- 幅 600px 以下：ヘッダーが途中で改行されないように（2026-09-30）----------
   上の「文字を横幅いっぱいまで入れる」指定がヘッダーの nowrap を上書きし、
   481〜600px で「096-283-／6000」「メ／ニュー」と折れていた。
   電話番号は画面下の固定バーにあるので、ヘッダーでは出さない（480px 以下は以前から非表示） */
@media (max-width: 600px) {
	.kk-header .kk-header-tel {
		display: none !important;
	}
	.kk-header .kk-logo__name,
	.kk-header .kk-menu-btn,
	.kk-header .kk-menu-btn__text {
		white-space: nowrap !important;
		text-wrap: nowrap !important;
	}
	.kk-header .kk-menu-btn {
		margin-left: auto;
		flex: 0 0 auto;
	}
	.kk-header .kk-logo-wrap,
	.kk-header .kk-logo {
		min-width: 0;
	}
}

/* 幅 601〜760px：ロゴ上の一言を省いて、サイト名・電話番号・メニューを1行に収める */
@media (max-width: 760px) {
	.kk-header .kk-logo__tag,
	.kk-header .kk-header-tel__label {
		display: none;
	}
	.kk-header .kk-header__in {
		gap: 14px;
	}
	.kk-header .kk-header-tel,
	.kk-header .kk-header-tel__num,
	.kk-header .kk-menu-btn {
		flex: 0 0 auto;
		white-space: nowrap !important;
		text-wrap: nowrap !important;
	}
}

@media (max-width: 680px) {
	.kk-header .kk-header__in {
		gap: 10px;
	}
	.kk-header .kk-header-tel__num {
		font-size: 18px;
	}
}

@media (max-width: 640px) {
	.kk-header .kk-header-tel {
		display: none !important;
	}
}

/* ---------- よくいただくご相談（トップ、簡易診断の下。tokusya と同じ形・このサイトの色）---------- */
.kk-cases {
	margin: 0 auto 64px;
}

.kk-cases__grid {
	display: grid;
	grid-template-columns: 1fr; /* 本文の幅（860px）では2列だと窮屈なので、横長の1列 */
	gap: 12px;
}

#content a.kk-case {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "no q arrow" "no a arrow";
	column-gap: 18px;
	row-gap: 4px;
	align-items: start;
	background: #fff;
	border: 1px solid var(--kk-line);
	border-radius: 12px;
	padding: 22px 22px 20px;
	text-decoration: none !important;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

#content a.kk-case::after {
	content: "→";
	grid-area: arrow;
	align-self: center;
	color: var(--kk-orange);
	font-weight: 700;
}

#content a.kk-case:hover {
	border-color: var(--kk-teal);
	box-shadow: 0 8px 24px rgba(20, 40, 36, 0.08);
	transform: translateY(-1px);
}

.kk-case__no {
	grid-area: no;
	min-width: 76px;
	font-weight: 800;
	font-size: 11px;
	letter-spacing: 0.12em;
	color: var(--kk-orange);
	border-right: 2px solid var(--kk-orange);
	padding: 3px 14px 3px 0;
	line-height: 1.5;
	white-space: nowrap;
}

.kk-case__q {
	grid-area: q;
	font-weight: 800;
	font-size: 16.5px;
	color: var(--kk-teal-dark);
	line-height: 1.55;
}

.kk-case__a {
	grid-area: a;
	font-size: 14px;
	color: var(--kk-sub);
	line-height: 1.75;
}


@media (max-width: 600px) {
	#content a.kk-case {
		grid-template-columns: 1fr auto;
		grid-template-areas: "no arrow" "q arrow" "a arrow";
		padding: 18px;
	}
	.kk-case__no {
		border-right: 0;
		padding: 0;
	}
}
