/* =========================================================
 * STEP9-D-2: Product dedicated shell
 * ========================================================= */

body.va-product-template-page {
	margin: 0;
	background: #fbf8f3;
	color: #332e2b;
}

.va-product-template-page .va-site-shell,
.va-product-template-page .va-site-shell * {
	box-sizing: border-box;
}

.va-db-container {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.va-db-header {
	position: relative;
	z-index: 20;
	padding: 24px 0 0;
	background: #fbf8f3;
}

.va-db-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 88px;
	padding: 18px 24px;
	background: #fff;
	border: 1px solid #e8dfd7;
	border-radius: 14px;
	box-shadow: 0 5px 18px rgba(68, 52, 43, 0.05);
}

.va-db-brand {
	display: inline-flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	color: #332e2b !important;
	text-decoration: none !important;
}

.va-db-brand-name {
	font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1.2;
}

.va-db-brand-sub {
	color: #8a7f78;
	font-size: .76rem;
	line-height: 1.5;
}

.va-db-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px 22px;
	font-size: .9rem;
	font-weight: 700;
}

.va-db-nav a,
.va-db-nav span {
	color: #332e2b;
	text-decoration: none;
	white-space: nowrap;
}

.va-db-nav a:hover {
	color: #a96f76;
}

.va-db-nav .is-pending {
	opacity: .72;
	cursor: default;
}

.va-db-main {
	padding: 24px 0 54px;
}

.va-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 9px;
	margin: 0 0 24px;
	color: #8a7f78;
	font-size: .78rem;
	line-height: 1.6;
}

.va-breadcrumb a {
	color: #796e68;
	text-decoration: none;
}

.va-breadcrumb a:hover {
	text-decoration: underline;
}

.va-product-page-header {
	margin: 0 0 18px;
}

.va-product-page-header h1 {
	margin: 0;
	color: #332e2b;
	font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: clamp(1.75rem, 2.7vw, 2.5rem);
	line-height: 1.3;
	letter-spacing: .01em;
}

/* STEP9-K: 商品名はスラッシュ区切りの意味単位で折り返し、語の途中では切らない */
.va-product-page-header .va-product-title-chunk {
	display: inline-block;
	white-space: nowrap;
}

.va-product-page-header .va-product-title-separator {
	white-space: nowrap;
}

/* Product display itself */
.va-product-template-page .va-product-detail {
	max-width: none;
}

.va-product-template-page .va-product-section {
	border-color: #e7ddd4;
}

.va-product-template-page .va-product-section > h2 {
	padding: 0 0 12px;
	background: transparent;
	box-shadow: none;
}

.va-db-footer {
	padding: 0 0 34px;
	background: #fbf8f3;
}

.va-db-footer-inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	padding: 30px 0;
	border-top: 1px solid #e8dfd7;
}

.va-db-footer-brand {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.va-db-footer-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 18px;
}

.va-db-footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px 22px;
	font-size: .82rem;
}

.va-db-footer-nav a {
	color: #706660;
	text-decoration: none;
}

.va-db-footer-nav a:hover {
	text-decoration: underline;
}

.va-db-copyright {
	color: #948983;
	font-size: .78rem;
}

/* Cocoon / theme remnants are not rendered by this template.
 * Defensive rules for elements injected by plugins. */
.va-product-template-page .toc,
.va-product-template-page .toc-container,
.va-product-template-page .related-entry-card-wrap,
.va-product-template-page .related-list,
.va-product-template-page .article-footer,
.va-product-template-page .ad-area,
.va-product-template-page .date-tags,
.va-product-template-page .sns-share,
.va-product-template-page .sns-follow {
	display: none !important;
}

@media (max-width: 834px) {
	.va-db-container {
		width: min(100% - 28px, 1180px);
	}

	.va-db-header {
		padding-top: 14px;
	}

	.va-db-header-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
		padding: 18px;
	}

	.va-db-nav {
		justify-content: flex-start;
		gap: 10px 18px;
	}

	.va-db-main {
		padding-top: 18px;
	}

	.va-db-footer-inner {
		flex-direction: column;
	}

	.va-db-footer-side {
		align-items: flex-start;
	}

	.va-db-footer-nav {
		justify-content: flex-start;
	}
}

@media (max-width: 480px) {
	.va-db-container {
		width: min(100% - 20px, 1180px);
	}

	.va-db-header-inner {
		border-radius: 10px;
		padding: 15px;
	}

	.va-db-brand-name {
		font-size: 1.35rem;
	}

	.va-db-nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		gap: 8px 12px;
		font-size: .84rem;
	}

	.va-product-page-header h1 {
		font-size: 1.65rem;
	}

	.va-db-footer {
		padding-bottom: 18px;
	}
}


/* STEP9-D-3b: ヘッダー込みのファーストビューを少し圧縮 */
@media (min-width: 961px) {
  .va-db-header {
    padding-top: 18px;
  }

  .va-db-header-inner {
    min-height: 76px;
    padding: 14px 22px;
  }

  .va-db-main {
    padding-top: 18px;
  }

  .va-breadcrumb {
    margin-bottom: 16px;
  }

  .va-product-page-header {
    margin-bottom: 14px;
  }
}
