/*
Theme Name: Active
Theme URI: https://work-active.jp/
Author: 株式会社アクティブ
Description: 株式会社アクティブ（アクティブ守口・アクティブ太子橋）の全体サイト用テーマ。トップと守口のページはブロックエディタで編集できます。
Version: 2.0.0
Requires at least: 6.3
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: active
*/

:root {
	--green: #2E6B4F;
	--green-dark: #1F4D38;
	--green-ink: #1F2A24;
	--green-soft: #E3EEE7;
	--green-pale: #F3F8F5;
	--green-ph: #E7EFE9;
	--orange: #C2551F;
	--orange-text: #A6461A;
	--orange-dark: #8A3A12;
	--orange-soft: #F8E6DA;
	--orange-pale: #FBF3EE;
	--orange-ph: #F7E9DF;
	--bg: #FBF8F3;
	--beige: #F2EDE4;
	--line: #ECE5DA;
	--text: #2B2A27;
	--text-sub: #4A463F;
	--text-muted: #5E5A53;
	--round: 'Zen Maru Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Noto Sans JP', sans-serif; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--round); color: var(--green-ink); margin: 0; line-height: 1.45; }
p { margin: 0; }
figure { margin: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.screen-reader-text:focus { position: static; width: auto; height: auto; clip: auto; padding: 8px 16px; background: #fff; }

/* blocks: neutralise default spacing so the layout classes below decide it */
.block-content .wp-block-group > *,
.block-content .wp-block-image { margin-top: 0; margin-bottom: 0; }

/* ---------- layout ---------- */
.container { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; width: 100%; }
.container--mid { max-width: 1100px; }
.container--narrow { max-width: 960px; }
.container--slim { max-width: 880px; }
.section { padding: 88px 0; }
.section--sm { padding: 72px 0; }
.section--white { background: #fff; }
.section--beige { background: var(--beige); }
.section > .container { display: flex; flex-direction: column; gap: 40px; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.stack--md { gap: 32px; }
.stack--sm { gap: 20px; }
.row, .section > .container.row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 24px; }
.row > * { flex: 1 1 300px; min-width: 0; }
.row--wide > * { flex-basis: 440px; }
.row--mid > * { flex-basis: 340px; }
.row--gap-lg { gap: 32px 40px; }
.row--gap-sm { gap: 16px; }
.center { text-align: center; }

.section-head { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--green); letter-spacing: .15em; }
.eyebrow--orange { color: var(--orange-text); }
h2, .section-head h2 { font-size: 36px; }
.h2--sm { font-size: 30px; }
.h3-like { font-size: 26px; }
.lead { color: var(--text-muted); }
.text-sub { color: var(--text-sub); }
.text-muted { color: var(--text-muted); }
.small { font-size: 14px; }
.note { font-size: 14px; color: var(--text-muted); text-align: center; }

/* ---------- buttons (core/buttons + theme header/footer) ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-buttons.is-centered { justify-content: center; }
.wp-block-button__link, .btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 12px 28px; border-radius: 999px;
	font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.5;
	text-decoration: none; border: 2px solid transparent;
	background: var(--green); color: #fff;
}
.wp-block-button__link:hover { background: var(--green-dark); color: #fff; }
.btn-outline .wp-block-button__link { background: #fff; color: var(--green); border-color: var(--green); }
.btn-outline .wp-block-button__link:hover { background: var(--green-pale); color: var(--green-dark); }
.btn-accent .wp-block-button__link, .btn--accent { background: var(--orange); color: #fff; }
.btn-accent .wp-block-button__link:hover, .btn--accent:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost .wp-block-button__link { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: #fff; color: var(--green); border-color: var(--green); }
.btn--primary { background: var(--green); color: #fff; }

/* ---------- tags & chips ---------- */
.tag { display: inline-block; width: fit-content; align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; line-height: 1.6; }
.tag--green { background: var(--green-soft); color: var(--green-dark); }
.tag--orange { background: var(--orange-soft); color: var(--orange-dark); }
.tag--gray { background: var(--line); color: var(--text-sub); }
.tag--outline { background: #fff; border: 1px solid #DCE7E0; color: var(--text-sub); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--center { justify-content: center; }
.chip { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--green-pale); color: var(--green-dark); }
.chip--line { background: #fff; border: 1px solid #DCE7E0; color: var(--text); }
.chip--orange { font-size: 13px; border-radius: 8px; padding: 4px 12px; background: var(--orange-pale); color: var(--orange-dark); }

/* ---------- images ---------- */
.media { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--green-ph); }
.card__img { aspect-ratio: 16 / 9; background: var(--green-ph); overflow: hidden; }
.split__img { aspect-ratio: 16 / 7; background: var(--orange-ph); overflow: hidden; }
.media img, .card__img img, .split__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__mark { width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--round); font-weight: 900; font-size: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__en { font-family: var(--round); font-weight: 900; font-size: 20px; letter-spacing: .08em; }
.brand__ja { font-size: 12px; color: var(--text-muted); }
.brand .custom-logo { max-height: 52px; width: auto; }
.gnav { display: flex; align-items: center; gap: 24px; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.gnav ul a { text-decoration: none; color: var(--text); }
.gnav ul a:hover { color: var(--green); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 48px; height: 48px; cursor: pointer; color: var(--text); }
@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 16px 24px 24px; gap: 16px; }
	.gnav.is-open { display: flex; }
	.gnav ul { flex-direction: column; gap: 0; }
	.gnav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 80px; }
.hero__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero > .media { flex: 1 1 420px; min-width: 0; }
.hero h1 { font-size: 50px; line-height: 1.38; font-weight: 900; }
.hero__lead { font-size: 17px; color: var(--text-sub); }
.hero__office { font-family: var(--round); font-size: 22px; font-weight: 700; color: var(--green); }
.hero .eyebrow { letter-spacing: .1em; }

/* ---------- cards ---------- */
.card { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.card__body h3 { font-size: 21px; }
.card__body p { font-size: 15px; color: var(--text-sub); }
.card__body .card__tools { font-size: 13px; font-weight: 700; color: var(--green); }
.num-card { background: #fff; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.num-card__num { font-family: var(--round); font-size: 34px; font-weight: 900; color: var(--green); line-height: 1.2; }
.num-card h3 { font-size: 20px; }
.num-card p:not(.num-card__num) { font-size: 15px; color: var(--text-sub); }
.panel { background: #fff; border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.panel--sm { padding: 28px 32px; gap: 12px; border-radius: 20px; }
.panel--sm h3 { font-size: 19px; }

/* ---------- office cards ---------- */
.office { border: 1px solid #DCE7E0; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.office--orange { border-color: #F0DDD0; }
.office__body { padding: 32px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.office__body h3 { font-size: 28px; }
.office__target { font-weight: 700; color: var(--green); }
.office--orange .office__target { color: var(--orange-text); }
.office__btn { margin-top: auto; }
.office__btn .wp-block-button { width: 100%; }
.office__btn .wp-block-button__link { width: 100%; }

/* label + value rows: <p><strong>所在地</strong>値</p> */
.info { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-sub); }
.info p { padding-left: 5.5em; text-indent: -5.5em; }
.info strong { display: inline-block; width: 5.5em; text-indent: 0; font-weight: 700; }
.info--lg { gap: 14px; font-size: 16px; color: var(--text); }
.info--lg p { padding-left: 7em; text-indent: -7em; }
.info--lg strong { width: 7em; color: var(--green-dark); }

/* ---------- guide / voice ---------- */
.guide { background: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.guide__q { font-size: 18px; font-weight: 700; color: var(--green-ink); }
.guide__a { font-weight: 700; color: var(--green); }
.guide__a--orange { color: var(--orange-text); }
.voice { background: var(--green-pale); border-radius: 20px; padding: 24px; font-weight: 700; font-size: 17px; text-align: center; color: var(--green-dark); }

/* ---------- news ---------- */
.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.news-head__more { font-weight: 700; }
.news-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 20px; }
.news-list li + li { border-top: 1px solid var(--line); }
.news-list a { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 22px 28px; text-decoration: none; color: var(--text); }
.news-list a:hover .news-list__title { color: var(--green); text-decoration: underline; }
.news-list time { font-size: 14px; color: var(--text-muted); }
.news-list .tag { font-size: 12px; padding: 2px 12px; align-self: center; }
.news-list__title { flex: 1 1 300px; }
.news-empty { padding: 28px; color: var(--text-muted); }

/* ---------- steps & timeline ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 20px; }
.step { flex: 1 1 240px; background: var(--bg); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.steps__num { font-weight: 700; color: var(--green); font-size: 14px; }
.step h3 { font-size: 19px; }
.step p:not(.steps__num) { font-size: 14px; color: var(--text-sub); }
.timeline { display: flex; flex-direction: column; gap: 12px; }
.timeline p { display: flex; gap: 24px; align-items: center; background: var(--bg); border-radius: 16px; padding: 18px 24px; }
.timeline strong { flex: 0 0 64px; font-family: var(--round); font-weight: 900; font-size: 20px; color: var(--green); }

/* ---------- split (lunch) ---------- */
.split { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.split__body { padding: 32px 40px 40px; display: flex; flex-direction: column; gap: 12px; }
.split__body .eyebrow, .panel .eyebrow { letter-spacing: .1em; }

/* ---------- map ---------- */
.map { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--green-ph); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- contact band ---------- */
.contact { background: var(--green); color: #fff; padding: 80px 0; }
.section > .container.contact__inner, .contact__inner { align-items: center; gap: 24px; text-align: center; }
.contact h2 { color: #fff; font-size: 34px; }
.tel-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; width: 100%; }
.tel-card { flex: 0 1 380px; background: #fff; color: var(--green-dark); border-radius: 20px; padding: 20px 32px; display: flex; flex-direction: column; gap: 2px; }
.tel-card__label { font-size: 13px; font-weight: 700; }
.tel-card__num { font-size: 28px; font-weight: 700; font-family: var(--round); line-height: 1.5; }
.tel-card__num a { color: var(--green-dark); text-decoration: none; }
.tel-card__note { font-size: 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-ink); color: #E9E4DA; padding: 56px 0 32px; font-size: 13px; }
.site-footer a { color: #E9E4DA; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; }
.site-footer__cols > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.site-footer__name { font-weight: 700; color: #fff; font-size: 14px; }
.site-footer__brand { font-family: var(--round); font-weight: 900; font-size: 22px; letter-spacing: .08em; color: #fff; }
.footer-nav ul { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.copyright { margin-top: 24px; font-size: 12px; color: #BDB6A9; border-top: 1px solid #3A463F; padding-top: 20px; }

/* ---------- posts & plain pages ---------- */
.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 56px 0; }
.page-hero h1 { font-size: 36px; }
.entry { background: #fff; border-radius: 24px; padding: 48px; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; color: var(--text-muted); font-size: 14px; }
.entry__title { font-size: 30px; margin-bottom: 24px; }
.entry__thumb { margin-bottom: 32px; border-radius: 16px; overflow: hidden; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 24px; margin-top: 2em; padding-bottom: 8px; border-bottom: 2px solid var(--green-soft); }
.entry-content h3 { font-size: 20px; margin-top: 1.6em; }
.entry-content img { border-radius: 12px; }
.pagination { margin-top: 32px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 999px; background: #fff; text-decoration: none; }
.pagination .current { background: var(--green); color: #fff; }
.post-nav { margin-top: 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cat-filter a { text-decoration: none; }

@media (max-width: 720px) {
	.section { padding: 64px 0; }
	.section--sm { padding: 56px 0; }
	.hero { padding-top: 40px; padding-bottom: 56px; gap: 32px; }
	.hero h1 { font-size: 32px; }
	.hero h1 br { display: none; }
	h2, .section-head h2 { font-size: 27px; }
	.h2--sm, .h3-like, .contact h2 { font-size: 24px; }
	.office__body, .panel, .entry, .split__body { padding: 28px 24px; }
	.info--lg p { padding-left: 0; text-indent: 0; }
	.info--lg strong { display: block; width: auto; }
	.timeline p { gap: 16px; padding: 16px 18px; }
}
