/*
Theme Name: Welcart Simple Plus 子テーマ BOU
Template: welcart_simple-plus
Description: BOU（3WAY防災寝具）サンプル用子テーマ。クールグレー×ディープネイビーの柔らかいテキスタイル系デザイン。
Version: 1.0.9
*/

/* ============================================================
   デザイン変数（クールグレー×ディープネイビー）
   ============================================================ */
:root {
	--bou-navy: #24364d;
	--bou-navy-light: #46608a;
	--bou-bg-grey: #eef1f4;
	--bou-text-sub: #6a7480;
	--bou-ph-bg: #dde3e9;
	--bou-radius: 16px;
}

/* ============================================================
   ヘッダーを最初からスクロール後（.scroll-in付与時）の状態にする
   ※親テーマはスクロール前、透明背景＋白文字で表示するため
   ============================================================ */
:root {
	/* スクロール前のヘッダー文字色（メニュー・アイコン・SPトグルボタンに波及） */
	--header-before-text-color: #333;
}

/* 背景を最初からscroll-in時と同じ白に */
header#header {
	background-color: var(--header-after-bg-color, #fff);
}

/* ロゴ画像の白抜き反転（brightness(0) invert(1)）を無効化 */
header#header.every .navbar-brand {
	-webkit-filter: none !important;
	filter: none !important;
}

/* サイト名テキストロゴもスクロール後の色で表示 */
header#header .main-logo a {
	color: var(--header-after-text-color, #424242);
}

/* スクロール前用のSPロゴ（白抜き版）は使わず通常ロゴを表示 */
header#header .logo.scroll-before {
	display: none;
}

header#header .logo.scroll-before + .default {
	opacity: 1;
}

/* サイト名ロゴの文字サイズ（PC: 1.5rem / スマホ: 1.1rem） */
header .navbar-brand {
	font-size: 1.5rem;
}

@media screen and (max-width: 767px) {
	header .navbar-brand {
		font-size: 1.1rem;
	}
}

/* ============================================================
   共通セクション
   ============================================================ */
.bou-section {
	padding: 80px 24px;
}

.bou-section-inner {
	max-width: 1080px;
	margin: 0 auto;
}

/* 背景色を交互に切り替える */
.bou-section.is-grey {
	background-color: var(--bou-bg-grey);
}

.bou-section-head {
	text-align: center;
	margin-bottom: 48px;
}

.bou-section-num {
	display: inline-block;
	background-color: var(--bou-navy);
	color: #fff;
	font-size: 0.7rem;
	letter-spacing: 0.25em;
	border-radius: 999px;
	padding: 6px 20px;
	margin-bottom: 16px;
}

.bou-section-title {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--bou-navy);
	margin: 0 0 8px;
}

.bou-section-en {
	font-size: 0.75rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--bou-text-sub);
	margin: 0;
}

/* 仮画像（/img/ 内の写真。実写写真に差し替え前提） */
.bou-ph {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	-o-object-fit: cover;
	object-fit: cover;
	background-color: var(--bou-ph-bg);
	border-radius: var(--bou-radius);
}

/* ============================================================
   ヒーロー
   ============================================================ */
.bou-hero {
	background-color: var(--bou-bg-grey);
	padding: 70px 24px;
}

.bou-hero-inner {
	max-width: 1200px;
	margin: 0 auto;
}

/* メインビジュアル画像（PC横長・SP正方形はpicture要素で出し分け） */
.bou-hero-kv {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--bou-radius);
}

.bou-hero-btn {
	text-align: center;
	margin-top: 32px;
}

.bou-hero-btn a {
	display: inline-block;
	background-color: var(--bou-navy);
	color: #fff;
	font-size: 0.9rem;
	letter-spacing: 0.15em;
	border-radius: 999px;
	padding: 18px 60px;
	text-decoration: none;
	-webkit-transition: background-color 0.25s;
	transition: background-color 0.25s;
}

.bou-hero-btn a:hover {
	background-color: var(--bou-navy-light);
	color: #fff;
}

/* ============================================================
   コンセプト
   ============================================================ */
.bou-concept-text {
	max-width: 720px;
	margin: 0 auto 48px;
	line-height: 2.2;
	text-align: center;
}

.bou-concept-cases {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bou-concept-cases li {
	background-color: #fff;
	border-radius: var(--bou-radius);
	padding: 20px;
	-webkit-box-shadow: 0 4px 16px rgba(36, 54, 77, 0.08);
	box-shadow: 0 4px 16px rgba(36, 54, 77, 0.08);
}

.bou-concept-cases h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--bou-navy);
	margin: 16px 0 8px;
}

.bou-concept-cases p {
	font-size: 0.85rem;
	color: var(--bou-text-sub);
	line-height: 1.9;
	margin: 0;
}

