/* =========================================================
   Fujitagumi theme — base styles + responsive layout
   Mobile-first; desktop rules live in the max/min-width query
   at the bottom of each section.
   ========================================================= */

:root {
	--beige: #EAE4D8;
	--dark: #1a1a1a;
	--contact-dark: #161616;
	--ink: #2b2926;
	--ink-soft: #4a4640;
	--muted: #8a8478;
	--line: #d8d2c4;
	--white: #ffffff;
	--container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* So an anchor link (menu sub-items pointing at #service-exterior, #contact, etc.)
   doesn't land a heading right under the sticky header. */
[id] { scroll-margin-top: 90px; }

body {
	margin: 0;
	font-family: 'Noto Sans JP', sans-serif;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	font-size: 15px;
	line-height: 1.8;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; -webkit-appearance: none; appearance: none; outline: none; }

.serif { font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, 'Shippori Mincho', serif; }
.en { font-family: 'EB Garamond', serif; }
.label { font-size: 11px; letter-spacing: 3px; color: var(--muted); margin-bottom: 8px; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--dark);
	color: #fff;
	font-size: 13px;
	padding: 14px 26px;
	border-radius: 999px;
	white-space: nowrap;
}
.btn--small { padding: 9px 14px; font-size: 11px; }
.btn--block { display: flex; justify-content: center; width: 100%; padding: 15px; margin-bottom: 26px; }
.btn--outline { background: transparent; border: 1px solid var(--dark); color: var(--dark); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid rgba(0,0,0,0.04);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	max-width: var(--container);
	margin: 0 auto;
}
/* The uploaded site logo is a white-on-transparent file, made for sitting
   over the front page's dark/transparent hero header. On every other page
   the header has a solid white background, so force the same logo to a
   dark silhouette there (filter works regardless of the file's own
   colors); the front page's dark/transparent header overrides this back
   to the logo's natural (white) colors just below. */
.site-header__logo img { max-height: 40px; width: auto; filter: brightness(0); }
.has-hero-overlay .site-header__logo img { filter: none; }
.site-header__logo-fallback {
	font-family: 'EB Garamond', serif;
	font-size: 18px;
	letter-spacing: 2px;
	color: var(--dark);
}
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: flex; align-items: center; color: var(--dark); padding: 4px; background: none; border: 0; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }

/* Front page only: header starts transparent, overlaid on the hero image,
   and becomes a solid white bar once scrolled past it (toggled via main.js). */
.has-hero-overlay .site-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	background: transparent;
	border-bottom: none;
	transition: background 0.25s ease, box-shadow 0.25s ease;
}
.has-hero-overlay .site-header__logo-fallback,
.has-hero-overlay .menu-toggle { color: #fff; }
.has-hero-overlay .site-header .btn--pill {
	background: transparent;
	border: 1px solid rgba(255,255,255,0.85);
	color: #fff;
}
.has-hero-overlay .site-header.is-scrolled {
	position: fixed;
	background: var(--dark);
	border-bottom: 1px solid rgba(255,255,255,0.08);
	box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.primary-menu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
	background: #fff;
	border-top: 1px solid rgba(0,0,0,0.04);
}
.primary-menu.is-open { max-height: 90vh; overflow-y: auto; }
.primary-menu__list { display: flex; flex-direction: column; padding: 8px 18px 18px; }
.primary-menu__list li { border-bottom: 1px solid rgba(0,0,0,0.05); }
.primary-menu__list a { display: block; padding: 14px 4px; font-size: 14px; }

/* Sub-menus (e.g. 事業案内 > 外構/内装/施設/公共事業): the whole menu already
   sits behind the hamburger, so children just show indented underneath their
   parent — no second click needed. */
.primary-menu__list .sub-menu { list-style: none; margin: 0; padding: 0 0 6px 18px; }
.primary-menu__list .sub-menu li { border-bottom: 0; }
.primary-menu__list .sub-menu a { padding: 9px 4px; font-size: 12.5px; color: var(--muted); }
.primary-menu__list .menu-item-has-children > a { display: flex; align-items: center; justify-content: space-between; }
.primary-menu__list .menu-item-has-children > a::after { content: "▾"; font-size: 10px; margin-left: 10px; color: var(--muted); }

/* =========================================================
   Hero
   ========================================================= */
.hero__media { position: relative; width: 100%; height: 300px; overflow: hidden; }
.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: center center;
	animation: fujitagumi-hero-zoom 20s ease-out forwards;
	will-change: transform;
}
@keyframes fujitagumi-hero-zoom {
	from { transform: scale(1); }
	to   { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
	.hero__media img { animation: none; }
}
/* Darkens the top (so the overlaid logo/menu stay legible) and the bottom
   (so the catch copy and, on desktop, the overlapping headline stay legible)
   without flattening the whole photo. */
.hero__media::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 24%),
		linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 48%);
}
.hero__catch {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	writing-mode: vertical-rl;
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, 'Shippori Mincho', serif;
	font-size: 16px;
	font-weight: bold;
	letter-spacing: 6px;
	text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}
