@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

:root {
	--bet-header-height: 75px;
	--bet-brand: #165829;
	--bet-brand-soft: #e0f7e5;
	--bet-text: #292b2c;
	--bet-muted: #5a5f61;
	--bet-border: #e5ebe6;
	--bet-surface: #f7faf7;
	--bet-max: 1110px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
	scroll-padding-top: var(--bet-header-height);
}

body {
	margin: 0;
	color: var(--bet-text);
	background: #fff;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--bet-brand);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	left: 0.5rem;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
	background: #fff;
	padding: 0.75rem 1rem;
}

/* Header — match OnePress (.site-header { line-height: 75px }) */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: var(--bet-header-height);
	line-height: var(--bet-header-height);
	z-index: 1000;
	background: #fff;
	border-bottom: 0;
	box-shadow: 0 5px 10px 0 rgba(50, 50, 50, 0.06);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--bet-max);
	margin: 0 auto;
	padding: 0 15px;
	height: 100%;
	min-height: 0;
}

.site-branding {
	max-width: 261px;
	width: 70%;
	flex-shrink: 0;
	line-height: 60px;
}

.site-branding .custom-logo-link {
	display: inline-block;
	line-height: 0;
	vertical-align: middle;
}

.site-branding .custom-logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 60px;
}

.site-title {
	font-family: "Noto Serif JP", serif;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--bet-brand);
	text-decoration: none;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid var(--bet-border);
	background: #fff;
	padding: 0.4rem 0.75rem;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: var(--bet-text);
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	color: var(--bet-text);
	text-decoration: none;
	font-weight: 500;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	color: var(--bet-brand);
}

@media (max-width: 900px) {
	.site-header__inner {
		position: relative;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.main-navigation {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: #fff;
		border-bottom: 1px solid var(--bet-border);
		padding: 0.75rem 1.25rem 1.25rem;
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
	}

	.main-navigation.is-open {
		display: block;
	}

	.primary-menu {
		flex-direction: column;
		gap: 0.75rem;
	}
}

/* Content shell — offset for fixed header (hero starts below header) */
.site-content {
	min-height: calc(100vh - 180px);
	padding-top: var(--bet-header-height);
}

.entry-content > .alignwide {
	max-width: 1230px;
}

.entry-content > .alignfull {
	max-width: none;
	width: 100%;
}

.page-header {
	background: var(--bet-brand);
	color: #fff;
	padding: 2.5rem 1.25rem;
	text-align: center;
}

.page-header .container {
	max-width: var(--bet-max);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.page-header .entry-title,
.page-header .page-title {
	margin: 0;
	color: #e0f7e5;
	font-family: "Noto Serif JP", serif;
	font-weight: 400;
	font-size: 1.75rem;
}

.page-header .page-title span {
	font-weight: inherit;
}

/* Blog / single / archive layout with right sidebar */
#content-inside.container {
	max-width: var(--bet-max);
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
	box-sizing: border-box;
}

#content-inside.right-sidebar {
	display: block;
}

#content-inside.right-sidebar::after {
	content: "";
	display: table;
	clear: both;
}

.content-area {
	width: 100%;
}

.sidebar {
	width: 100%;
	padding-top: 2rem;
}

@media (min-width: 940px) {
	#content-inside.right-sidebar .content-area {
		float: left;
		width: 74.7747747748%;
		padding-right: 39px;
		border-right: 1px solid #e9e9e9;
		box-sizing: border-box;
	}

	#content-inside.right-sidebar .sidebar {
		float: left;
		width: 25.2252252252%;
		padding-left: 39px;
		padding-top: 40px;
		border-left: 1px solid #e9e9e9;
		margin-left: -1px;
		box-sizing: border-box;
	}
}

.sidebar .widget {
	margin-bottom: 40px;
	text-align: left;
}

.sidebar .widget .widget-title {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 0 0 13px;
	font-weight: 700;
	color: #333;
	font-family: "Noto Sans JP", sans-serif;
}

.sidebar .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar .widget_recent_entries ul li,
.sidebar .widget_archive ul li {
	border-bottom: 1px solid #e9e9e9;
	padding: 8px 0;
}

.sidebar .widget a {
	color: #777;
	font-size: 14px;
	text-decoration: none;
}

.sidebar .widget a:hover {
	color: var(--bet-brand);
	text-decoration: underline;
}

.sidebar .textwidget img {
	max-width: 100%;
	height: auto;
}

/* Archive / blog list articles */
.archive .list-article,
.blog .list-article,
.single .list-article {
	border-top: 1px solid #e9e9e9;
	padding: 25px 0;
	margin: 0;
	text-align: left;
}

.archive .list-article:last-of-type,
.blog .list-article:last-of-type,
.single .list-article:last-of-type {
	border-bottom: 1px solid #e9e9e9;
}