/* ============================================================
   3WAYステップ
   ============================================================ */
.bou-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bou-steps li {
	background-color: var(--bou-bg-grey);
	border-radius: var(--bou-radius);
	padding: 24px;
}

.bou-step-num {
	display: inline-block;
	background-color: var(--bou-navy);
	color: #fff;
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	border-radius: 999px;
	padding: 6px 16px;
	margin-bottom: 16px;
}

.bou-steps h3 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--bou-navy);
	margin: 16px 0 10px;
}

.bou-steps p {
	font-size: 0.85rem;
	line-height: 1.9;
	color: var(--bou-text-sub);
	margin: 0;
}

/* ============================================================
   特徴・生地
   ============================================================ */
.bou-feature-list {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	gap: 14px;
	list-style: none;
	margin: 0 0 56px;
	padding: 0;
}

.bou-feature-list li {
	background-color: #fff;
	color: var(--bou-navy);
	border: 1px solid var(--bou-navy);
	border-radius: 999px;
	padding: 12px 28px;
	font-size: 0.9rem;
	letter-spacing: 0.06em;
}

.bou-fabric {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

.bou-fabric-item {
	background-color: #fff;
	border-radius: var(--bou-radius);
	padding: 24px;
	-webkit-box-shadow: 0 4px 16px rgba(36, 54, 77, 0.08);
	box-shadow: 0 4px 16px rgba(36, 54, 77, 0.08);
}

.bou-fabric-item h3 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--bou-navy);
	margin: 16px 0 6px;
}

.bou-fabric-spec {
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	color: var(--bou-navy-light);
	margin: 0 0 10px;
}

.bou-fabric-item > p:last-child {
	font-size: 0.85rem;
	line-height: 1.9;
	color: var(--bou-text-sub);
	margin: 0;
}

/* ============================================================
   商品仕様テーブル
   ============================================================ */
.bou-spec-table {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	border-collapse: separate;
	border-spacing: 0;
	background-color: #fff;
	border-radius: var(--bou-radius);
	overflow: hidden;
	-webkit-box-shadow: 0 4px 16px rgba(36, 54, 77, 0.08);
	box-shadow: 0 4px 16px rgba(36, 54, 77, 0.08);
}

.bou-spec-table th,
.bou-spec-table td {
	padding: 16px 24px;
	border-bottom: 1px solid var(--bou-bg-grey);
	font-size: 0.9rem;
	line-height: 1.9;
	text-align: left;
	vertical-align: top;
}

.bou-spec-table tr:last-child th,
.bou-spec-table tr:last-child td {
	border-bottom: none;
}

.bou-spec-table th {
	width: 9em;
	color: var(--bou-navy);
	font-weight: 700;
	white-space: nowrap;
}

/* ============================================================
   新着情報
   ============================================================ */
.bou-news-list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 760px;
}

.bou-news-list li {
	border-bottom: 1px solid #d5dbe1;
}

.bou-news-list a {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 28px;
	padding: 16px 4px;
	text-decoration: none;
	color: inherit;
}

.bou-news-list a:hover .bou-news-title {
	color: var(--bou-navy-light);
}

.bou-news-date {
	color: var(--bou-text-sub);
	font-size: 0.85rem;
	white-space: nowrap;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media screen and (max-width: 767px) {
	.bou-section {
		padding: 56px 24px;
	}

	.bou-concept-cases,
	.bou-steps,
	.bou-fabric {
		grid-template-columns: 1fr;
	}

	.bou-feature-list {
		margin-bottom: 40px;
	}
}

/* ============================================================
   右下追随の購入バナー（キルティング風・フロントページのみ）
   ============================================================ */
.bou-buy-tag {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	display: block;
	width: 106px;
	padding: 18px 0 15px;
	background: radial-gradient(130% 110% at 50% 0%, var(--bou-navy-light) 0%, var(--bou-navy) 70%);
	border-radius: 24px;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(36, 54, 77, .3);
	transition: transform .3s ease, box-shadow .3s ease;
}

/* 布団のキルティング風ステッチ（内側の破線） */
.bou-buy-tag::before {
	content: "";
	position: absolute;
	top: 6px;
	right: 6px;
	bottom: 6px;
	left: 6px;
	border: 1.5px dashed rgba(255, 255, 255, .45);
	border-radius: 18px;
	pointer-events: none;
}

/* 三日月と星（おやすみモチーフ）。ゆっくり上下にふわふわ */
.bou-buy-icon {
	display: block;
	width: 32px;
	margin: 0 auto 7px;
	animation: bou-buy-float 3.5s ease-in-out infinite;
}

.bou-buy-icon svg {
	width: 100%;
	height: auto;
	stroke: #fff;
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bou-buy-jp {
	display: block;
	color: #fff;
	font-size: 11.5px;
	letter-spacing: .12em;
	line-height: 1.6;
}

/* ホバーで布団のようにふわっと浮く */
.bou-buy-tag:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 26px rgba(36, 54, 77, .35);
}

@keyframes bou-buy-float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-3px);
	}
}

