/*
 * 株式会社第二章 コーポレートサイト
 */

/* ==========================================================
   Base
   ========================================================== */
:root {
	--key: #ea5758;
	--key-dark: #c74645;
	--text: #464646;
	--muted: #777;
	--line: #e5e5e5;
	--bg-soft: #f5f5f5;
	--container: 1170px;
	--header-h: 90px;
	--header-h-small: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	padding-top: var(--header-h);
	color: var(--text);
	background: #fff;
	font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Hiragino Sans", Meiryo, "メイリオ", sans-serif;
	font-size: 14px;
	line-height: 1.7;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
iframe, video, embed { max-width: 100%; }

a { color: var(--key); text-decoration: none; }
a:hover, a:focus { color: var(--key-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { line-height: 1.4; margin: 0 0 .8em; font-weight: normal; color: #333; }
p { margin: 0 0 1.4em; }
ul, ol { padding-left: 1.6em; margin: 0 0 1.4em; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 15px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; fill: currentColor; }

/* ==========================================================
   Header
   ========================================================== */
.siteHeader {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.1);
	transition: height .3s;
}
.siteHeader_inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
	transition: height .3s;
}
.is-scrolled .siteHeader_inner { height: var(--header-h-small); }

.siteHeader_logo { margin: 0; font-size: 22px; line-height: 1; }
.siteHeader_logo a { display: block; color: #333; text-decoration: none; }
.siteHeader_logo img { display: block; width: auto; max-height: 42px; transition: max-height .3s; }
.is-scrolled .siteHeader_logo img { max-height: 34px; }

.gMenu { display: flex; list-style: none; margin: 0; padding: 0; }
.gMenu > li { position: relative; }
.gMenu a {
	position: relative;
	display: block;
	padding: 10px 1.1em;
	color: #333;
	font-size: 14px;
	text-decoration: none;
}
.gMenu a:hover { color: #333; text-decoration: none; }
.gMenu > li > a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	border-bottom: 1px solid var(--key);
	opacity: 0;
	transition: opacity .2s;
}
.gMenu > li > a:hover::after,
.gMenu > li.current-menu-item > a::after,
.gMenu > li.current-menu-ancestor > a::after,
.gMenu > li.current_page_parent > a::after { opacity: 1; }
.gMenu .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	min-width: 200px;
	list-style: none;
	margin: 0; padding: 0;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.gMenu li:hover > .sub-menu, .gMenu li:focus-within > .sub-menu { display: block; }
.gMenu .sub-menu a:hover { background: var(--bg-soft); }

.menuBtn {
	display: none;
	width: 44px; height: 40px;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 20px;
	cursor: pointer;
}

@media (max-width: 991px) {
	:root { --header-h: 64px; --header-h-small: 56px; }
	.siteHeader_inner { justify-content: center; position: relative; }
	.siteHeader_logo img { max-height: 36px; }
	.is-scrolled .siteHeader_logo img { max-height: 30px; }
	.menuBtn {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		left: 15px; top: 50%;
		transform: translateY(-50%);
	}
	.gMenu_outer {
		position: fixed;
		top: 0; left: 0; bottom: 0;
		z-index: 1100;
		width: 80%;
		max-width: 320px;
		overflow-y: auto;
		background: #fff;
		box-shadow: 2px 0 8px rgba(0,0,0,.2);
		transform: translateX(-105%);
		transition: transform .3s;
	}
	.menu-open .gMenu_outer { transform: none; }
	.menu-open .siteHeader { z-index: 1100; }
	.menu-open::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 1050;
		background: rgba(0,0,0,.4);
	}
	.gMenu { display: block; border-top: 1px solid rgba(0,0,0,.15); margin-top: 56px; }
	.gMenu a { padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,.15); }
	.gMenu > li > a::after { display: none; }
	.gMenu .sub-menu { display: block; position: static; box-shadow: none; }
	.gMenu .sub-menu a { padding-left: 2.4em; }
	.menuClose {
		position: absolute;
		top: 10px; right: 10px;
		width: 40px; height: 40px;
		border: 0;
		background: none;
		font-size: 24px;
		color: #333;
		cursor: pointer;
	}
}
@media (min-width: 992px) { .menuClose { display: none; } }

/* ==========================================================
   Front page
   ========================================================== */
.topHero { border-bottom: 1px solid var(--line); }
.topHero a, .topHero img { display: block; width: 100%; }

.siteContent { padding: 1em 0 1.5em; }
@media (min-width: 768px) { .siteContent { padding: 3.5em 0; } }

.saiyoImg { width: 95%; margin: 0 auto 1em; text-align: center; }
.saiyoImg img { width: 100%; }

.alpa { transition: opacity .3s ease-in-out; }
.alpa:hover { opacity: .6; }

.topBlock { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 0 0 50px; padding: 15px; }
.topBlock_item { text-align: center; }
.topBlock_item img { width: 100%; }
.topBlockttl {
	margin: 0 0 20px;
	font-size: 34px;
	text-align: left;
	color: #333;
}
.topBlockttl::first-letter { font-weight: bold; color: var(--key); }
.topBlockttl span { margin-left: 15px; font-size: 14px; vertical-align: middle; }
@media (max-width: 767px) {
	.topBlock { grid-template-columns: 1fr; gap: 30px; padding: 15px 0; }
}

/* ==========================================================
   Page header / breadcrumb
   ========================================================== */
.pageHeader {
	padding: 1.2em 0;
	background: #eee url(../img/lo_midashi.jpg) center / cover no-repeat;
	color: #333;
}
.pageHeader_title { margin: 0; font-size: 26px; line-height: 1.4; color: #333; }
@media (max-width: 767px) { .pageHeader_title { font-size: 20px; } }

.breadSection { border-bottom: 1px solid var(--line); }
.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	font-size: 11px;
	color: #666;
}
.breadcrumb li + li::before { content: ">"; padding: 0 .6em; color: #999; }
.breadcrumb a { color: var(--key); }

/* ==========================================================
   Layout
   ========================================================== */
.layout { display: block; }
.layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 8.33%; }
.layout.has-sidebar .subSection { max-width: 293px; }
@media (max-width: 991px) {
	.layout.has-sidebar { display: block; }
	.layout.has-sidebar .subSection { max-width: none; margin-top: 3em; }
}

/* ==========================================================
   Post list
   ========================================================== */
.archive-header h1 { font-size: 22px; padding-bottom: .5em; border-bottom: 1px solid var(--line); }
.archive-meta { margin-bottom: 2em; }

.postList_item { padding: 1.6em 0; border-bottom: 1px solid var(--line); }
.postList_item:first-child { padding-top: 0; }

.entry-meta {
	display: flex;
	align-items: center;
	gap: .5em;
	margin-bottom: .6em;
	font-size: 12px;
	color: var(--muted);
}
.entry-meta_term { margin-left: auto; }
.label-term {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 3px;
	background: var(--key);
	color: #fff;
	font-size: 11px;
	line-height: 1.6;
}
a.label-term:hover { background: var(--key-dark); color: #fff; text-decoration: none; }

.postList_title { margin: 0 0 .4em; font-size: 20px; }
.postList_title a { color: #333; }
.postList_title a:hover { color: var(--key); text-decoration: none; }
.postList_title::first-letter, .entry-title::first-letter { color: var(--key); }
.postList_excerpt { display: block; color: #555; font-size: 13px; line-height: 1.7; }
.postList_excerpt:hover { color: #555; text-decoration: none; }
.postList_excerpt p { margin: 0; }

.pagination { margin-top: 2em; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.pagination .page-numbers {
	display: inline-block;
	min-width: 34px;
	padding: 6px 10px;
	border: 1px solid #ddd;
	border-radius: 2px;
	text-align: center;
	color: var(--key);
	line-height: 1.4;
}
.pagination .page-numbers.current { background: var(--key); border-color: var(--key); color: #fff; }
.pagination a.page-numbers:hover { background: var(--bg-soft); text-decoration: none; }

.well { padding: 19px; border: 1px solid #e3e3e3; border-radius: 4px; background: var(--bg-soft); }

/* ==========================================================
   Single
   ========================================================== */
.entry-header { margin-bottom: 2em; }
.entry-title {
	margin: 0;
	padding-bottom: .4em;
	border-bottom: 1px solid var(--line);
	font-size: 24px;
}
.entry-footer { margin-top: 2em; }
.entry-meta-dataList dl { display: flex; gap: 1em; margin: 0 0 .5em; font-size: 12px; }
.entry-meta-dataList dt { font-weight: bold; }
.entry-meta-dataList dd { margin: 0; }

.postNav { display: flex; justify-content: space-between; gap: 1em; margin-top: 2.5em; padding: 0; list-style: none; }
.postNav a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #ddd;
	border-radius: 15px;
	font-size: 13px;
}
.postNav a:hover { background: var(--bg-soft); text-decoration: none; }
.postNav_next { margin-left: auto; }

/* ==========================================================
   Sidebar
   ========================================================== */
.widget { margin-bottom: 2.5em; }
.subSection-title {
	margin: 0 0 .8em;
	padding-bottom: .5em;
	border-bottom: 1px solid var(--line);
	font-size: 16px;
}
.subSection .media { padding: .7em 0; border-bottom: 1px dotted #ddd; }
.subSection .media-heading { margin: 0 0 .2em; font-size: 13px; }
.subSection .media-heading a { color: #333; }
.subSection .media-heading a:hover { color: var(--key); }
.subSection .entry-meta_items { color: var(--muted); font-size: 11px; }
.subSection ul { list-style: none; padding: 0; }
.subSection li { padding: .5em 0; border-bottom: 1px dotted #ddd; }
.subSection li a { color: #333; }

/* ==========================================================
   Entry body (editor content / Bootstrap 3 compatible classes)
   ========================================================== */
/* 本文の文字組みは旧サイト（Lightning）と同じ値にそろえている（個人情報保護方針など） */
.entry-body {
	word-wrap: break-word;
	overflow-wrap: anywhere;
	color: #333;
	font-family: "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", sans-serif;
	font-size: 16px;
	line-height: 1.42857;
}
.entry-body::after { content: ""; display: table; clear: both; }
.entry-body p { margin: 0 0 1.2em; line-height: 1.8; }
.entry-body ul, .entry-body ol { margin: 1.5em 0 1.2em; padding-left: 40px; }
.entry-body li { margin-bottom: .8em; line-height: 1.65; }
.entry-body a { color: var(--key-dark); }
.entry-body h2, .entry-body h3, .entry-body h4, .entry-body h5 {
	margin: 1.5em 0 1.2em;
	color: #333;
	font-weight: 500;
	line-height: 1.7;
}
.entry-body h2 {
	padding: 14px 10px 10px;
	border-top: 2px solid var(--key);
	border-bottom: 1px solid #e9e9e9;
	background: var(--bg-soft);
	font-size: 24px;
}
.entry-body > h2:first-child { margin-top: 0; }
.childSection { margin-top: 3em; }
.entry-body h3 { padding-bottom: 8px; border-bottom: 1px solid #ccc; font-size: 24px; }
.entry-body h4 { padding: 10px 15px 8px; background: #efefef; font-size: 22px; }
.entry-body h5 { padding: 7px 7px 3px; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; background: var(--bg-soft); font-size: 18px; }
.entry-body table:not(.table) { margin-bottom: 0; border-top: 1px solid #e5e5e5; }
.entry-body table:not(.table) th, .entry-body table:not(.table) td {
	padding: 8px;
	border-top: 0;
	border-bottom: 1px solid #e5e5e5;
	font-weight: normal;
	line-height: 1.42857;
	vertical-align: middle;
}
@media (max-width: 767px) {
	.entry-body h2, .entry-body h3 { font-size: 20px; }
	.entry-body h4 { font-size: 18px; }
}

.lead { margin-bottom: 1.2em; font-size: 21px; font-weight: 300; }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.clearfix::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); }

table { border-collapse: collapse; border-spacing: 0; }
.entry-body table, .table { width: 100%; max-width: 100%; margin-bottom: 20px; }
.entry-body th, .entry-body td, .table th, .table td {
	padding: 8px;
	border-top: 1px solid #ddd;
	vertical-align: top;
	text-align: left;
	line-height: 1.6;
}
.table th { font-weight: bold; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background: #f9f9f9; }
@media (max-width: 767px) {
	.entry-body table th, .entry-body table td { display: block; width: 100% !important; height: auto !important; }
	.entry-body table th { border-top: 1px solid #ddd; }
	.entry-body table td { border-top: 0; }
}

.btn {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	cursor: pointer;
}
.btn-primary { background: var(--key); border-color: var(--key-dark); color: #fff; }
.btn-primary:hover { background: var(--key-dark); color: #fff; text-decoration: none; }
.btn-lg { padding: 10px 16px; font-size: 18px; border-radius: 6px; }
.btn a, .btn a:hover { color: #fff; text-decoration: none; }

/* サービスページ */
.serviseBox { display: flex; gap: 30px; margin: 40px 0 60px; }
.serviseBoxImg { flex: 0 0 auto; max-width: 40%; text-align: center; }
.serviseBoxImg img { border: 1px solid #ddd; }
.serviseTxt { flex: 1; }
.entry-body .serviseTxt h2 { margin: 0 0 20px; padding: 0; border: 0; background: none; font-weight: bold; }
.serBtn { display: block; width: 250px; max-width: 100%; margin-top: 1.5em; padding: 0; }
.serBtn a { display: block; padding: 10px; }
@media (max-width: 767px) {
	.serviseBox { display: block; margin: 20px 0 40px; }
	.serviseBoxImg { max-width: none; margin-bottom: 20px; }
}

/* ==========================================================
   Contact Form 7
   ========================================================== */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 input[type="date"],
.wpcf7 select, .wpcf7 textarea {
	width: 100%;
	max-width: 100%;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
	box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
.wpcf7 select { width: auto; }
.wpcf7 .table th { width: 30%; font-weight: normal; }
.req { color: var(--key); font-size: 12px; }
.wpcf7 input[type="submit"] {
	display: block;
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
	padding: 12px 20px;
	border: 0;
	border-radius: 4px;
	background: var(--key);
	color: #fff;
	font: inherit;
	font-size: 16px;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--key-dark); }

/* ==========================================================
   お問い合わせフォーム（app/lib/contact-form.php）
   ========================================================== */
.dcf input[type="text"], .dcf input[type="email"], .dcf input[type="tel"], .dcf select, .dcf textarea {
	width: 100%;
	max-width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
	box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
.dcf select { width: auto; }
.dcf [aria-invalid="true"] { border-color: var(--key); background: #fff6f6; }
.dcf-table th { width: 30%; font-weight: normal; }
.dcf-sublabel { display: block; margin: .3em 0 .2em; font-size: 12px; color: var(--muted); }
.dcf-sublabel + input { margin-bottom: 0; }
.dcf-error { margin: .4em 0 0; color: var(--key-dark); font-size: 13px; }
.dcf-notice { margin: 0 0 1.5em; padding: 12px 16px; border: 1px solid var(--key); border-radius: 4px; background: #fff6f6; color: var(--key-dark); }
.dcf-notice p { margin: 0; }
.dcf-lead { margin-bottom: 1em; }
.dcf-agree { text-align: center; }
.dcf-agree input { margin-right: .4em; }
.dcf-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.5em; }
.dcf-submit, .dcf-back {
	min-width: 240px;
	padding: 12px 20px;
	border: 0;
	border-radius: 4px;
	font: inherit;
	font-size: 16px;
	cursor: pointer;
}
.dcf-submit { background: var(--key); color: #fff; }
.dcf-submit:hover { background: var(--key-dark); }
.dcf-back { background: #eee; color: #333; }
.dcf-back:hover { background: #ddd; }
.dcf-confirm td { white-space: normal; }
.dcf-done { padding: 2em; border: 1px solid var(--line); border-radius: 4px; background: #fafafa; text-align: center; }
.dcf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 767px) {
	.dcf-table th { width: auto; }
	.dcf-submit, .dcf-back { width: 100%; min-width: 0; }
}

/* WordPress から移行した本文の画像 */
.wp-block-image { margin: 0 0 1.4em; }
.wp-block-image figure { margin: 0; }
.wp-block-image .aligncenter { display: table; }
.footerPmark { text-align: center; }

/* ==========================================================
   Footer
   ========================================================== */
.siteFooter {
	margin-top: 0;
	border-top: 3px solid var(--key);
	background: #f9f9f9;
	font-size: 12px;
}
.footerMenu { border-bottom: 1px solid var(--line); }
.footerMenu ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footerMenu li { border-left: 1px solid var(--line); }
.footerMenu li:last-child { border-right: 1px solid var(--line); }
.footerMenu a { display: block; padding: 8px 12px; color: #464646; }
.footerMenu a:hover { color: var(--key); text-decoration: none; }

.footerWidgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 2em 15px; }
.footerWidgets .widget { margin-bottom: 0; }
@media (max-width: 767px) { .footerWidgets { grid-template-columns: 1fr; } }

.copySection { padding: 2em 15px; border-top: 1px solid var(--line); text-align: center; }
@media (max-width: 991px) {
	.footerMenu li { border: 0; }
	.footerMenu li:last-child { border: 0; }
}
