/*
Theme Name: RAKENNE
Theme URI: http://www.rakenne.co.jp/
Author: RAKENNE Inc.
Description: 株式会社ラケンネのためのミニマルなオリジナルテーマ。トップページ（HERO / NEWS / WORKS）、PROFILE / ACCESS、Contact Form 7 のスタイルを含みます。トップページの内容は「外観 → カスタマイズ → RAKENNE トップページ」から編集できます。
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rakenne
*/

:root {
	--rk-ink: #111111;
	--rk-sub: #5c5c5c;
	--rk-line: #d9d6cf;
	--rk-bg: #ffffff;
	--rk-dark: #2b2a28;
	--rk-foot-sub: #b3b0a9;
	--rk-max: 1360px;
	--rk-pad: 40px;
	--rk-en: 'Jost', 'Noto Sans JP', sans-serif;
	--rk-ja: 'Noto Sans JP', sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--rk-bg);
	color: var(--rk-ink);
	font-family: var(--rk-en);
	font-weight: 300;
	letter-spacing: 0.04em;
	line-height: 1.8;
}

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

a { color: var(--rk-ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rk-sub); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 8px 16px; background: #fff;
}

.rk-wrap {
	max-width: var(--rk-max);
	margin: 0 auto;
	padding-left: var(--rk-pad);
	padding-right: var(--rk-pad);
}

/* ---------- Header ---------- */
.rk-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 24px; padding-top: 32px; padding-bottom: 32px;
}
.rk-brand { display: flex; align-items: center; gap: 16px; }
.rk-brand__name { font-size: 18px; font-weight: 500; letter-spacing: 0.32em; }
.rk-brand .custom-logo { max-height: 72px; width: auto; display: block; }

.rk-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.rk-nav a {
	display: inline-block; padding-bottom: 4px; font-size: 13px; letter-spacing: 0.2em;
	text-transform: uppercase; border-bottom: 1px solid transparent;
}
.rk-nav .current-menu-item > a,
.rk-nav .current_page_item > a,
.rk-nav a[aria-current="page"] { border-bottom-color: var(--rk-ink); }

