/* =========================================================
   Base: typography, page width, header, footer
   (Bootstrap 5.3 reboot/grid is loaded before this file.)
   ========================================================= */

:root {
	--kb-font: "Noto Sans CJK JP", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	--kb-font-display: "LINE Seed JP App_OTF", "Noto Sans JP", sans-serif;
	--kb-blue: #4169e1;
	--kb-yellow: #fdc500;
	--kb-red: #f93740;
	--kb-footer-bg: #b2eff1;
	--kb-copy-bg: #4e98d9;
}

body {
	font-family: var(--kb-font);
	font-size: 12px;
	-webkit-text-size-adjust: 100%;
}

h2 {
	color: var(--kb-blue);
	font-family: var(--kb-font-display);
	font-weight: 700;
}

ul { list-style: none; }
li { padding: .5em .5em .5em 0; }

/* Centered page width that follows the usual breakpoints */
.kb-wrap,
.kb-masthead,
.kb-footer__inner {
	width: 100%;
	margin-inline: auto;
	padding-inline: 12px;
}
@media (min-width: 576px)  { .kb-wrap, .kb-masthead, .kb-footer__inner { max-width: 540px; } }
@media (min-width: 768px)  { .kb-wrap, .kb-masthead, .kb-footer__inner { max-width: 720px; } }
@media (min-width: 992px)  { .kb-wrap, .kb-masthead, .kb-footer__inner { max-width: 960px; } }
@media (min-width: 1200px) { .kb-wrap, .kb-masthead, .kb-footer__inner { max-width: 1140px; } }
@media (min-width: 1400px) { .kb-wrap, .kb-masthead, .kb-footer__inner { max-width: 1320px; } }

/* Thick accent rule under section headings */
.kb-rule {
	margin: 1rem 0;
	border: 0;
	border-top: 14px solid var(--kb-yellow);
	opacity: 1;
}
.kb-rule--white { border-top-color: #fff; }

/* ---------- Header ---------- */
.kb-masthead-sp {
	display: flex;
	width: 100%;
	margin-inline: auto;
	padding: 4px 12px;
	background: #fff;
}
.kb-masthead-sp__logo { max-height: 50px; }
@media (min-width: 576px) { .kb-masthead-sp { max-width: 540px; } }
@media (min-width: 768px) { .kb-masthead-sp { display: none; } }

.kb-masthead { display: none; }
@media (min-width: 576px) { .kb-masthead { display: block; } }

.kb-masthead__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.kb-masthead__brand {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}
.kb-masthead__brand img { display: block; }
@media (min-width: 768px) {
	.kb-masthead__brand { margin-bottom: 0; margin-right: auto; }
}
.kb-masthead__tel { display: flex; align-items: flex-start; }
.kb-masthead__tel img { display: block; }

.kb-masthead__nav {
	display: flex;
	justify-content: flex-end;
	margin-bottom: .5rem;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.2;
}
.kb-masthead__nav ul {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}
.kb-masthead__nav li {
	background: url("../img/lpb/menu-arrow.png") no-repeat left center;
}
.kb-masthead__nav a {
	display: block;
	padding: .5rem 1rem;
	border-radius: 6px;
	color: #111;
	text-decoration: none;
}

/* ---------- Footer ---------- */
.kb-footer { background: var(--kb-footer-bg); }
.kb-footer__inner { padding-block: 3rem; }
.kb-footer__row {
	display: flex;
	flex-wrap: wrap;
	margin-inline: -12px;
}
.kb-footer__col {
	flex: 0 0 auto;
	width: 100%;
	padding-inline: 12px;
}
.kb-footer__col--half { width: 50%; }
@media (min-width: 768px) {
	.kb-footer__col { width: 25%; }
}
.kb-footer__logo { display: block; width: 75%; }
@media (min-width: 576px) {
	.kb-footer__logo { width: auto; margin-bottom: 1rem; }
}
.kb-footer__links li { padding: 6px 6px 6px 0; }

.kb-copyright {
	padding: .5rem 0;
	background: var(--kb-copy-bg);
	text-align: center;
}
.kb-copyright p { margin: 0; color: #fff; }

/* Phone bar fixed to the bottom of the screen on phones */
.kb-callbar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	text-align: center;
}
.kb-callbar img { display: block; max-width: 100%; }
@media (min-width: 736px) {
	.kb-callbar img { display: none; }
}
