/*
Theme Name: buffru Corporate
Theme URI: https://www.buffru.jp/
Description: 合同会社buffruのコーポレートサイト専用テーマです。
Author: buffru LLC
Author URI: https://www.buffru.jp/
Version: 1.1.3
Requires at least: 6.1
Requires PHP: 7.4
Text Domain: buffru
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--ink: #151719;
	--muted: #646a6d;
	--line: #dfe3e2;
	--surface: #f6f8f7;
	--white: #ffffff;
	--buff-green: #17aa73;
	--buff-blue: #2b72e8;
	--sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
	--pixel: var(--sans);
	--header-height: 70px;
	--admin-offset: 0px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 8px);
}

body.admin-bar {
	--admin-offset: 32px;
}

body.buffru-site {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.85;
	letter-spacing: .015em;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--buff-blue);
	outline-offset: 5px;
}

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

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

.wrap {
	width: min(1040px, calc(100% - 64px));
	margin-inline: auto;
}

.skip-link {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 100000;
	padding: 10px 14px;
	background: var(--ink);
	color: var(--white);
	font-weight: 700;
	transform: translateY(-160%);
}

.skip-link:focus {
	transform: translateY(0);
}

/* Header */
.site-header {
	position: sticky;
	top: var(--admin-offset);
	z-index: 1000;
	height: var(--header-height);
	border-bottom: 1px solid rgba(21, 23, 25, .12);
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(12px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(1200px, calc(100% - 48px));
	height: 100%;
	margin-inline: auto;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	line-height: 1;
}

.logo-title {
	display: inline-flex;
	align-items: baseline;
	gap: .35em;
	font-family: var(--sans);
	font-weight: 800;
	white-space: nowrap;
}

.logo-company {
	font-family: inherit;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
}

.logo-brand {
	font-family: inherit;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.logo-pixel {
	position: relative;
	display: block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.logo-pixel i {
	position: absolute;
	width: 4px;
	height: 4px;
	background: var(--buff-green);
}

.logo-pixel i:nth-child(1) { left: 0; top: 16px; }
.logo-pixel i:nth-child(2) { left: 5px; top: 11px; }
.logo-pixel i:nth-child(3) { left: 10px; top: 6px; }
.logo-pixel i:nth-child(4) { left: 15px; top: 1px; background: var(--buff-blue); }
.logo-pixel i:nth-child(5) { left: 10px; top: 1px; background: var(--buff-blue); }
.logo-pixel i:nth-child(6) { left: 15px; top: 6px; background: var(--buff-blue); }

.site-nav {
	display: flex;
	align-items: center;
	gap: 25px;
}

.site-nav a {
	position: relative;
	padding-block: 5px;
	color: #34383a;
	font: 700 11px/1 var(--pixel);
	letter-spacing: .075em;
}

.site-nav a::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--buff-green), var(--buff-blue));
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
	transform: scaleX(1);
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.menu-toggle__label {
	font: 700 11px/1 var(--pixel);
	letter-spacing: .08em;
}

.menu-toggle__icon {
	position: relative;
	display: block;
	width: 20px;
	height: 12px;
}

.menu-toggle__icon i {
	position: absolute;
	right: 0;
	width: 20px;
	height: 2px;
	background: var(--ink);
	transition: transform .2s ease, top .2s ease;
}

.menu-toggle__icon i:first-child { top: 1px; }
.menu-toggle__icon i:last-child { top: 9px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child {
	top: 5px;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child {
	top: 5px;
	transform: rotate(-45deg);
}

/* Hero */
.hero {
	padding: clamp(94px, 10vw, 132px) 0 clamp(96px, 10vw, 124px);
}

.hero-intro {
	max-width: 860px;
}

.hero-kicker,
.section-kicker {
	display: flex;
	align-items: center;
	margin: 0;
	color: var(--muted);
	font: 700 11px/1 var(--pixel);
	letter-spacing: .1em;
}

.hero-kicker::before,
.section-kicker::before {
	width: 4px;
	height: 4px;
	margin: 7px 17px 0 0;
	background: var(--buff-green);
	box-shadow: 5px -4px 0 var(--buff-green), 10px -8px 0 var(--buff-blue);
	content: "";
	flex: 0 0 4px;
}

.hero h1 {
	max-width: 820px;
	margin: 25px 0 0;
	font-size: clamp(33px, 3.7vw, 44px);
	font-weight: 720;
	line-height: 1.42;
	letter-spacing: -.04em;
}

.hero-accent {
	padding-bottom: 5px;
	background: linear-gradient(90deg, var(--buff-green), var(--buff-blue)) 0 100% / 100% 4px no-repeat;
}

.hero-copy {
	max-width: 650px;
	margin: 35px 0 0;
	padding-left: 21px;
	border-left: 2px solid var(--buff-green);
	color: #454a4c;
	font-size: 16px;
	line-height: 1.95;
}

/* Shared sections */
.section {
	position: relative;
	padding: 92px 0;
	border-top: 1px solid var(--line);
}

.section-layout {
	display: grid;
	grid-template-columns: minmax(230px, 320px) minmax(0, 590px);
	justify-content: space-between;
	gap: clamp(56px, 8vw, 104px);
	align-items: start;
}

.section-heading {
	min-width: 0;
}

.section-label {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 22px;
}

.section-label .section-kicker::before {
	display: none;
}

.section-no {
	color: var(--buff-blue);
	font: 700 11px/1 var(--pixel);
	letter-spacing: .06em;
}

.section-label .section-kicker {
	padding-left: 15px;
	border-left: 1px solid var(--line);
}

.section-title {
	margin: 0;
	font-size: clamp(23px, 2.2vw, 28px);
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: -.025em;
}

.copy {
	max-width: 590px;
	color: #383d3f;
	font-size: 16px;
}

.copy p {
	margin: 0 0 19px;
}

.copy p:last-child {
	margin-bottom: 0;
}

.name-note {
	display: inline-flex;
	align-items: center;
	gap: 19px;
	margin-top: 30px;
	padding: 12px 14px 12px 17px;
	border: 1px solid var(--line);
	box-shadow: inset 3px 0 0 var(--buff-green);
	background: var(--white);
	font: 700 11px/1.4 var(--pixel);
	white-space: nowrap;
}

.name-note span:last-child {
	color: var(--buff-blue);
	font-size: 10px;
	letter-spacing: .05em;
}

.update {
	background: var(--surface);
}

.level-message {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 30px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	color: var(--ink);
	font: 700 13px/1.4 var(--pixel);
	letter-spacing: .04em;
}

.level-message::before {
	width: 26px;
	height: 4px;
	background: linear-gradient(90deg, var(--buff-green) 0 50%, var(--buff-blue) 50%);
	content: "";
}

/* Company */
.profile {
	width: 100%;
	margin: 0;
	border-top: 1px solid var(--ink);
}

.profile-row {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 28px;
	padding: 19px 0;
	border-bottom: 1px solid var(--line);
}

.profile dt {
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
}

.profile dd {
	margin: 0;
	font-size: 16px;
}

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

/* Business */
.business {
	background: var(--surface);
}

.business-top {
	margin-bottom: 46px;
	align-items: end;
}

.business-lead {
	max-width: 590px;
	margin: 0;
	color: #454a4c;
	font-size: 16px;
}

.quest-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.quest {
	position: relative;
	min-height: 270px;
	padding: 29px 27px 27px;
	border: 1px solid var(--line);
	background: var(--white);
}

.quest::before {
	position: absolute;
	top: -1px;
	left: -1px;
	width: 42px;
	height: 3px;
	background: linear-gradient(90deg, var(--buff-green), var(--buff-blue));
	content: "";
}

.quest-meta {
	margin-bottom: 25px;
	color: var(--buff-blue);
	font: 700 11px/1 var(--pixel);
	letter-spacing: .06em;
}

.quest h3 {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.65;
	letter-spacing: -.015em;
}

.quest p {
	margin: 0 0 12px;
	color: #4b5052;
	font-size: 15px;
	line-height: 1.9;
}

.quest p:last-child {
	margin-bottom: 0;
}

/* Footer */
.site-footer {
	padding: 49px 0 27px;
	background: var(--ink);
	color: var(--white);
}

.footer-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 42px;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 17px;
	font-size: 27px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.055em;
}

.footer-logo::before {
	width: 5px;
	height: 5px;
	margin-top: 10px;
	background: var(--buff-green);
	box-shadow: 6px -5px 0 var(--buff-green), 12px -10px 0 var(--buff-blue);
	content: "";
}

.footer-message {
	margin: 0;
	color: #d9dcdc;
	font-size: 14.5px;
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin-top: 38px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .16);
}

.footer-bottom small {
	color: #aaafb1;
	font: 600 11px/1.6 var(--pixel);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 17px;
}

.footer-links a {
	color: #d9dcdc;
	font: 700 11px/1 var(--pixel);
	transition: color .2s ease;
}

.footer-links a:hover {
	color: var(--buff-green);
}

/* Recruit / Contact */
.subpage-main {
	min-height: calc(100vh - var(--header-height));
	padding: 104px 0 112px;
}

.subpage-head {
	padding-bottom: 48px;
	border-bottom: 1px solid var(--line);
}

.subpage-title {
	margin: 0;
	font-size: clamp(30px, 3.3vw, 38px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -.03em;
}

.subpage-panel {
	display: grid;
	grid-template-columns: minmax(230px, 320px) minmax(0, 590px);
	justify-content: space-between;
	gap: clamp(56px, 8vw, 104px);
	margin-top: 48px;
}

.subpage-panel h2 {
	margin: 0;
	font-size: 17px;
	line-height: 1.75;
}

.subpage-panel p {
	margin: 0 0 15px;
	color: var(--muted);
	font-size: 15.5px;
}

.plain-mail {
	display: block;
	margin: 20px 0 16px;
	padding: 15px 0;
	border-block: 1px solid var(--line);
	color: var(--ink);
	font-weight: 700;
}

a.plain-mail:hover {
	color: var(--buff-blue);
}

.plain-mail.is-placeholder {
	color: var(--muted);
}

.small-note {
	font-size: 13px !important;
}

.back-link {
	display: inline-block;
	margin-top: 52px;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--buff-green);
	font-size: 13px;
	font-weight: 700;
}

/* Standard WordPress pages */
.content-page {
	min-height: calc(100vh - var(--header-height));
	padding: 96px 0 112px;
}

.content-page__inner {
	max-width: 860px;
}

.content-page__head {
	padding-bottom: 38px;
	border-bottom: 1px solid var(--line);
}

.content-page__head h1 {
	margin: 24px 0 0;
	font-size: clamp(28px, 3.2vw, 38px);
	line-height: 1.45;
	letter-spacing: -.03em;
}

.content-prose {
	margin-top: 48px;
	color: #383d3f;
	font-size: 16px;
}

.content-prose > *:first-child {
	margin-top: 0;
}

.content-prose h2 {
	margin: 2.8em 0 1em;
	padding-bottom: .65em;
	border-bottom: 1px solid var(--line);
	font-size: 21px;
	line-height: 1.55;
}

.content-prose h3 {
	margin: 2.2em 0 .8em;
	font-size: 17px;
}

.content-prose p,
.content-prose ul,
.content-prose ol {
	margin: 0 0 1.5em;
}

.content-prose a {
	color: var(--buff-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.content-prose table {
	width: 100%;
	border-collapse: collapse;
}

.content-prose th,
.content-prose td {
	padding: 12px;
	border: 1px solid var(--line);
	text-align: left;
}

.post-list__item {
	padding: 24px 0;
	border-bottom: 1px solid var(--line);
}

.post-list__item h2 {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	font-size: 18px;
}

.nav-links {
	display: flex;
	gap: 8px;
	margin-top: 32px;
}

.page-numbers {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 1px solid var(--line);
}

.page-numbers.current {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

@media (max-width: 900px) {
	.wrap {
		width: min(760px, calc(100% - 48px));
	}

	.site-nav {
		gap: 18px;
	}

	.section-layout,
	.subpage-panel {
		grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
		gap: 48px;
	}

	.quest-grid {
		grid-template-columns: 1fr;
	}

	.quest {
		min-height: 0;
	}
}

@media (max-width: 700px) {
	:root {
		--header-height: 64px;
	}

	body.admin-bar {
		--admin-offset: 46px;
	}

	html {
		scroll-padding-top: calc(var(--header-height) + var(--admin-offset) + 8px);
	}

	.wrap {
		width: calc(100% - 38px);
	}

	.header-inner {
		width: calc(100% - 30px);
	}

	.logo-company {
		font-size: 10px;
	}

	.logo-brand {
		font-size: 24px;
	}

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

	.site-nav {
		position: fixed;
		top: calc(var(--header-height) + var(--admin-offset));
		right: 0;
		left: 0;
		display: grid;
		gap: 0;
		max-height: 0;
		padding: 0 19px;
		border-bottom: 1px solid var(--line);
		background: rgba(255, 255, 255, .98);
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		transition: max-height .25s ease, opacity .2s ease, visibility .2s ease;
	}

	.site-nav.is-open {
		max-height: calc(100vh - var(--header-height) - var(--admin-offset));
		padding-block: 12px 18px;
		opacity: 1;
		visibility: visible;
	}

	.site-nav a {
		padding: 15px 3px;
		border-bottom: 1px solid var(--line);
		font-size: 13px;
	}

	.site-nav a:last-child {
		border-bottom: 0;
	}

	.site-nav a::after {
		display: none;
	}

	.hero {
		padding: 72px 0 76px;
	}

	.hero h1 {
		margin-top: 23px;
		font-size: clamp(29px, 8.5vw, 35px);
		line-height: 1.48;
	}

	.hero-copy {
		margin-top: 30px;
		padding-left: 16px;
		font-size: 16px;
	}

	.section {
		padding: 68px 0;
	}

	.section-layout,
	.subpage-panel {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.section-label {
		margin-bottom: 18px;
	}

	.section-title {
		font-size: 23px;
	}

	.copy {
		font-size: 16px;
	}

	.business-top {
		margin-bottom: 34px;
	}

	.quest {
		padding: 25px 23px;
	}

	.profile-row {
		grid-template-columns: 1fr;
		gap: 5px;
		padding: 16px 0;
	}

	.footer-top,
	.footer-bottom {
		display: block;
	}

	.footer-message {
		margin-top: 18px;
	}

	.footer-links {
		margin-top: 19px;
		gap: 16px;
	}

	.subpage-main,
	.content-page {
		min-height: calc(100vh - var(--header-height));
		padding: 72px 0 80px;
	}

	.subpage-head {
		padding-bottom: 35px;
	}

	.subpage-title {
		font-size: 30px;
	}

	.subpage-panel {
		margin-top: 36px;
	}

	.content-page__head {
		padding-bottom: 32px;
	}

	.content-prose {
		margin-top: 36px;
		font-size: 16px;
	}

	.back-link {
		margin-top: 44px;
	}
}

@media (max-width: 782px) and (min-width: 701px) {
	body.admin-bar {
		--admin-offset: 46px;
	}
}

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

	.site-nav,
	.site-nav a::after,
	.menu-toggle__icon i {
		transition: none;
	}
}