/* ---------- Hero (front page) ---------- */
.home .rk-header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; color: #fff; }
.home .rk-header a { color: #fff; }
.home .rk-header a:hover { color: #d6d3cc; }
.home .rk-header .rk-nav a[aria-current="page"],
.home .rk-header .rk-nav .current-menu-item > a { border-bottom-color: #fff; }
.home .rk-header .custom-logo { filter: invert(1); mix-blend-mode: screen; }
.rk-hero {
	position: relative; width: 100%; height: 100vh; min-height: 640px; overflow: hidden;
	display: flex; align-items: center; justify-content: center; background: var(--rk-dark); color: #fff;
}
.rk-hero__bg {
	position: absolute; inset: -24px; background: var(--rk-dark) center / cover no-repeat;
	filter: blur(6px) brightness(.5);
}
.rk-hero__lead {
	position: relative; margin: 0; padding: 0 var(--rk-pad); max-width: 960px; text-align: center;
	font-family: 'Poppins', var(--rk-en); font-weight: 200; font-size: clamp(34px, 5.4vw, 84px);
	line-height: 1.15; letter-spacing: 0;
}
.rk-hero__scroll {
	position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding-bottom: 72px;
	font-size: 11px; letter-spacing: 0.3em; color: #fff;
}
.rk-hero__scroll::after {
	content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 56px; background: rgba(255,255,255,.7);
}
.rk-hero__scroll:hover { color: #d6d3cc; }

/* ---------- Sections ---------- */
.rk-section { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 120px; padding-bottom: 40px; }
.rk-section:last-of-type { padding-bottom: 140px; }
.rk-section__head { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; }
.rk-section__title { margin: 0; font-size: 28px; font-weight: 400; letter-spacing: 0.3em; line-height: 1.3; }
.rk-section--sub .rk-section__title { font-size: 22px; }
.rk-section__label { font-family: var(--rk-ja); font-size: 12px; color: var(--rk-sub); letter-spacing: 0.15em; }
.rk-section__body { flex: 999 1 560px; min-width: 0; }

.rk-ja { font-family: var(--rk-ja); }

/* list rows (news / works) */
.rk-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rk-line); font-family: var(--rk-ja); }
.rk-list > li { border-top: 1px solid var(--rk-line); }
.rk-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 40px; padding: 24px 0; }
.rk-row__date { flex: 0 0 100px; font-family: var(--rk-en); font-size: 13px; color: var(--rk-sub); letter-spacing: 0.15em; }
.rk-row__main { flex: 1 1 260px; font-size: 15px; font-weight: 400; }
.rk-row__meta { flex: 1 1 260px; font-size: 12px; color: var(--rk-sub); line-height: 1.8; }
.rk-row__meta span { display: block; }
.rk-row--news .rk-row__main { flex: 1 1 400px; font-size: 14px; font-weight: 300; line-height: 1.9; }
.rk-row--news .rk-row__sub { display: block; margin-top: 4px; font-size: 13px; color: var(--rk-sub); }
.rk-row--news a.rk-row__sub { color: var(--rk-ink); text-decoration: underline; }
a.rk-row:hover .rk-row__main { color: var(--rk-sub); }

/* page header */
.rk-pagehead { padding-top: 120px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 16px; }
.rk-pagehead h1 { margin: 0; font-size: 44px; font-weight: 400; letter-spacing: 0.3em; line-height: 1.3; text-transform: uppercase; }
.rk-pagehead span { font-family: var(--rk-ja); font-size: 13px; color: var(--rk-sub); letter-spacing: 0.15em; }

.rk-wide-image { width: 100%; height: 560px; background: var(--rk-dark) center / cover no-repeat; }

/* text blocks */
.rk-text p { margin: 0 0 1.6em; font-family: var(--rk-ja); font-size: 14px; line-height: 2.1; }
.rk-text p.rk-en { font-family: var(--rk-en); font-size: 15px; }

/* workscope grid */
.rk-scope { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 48px 40px; }
.rk-scope > div { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--rk-ink); }
.rk-scope strong { font-size: 14px; font-weight: 400; letter-spacing: 0.15em; }
.rk-scope span { font-family: var(--rk-ja); font-size: 13px; color: var(--rk-sub); line-height: 1.9; }

/* founder */
.rk-founder { display: flex; flex-wrap: wrap; gap: 48px; margin-bottom: 64px; }
.rk-founder__photo { flex: 0 1 280px; }
.rk-founder__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.rk-founder__body { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.rk-founder__role { font-size: 12px; color: var(--rk-sub); letter-spacing: 0.2em; }
.rk-founder__name { display: flex; flex-direction: column; gap: 6px; }
.rk-founder__name b { font-size: 26px; font-weight: 400; letter-spacing: 0.2em; }
.rk-founder__name span { font-family: var(--rk-ja); font-size: 16px; letter-spacing: 0.2em; }
.rk-founder__body p { margin: 0; font-size: 13px; line-height: 2; }
.rk-founder__body ul { margin: 0; padding: 0; list-style: none; font-family: var(--rk-ja); font-size: 13px; line-height: 1.9; color: #333; }

/* definition tables */
.rk-dl { margin: 0; display: grid; grid-template-columns: minmax(96px, 160px) minmax(0, 1fr); font-family: var(--rk-ja); font-size: 13px; line-height: 1.9; border-bottom: 1px solid var(--rk-line); }
.rk-dl dt, .rk-dl dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--rk-line); }
.rk-dl dt { color: var(--rk-sub); font-family: var(--rk-en); letter-spacing: 0.1em; padding-right: 16px; }
.rk-dl--office { font-size: 14px; grid-template-columns: minmax(110px, 200px) minmax(0, 1fr); }
.rk-dl--office dt, .rk-dl--office dd { padding: 20px 0; }
.rk-dl--office dt { font-family: var(--rk-ja); }

