/*
 * Content pages without a Figma design: About, Contact, 取扱い店舗.
 * Styles the pages' own block classes in the tone of the model listing pages.
 */
.bp-page {
	--bp-gutter: clamp(64px, calc((100vw - 1320px) * .16 + 64px), 160px);
	--bp-text: #111827;
	--bp-sub: #4b5563;
	--bp-muted: #6b7280;
	--bp-line: #e5e7eb;
	padding: 64px var(--bp-gutter) 96px;
	color: var(--bp-text);
	font-family: "Noto Sans JP", sans-serif;
}

.bp-page :where(h1, h2, h3, p, figure) {
	margin: 0;
}

.bp-page a {
	text-decoration: underline;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.bp-page a:hover {
	opacity: .7;
}

.bp-title,
.bp-page--contact h1 {
	font: 800 32px / 1.5 "M PLUS 1p", sans-serif;
}

.bp-title {
	margin-bottom: 40px;
	text-align: center;
}

.bp-title::after,
.bp-page--contact h1::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin: 12px auto 0;
	background: var(--ink);
}

/* About */
.bp-page--about .bp-content {
	max-width: 1200px;
	margin-inline: auto;
}

.bp-page--about .about-wrap {
	padding: 0;
}

/* As on the old site, the heading sits left-aligned in the empty left side of the photo.
   The bag starts at about 48% of the frame from 768px up, so the text stays within 46%. */
.bp-page--about .hero-img {
	min-height: clamp(280px, 32vw, 480px);
	justify-content: flex-start;
	padding-inline: clamp(24px, 7%, 96px);
	border-radius: 18px;
	overflow: hidden;
}

.bp-page--about .hero-img .wp-block-cover__inner-container {
	width: auto;
	max-width: 46%;
}

.bp-page--about .hero-img h1 {
	color: var(--bp-text);
	/* Same face as the old site. Shin Maru Go is served by the XServer TypeSquare plugin,
	   which only runs on the production domain; elsewhere M PLUS 1p is shown instead. */
	font: 700 clamp(22px, 2.6vw, 40px) / 1.6 "Shin Maru Go Regular", "M PLUS 1p", sans-serif;
	/* The block's has-large-font-size preset is !important. */
	font-size: clamp(22px, 2.6vw, 40px) !important;
	letter-spacing: .12em;
	text-align: left;
}

.bp-page--about .about-txt {
	max-width: 760px;
	margin: 64px auto 0;
	padding: 0;
}

.bp-page--about .about-txt p {
	color: var(--bp-sub);
	font-size: 16px;
	line-height: 2;
}

.bp-page--about .about-txt hr {
	width: 56px;
	margin: 40px auto;
	border: 0;
	border-top: 2px solid var(--bp-line);
	opacity: 1;
}

.bp-page--about .wp-block-image {
	margin-top: 56px;
}

.bp-page--about .wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: 18px;
}

.bp-page--about .ceo {
	margin-top: 32px;
	padding: 0;
}

.bp-page--about .ceo p {
	color: var(--bp-text);
	font-weight: 700;
	line-height: 1.8;
}

/* Contact */
.bp-page--contact .contact-wrap {
	gap: 64px;
	max-width: 1200px;
	margin: 0 auto;
}

.bp-page--contact h1 {
	margin-bottom: 32px;
}

.bp-page--contact h1::after {
	margin-left: 0;
}

.bp-page--contact .contact-txt {
	padding: 0;
}

.bp-page--contact .contact-txt p {
	margin-bottom: 16px;
	color: var(--bp-sub);
	font-size: 14px;
	line-height: 1.9;
}