.hero__text { padding: 26px 22px 30px; background: #fff; }
.hero__text h1 { font-size: 21px; line-height: 1.6; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 12px; }
.hero__text p { font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); }

/* =========================================================
   About
   ========================================================= */
.about { background: var(--beige); padding: 40px 22px 44px; }
.about__media img { width: 100%; height: 220px; object-fit: cover; border-radius: 2px; margin-bottom: 26px; }
.about__content h2 { font-size: 20px; line-height: 1.75; font-weight: 600; margin-bottom: 16px; }
.about__content p { font-size: 12.5px; line-height: 2; color: var(--ink-soft); margin-bottom: 24px; }

/* =========================================================
   Services (4 cards) — a beige band across the top, the accent
   copy running vertically top-right over the band and into the
   white area below it, and a 2-column photo grid underneath.
   ========================================================= */
.services { position: relative; background: #fff; padding: 0 22px 40px; }
/* Full-bleed band: breaks out of the (possibly width-limited) .services box
   to always span the full viewport width, however wide the screen is. */
.services__band { position: absolute; top: 0; left: 50%; width: 100vw; transform: translateX(-50%); height: 110px; background: var(--beige); z-index: 0; }
.services__accent {
	position: relative;
	z-index: 2;
	writing-mode: vertical-rl;
	float: right;
	margin: 22px 4px 24px 0;
	font-size: 14px;
	line-height: 1.9;
	letter-spacing: 2px;
	color: var(--ink);
}
.services__grid {
	position: relative;
	z-index: 1;
	clear: both;
	padding-top: 20px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 20px 14px;
}
.services__card { display: block; color: inherit; text-decoration: none; }
.services__image { overflow: hidden; border-radius: 2px; margin-bottom: 12px; }
.services__image img { width: 100%; height: 130px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.services__card:hover .services__image img { transform: scale(1.05); }
.services__en { text-align: center; font-size: 15px; letter-spacing: 1px; }
.services__jp { text-align: center; font-size: 11px; color: var(--muted); margin-top: 2px; letter-spacing: 1px; }

/* =========================================================
   Section heading (shared: works / archive)
   ========================================================= */
.section-heading { text-align: center; margin-bottom: 22px; }
.section-heading h2, .section-heading h1 { font-size: 22px; font-weight: 600; }

/* =========================================================
   Works grid
   ========================================================= */
.works { background: var(--beige); padding: 44px 22px 40px; }
.works__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
.works__item { display: block; overflow: hidden; border-radius: 2px; }
.works__item img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; transition: transform 0.4s ease; }
.works__item:hover img { transform: scale(1.05); }
.works__more { text-align: center; }
.works__more a { font-size: 12.5px; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }

.works-archive { max-width: var(--container); margin: 0 auto; padding: 60px 22px; }
.works__grid--archive { grid-template-columns: repeat(2, minmax(0,1fr)); }
.works__item-title { display: block; font-size: 12px; margin-top: 8px; color: var(--ink-soft); }
.pagination { text-align: center; margin-top: 30px; }
.pagination .page-numbers { display: inline-block; padding: 6px 12px; font-size: 13px; }
.pagination .current { font-weight: 700; }

/* =========================================================
   Recruit
   ========================================================= */
.recruit { position: relative; padding: 46px 22px 40px; }
.recruit__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.92) saturate(0.9); }
.recruit__inner { position: relative; z-index: 1; }
.recruit h2 { font-size: 22px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.recruit__excerpt { font-size: 12.5px; line-height: 2; color: #e7e3da; margin-bottom: 22px; }
.recruit__excerpt p { margin: 0; }
.recruit__media img { width: 100%; height: 190px; object-fit: cover; border-radius: 2px; margin-bottom: 24px; border: 6px solid rgba(255,255,255,0.06); }
.recruit__media--desktop { display: none; }

/* =========================================================
   FAQ / company info cards
   ========================================================= */
.info-cards { background: var(--beige); padding: 40px 22px; display: flex; flex-direction: column; gap: 36px; }
.info-cards__card { display: block; }
.info-cards__image img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 2px; margin-bottom: 16px; }
.info-cards__card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.info-cards__card p { font-size: 12px; line-height: 1.9; color: var(--ink-soft); }

/* =========================================================
   Contact
   ========================================================= */
.contact { position: relative; background: var(--contact-dark); padding: 40px 24px 46px; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__card { position: relative; z-index: 1; background: var(--beige); border-radius: 2px; padding: 32px 22px; max-width: 640px; margin: 0 auto; }
.contact__card h2 { font-size: 19px; font-weight: 600; text-align: center; margin-bottom: 10px; }
.contact__lead { font-size: 11.5px; color: #5c574e; text-align: center; margin-bottom: 24px; }
.contact__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.contact__row .btn--pill { flex-shrink: 0; }
.contact__tel { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.contact__tel a { font-size: 22px; font-weight: 600; letter-spacing: 1px; }
.contact__hours { font-size: 11px; color: #5c574e; padding-left: 28px; }
.contact__sns { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); font-size: 11.5px; letter-spacing: 1px; color: #5c574e; }
.instagram-badge { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg,#f9ce34,#ee2a7b,#6228d7); padding: 7px 14px; border-radius: 999px; }
.instagram-badge span.en { color: #fff; font-size: 11px; font-style: italic; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #000; padding: 40px 22px 34px; }
.site-footer__logo img { max-height: 58px; width: auto; filter: brightness(0) invert(1); margin-bottom: 22px; }
.site-footer__name { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer__name .en { display: block; font-size: 13px; margin-left: 0; margin-top: 6px; color: #cfc9bc; }
.site-footer__address { font-size: 11.5px; line-height: 1.9; color: #a7a297; margin-bottom: 26px; }
.site-footer__nav { margin-top: 10px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); }
.site-footer__nav-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; font-size: 12.5px; letter-spacing: 1px; color: #e9e6df; }
.site-footer__nav-list li { display: flex; align-items: center; }
.site-footer__nav-list li:not(:last-child)::after { content: "|"; margin: 0 14px; color: rgba(255,255,255,0.3); }
.site-footer__copyright { font-size: 10.5px; color: #6b665c; margin-top: 24px; text-align: center; }

/* =========================================================
   Generic page / article (藤田組とは・採用情報・会社概要・プライバシーポリシー 等)
   ========================================================= */
.page-main { max-width: 820px; margin: 0 auto; padding: 50px 22px 70px; }
.page-article__thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 2px;
	margin-bottom: 24px;
}
.page-article__thumb img {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 16 / 9 !important;
	object-fit: cover !important;
	border-radius: 2px;
	margin-bottom: 0;
	display: block;
}
.page-article__header h1 { font-size: 24px; font-weight: 600; margin-bottom: 30px; }
.page-article__content { font-size: 14px; line-height: 2; color: var(--ink-soft); }
.page-article__content p { margin-bottom: 1.4em; }
.page-article__content h2 { font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, 'Shippori Mincho', serif; font-size: 19px; margin: 1.6em 0 0.8em; color: var(--ink); }
.page-article__content img { border-radius: 2px; margin: 1em 0; }

/* =========================================================
   Contact Form 7 — styles the plugin's default markup to match
   the site (inputs/labels/submit button), wherever the [contact-form-7]
   shortcode is pasted into a page's content.
   ========================================================= */
.wpcf7-form { max-width: 640px; margin: 28px auto 0; }
.wpcf7-form p { margin-bottom: 20px; }
.wpcf7-form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: 1px; margin-bottom: 8px; }
.wpcf7-form-required { color: #b5452f; font-weight: 600; font-size: 11px; margin-left: 4px; }
.wpcf7-form-control {
	width: 100%;
	padding: 13px 14px;
	font-size: 14px;
	font-family: inherit;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 2px;
	transition: border-color 0.2s ease;
}
.wpcf7-form-control:focus { outline: none; border-color: var(--dark); }
textarea.wpcf7-form-control { min-height: 160px; resize: vertical; line-height: 1.8; }
select.wpcf7-form-control { appearance: auto; }
.wpcf7-form-control-wrap { display: block; position: relative; }
.wpcf7-not-valid-tip { display: block; color: #b5452f; font-size: 11.5px; margin-top: 6px; }
.wpcf7-form .wpcf7-submit,
input[type="submit"].wpcf7-form-control {
	display: inline-flex;
	align-items: center;
	width: auto;
	background: var(--dark);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 15px 44px;
	font-size: 13px;
	letter-spacing: 1px;
	cursor: pointer;
}
.wpcf7-form .wpcf7-submit:hover,
input[type="submit"].wpcf7-form-control:hover { opacity: 0.88; }
.wpcf7-spinner { margin-left: 12px; }
.wpcf7-response-output {
	margin: 22px 0 0;
	padding: 14px 18px;
	border-radius: 2px;
	font-size: 12.5px;
	line-height: 1.8;
	border: 1px solid var(--line);
}
.wpcf7-form.sent .wpcf7-response-output { color: #2e7d46; border-color: #2e7d46; background: #f0f8f2; }
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output { color: #b5452f; border-color: #b5452f; background: #fbf1ef; }

.work-single__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; margin-bottom: 24px; }
.work-single__article h1 { font-size: 24px; font-weight: 600; margin-bottom: 14px; }
.work-single__cats { margin-bottom: 20px; }
.work-single__cats .tag { display: inline-block; font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; margin-right: 6px; }
.work-single__content { font-size: 14px; line-height: 2; color: var(--ink-soft); max-width: 820px; margin: 0 auto; }
.work-single__back { margin-top: 30px; font-size: 13px; max-width: 820px; margin-left: auto; margin-right: auto; }
.work-single__article { max-width: var(--container); margin: 0 auto; padding: 50px 22px 70px; }

.simple-list { max-width: 820px; margin: 0 auto; padding: 50px 22px 0; }
.simple-list__item { margin-bottom: 40px; }
.simple-list__item h2 { font-size: 18px; margin-bottom: 10px; }
.simple-list__excerpt { font-size: 13px; color: var(--ink-soft); line-height: 1.9; }

/* =========================================================
   About story page (template-about.php)
   ========================================================= */
.about-story__hero { position: relative; width: 100%; height: 56vh; min-height: 340px; overflow: hidden; }
.about-story__hero-media, .about-story__hero-media img { width: 100%; height: 100%; object-fit: cover; }
.about-story__hero-media {
	position: absolute;
	inset: 0;
	animation: fujitagumi-hero-zoom 20s ease-out forwards;
}
.about-story__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%);
}
.about-story__hero-copy {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 26px;
	z-index: 2;
}
.about-story__hero-copy p {
	color: #fff;
	font-size: 22px;
	line-height: 1.6;
	font-weight: 600;
	text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}

.about-story__body { max-width: 680px; margin: 0 auto; padding: 54px 22px; font-size: 14px; line-height: 2; color: var(--ink-soft); }
.about-story__body p { margin-bottom: 1.4em; }
.about-story__body h2 {
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, 'Shippori Mincho', serif;
	font-size: 22px;
	line-height: 1.6;
	font-weight: 600;
	color: var(--ink);
	text-align: center;
	margin: 1.6em 0 0.9em;
}
/* An image inserted in the editor breaks out of the narrow reading column
   to run (near) full width, matching the rest of the site's photo treatment. */
.about-story__body img,
.about-story__body figure {
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin: 2em calc(50% - 50vw);
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.about-story__body figure img { width: 100%; height: 100%; }
.about-story__body figcaption { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 10px; }

.about-story__services { background: var(--beige); padding: 48px 22px; }
.about-story__services-grid { display: flex; flex-direction: column; gap: 30px; max-width: var(--container); margin: 0 auto; }
.about-story__service h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.about-story__service p { font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); }

.about-story__closing { max-width: 680px; margin: 0 auto; padding: 54px 22px; text-align: center; }
.about-story__closing h2 {
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, 'Shippori Mincho', serif;
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 1em;
}
.about-story__closing p { font-size: 13px; line-height: 2; color: var(--ink-soft); margin-bottom: 1.2em; text-align: left; }

.about-story__cta { background: var(--contact-dark); padding: 54px 22px; text-align: center; }
.about-story__cta h2 {
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, 'Shippori Mincho', serif;
	font-size: 22px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 14px;
}
.about-story__cta p { font-size: 12.5px; line-height: 1.9; color: #cfc9bc; margin-bottom: 22px; text-align: left; }
.about-story__cta .label { color: #8a8478; margin-bottom: 16px; }
.about-story__cta-buttons { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.about-story__cta .btn--outline { border-color: rgba(255,255,255,0.6); color: #fff; }

/* =========================================================
   Service page (template-exterior.php and future 内装/施設/公共事業 pages)
   ========================================================= */
.mobile-only { display: inline; }

.service-hero { position: relative; width: 100%; height: 50vh; min-height: 320px; overflow: hidden; }
.service-hero__media, .service-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.service-hero__media { position: absolute; inset: 0; animation: fujitagumi-hero-zoom 20s ease-out forwards; }
.service-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%);
}
.service-hero__copy { position: absolute; left: 22px; right: 22px; bottom: 26px; z-index: 2; color: #fff; }
.service-hero__copy .label { color: #cfc9bc; }
.service-hero__copy h1 { font-size: 26px; line-height: 1.5; font-weight: 600; text-shadow: 0 2px 14px rgba(0,0,0,0.4); }

.service-intro { max-width: 680px; margin: 0 auto; padding: 44px 22px; font-size: 14px; line-height: 2; color: var(--ink-soft); }
.service-intro p { margin-bottom: 1.4em; }

.service-philosophy { background: var(--beige); padding: 48px 22px; text-align: center; }
.service-philosophy h2 {
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, 'Shippori Mincho', serif;
	font-size: 21px;
	font-weight: 600;
	margin-bottom: 1.1em;
}
.service-philosophy p { font-size: 13px; line-height: 2; color: var(--ink-soft); max-width: 560px; margin: 0 auto 1.2em; text-align: left; }

.service-grid-section { padding: 48px 22px; }
.service-grid { display: flex; flex-direction: column; gap: 32px; max-width: var(--container); margin: 0 auto; }
.service-grid__num { display: block; font-size: 13px; letter-spacing: 2px; color: var(--muted); margin-bottom: 8px; }
.service-grid__item h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.service-grid__item p { font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); }

.service-strengths { background: var(--contact-dark); padding: 48px 22px; }
.service-strengths h2 {
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, 'Shippori Mincho', serif;
	font-size: 21px;
	font-weight: 600;
	color: #fff;
	text-align: center;
	margin-bottom: 36px;
}
.service-strengths__grid { display: flex; flex-direction: column; gap: 30px; max-width: var(--container); margin: 0 auto; }
.service-strengths__num { display: block; font-size: 13px; letter-spacing: 2px; color: #8a8478; margin-bottom: 8px; }
.service-strengths__item h3 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.service-strengths__item p { font-size: 12.5px; line-height: 1.9; color: #b8b2a4; }

.service-works { background: var(--beige); padding: 48px 22px; text-align: center; }
.service-works__lead { font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); max-width: 560px; margin: 0 auto 26px; text-align: left; }
.service-works__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; max-width: var(--container); margin: 0 auto 28px; }
.service-works__item { display: block; overflow: hidden; border-radius: 2px; }
.service-works__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.4s ease; }
.service-works__item:hover img { transform: scale(1.05); }

/* A single featured case-study card (used on the 公共工事 page in place of
   the plain thumbnail grid, so one specific project can be told as a
   mini story rather than shown as one of several equal-weight photos). */
.service-case { max-width: var(--container); margin: 0 auto; background: #fff; border-radius: 2px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: left; }
.service-case__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.service-case__body { padding: 24px 22px; }
.service-case__body h3 {
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, 'Shippori Mincho', serif;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 10px;
}
.service-case__body p { font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); margin-bottom: 18px; }

.service-area { padding: 54px 22px; text-align: center; }
.service-area h2 {
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, 'Shippori Mincho', serif;
	font-size: 21px;
	font-weight: 600;
	margin-bottom: 1em;
}
.service-area p { font-size: 13px; line-height: 2; color: var(--ink-soft); max-width: 520px; margin: 0 auto 26px; text-align: left; }

/* =========================================================
   Recruit page (template-recruit.php)
   ========================================================= */
.recruit-jobs { padding: 48px 22px; }
.recruit-jobs__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; max-width: var(--container); margin: 0 auto; }
.recruit-jobs__item { display: block; text-decoration: none; color: inherit; }
.recruit-jobs__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; margin-bottom: 10px; }
.recruit-jobs__item h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.recruit-jobs__item p { font-size: 11.5px; line-height: 1.8; color: var(--ink-soft); }

.recruit-people { padding: 48px 22px; }
.recruit-people__list { display: flex; flex-direction: column; gap: 22px; max-width: 640px; margin: 0 auto 44px; }
.recruit-people__item h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.recruit-people__item p { font-size: 12.5px; line-height: 1.8; color: var(--ink-soft); }
.recruit-people__closing { max-width: 640px; margin: 0 auto; text-align: center; font-size: 13px; line-height: 2; color: var(--ink-soft); }
.recruit-people__closing p { margin-bottom: 1em; text-align: left; }

.recruit-requirements { background: var(--beige); padding: 48px 22px; }
.recruit-requirements__table { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 2px; overflow: hidden; }
.recruit-requirements__row { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.recruit-requirements__row:last-child { border-bottom: 0; }
.recruit-requirements__label { font-size: 11.5px; font-weight: 600; letter-spacing: 1px; color: var(--muted); }
.recruit-requirements__value { font-size: 13px; line-height: 1.9; color: var(--ink); white-space: pre-line; }
.recruit-requirements__note { max-width: 720px; margin: 18px auto 0; font-size: 11.5px; line-height: 1.9; color: var(--muted); }

/* =========================================================
   Company profile (template-company.php)
   ========================================================= */
.company-profile { background: var(--beige); padding: 40px 22px; }
.company-profile__table { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 2px; overflow: hidden; }
.company-profile__row { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.company-profile__row:last-child { border-bottom: 0; }
.company-profile__label { font-size: 11.5px; font-weight: 600; letter-spacing: 1px; color: var(--muted); }
.company-profile__value { font-size: 13px; line-height: 1.9; color: var(--ink); white-space: pre-line; }

/* =========================================================
   FAQ page (template-faq.php) — accordion built on native
   <details>/<summary>, so it works with no extra JS.
   ========================================================= */
.faq-intro { max-width: 640px; margin: 0 auto; padding: 0 22px 10px; font-size: 13px; line-height: 2; color: var(--ink-soft); }
.faq-intro p { margin-bottom: 1.2em; text-align: left; }

.faq-category { max-width: 760px; margin: 0 auto; padding: 32px 22px 6px; }
.faq-category__title {
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, 'Shippori Mincho', serif;
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
	padding-bottom: 10px;
	margin-bottom: 16px;
	border-bottom: 2px solid var(--beige);
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.faq-item__q {
	list-style: none;
	cursor: pointer;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 15px 40px 15px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	position: relative;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ""; }
.faq-item__q::after {
	content: "+";
	position: absolute;
	right: 16px;
	top: 14px;
	font-size: 16px;
	line-height: 1;
	color: var(--muted);
}
.faq-item[open] > .faq-item__q::after { content: "−"; }
.faq-item__q-label, .faq-item__a-label { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.faq-item__a { display: flex; gap: 10px; padding: 0 18px 16px 16px; font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); }

/* =========================================================
   Desktop layout (matches the original PC design)
   ========================================================= */
@media (min-width: 900px) {

	.site-header__inner { padding: 20px 40px; }
	.site-header__actions { gap: 28px; }

	/* The original design keeps the hamburger trigger at every width —
	   it opens a right-aligned dropdown panel on desktop instead of a
	   full-width accordion. */
	.primary-menu {
		position: absolute;
		right: 40px;
		top: 100%;
		width: 280px;
		max-height: none;
		overflow: visible;
		background: #fff;
		box-shadow: 0 16px 40px rgba(0,0,0,0.12);
		border-top: 0;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.2s ease;
	}
	.primary-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
	.primary-menu__list { padding: 10px 8px; }
	.primary-menu__list a { padding: 12px 14px; font-size: 13px; }

	.site-header { position: sticky; }

	.hero { display: flex; flex-wrap: wrap; align-items: stretch; }
	.hero__media { width: 100%; height: 72vh; min-height: 520px; }
	.hero__catch { font-size: 24px; }
	.hero__text {
		position: relative;
		margin-top: -170px;
		z-index: 2;
		background: transparent;
		padding: 0 60px 50px;
		max-width: 760px;
	}
	.hero__text h1 { color: #fff; font-size: 34px; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
	.hero__text p { color: #fff; font-size: 14px; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }

	.about__inner {
		max-width: var(--container);
		margin: 0 auto;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 70px;
		align-items: center;
	}
	.about { padding: 90px 40px; }
	.about__media { order: 2; }
	.about__media img { height: 440px; }
	.about__content { order: 1; }
	.about__content h2 { font-size: 30px; }
	.about__content p { font-size: 14px; max-width: 420px; }

	.services { max-width: var(--container); margin: 0 auto; padding: 0 40px 80px; }
	.services__band { height: 160px; }
	.services__accent { margin: 46px 0 32px; font-size: 26px; }
	.services__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px 40px; max-width: 700px; padding-top: 30px; }
	.services__image img { height: 220px; }
	.services__en { font-size: 20px; }

	.works { padding: 90px 40px; }
	.works__grid, .works__grid--archive { max-width: var(--container); margin: 0 auto 30px; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
	.section-heading h2, .section-heading h1 { font-size: 30px; }
	.works-archive { padding: 90px 40px; }

	.recruit { padding: 110px 40px; }
	.recruit__inner { position: relative; max-width: var(--container); margin: 0 auto; }
	.recruit__content { max-width: 460px; }
	.recruit__media--mobile { display: none; }
	.recruit__media--desktop {
		display: block;
		position: absolute;
		top: -20px;
		right: -10px;
		width: 44%;
		max-width: 420px;
	}
	.recruit__media--desktop img {
		width: 100%;
		height: 320px;
		object-fit: cover;
		border: 8px solid #fff;
		border-radius: 0;
		box-shadow: 0 25px 50px rgba(0,0,0,0.35);
		margin-bottom: 0;
	}
	.recruit h2 { font-size: 30px; }
	.recruit__excerpt { font-size: 14px; max-width: 420px; }

	.info-cards {
		flex-direction: row;
		gap: 40px;
		padding-top: 80px;
		padding-bottom: 80px;
		/* Keeps the beige background full-bleed while centering the cards
		   within the usual 1180px content width. */
		padding-left: max(40px, calc((100% - var(--container)) / 2));
		padding-right: max(40px, calc((100% - var(--container)) / 2));
	}
	.info-cards__card { flex: 1; }

	.contact__card { padding: 44px 60px; }
	.contact { padding: 90px 40px; }
	.contact__card h2 { font-size: 26px; }

	.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: 10px 40px; }
	.site-footer { padding: 70px 0 40px; }
	.site-footer__nav { grid-column: unset; grid-row: unset; margin-top: 34px; padding-top: 28px; }
	.site-footer__nav-list { justify-content: center; font-size: 13px; }
	.site-footer__copyright { text-align: center; }

	.page-main { padding: 90px 40px 110px; }
	.work-single__article { padding: 90px 40px 110px; }

	.about-story__hero { height: 72vh; min-height: 520px; }
	.about-story__hero-copy { left: 60px; right: 60px; bottom: 60px; }
	.about-story__hero-copy p { font-size: 36px; }
	.about-story__body { padding: 90px 40px; font-size: 15px; }
	.about-story__body h2 { font-size: 28px; margin: 1.8em 0 1em; }
	.about-story__services { padding: 90px 40px; }
	.about-story__services-grid { flex-direction: row; gap: 50px; }
	.about-story__service { flex: 1; }
	.about-story__service h3 { font-size: 19px; }
	.about-story__closing { padding: 90px 40px; }
	.about-story__closing h2 { font-size: 28px; }
	.about-story__closing p { font-size: 14px; max-width: 560px; margin-left: auto; margin-right: auto; }
	.about-story__cta { padding: 100px 40px; }
	.about-story__cta h2 { font-size: 30px; }
	.about-story__cta p { font-size: 14px; }
	.about-story__cta-buttons { flex-direction: row; justify-content: center; }

	.mobile-only { display: none; }

	.service-hero { height: 68vh; min-height: 480px; }
	.service-hero__copy { left: 60px; right: 60px; bottom: 56px; }
	.service-hero__copy h1 { font-size: 40px; }
	.service-intro { padding: 80px 40px; font-size: 15px; }
	.service-philosophy { padding: 90px 40px; }
	.service-philosophy h2 { font-size: 28px; }
	.service-philosophy p { font-size: 14px; }
	.service-grid-section { padding: 90px 40px; }
	.service-grid { flex-direction: row; flex-wrap: wrap; gap: 50px 40px; }
	.service-grid__item { flex: 1 1 calc(50% - 20px); }
	.service-grid__item h3 { font-size: 19px; }
	.service-strengths { padding: 90px 40px; }
	.service-strengths h2 { font-size: 28px; margin-bottom: 50px; }
	.service-strengths__grid { flex-direction: row; gap: 50px; }
	.service-strengths__item { flex: 1; }
	.service-works { padding: 90px 40px; }
	.service-works__grid { gap: 20px; }
	.service-works__item img { aspect-ratio: 4 / 3; }
	.service-case { display: flex; align-items: stretch; }
	.service-case__media { width: 46%; flex-shrink: 0; }
	.service-case__media img { height: 100%; }
	.service-case__body { flex: 1; padding: 40px 48px; display: flex; flex-direction: column; justify-content: center; }
	.service-case__body h3 { font-size: 18px; }
	.service-case__body p { font-size: 13.5px; }
	.service-area { padding: 100px 40px; }
	.service-area h2 { font-size: 28px; }
	.service-area p { font-size: 14px; }

	.recruit-jobs { padding: 90px 40px; }
	.recruit-jobs__grid { gap: 28px; }
	.recruit-jobs__item h3 { font-size: 16px; }
	.recruit-jobs__item p { font-size: 13px; }
	.recruit-people { padding: 90px 40px; }
	.recruit-people__list { flex-direction: row; gap: 40px; margin-bottom: 60px; }
	.recruit-people__item { flex: 1; }
	.recruit-people__closing p { font-size: 14px; }
	.recruit-requirements { padding: 90px 40px; }
	.recruit-requirements__row { flex-direction: row; align-items: flex-start; padding: 20px 28px; }
	.recruit-requirements__label { width: 160px; flex-shrink: 0; padding-top: 2px; }
	.recruit-requirements__value { flex: 1; font-size: 13.5px; }

	.faq-intro { font-size: 14px; padding-bottom: 20px; }
	.faq-category { padding: 40px 40px 10px; }
	.faq-category__title { font-size: 20px; }
	.faq-item__q { font-size: 14px; padding: 18px 46px 18px 22px; }
	.faq-item__a { font-size: 13.5px; padding: 0 22px 20px 22px; }

	.company-profile { padding: 90px 40px; }
	.company-profile__row { flex-direction: row; align-items: flex-start; padding: 20px 28px; }
	.company-profile__label { width: 160px; flex-shrink: 0; padding-top: 2px; }
	.company-profile__value { flex: 1; font-size: 13.5px; }
}

@media (min-width: 1300px) {
	.hero__media { height: 640px; }
}