.archive .site-main .list-article:first-child,
.blog .site-main .list-article:first-of-type {
	border-top: none;
	padding-top: 0;
}

.archive .list-article-meta,
.blog .list-article-meta,
.single .list-article-meta {
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	margin-bottom: 10px;
}

.archive .list-article-meta a,
.blog .list-article-meta a,
.single .list-article-meta a {
	color: #777;
	text-decoration: none;
}

.archive .list-article .entry-title,
.blog .list-article .entry-title,
.single .list-article .entry-title {
	display: inline-block;
	margin: 0 0 0.5rem;
	font-size: 22px;
	line-height: 1.5;
	font-weight: 600;
	font-family: "Noto Sans JP", sans-serif;
	vertical-align: baseline;
}

.archive .list-article .entry-title a,
.blog .list-article .entry-title a,
.single .list-article .entry-title a {
	color: #333333;
	text-decoration: none;
	font-weight: 500;
}

.archive .list-article .entry-title a:hover,
.blog .list-article .entry-title a:hover {
	text-decoration: none;
	opacity: 0.85;
}

.single .list-article .entry-title {
	display: block;
	font-family: "Noto Serif JP", serif;
	font-weight: 400;
	color: #292b2c;
}

.archive .entry-excerpt p,
.blog .entry-excerpt p,
.single .entry-excerpt p {
	margin-bottom: 0.75em;
	color: #777;
}

.posts-navigation,
.post-navigation {
	margin-top: 2rem;
	padding: 1.5rem 0;
	text-align: center;
}

/* 404 */
.error-404 .page-content {
	text-align: left;
	color: #777;
}

.error-404 .search-form,
.error-404 .widget {
	margin-bottom: 40px;
}

.error-404 .widget-title,
.error-404 .widgettitle {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 0 0 13px;
	font-weight: 700;
	color: #333;
	font-family: "Noto Sans JP", sans-serif;
}

.error-404 ul {
	padding-left: 0;
	margin: 0;
	list-style: none;
}

.error-404 ul li {
	list-style: none;
	padding: 6px 0;
	border-bottom: 1px solid #e9e9e9;
}

.error-404 .widget a {
	color: #777;
	text-decoration: none;
}

.error-404 .widget a:hover {
	color: var(--bet-brand);
	text-decoration: underline;
}

/* Search form */
.search-form {
	display: flex;
	width: 100%;
	max-width: 480px;
	align-items: stretch;
	gap: 0.5rem;
}

.search-form label {
	flex: 1 1 auto;
	margin: 0;
}

.search-form .search-field {
	width: 100%;
	padding: 0.625rem 0.9375rem;
	border: 1px solid #e9e9e9;
	border-radius: 2px;
	box-sizing: border-box;
	font: inherit;
}