.bp-page--contact .wpcf7 {
	padding: 40px;
	border: 1px solid var(--bp-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
}

.bp-page--contact .contactform-wrap p {
	margin-bottom: 24px;
}

.bp-page--contact .contactform-wrap br {
	display: none;
}

.bp-page--contact .name-email p {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.bp-page--contact .contactform-wrap label {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bp-page--contact .label-ttl {
	color: var(--bp-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
}

.bp-page--contact .wpcf7-form-control:not(.wpcf7-submit) {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--bp-line);
	border-radius: 8px;
	background: #fff;
	color: var(--bp-text);
	font: 400 16px / 1.6 "Noto Sans JP", sans-serif;
}

.bp-page--contact .wpcf7-form-control:not(.wpcf7-submit):focus {
	border-color: var(--ink);
	outline: 2px solid rgba(50, 55, 60, .15);
}

.bp-page--contact .wpcf7-textarea {
	min-height: 200px;
	resize: vertical;
}

.bp-page--contact .wpcf7-submit {
	display: block;
	width: 100%;
	padding: 14px 32px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	box-shadow: 0 6px 8px rgba(0, 0, 0, .08);
	color: #fff;
	font: 700 16px / 1.5 "Noto Sans JP", sans-serif;
	cursor: pointer;
}

.bp-page--contact .wpcf7-submit:hover {
	opacity: .85;
}

.bp-page--contact .contactform-wrap > p:last-child {
	margin-bottom: 0;
}

.bp-page--contact .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 13px;
}

.bp-page--contact .wpcf7-response-output {
	margin: 24px 0 0;
	border-radius: 8px;
	font-size: 14px;
}

/* 取扱い店舗 */
.bp-page--store .bp-content {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	max-width: 1200px;
	margin-inline: auto;
}

.bp-page--store .bp-content > p {
	grid-column: 1 / -1;
	margin-bottom: 16px;
	color: var(--bp-sub);
	font-size: 16px;
	line-height: 1.8;
}

.bp-page--store .store-separator {
	display: none;
}

.bp-page--store .store-list {
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--bp-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
}

.bp-page--store .store-logo img {
	width: 100%;
	height: auto;
	border: 1px solid var(--bp-line);
	border-radius: 12px;
}

.bp-page--store .store-list h3 {
	margin-bottom: 12px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
}

.bp-page--store .store-list h3 strong {
	font-weight: inherit;
}

.bp-page--store .store-list p {
	color: var(--bp-sub);
	font-size: 14px;
	line-height: 1.8;
}

.bp-page--store .store-contact-info {
	margin-top: 12px;
	padding: 0;
}

.bp-page--store .store-contact-info > * {
	margin: 0;
}

/* Long text pages: ご利用ガイド, 特定商取引法に基づく表記, プライバシーポリシー */
.bp-page--shopping-guide .bp-content,
.bp-page--tokusho .bp-content,
.bp-page--privacy-policy .bp-content {
	max-width: 900px;
	margin-inline: auto;
}

.bp-content > p:empty {
	display: none;
}

.bp-page--shopping-guide .guide-intro,
.bp-page--privacy-policy .privacy-policy-wrap {
	padding: 0;
}

.bp-page--shopping-guide .guide-intro p,
.bp-page--privacy-policy .privacy-policy-intro {
	margin-bottom: 12px;
	color: var(--bp-sub);
	font-size: 15px;
	line-height: 1.9;
}

/* ご利用ガイド: accordions written in the content; content-page.js adds the buttons. */
.bp-page--shopping-guide .accordion-wrap {
	margin: 48px 0;
}

.bp-page--shopping-guide .accordion-box {
	margin: 0;
}

.bp-page--shopping-guide .accordion-ttl {
	margin: 12px 0 0;
	border: 1px solid var(--bp-line);
	border-radius: 14px;
	background: #fff;
}

.bp-page--shopping-guide .accordion-ttl__button {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 18px 24px;
	border: 0;
	border-radius: 14px;
	background: none;
	color: var(--bp-text);
	font: 700 18px / 1.5 "Noto Sans JP", sans-serif;
	text-align: left;
	cursor: pointer;
}

.bp-page--shopping-guide .accordion-ttl__button:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.bp-page--shopping-guide .accordion-ttl__button::after {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	transition: transform .3s ease;
}

.bp-page--shopping-guide .accordion-ttl__button[aria-expanded="true"]::after {
	transform: translateY(3px) rotate(-135deg);
}

.bp-page--shopping-guide .q {
	color: var(--ink);
	font: 800 22px / 1 "M PLUS 1p", sans-serif;
}

/* Vertical spacing sits on the children, so a closed panel can reach 0 height. */
.bp-page--shopping-guide .accordion-txt {
	display: flow-root;
	margin: 0;
	padding: 0 24px;
	color: var(--bp-sub);
	font-size: 15px;
	line-height: 1.9;
}

.bp-page--shopping-guide .accordion-txt.is-enhanced {
	overflow: hidden;
	transition: max-height .3s ease;
}

.bp-page--shopping-guide .accordion-txt > :first-child {
	margin-top: 16px;
}

.bp-page--shopping-guide .accordion-txt > :last-child {
	margin-bottom: 24px;
}

.bp-page--shopping-guide .accordion-txt :where(p, ul, ol) {
	margin: 0 0 12px;
}

.bp-page--shopping-guide .accordion-txt :where(ul, ol) {
	padding-left: 1.5em;
}

.bp-page--shopping-guide .accordion-txt ul {
	list-style: disc;
}

.bp-page--shopping-guide .accordion-txt ol {
	list-style: decimal;
}

.bp-page--shopping-guide .accordion-txt li {
	margin-bottom: 8px;
}

.bp-page--shopping-guide .accordion-txt h4 {
	margin: 24px 0 8px;
	color: var(--bp-text);
	font-size: 16px;
	font-weight: 700;
}

.bp-page--shopping-guide .ask-here-wrap {
	padding: 48px 24px;
	border-radius: 18px;
	background: #f9fafb;
	text-align: center;
}

.bp-page--shopping-guide .ask-here-wrap h2 {
	font: 800 24px / 1.5 "M PLUS 1p", sans-serif;
}

.bp-page--shopping-guide .ask-here-wrap p {
	margin: 12px 0 24px;
	color: var(--bp-sub);
	font-size: 15px;
	line-height: 1.8;
}

.bp-page--shopping-guide .wp-block-button__link {
	padding: 14px 48px;
	border-radius: 999px;
	background: var(--ink);
	box-shadow: 0 6px 8px rgba(0, 0, 0, .08);
	color: #fff;
	font: 700 16px / 1.5 "Noto Sans JP", sans-serif;
	text-decoration: none;
}

/*
 * 特定商取引法に基づく表記: each h4 is a label and the paragraphs after it are its value.
 * The content nests some pairs in groups, so those groups are flattened into one grid.
 */
.bp-page--tokusho .tokutei {
	padding: 8px 32px;
	border: 1px solid var(--bp-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
}

.bp-page--tokusho .tokutei > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	column-gap: 32px;
}

.bp-page--tokusho .tokutei .wp-block-group,
.bp-page--tokusho .tokutei .wp-block-group .wp-block-group__inner-container {
	display: contents;
}

.bp-page--tokusho .tokutei :where(h4, p) {
	max-width: none;
	margin: 0;
	padding: 20px 0;
	border-top: 1px solid var(--bp-line);
	font-size: 15px;
	line-height: 1.8;
}

.bp-page--tokusho .tokutei h4 {
	grid-column: 1;
	color: var(--bp-text);
	font-weight: 700;
}

.bp-page--tokusho .tokutei p {
	grid-column: 2;
	color: var(--bp-sub);
}

.bp-page--tokusho .tokutei p + p {
	padding-top: 0;
	border-top: 0;
}

.bp-page--tokusho .tokutei > .wp-block-group__inner-container > .wp-block-group:first-child :where(h4, p) {
	border-top: 0;
}

/* プライバシーポリシー */
.bp-page--privacy-policy hr {
	width: 56px;
	margin: 32px 0;
	border: 0;
	border-top: 2px solid var(--bp-line);
}

.bp-page--privacy-policy .privacy-policy-wrap .wp-block-group {
	margin-top: 40px;
	padding: 0;
}

.bp-page--privacy-policy .privacy-policy-wrap h2 {
	margin-bottom: 12px;
	padding-left: 12px;
	border-left: 4px solid var(--ink);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
}

.bp-page--privacy-policy .privacy-policy-wrap .wp-block-group :where(p, ol, ul) {
	margin: 0 0 12px;
	color: var(--bp-sub);
	font-size: 15px;
	line-height: 1.9;
}

.bp-page--privacy-policy .privacy-policy-wrap :where(ol, ul) {
	padding-left: 1.5em;
}

.bp-page--privacy-policy .privacy-policy-wrap li {
	margin-bottom: 4px;
}

@media (max-width: 1320px) {
	.bp-page--store .bp-content {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 1024px) {
	.bp-page {
		--bp-gutter: 32px;
	}

	.bp-page--contact .contact-wrap {
		flex-direction: column;
		gap: 40px;
	}

	/* The block sets each column's width inline, so it has to be overridden here. */
	.bp-page--contact .contact-wrap > .wp-block-column {
		flex-basis: auto !important;
	}
}

@media (max-width: 767px) {
	.bp-page {
		--bp-gutter: 16px;
		padding-block: 40px 64px;
	}

	.bp-title,
	.bp-page--contact h1 {
		font-size: 28px;
	}

	/* The bag fills most of a narrow frame, so the heading moves below the photo. */
	.bp-page--about .hero-img {
		display: block;
		min-height: 0;
		padding: 0;
		border-radius: 0;
		overflow: visible;
	}

	.bp-page--about .hero-img .wp-block-cover__image-background {
		position: static;
		display: block;
		height: 240px;
		border-radius: 12px;
	}

	.bp-page--about .hero-img .wp-block-cover__background {
		display: none;
	}

	.bp-page--about .hero-img .wp-block-cover__inner-container {
		max-width: none;
		margin-top: 32px;
	}

	.bp-page--about .hero-img h1 {
		font-size: clamp(20px, 6.2vw, 26px) !important;
	}

	.bp-page--about .about-txt {
		margin-top: 40px;
	}

	.bp-page--about .about-txt p {
		font-size: 15px;
	}

	.bp-page--about .about-txt hr {
		margin-block: 32px;
	}

	.bp-page--contact .wpcf7 {
		padding: 24px 16px;
	}

	.bp-page--contact .name-email p {
		grid-template-columns: minmax(0, 1fr);
	}

	.bp-page--store .store-list {
		padding: 16px;
	}
}

@media (max-width: 781px) {
	.bp-page--store .store-logo {
		max-width: 200px;
	}
}

@media (max-width: 767px) {
	.bp-page--shopping-guide .accordion-ttl__button {
		padding: 16px;
		font-size: 16px;
	}

	.bp-page--shopping-guide .accordion-txt {
		padding-inline: 16px;
	}

	.bp-page--tokusho .tokutei {
		padding: 4px 16px;
	}

	.bp-page--tokusho .tokutei > .wp-block-group__inner-container {
		grid-template-columns: minmax(0, 1fr);
	}

	.bp-page--tokusho .tokutei h4,
	.bp-page--tokusho .tokutei p {
		grid-column: 1;
	}

	.bp-page--tokusho .tokutei h4 {
		padding-bottom: 4px;
	}

	.bp-page--tokusho .tokutei p {
		padding-top: 0;
		border-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bp-page--shopping-guide .accordion-txt.is-enhanced,
	.bp-page--shopping-guide .accordion-ttl__button::after {
		transition: none;
	}
}
