/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/


/* =========================================================
共通項目
========================================================= */

/* ページヘッダーを非表示 */
.page-header {
	display: none;
	height: 0;
	margin: 0;
	padding: 0;
}

/* パンくずリスト */
.breadcrumb a:hover { color: #5c9e72;}
.breadcrumb { margin: 1em 0 0;}
.site-body { padding-top: 2.5em;}

/* 見出しデザイン */
h2 {
	padding: 0.2em 0.5em;
	font-size: 1.4em;
	color: #333;
	background: transparent;
	border-left: solid 5px #236e37;
	border-bottom: solid 1px #236e37;
}
h3 {
	position: relative;
	padding: 0.2em 0.8em;
	font-size: 1.2em;
}
h3:before {
	position: absolute;
	background-color: #236e37;
	border-radius: 1em;
	content: "";
	left: 0%;
	top: 5%;
	bottom: 5%;
	width: .3em;
	height: 80%;
}
h4 {
	font-size: 1.1em;
	color: #236e37;
}
h5 { font-size: 1em;}

/* リンクホバー色 */
.site-body a:hover { color: #5c9e72;}

/* リンク画像のホバーエフェクト */
.site-body a img:hover {
	opacity: 0.7;
	transition: 0.3s ease;
}

/* サイドバーの画像間隔を調整 */
.sub-section aside.widget_media_image {
	margin-bottom: 0.25em;
}
.sub-section aside.widget_media_image:last-child {
	margin-bottom: 0;
}

/* フッターウィジェットエリア */
.footer-widget {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}
.footer-widget .widget { margin: 0 1em;}
.footer-widget h4 {
	margin-bottom: 0.5em;
	font-size: 1.3em;
	font-weight: bold;
	text-align: left;
}
.footer-widget ul {
	padding-left: 0;
	list-style-type: none;
}
.footer-widget a {
	text-decoration: none;
	color: #666;
}

/* "Powered by WordPress" 部分を非表示にする */
.site-footer .site-footer-copyright p:last-child { display: none;}
/* 著作権表示の上に余白を追加 */
.site-footer .site-footer-copyright p:first-child { margin-top: 20px;}

/* フッターの著作権表示と「Powered by WordPress」部分を非表示にする */
/*.container.site-footer-copyright { display: none;}*/
/* フッターの下に空き（余白）を追加 */
/*.site-footer { margin-bottom: 50px;}*/

/* =========================================================
投稿ページ
========================================================= */

/* 日付・更新日・投稿者名を非表示 */
.entry-meta-item-date { display:none;}
.entry-meta-item-updated { display:none;}
.entry-meta-item-author { display:none;}

/* 前後記事の非表示 */
.next-prev { display: none;}

/* =========================================================
固定ページ
========================================================= */

/*:::: ISO22000認証取得 ::::*/
.iso_cert {
	display: flex;
	justify-content: flex-start;
	gap: 10px;
	flex-wrap: wrap;
}
.iso_cert_img {
	text-align: center;
	flex: 0 1 48%;
}
.iso_cert_img img {
	max-width: 100%;
	height: auto;
	padding: 0.8em 0 0.1em;
}
.iso_caption {
	font-size: 0.8em;
	color: #666;
}

/*:::: バーチャル工場案内 ::::*/
.page-id-3014 #breadcrumb {
	display: none;
	height: 0;
	margin: 0;
	padding: 0;
}
.page-id-3014 .site-body { padding-top: 0;}
.page-id-3014 .breadcrumb {
	margin-top: 0;
	margin-bottom: 0;
}

/*:::: 一般事業主行動計画 ::::*/
.company_ap {
	display: grid;
	grid-template-columns: 10em 1fr;
	row-gap: 0.5em;
	column-gap: 1em;
}
.company_ap dt {
	margin: 0;
	font-weight: normal;
}
.company_ap dd { margin: 0;}

/*:::: お問い合わせフォーム ::::*/
.cf7-custom-form {
	max-width: 100%;
	margin: 0 auto;
	background: #f9f9f9;
	padding: 2em 2em 0;
	border-radius: 8px;
}
/* 項目名 */
.cf7-custom-form label {
	display: block;
	margin-bottom: 1.5em;
	font-size: 1em;
	color: #333;
}
/* 必須・任意マーク */
.CF7_req {
	background: #ff6600;
	color: #fff;
	padding: 0.1em 0.5em;
	border-radius: 3px;
	font-size: 0.8em;
	margin-right: 0.3em;
}
.CF7_unreq {
	background: #b2b2b2;
	color: #fff;
	padding: 0.1em 0.5em;
	border-radius: 3px;
	font-size: 0.8em;
	margin-right: 0.3em;
}
.CF7_req,
.CF7_unreq {
	display: inline-block;
	margin-right: 0.4em;
	margin-bottom: 0.2em;
	padding: 0.2em 0.6em;
	line-height: 1.4;
}
/* 入力フィールド */
.cf7-custom-form input[type="text"],
.cf7-custom-form input[type="email"],
.cf7-custom-form textarea {
	width: 100%;
	padding: 0.6em;
	font-size: 1em;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	margin-top: 0.5em;
}
.cf7-custom-form textarea {
	min-height: 7.5em;
	resize: vertical;
}
.cf7-custom-form .checkbox-group {
	margin: 1.8em 0 0.5em;
	font-size: 1em;
}
.cf7-custom-form .checkbox-group p { margin-bottom: 0;}
.cf7-custom-form .center { text-align: center;}
/* プレースホルダー */
input::placeholder,
textarea::placeholder {
	color: #C9C9C9;
	opacity: 1;
}
/* 送信ボタン */
input[type="submit"].btn-primary {
	background: #236e37;
	border: none;
	color: #fff;
	padding: 0.75em 2.5em;
	font-size: 1.1rem;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.3s ease;
}
input[type="submit"].btn-primary:hover { background: #5c9e72;}

/*:::: 製造中止商品のお知らせ ::::*/
html { overflow-y: scroll;} /*常にスクロールバーを表示（ズレ防止）*/
.cp_box *, .cp_box *:before, .cp_box *:after {
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
.cp_box {
	width: auto;
	margin: 2em auto;
}
.cp_box label {
	display: block;
	position: relative;
	cursor: pointer;
	width: 80%;
	margin: auto;
	padding: 0.3em 1em;
	font-weight: bold;
	text-align: center;
	color: #333;
	border: 1px solid #333;
	border-radius: 3px;
	transition: all 0.3s;
}
.cp_box label:hover {
	color: #fff;
	background: #333;
	transition: all 0.3s;
}
.cp_box label::after { color: #333;}
.cp_box label:hover::after { color: #fff;}
.cp_box input:checked ~ label::after { color: #333;}
.cp_box input:checked ~ label:hover::after { color: #fff;}
.cp_box input { display: none;}
.cp_box .cp_container {
	position: relative;
	z-index: 10;
	overflow: hidden;
	height: 0;
	margin-top: -1px;
	background: rgba(255, 255, 255, 0.5);
	transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
}
.cp_box input:checked ~ div {
	transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
}
.cp_box input:checked ~ div.cp_container { height: auto;}

/* =========================================================
カスタム投稿タイプ
========================================================= */

/*:::: 商品リスト（single-product.php） ::::*/
#product .cbox {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	align-items: flex-start;
}
.photo_area {
	flex: 0 0 310px;
	margin: 0;
	text-align: center;
}
.photo_area p { margin: 0;}
.photo_area p img {
	width: 300px;
	padding: 10px;
	border: 1px solid #ccc;
}
/* single-product.php では h3 の装飾をリセット */
.single-product h3 {
	all: unset;
	font-size: 1.2em;
	font-weight: bold;
}
.single-product h3:before { display: none;}
.prod_caption {
	font-size: 0.8em;
	color: #666;
}
.cap_area {
	flex: 1;
	min-width: 250px;
	text-align: left;
}
.cap_area dl {
	display: grid;
	grid-template-columns: 7em 1fr;
	row-gap: 0.5em;
	column-gap: 0.5em;
	margin-bottom: 1.5em;
	padding: 0;
}
.cap_area dt {
	font-size: 0.9em;
	color: #666;
}
.cap_area dd {
	margin: 0;
	font-size: 0.9em;
}
.product-special-note {
	font-size: 0.9em;
	font-weight: bold;
	color: #FF0000;
}
.detail_area { margin: 1.5em 0 3em;}
.detail_small_txt {
	font-size: 0.9em;
	line-height: 1.5;
}

/*:::: カテゴリー一覧（taxonomy-prod_cat.php taxonomy-prod_tag.php） ::::*/
.product-list-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	margin-top: 1em;
}
.product-item {
	display: flex;
	box-sizing: border-box;
	width: calc(50% - 1em);
	padding: 1em 0.6em;
	gap: 0.5em;
	align-items: flex-start;
	background: #f9f9f9;
}
.product-img-link {
	display: flex;
	flex: 0 0 120px;
	align-items: flex-start;
}
.product-img-wrap {
	box-sizing: border-box;
	padding: 4px;
	border: 1px solid #ccc;
	background: #fff;
}
.product-img-link img {
	display: block;
	width: 100%;
	height: auto;
}
.product-info { flex: 1;}
.product-title {
	margin-bottom: 0.8em;
	padding: 0;
	font-size: 1em;
	font-weight: bold;
	color: #333;
}
.product-title:before { content: none;}
.product-title a {
	font-weight: bold;
	color: #333;
	text-decoration: none;
}
.product-title a:hover { color: #5c9e72;}
.product-meta {
	margin: 0;
	padding: 0;
	font-size: 0.8em;
	line-height: 1.4;
	list-style: none;
}
.product-meta li {
	margin-bottom: 0.2em;
	line-height: 1.2 !important;
}
@media (max-width: 768px) {
	.product-item {
	width: 100%;
	}
}

/*:::: CPT「product」のアーカイブページ（archive-product.php） ::::*/
.pagination {
	margin-top: 20px;
	text-align: left;
}
.pagination .page-numbers {
	display: inline-block;
	margin: 0 5px;
	padding: 5px 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
}
.pagination .page-numbers.current {
	background-color: #236e37;
	color: #fff;
}

/*:::: ランディングページ（page-lp.php） ::::*/
.page-template-page-lp .wp-block-image {
	margin-bottom: 50px;
	text-align: center;
}
.page-template-page-lp .wp-block-image img {
	display: inline-block;
}
.lp-main a img:hover {
	opacity: 0.7;
	transition: 0.3s ease;
}