/* generic page content */
.rk-content { font-family: var(--rk-ja); font-size: 14px; line-height: 2; }
.rk-content h2 { font-family: var(--rk-en); font-size: 20px; font-weight: 400; letter-spacing: 0.2em; margin: 2.4em 0 1em; }
.rk-content h3 { font-size: 16px; font-weight: 500; margin: 2em 0 .8em; }
.rk-content a { text-decoration: underline; }
.rk-content > *:first-child { margin-top: 0; }
.rk-contact-info { font-family: var(--rk-ja); font-size: 13px; line-height: 2; color: var(--rk-sub); }
.rk-contact-info p { margin: 0 0 1em; }
.rk-contact-info .rk-lead { color: var(--rk-ink); }

/* Contact Form 7 */
.wpcf7 form p { margin: 0 0 32px; }
.wpcf7 label { display: block; font-size: 12px; letter-spacing: 0.1em; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"] {
	width: 100%; height: 48px; margin-top: 6px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--rk-ink);
	border-radius: 0; background: transparent; font: inherit; font-size: 15px; color: var(--rk-ink);
}
.wpcf7 textarea {
	width: 100%; margin-top: 10px; padding: 16px; border: 1px solid var(--rk-ink); border-radius: 0;
	background: transparent; font: inherit; font-size: 15px; resize: vertical;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--rk-ink); outline-offset: 2px; }
.wpcf7 input[type="submit"] {
	min-height: 52px; padding: 0 56px; border: 0; border-radius: 0; background: var(--rk-ink); color: #fff;
	font-family: var(--rk-en); font-size: 12px; letter-spacing: 0.3em; cursor: pointer; -webkit-appearance: none;
}
.wpcf7 input[type="submit"]:hover { background: #333; }
.wpcf7 .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; font-size: 13px; }

/* access */
.rk-map { width: 100%; height: 560px; background: #e6e4df; }
.rk-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.rk-map:hover iframe { filter: none; }
.rk-button {
	display: inline-flex; align-items: center; min-height: 52px; margin-top: 40px; padding: 0 40px;
	border: 1px solid var(--rk-ink); font-size: 12px; letter-spacing: 0.25em;
}
.rk-button:hover { background: var(--rk-ink); color: #fff; }

/* posts */
.rk-post-meta { font-size: 12px; color: var(--rk-sub); letter-spacing: 0.15em; }
.rk-pagination { margin-top: 48px; display: flex; gap: 16px; font-size: 13px; letter-spacing: 0.15em; }

/* ---------- Footer ---------- */
.rk-footer { background: var(--rk-ink); color: #fff; margin-top: 0; }
.rk-footer a { color: #fff; }
.rk-footer a:hover { color: var(--rk-foot-sub); }
.rk-footer__inner { padding-top: 96px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 72px; }
.rk-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.rk-footer__office { display: flex; flex-direction: column; gap: 6px; font-family: var(--rk-ja); font-size: 13px; line-height: 1.9; }
.rk-footer__office .rk-label { font-family: var(--rk-en); font-size: 12px; letter-spacing: 0.2em; color: var(--rk-foot-sub); margin-bottom: 4px; }
.rk-footer__office a { text-decoration: underline; }
.rk-footer .rk-nav a { font-size: 12px; }
.rk-footer__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rk-footer__mark { font-size: 88px; font-weight: 400; letter-spacing: 0.18em; line-height: 1; }
.rk-footer__copy { font-size: 11px; color: var(--rk-foot-sub); letter-spacing: 0.15em; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
	:root { --rk-pad: 20px; }
	.rk-hero { min-height: 560px; }
	.rk-section { padding-top: 80px; gap: 24px; }
	.rk-pagehead { padding-top: 64px; padding-bottom: 48px; }
	.rk-pagehead h1 { font-size: 30px; }
	.rk-wide-image { height: 300px; }
	.rk-map { height: 380px; }
	.rk-footer__mark { font-size: 44px; }
	.rk-footer__inner { padding-top: 64px; gap: 48px; }
	.rk-dl, .rk-dl--office { grid-template-columns: 1fr; }
	.rk-dl dd { border-top: 0; padding-top: 0; }
}