@media screen and (max-width: 767px) {
	.bou-buy-tag {
		right: 12px;
		bottom: 12px;
		width: 88px;
		padding: 14px 0 12px;
		border-radius: 20px;
	}

	.bou-buy-icon {
		width: 26px;
	}

	.bou-buy-jp {
		font-size: 10.5px;
	}
}

/* ============================================================
   ショップ用カートアイコン（コーポHP共通ヘッダーに追加）
   - 固定表示でハンバーガーの左に置く。位置・色は実機で微調整する。
   - マークアップは Welcart の incart テンプレ（カートSVG＋件数 .total-quant）
   ============================================================ */
.shop-cart-icon {
	position: fixed;
	top: 22px;      /* ハンバーガーに対する縦位置（実機調整値） */
	right: 104px;   /* ハンバーガー(右端〜約82px)の左に逃がす。重なり回避 */
	z-index: 10001; /* .hamburger(z-index:10000)より前面 */
	line-height: 1;
}
.shop-cart-icon a {
	position: relative;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}
.shop-cart-icon svg {
	width: 24px;
	height: auto;
	display: block;
}
/* カート件数バッジ */
.shop-cart-icon .total-quant {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #b3272d; /* コーポの赤帯に合わせる想定。実機で調整 */
	color: #fff;
	font-size: 10px;
	line-height: 16px;
	text-align: center;
	box-sizing: border-box;
}

/* スマホ：ハンバーガーが右端に寄るのに合わせ、カートを少し右へ（干渉しない範囲） */
@media (max-width: 680px) {
	.shop-cart-icon {
		right: 80px;
	}
}
/* メニュー展開時：赤パネル上でも見えるようカートアイコンを白にする
   （incartのSVGは fill="#777" 属性だが、CSSの fill が属性より優先される） */
body.menu-open .shop-cart-icon svg path,
body.menu-open .shop-cart-icon svg circle {
	fill: #fff;
}

/* ============================================================
   ショップ トップ＝全商品一覧（front-page.php / .towaito-shop）
   当面2〜3商品想定。中央寄せのシンプルカード。
   ============================================================ */
/* 詳細度を .front-page section:first-child（親テーマ）より上げて余白を勝たせる */
.front-page.towaito-shop .towaito-shop-sec {
	max-width: 1120px;
	margin: 0 auto;
	padding: 120px 24px 90px; /* 上は固定ヘッダーを避ける余白 */
}
.towaito-shop-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, 300px);
	justify-content: start; /* 左から詰める（折り返し時も下段は左揃え） */
	gap: 48px 40px;
	max-width: 980px;       /* 3列(300*3+40*2)がちょうど収まる幅。margin autoでブロック自体は中央 */
	margin: 48px auto 0;
	list-style: none;
	padding: 0;
}
.towaito-shop-item {
	max-width: 100%;
}
.towaito-shop-card {
	display: block;
	text-decoration: none;
	color: inherit;
}
.towaito-shop-thumb {
	overflow: hidden;
	border-radius: 8px;
	background: #f2ede9;
}
.towaito-shop-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform .4s ease;
}
.towaito-shop-card:hover .towaito-shop-thumb img {
	transform: scale(1.04);
}
.towaito-shop-name {
	margin: 18px 0 6px;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .04em;
	color: #231815;
	line-height: 1.5;
}
.towaito-shop-price {
	font-size: .95rem;
	letter-spacing: .03em;
	color: #b3272d;
}
.towaito-shop-empty {
	text-align: center;
	padding: 80px 0;
}
@media (max-width: 680px) {
	.front-page.towaito-shop .towaito-shop-sec {
		padding: 96px 18px 60px;
	}
	.towaito-shop-list {
		grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
		gap: 28px 18px;
		max-width: 100%;
	}
}

/* ショップのフッター調整（子テーマCSS＝ショップのみ適用。コーポ本体には影響しない）
   ① 親テーマ footer{max-width:980px;margin:5.7rem auto 0} が全幅フッターを箱詰めするため全幅に戻す
   ② Bootstrapのリンク色に負けて暗くなるため白に固定 */
.footer {
	max-width: none;
	margin: 96px 0 0; /* 全ショップページ共通：フッター上に余白（左右0で全幅維持） */
}
.footer a,
.footer-nav a,
.footer-nav .en,
.footer-nav .ja,
.footer-copy {
	color: #fff;
}
