/*
Theme Name: DataBuyer Block
Theme URI: https://www.d-buyer.com/
Author: iCube Co., Ltd.
Description: DataBuyer専用の親テーマなしBlock Theme。
Requires at least: 7.0
Requires PHP: 8.0
Version: 0.10.18
Text Domain: dbuyer-block
Tags: full-site-editing
*/

html {
	min-width: 320px;
	scroll-behavior: smooth;
}

body {
	min-width: 320px;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

.dbuyer-main {
	min-height: 50vh;
	padding: clamp(24px, 3vw, 42px) clamp(20px, 5vw, 50px) clamp(56px, 8vw, 96px);
}

.dbuyer-main > .wp-block-post-title {
	position: relative;
	margin-top: 0;
	margin-bottom: clamp(14px, 1.5vw, 20px);
	padding-bottom: 0.35em;
	border-bottom: 1px solid #d8dee4;
	color: #1f2328;
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	line-height: 1.35;
	letter-spacing: 0.01em;
}

.dbuyer-main > .wp-block-post-title::after {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 48px;
	height: 3px;
	border-radius: 999px;
	background: #1f5388;
	content: "";
}

.dbuyer-news-home,
.dbuyer-news-archive {
	width: 100%;
}

.dbuyer-service-intro {
	margin-bottom: 38px;
	padding: 0 0 26px;
	border-bottom: 1px solid #d8dee4;
}

.dbuyer-service-intro p { margin-top: 10px; color: #57606a; font-size: 14px; }
.dbuyer-service-intro .dbuyer-service-intro__label { margin-top: 0; color: #1f2328; font-size: 18px; font-weight: 600; }
.dbuyer-service-intro .dbuyer-service-intro__links { font-size: 12px; }

.dbuyer-news-heading,
.dbuyer-news-archive > .wp-block-query-title {
	position: relative;
	margin: 0 0 10px;
	padding-bottom: 0.42em;
	border-bottom: 1px solid #d8dee4;
	color: #1f2328;
	font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem);
	line-height: 1.35;
	letter-spacing: 0.01em;
}

.dbuyer-news-heading::after,
.dbuyer-news-archive > .wp-block-query-title::after {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 48px;
	height: 3px;
	border-radius: 999px;
	background: #1f5388;
	content: "";
}

.dbuyer-news-description {
	margin: 0 0 clamp(24px, 4vw, 36px);
	color: #57606a;
}

.dbuyer-news-list {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dbuyer-news-card {
	box-sizing: border-box;
	padding: clamp(20px, 3vw, 28px);
	border: 1px solid #d8dee4;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 18px rgb(31 35 40 / 6%);
}

.dbuyer-news-card .wp-block-post-date {
	margin: 0 0 8px;
	color: #57606a;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

.dbuyer-news-card .wp-block-post-title {
	margin: 0;
	font-size: clamp(1.1rem, 1.04rem + 0.3vw, 1.3rem);
	line-height: 1.45;
}

.dbuyer-news-card .wp-block-post-title a {
	color: #1f5388;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.dbuyer-news-card .wp-block-post-excerpt {
	margin: 12px 0 0;
	color: #3d444d;
}

.dbuyer-news-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.dbuyer-news-card .wp-block-post-excerpt__more-text {
	margin: 12px 0 0;
}

.dbuyer-news-card .wp-block-post-excerpt__more-link,
.dbuyer-news-home__archive-link a,
.dbuyer-news-single__back a {
	color: #1f5388;
	font-weight: 600;
	text-underline-offset: 0.2em;
}

.dbuyer-news-home__archive-link {
	margin: 24px 0 0;
	text-align: right;
}

.dbuyer-news-pagination {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid #d8dee4;
}

.dbuyer-news-article {
	box-sizing: border-box;
	width: min(100%, 760px);
	margin-right: auto;
	margin-left: auto;
}

.dbuyer-news-article__date {
	margin: 0 0 8px;
	color: #57606a;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

.dbuyer-news-article__title {
	margin: 0;
	color: #1f2328;
	font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem);
	line-height: 1.4;
	letter-spacing: 0.01em;
}

.dbuyer-news-article__image {
	margin-top: clamp(24px, 4vw, 36px);
	overflow: hidden;
	border-radius: 12px;
}

.dbuyer-news-article__content {
	margin-top: clamp(28px, 5vw, 44px);
}

.dbuyer-news-article__content > * + * {
	margin-top: 1.25em;
}

.dbuyer-news-article__content h2 {
	margin-top: clamp(38px, 6vw, 54px);
	padding-left: 14px;
	border-left: 4px solid #1f5388;
	font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem);
	line-height: 1.5;
}

.dbuyer-news-article__content li + li {
	margin-top: 0.6em;
}

.dbuyer-news-lead {
	margin-top: 0;
	font-size: clamp(1.05rem, 1rem + 0.25vw, 1.15rem);
	font-weight: 500;
}

.dbuyer-news-callout {
	box-sizing: border-box;
	margin-top: clamp(28px, 5vw, 40px) !important;
	padding: clamp(20px, 4vw, 28px);
	border: 1px solid #bfd2e5;
	border-radius: 12px;
	background: #f5f9fd;
}

.dbuyer-news-callout > :first-child {
	margin-top: 0;
}

.dbuyer-news-callout > :last-child {
	margin-bottom: 0;
}

.dbuyer-news-callout h2 {
	padding-left: 0;
	border-left: 0;
}

.dbuyer-news-article .wp-block-button__link {
	border-radius: 8px;
	background: #1f5388;
	font-weight: 600;
}

.dbuyer-news-single__back {
	margin: clamp(40px, 7vw, 64px) 0 0;
	padding-top: 24px;
	border-top: 1px solid #d8dee4;
}

.dbuyer-site-footer {
	padding: 28px clamp(20px, 5vw, 50px);
	border-top: 1px solid #e5e7eb;
}

.dbuyer-site-footer__inner,
.dbuyer-site-footer__copyright {
	margin: 0;
}

.dbuyer-footer-navigation {
	font-size: 0.875rem;
}

.dbuyer-footer-navigation .wp-block-navigation__container {
	column-gap: 24px;
	row-gap: 8px;
}

.dbuyer-site-footer__copyright {
	color: #57606a;
	font-size: 0.8125rem;
}

.dbuyer-legal-section {
	scroll-margin-top: 60px;
}

.dbuyer-legal-review-notice {
	margin-bottom: clamp(36px, 6vw, 60px);
	padding: 18px 20px;
	border: 1px solid #d4a72c;
	border-radius: 6px;
	background: #fff8c5;
}

.dbuyer-legal-review-notice p,
.dbuyer-legal-meta {
	margin: 0;
}

.dbuyer-legal-section__content h3 {
	margin-top: 2.25em;
	font-size: 1.2rem;
}

.dbuyer-legal-section__content li + li {
	margin-top: 0.55em;
}

.dbuyer-legal-section__content dl:not(.dbuyer-legal-transactions) {
	display: grid;
	grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr);
	gap: 8px 20px;
}

.dbuyer-legal-section__content dl:not(.dbuyer-legal-transactions) dt {
	font-weight: 600;
}

.dbuyer-legal-section__content dl:not(.dbuyer-legal-transactions) dd {
	margin: 0;
}

.dbuyer-legal-table-wrap {
	overflow-x: auto;
}

.dbuyer-legal-table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
}

.dbuyer-legal-table th,
.dbuyer-legal-table td {
	padding: 12px;
	border: 1px solid #d8dee4;
	text-align: left;
	vertical-align: top;
}

.dbuyer-legal-table th {
	background: #f6f8fa;
}

.dbuyer-legal-section + .dbuyer-legal-section {
	margin-top: clamp(48px, 7vw, 80px);
	padding-top: clamp(40px, 6vw, 64px);
	border-top: 1px solid #d8dee4;
}

.dbuyer-legal-section__content {
	font-size: 1rem;
}

.dbuyer-legal-transactions {
	display: grid;
	grid-template-columns: minmax(160px, 0.4fr) minmax(0, 1fr);
	margin: 0;
	border-top: 1px solid #d8dee4;
}

.dbuyer-legal-transactions dt,
.dbuyer-legal-transactions dd {
	margin: 0;
	padding: 16px;
	border-bottom: 1px solid #d8dee4;
}

.dbuyer-legal-transactions dt {
	font-weight: 600;
	background: #f6f8fa;
}

@media (max-width: 600px) {
	.dbuyer-main {
		padding-top: 34px;
		padding-bottom: 64px;
	}

	.dbuyer-site-footer {
		padding-top: 24px;
		padding-bottom: 24px;
	}

	.dbuyer-news-card {
		padding: 18px;
	}

	.dbuyer-news-card .wp-block-post-excerpt {
		font-size: 0.9375rem;
	}

	.dbuyer-news-home__archive-link {
		text-align: left;
	}

	.dbuyer-news-callout {
		padding: 18px;
	}

	.dbuyer-footer-navigation .wp-block-navigation__container {
		justify-content: center;
	}

	.dbuyer-legal-transactions {
		display: block;
		border-top: 0;
	}

	.dbuyer-legal-transactions dt {
		border: 1px solid #d8dee4;
		border-bottom: 0;
	}

	.dbuyer-legal-transactions dd {
		border: 1px solid #d8dee4;
		border-top: 0;
	}

	.dbuyer-legal-transactions dd + dt {
		margin-top: 12px;
	}

	.dbuyer-legal-section__content dl:not(.dbuyer-legal-transactions) {
		display: block;
	}

	.dbuyer-legal-section__content dl:not(.dbuyer-legal-transactions) dd + dt {
		margin-top: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
