/*
Theme Name: Welcart Simple Plus 子テーマ
Template: welcart_simple-plus
Description: Welcart Simple Plus の子テーマ
Version: 1.0.7
*/

/* ============================================================
   黒バック・白文字・明朝ベース（toka1のwaon-blackと同調）
   テーマのCSS変数を上書きして配色・フォントを変更する
   ============================================================ */
:root {
	/* 明朝フォント（waon-blackと同じスタック） */
	--base-font-family: "Yu Mincho", "游明朝体", "YuMincho", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", serif;
	--content-title-font-family: var(--base-font-family);

	/* 基本配色（黒バック・白文字） */
	--general-text-color: #fff;
	--general-main-bg-color: #000;
	--main-bg-color: #000;
	--main-base-bg-color: #000;
	--front-back-grey: #111;

	/* ヘッダー・メニュー */
	--wcsp-menu-background-color: #000;
	--header-bg-color: #000;
	--header-after-bg-color: #000;
	--header-before-text-color: #fff;
	--header-after-text-color: #fff;
	--header-navlink-text-color: #fff;
	--global-menu-text-color: #fff;
	--global-menu-sub-bg-color: #000;
}

/* Bootstrap側のbody変数も上書き */
body {
	--bs-body-bg: #000;
	--bs-body-color: #fff;
	--bs-body-font-family: var(--base-font-family);
	background-color: #000;
	color: #fff;
}

/* 白背景が直接指定されている部品 */
.card {
	background-color: #000;
	color: #fff;
}

/* --- ボタン調整（黒背景化に伴う視認性の確保） --- */

/* テーマ側のボタン変数を濃グレー背景×白文字に固定（背景色が薄くならないように） */
:root {
	--btn-bg-color: #424242;
	--btn-text-color: #fff;
	--btn-hover-bg-color: #6c6c6c;
	--btn-hover-text-color: #fff;
}

/* 背景なしボタンの黒文字が黒背景に沈まないように白文字へ */
.btn {
	color: #fff;
}

/* 白系背景のボタンは黒文字に戻す（白文字×白背景の防止） */
.btn-light,
.btn-outline-light:hover,
.btn-outline-light:focus {
	color: #000;
}

/* 黒枠ボタン（View More等）：背景を常に黒にして、どの背景色の上でも見えるように */
.btn-outline-dark {
	color: #fff;
	background-color: #000;
	border-color: #fff;
}
.btn-outline-dark:hover,
.btn-outline-dark:focus {
	color: #000;
	background-color: #fff;
	border-color: #fff;
}

/* --- フロントページ（simple_plusのレイアウトにtoka1のコンテンツ） --- */

/* 各セクションの余白 */
.front-page .front-section {
	margin-block: 4rem;
}

/* 事業一覧：画像の比率を統一（PC4列/SP2列はg-colクラスで対応済み） */
.business-list .business-item img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.business-list .business-item .business-name {
	margin-top: 0.75rem;
}
.business-list .business-item a {
	text-decoration: none;
	color: inherit;
}

/* 新着情報リスト */
.front-news-list {
	max-width: 800px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.front-news-list li {
	display: flex;
	gap: 1.5em;
	align-items: baseline;
	padding: 1em 0;
	border-bottom: 1px solid #5c5c5c;
}
.front-news-list li a {
	color: inherit;
}
@media screen and (max-width: 767px) {
	.front-news-list li {
		flex-direction: column;
		gap: 0.25em;
	}
}

/* --- 商品カード画像：比率がバラバラでも正方形に統一し、ゴールドの枠線で囲う --- */
.new-items .card-imag-top,
.item-list .card-imag-top {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 1px solid #d4af37;
	box-sizing: border-box;
}
.new-items .card-imag-top .card-image,
.item-list .card-imag-top .card-image {
	width: 100%;
	height: 100%;
}
.new-items .card-imag-top img,
.item-list .card-imag-top img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* スマホ時タイトル縮小 */
@media screen and (max-width: 767px) {
	.main-logo .navbar-brand a {
		font-size: 1.2rem !important;
	}
}

/* --- 商品ラインナップ（商品概要.pdfの商品） --- */
.toka-lineup {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.5rem 2rem;
	margin-top: 1.5rem;
}
.toka-lineup .lineup-image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 1.25rem;
	border: 1px solid #d4af37;
	box-sizing: border-box;
}
.toka-lineup .lineup-image img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}
.toka-lineup .lineup-name {
	margin: 0.75rem 0 0.25rem;
	font-size: 1.05rem;
}
.toka-lineup .lineup-price {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
}
.toka-lineup .lineup-text {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.7;
}
@media screen and (max-width: 767px) {
	.toka-lineup {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem 1rem;
	}
}

/* --- こだわりの素材（サジー・イチイ・肉苁蓉） --- */
.toka-materials {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.5rem 2rem;
	margin-top: 1.5rem;
}
.toka-materials .material-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 1px solid #d4af37;
	box-sizing: border-box;
}
.toka-materials .material-name {
	margin: 0.75rem 0 0.25rem;
	font-size: 1.05rem;
}
.toka-materials .material-text {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.7;
}
@media screen and (max-width: 767px) {
	.toka-materials {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

/* --- 商品一覧：PCでも商品名・価格を画像の下に表示する ---
   親テーマはPC（992px以上）で白文字を画像に重ねるため、白背景の商品画像だと文字が読めない。
   スマホと同じく画像の下に出す */
@media screen and (min-width: 992px) {
	.item-category .card::before,
	.new-items .card::before {
		display: none;
	}
	.item-category .card .card-body,
	.new-items .card .card-body {
		position: relative;
		bottom: auto;
		padding: 1rem 0;
	}
	.item-category .card .card-body .card-title,
	.item-category .card .card-body .card-text,
	.new-items .card .card-body .card-title,
	.new-items .card .card-body .card-text {
		color: #fff;
	}
	.item-category .card .card-body .card-text .field_cprice,
	.new-items .card .card-body .card-text .field_cprice {
		color: var(--general-caption-color, #a5a5a5);
	}
}

/* 商品カードの抜粋文 */
.card-body .item-excerpt {
	margin: 0.25rem 0 0.5rem;
	font-size: 0.8rem;
	line-height: 1.6;
	opacity: 0.85;
}