.search-form .search-submit {
	width: auto;
	margin: 0;
	padding: 0.625rem 1rem;
	border: 1px solid var(--bet-brand);
	border-radius: 2px;
	background: var(--bet-brand);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.search-form .search-submit:hover {
	opacity: 0.9;
}

/* Search results */
.search-results .list-article,
.search-no-results .list-article {
	border-top: 1px solid #e9e9e9;
	padding: 25px 0;
	margin: 0;
	text-align: left;
}

.search-results .list-article:first-of-type {
	border-top: none;
	padding-top: 0;
}

.search-results .list-article:last-of-type {
	border-bottom: 1px solid #e9e9e9;
}

.search-results .list-article-meta {
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	margin-bottom: 10px;
}

.search-results .list-article-meta a {
	color: #777;
	text-decoration: none;
}

.search-results .list-article .entry-title {
	display: block;
	margin: 0 0 0.5rem;
	font-size: 22px;
	line-height: 1.5;
	font-weight: 500;
	font-family: "Noto Sans JP", sans-serif;
}

.search-results .list-article .entry-title a {
	color: #165829;
	text-decoration: none;
}

.search-results .list-article .entry-title a:hover {
	text-decoration: none;
	opacity: 0.85;
}

.search-results .entry-excerpt p,
.search-results .entry-summary p {
	margin-bottom: 0;
	color: #777;
}

.no-results .page-content {
	text-align: left;
	color: #777;
}

.no-results h2 {
	margin: 0 0 1rem;
	font-family: "Noto Serif JP", serif;
	font-weight: 400;
	color: #333;
}

.bet-front-page .page-header {
	display: none;
}

.bet-page .entry-content {
	padding-bottom: 3rem;
}

/* Section helpers used by patterns */
.bet-section {
	padding: 3rem 0;
}

.bet-section__inner {
	max-width: var(--bet-max);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.bet-section-title {
	margin: 0 0 1.5rem;
	color: var(--bet-brand);
	font-family: "Noto Serif JP", serif;
	font-size: 1.875rem;
	font-weight: 400;
	text-align: center;
}

.bet-section--surface {
	background: var(--bet-surface);
}

.bet-section--brand-soft {
	background: var(--bet-brand-soft);
}

/* Product grid: 4 → 2 → 1 */
.product-grid__items {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}

/* Kill WP flow-layout block gap on siblings (was pushing col 2+ down). */
.product-grid__items.wp-block-group > *,
.product-grid__items.is-layout-flow > *,
.product-grid__items > .product-grid__item,
.product-grid__items > .wp-block-group {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}

.product-grid__item {
	text-align: center;
}

.product-grid__item .wp-block-image,
.product-grid__item img {
	margin: 0 auto 0.75rem;
}

.product-grid__item h3,
.product-grid__item h4 {
	margin: 0 0 0.5rem;
	color: var(--bet-brand);
	font-family: "Noto Serif JP", serif;
	font-weight: 400;
	font-size: 1.125rem;
}

.product-grid__item p {
	margin: 0;
	color: var(--bet-muted);
	font-size: 0.9375rem;
}

@media (max-width: 991px) {
	.product-grid__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.product-grid__items {
		grid-template-columns: 1fr;
		max-width: 22rem;
		margin-inline: auto;
	}
}

/* Footer — match the production OnePress / op-b01 footer. */
.site-footer {
	--footer-paragraph-gap: 15px;
	background: #111;
	color: #fff;
	padding: 0;
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.7;
}

.site-footer .footer-widgets.section-padding {
	background: #165829;
	padding: 2em;
	text-align: center;
}

.site-footer > .footer-widgets > .container,
.site-footer > .site-info > .container {
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
	padding-inline: 15px;
}

.site-footer .footer-widgets .row {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-inline: -15px;
}

.site-footer .footer-widgets .footer-column {
	flex: 0 0 100%;
	max-width: 100%;
	min-width: 0;
	padding: 0 15px;
}

.site-footer .footer-column .footer-widget {
	margin: 0 0 30px;
	text-align: center;
}

.site-footer .footer-widget a,
.site-footer .footer-widget .widget-title {
	color: #fff;
}

.site-footer .footer-widget a {
	font-size: 14px;
	text-decoration: none;
}

.site-footer .footer-widget a:hover,
.site-footer .footer-widget a:focus-visible {
	color: #03c4eb;
	text-decoration: underline;
}

.site-footer .footer-widget p,
.site-footer .footer-widget figure {
	margin: 0 0 var(--footer-paragraph-gap);
}

.site-footer .footer-widget img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* Custom HTML blocks retain line breaks supplied in the widget editor. */
.site-footer #footer-2 .widget_block,
.site-footer #footer-3 .widget_block {
	white-space: pre-line;
}

.site-footer #footer-2 .widget_block > div > div {
	margin-top: var(--footer-paragraph-gap);
}

.site-footer > .site-info {
	position: relative;
	height: 0;
	margin: 0;
	padding: 0;
	background: #222;
	text-align: center;
	opacity: 1;
}

.site-footer .btt {
	text-align: center;
}

.site-footer .back-to-top {
	position: fixed;
	right: 60px;
	bottom: 120px;
	left: auto;
	z-index: 99;
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #165829;
	color: #999;
	font-size: 30px;
	line-height: 40px;
	text-align: center;
	text-decoration: none;
	transform: rotate(-45deg);
	transition: color 0.2s linear, background-color 0.2s linear;
}

.site-footer .back-to-top i {
	margin: 0;
	transform: rotate(45deg);
}

.site-footer .back-to-top:hover,
.site-footer .back-to-top:focus-visible {
	color: #fff;
	text-decoration: none;
}

@media (min-width: 576px) {
	.site-footer > .footer-widgets > .container,
	.site-footer > .site-info > .container {
		width: 540px;
	}
}

@media (min-width: 768px) {
	.site-footer > .footer-widgets > .container,
	.site-footer > .site-info > .container {
		width: 720px;
	}

	.site-footer .footer-widgets .footer-column {
		flex: 0 0 33.333333%;
		max-width: 33.333333%;
	}
}

@media (min-width: 992px) {
	.site-footer > .footer-widgets > .container,
	.site-footer > .site-info > .container {
		width: 960px;
	}
}

@media (min-width: 1200px) {
	.site-footer > .footer-widgets > .container,
	.site-footer > .site-info > .container {
		width: 1140px;
	}
}

@media (max-width: 991px) {
	.site-footer {
		--footer-paragraph-gap: 14.0625px;
	}
}

@media (max-width: 940px) {
	.site-footer .back-to-top {
		right: 10px;
		bottom: 10px;
	}
}

@media (max-width: 767px) {
	.site-footer {
		--footer-paragraph-gap: 13.125px;
	}
}
