/*
Theme Name: Arai Kogyo
Theme URI: https://arai-kogyo-inc.com/
Author: 株式会社荒井工業
Description: 株式会社荒井工業 コーポレートサイト用オリジナルテーマ。ページビルダーに依存しないシンプルな構成です。
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: araikogyo
*/

/* ==========================================================================
   変数 / ベース
   ========================================================================== */
:root {
	--c-text: #393c40;
	--c-heading: #151616;
	--c-title: #494c50;
	--c-dark: #151616;
	--c-gray: #f4f4f4;
	--c-line: #d4d4d4;
	--c-btn: #494c50;
	--c-btn-hover: #2c2e31;
	--c-required: #d63638;
	--f-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--f-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	--f-en: "Outfit", "Noto Sans JP", sans-serif;
	--header-h: 96px;
	--container: 1140px;
	--gutter: 24px;
	--offset: max(var(--gutter), calc((100vw - var(--container)) / 2));
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #fff;
	color: var(--c-text);
	font-family: var(--f-serif);
	font-size: 15px;
	line-height: 2;
	letter-spacing: 0.02em;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.3s, color 0.3s, background-color 0.3s;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
	margin: 0;
	padding: 0;
}

ul, ol {
	list-style: none;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid #1d6fd8;
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 8px 16px;
	background: #fff;
}

.skip-link:focus {
	left: 0;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(900px + var(--gutter) * 2);
}

/* スクロール表示アニメーション（JS 有効時のみ） */
.js .js-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s ease, transform 0.9s ease;
}

.js .js-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   共通パーツ
   ========================================================================== */
.sec-title {
	margin-bottom: 36px;
	font-weight: 500;
	line-height: 1;
}

.sec-title__en {
	display: block;
	color: var(--c-title);
	font-size: clamp(48px, 5.6vw, 80px);
	letter-spacing: 0.01em;
}

.sec-title__ja {
	display: block;
	margin-top: 14px;
	color: var(--c-heading);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.05em;
}

.sec-title--light .sec-title__en,
.sec-title--light .sec-title__ja {
	color: #fff;
}

.sec-title--center {
	text-align: center;
}

.sec-title--sans .sec-title__en {
	font-family: var(--f-en);
	font-weight: 300;
	font-size: clamp(40px, 4vw, 56px);
}

.sec-title--sans .sec-title__ja {
	font-family: var(--f-sans);
	font-weight: 700;
}

.sec-lead {
	margin-bottom: 32px;
	color: var(--c-heading);
	font-family: var(--f-sans);
	font-size: clamp(22px, 2.3vw, 32px);
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.02em;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 190px;
	padding: 15px 40px;
	border: 1px solid var(--c-btn);
	background: var(--c-btn);
	color: #fff;
	font-family: var(--f-serif);
	font-size: 14px;
	line-height: 1.6;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn:hover {
	background: var(--c-btn-hover);
	border-color: var(--c-btn-hover);
}

.btn--light:hover {
	background: #fff;
	border-color: #fff;
	color: var(--c-dark);
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--header-h);
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, background-color 0.3s;
}

.site-header.is-scrolled {
	border-bottom-color: #dfdfdf;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	padding: 0 60px 0 50px;
}

.site-header__logo {
	margin: 0;
	line-height: 1;
}

.site-header__logo a {
	display: block;
}

.site-header__logo img {
	display: block;
	width: auto;
	height: 90px;
}

.global-nav__list {
	display: flex;
	gap: 6px;
}

.global-nav__list a {
	position: relative;
	display: block;
	padding: 10px 12px;
	color: var(--c-text);
	font-size: 14px;
	line-height: 1.6;
	text-transform: uppercase;
}

.global-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--c-heading);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s;
}

.global-nav__list a:hover::after,
.global-nav__list .current-menu-item > a::after,
.global-nav__list .current-post-ancestor > a::after,
.global-nav__list .current-category-ancestor > a::after {
	transform: scaleX(1);
}

.nav-toggle {
	display: none;
	position: relative;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: none;
}

.nav-toggle span {
	position: absolute;
	left: 12px;
	width: 24px;
	height: 2px;
	background: var(--c-heading);
	transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 30px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-main {
	padding-top: var(--header-h);
}

/* トップページ：FV を画面全面にし、ヘッダーは透過で重ねる（スクロール後は白背景に戻る） */
.site-header__logo-white {
	display: none !important;
}

.home .site-main {
	padding-top: 0;
}

.home:not(.is-menu-open) .site-header:not(.is-scrolled) {
	background: transparent;
}

.home:not(.is-menu-open) .site-header:not(.is-scrolled) .site-header__logo-dark {
	display: none;
}

.home:not(.is-menu-open) .site-header:not(.is-scrolled) .site-header__logo-white {
	display: block !important;
}

.home:not(.is-menu-open) .site-header:not(.is-scrolled) .nav-toggle span {
	background: #fff;
}

@media (min-width: 1025px) {
	.home .site-header:not(.is-scrolled) .global-nav__list a {
		color: #fff;
		text-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
	}

	.home .site-header:not(.is-scrolled) .global-nav__list a::after {
		background: #fff;
	}
}

/* 右端固定の「お問い合わせ」タブ */
.side-contact {
	position: fixed;
	top: 170px;
	right: 0;
	z-index: 90;
	padding: 30px 17px;
	background: var(--c-btn);
	color: #fff;
	font-size: 14px;
	line-height: 1.6;
	letter-spacing: 0.25em;
	writing-mode: vertical-rl;
}

.side-contact:hover {
	background: var(--c-btn-hover);
}

/* トップへ戻る */
.to-top {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	background: var(--c-btn);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.to-top:hover {
	background: var(--c-btn-hover);
}

/* ==========================================================================
   トップ：ヒーロー
   ========================================================================== */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 520px;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	background: #2a2c2f;
	color: #fff;
}

.hero__slides,
.hero__slide {
	position: absolute;
	inset: 0;
}

.hero__slide {
	background-position: center;
	background-size: cover;
	opacity: 0;
	transform: scale(1.12);
	transition: opacity 2s ease, transform 8s linear;
}

.hero__slide.is-active {
	opacity: 1;
	transform: scale(1);
}

.hero__slides::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 180px),
		linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05) 70%);
}

.hero__content {
	position: relative;
	z-index: 1;
	padding: 0 60px;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.hero__title {
	font-family: var(--f-en);
	font-size: clamp(64px, 6.2vw, 90px);
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0;
}

/* 改行位置：PC は「Construction / Excellence / You Can Trust」の3行 */
.hero__title > span {
	display: block;
}

.hero__lead {
	margin-top: 36px;
	font-size: clamp(18px, 1.7vw, 24px);
	font-weight: 700;
	line-height: 1.8;
	letter-spacing: 0.08em;
}

/* ==========================================================================
   トップ：Mission
   ========================================================================== */
.mission {
	padding-top: 140px;
}

.mission__panel {
	display: flex;
	align-items: center;
	gap: 5vw;
	margin-left: 10vw;
	padding: 110px var(--offset) 90px 0;
	background: var(--c-gray);
}

.mission__image {
	flex: none;
	width: 51vw;
	margin-left: -10vw;
}

.mission__image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10.5;
	object-fit: cover;
}

.mission__body {
	flex: 1;
	min-width: 0;
}

/* ==========================================================================
   トップ：About Us
   ========================================================================== */
.about {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 48vw;
	gap: 7vw;
	align-items: start;
	padding: 100px 0 190px var(--offset);
}

.about__body {
	padding-top: 110px;
}

.about__body .btn {
	margin-top: 44px;
}

.about__visual {
	position: relative;
}

.about__visual::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 50%;
	height: 100px;
	background: #fff;
}

.about__main {
	display: block;
	width: 100%;
	height: 580px;
	object-fit: cover;
}

.about__sub {
	position: absolute;
	left: -80px;
	bottom: -120px;
	z-index: 2;
	width: 300px;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* アウトライン文字 */
.outline-text {
	position: relative;
	z-index: 2;
	margin-bottom: -0.16em;
	overflow: hidden;
	font-family: "Playfair Display", var(--f-serif);
	font-size: clamp(52px, 10.2vw, 160px);
	font-style: italic;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
}

.outline-text span {
	display: inline-block;
	padding: 0 0.1em 0.16em 0;
	color: #fff;
	-webkit-text-stroke: 1px var(--c-heading);
	paint-order: stroke fill;
}

@supports (-webkit-text-stroke: 1px #000) {
	.outline-text span {
		color: transparent;
	}
}

.outline-text--flat {
	margin-bottom: 20px;
}

/* ==========================================================================
   トップ：Service
   ========================================================================== */
.service {
	position: relative;
	padding: 190px 0 210px;
	background: var(--c-dark);
	color: #fff;
}

.service::before,
.service::after {
	content: "";
	position: absolute;
	background: #fff;
}

.service::before {
	top: 0;
	right: 0;
	width: 31%;
	height: 100px;
}

.service::after {
	left: 0;
	bottom: 0;
	width: 30%;
	height: 90px;
}

.service__head {
	display: grid;
	grid-template-columns: 300px minmax(0, 620px);
	gap: 40px;
	margin-bottom: 90px;
}

.service__intro p + p {
	margin-top: 1.6em;
}

.service__intro .btn {
	margin-top: 44px;
	border-color: #55585c;
	background: #55585c;
}

.service__intro .btn:hover {
	background: #fff;
	border-color: #fff;
	color: var(--c-dark);
}

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

.service-card:nth-child(3n + 2) {
	margin-top: 40px;
}

.service-card:nth-child(3n) {
	margin-top: 80px;
}

.service-card__image {
	overflow: hidden;
}

.service-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.8s ease;
}

.service-card:hover .service-card__image img {
	transform: scale(1.05);
}

.service-card__title {
	margin: 26px 0 10px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.service-card__text {
	font-size: 13px;
	line-height: 2;
}

/* ==========================================================================
   トップ：News
   ========================================================================== */
.news {
	padding: 160px 0;
}

.news__panel {
	position: relative;
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	align-items: end;
	padding-inline: var(--offset);
}

.news__panel::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 69%;
	background: var(--c-gray);
}

.news__head {
	position: relative;
	padding: 110px 0 100px;
}

.news__head .sec-title {
	margin-bottom: 0;
}

.news__body {
	position: relative;
	margin-top: 100px;
	padding: 40px 0 0 70px;
	background: #fff;
}

.news__body .btn {
	margin-top: 50px;
}

.news-list__item {
	border-bottom: 1px solid var(--c-line);
}

.news-list__item a {
	display: block;
	padding: 22px 0;
}

.news-list__item a:hover {
	opacity: 0.6;
}

.news-list__title {
	display: block;
	color: var(--c-heading);
	font-size: 15px;
	line-height: 1.8;
}

.news-list__date {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.6;
}

.news-list__date::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #adadad;
}

/* ==========================================================================
   CTA / フッター
   ========================================================================== */
.cta {
	position: relative;
	background-color: var(--c-dark);
	background-position: center;
	background-size: cover;
	color: #fff;
}

.cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(21, 22, 22, 0.72);
}

.cta__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 1440px;
	margin-inline: auto;
}

.cta__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	padding: 40px 20px;
	text-align: center;
}

.cta__item:hover {
	opacity: 0.75;
}

.cta__main {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--f-sans);
	font-size: clamp(32px, 3.6vw, 52px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.cta__main small {
	font-size: 0.66em;
}

.cta__arrow {
	align-self: center;
	width: 0.7em;
	height: 0.7em;
	margin-left: 6px;
}

.cta__sub {
	margin-top: 14px;
	font-size: 15px;
	letter-spacing: 0.05em;
}

.site-footer {
	background: var(--c-dark);
	color: #fff;
}

.site-footer__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding: 90px var(--gutter) 80px;
}

.site-footer__logo img {
	display: block;
	width: 360px;
	max-width: 100%;
}

.site-footer__logo:hover {
	opacity: 0.7;
}

.site-footer__nav {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 44px;
	padding-top: 6px;
}

.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 26px;
	font-size: 13px;
}

.footer-nav__list a:hover,
.site-footer__bottom a:hover {
	opacity: 0.6;
}

.site-footer__line {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 5px;
	background: #69727d;
	color: #fff;
}

.site-footer__line:hover {
	background: #06c755;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding: 32px var(--gutter);
	font-size: 13px;
}

.site-footer__bottom small {
	font-size: 13px;
}

/* ==========================================================================
   下層ページ共通
   ========================================================================== */
.page-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 355px;
	background-color: #757679;
	background-position: center;
	background-size: cover;
	color: #fff;
}

.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(40, 42, 45, 0.42);
}

.page-hero__inner {
	position: relative;
}

.page-hero__title {
	font-family: var(--f-sans);
	font-size: clamp(30px, 3.4vw, 46px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0 14px;
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.8;
}

.breadcrumb li + li::before {
	content: ">";
	margin-right: 14px;
}

.breadcrumb a:hover {
	opacity: 0.7;
}

.page-body {
	padding: 110px 0 140px;
}

/* 本文（エディター出力） */
.entry-content > * + * {
	margin-top: 1.6em;
}

.entry-content h2 {
	margin-top: 3em;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--c-heading);
	color: var(--c-heading);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.6;
}

.entry-content h3 {
	margin-top: 2.4em;
	color: var(--c-heading);
	font-size: 17px;
	font-weight: 700;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.6em;
}

.entry-content ul {
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li + li {
	margin-top: 0.5em;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	opacity: 0.6;
}

.entry-header {
	margin-bottom: 50px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--c-heading);
}

.entry-header__date {
	font-size: 13px;
}

.entry-header__title {
	margin-top: 6px;
	color: var(--c-heading);
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 700;
	line-height: 1.6;
}

.entry-thumb {
	margin-bottom: 50px;
}

.entry-back {
	margin-top: 90px;
	text-align: center;
}

.not-found {
	text-align: center;
}

.not-found p + p {
	margin-top: 50px;
}

/* ==========================================================================
   お知らせ一覧
   ========================================================================== */
.post-archive {
	padding: 90px 0 140px;
}

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

.post-list__item a {
	display: block;
	padding: 30px 12px;
}

.post-list__item a:hover {
	opacity: 0.6;
}

.post-list__cat {
	display: block;
	font-size: 12px;
	line-height: 1.6;
}

.post-list__title {
	display: block;
	margin-top: 10px;
	color: var(--c-heading);
	font-size: 18px;
	line-height: 1.7;
}

.post-list__date {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.6;
}

.navigation.pagination {
	margin-top: 70px;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--c-line);
	font-size: 14px;
	line-height: 1;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	border-color: var(--c-btn);
	background: var(--c-btn);
	color: #fff;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ==========================================================================
   サービスページ
   ========================================================================== */
.lineup {
	padding: 120px 0 110px;
}

.lineup__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 460px;
	gap: 60px;
	align-items: center;
}

.lineup__list li {
	line-height: 2.2;
}

.circle {
	position: relative;
	width: 460px;
	max-width: 100%;
	aspect-ratio: 1;
	margin-inline: auto;
	--r: 165px;
	--size: 130px;
}

.circle__ring {
	position: absolute;
	inset: calc(50% - var(--r));
	border: 2px solid #ece8dc;
	border-radius: 50%;
}

.circle__center {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 150px;
	transform: translate(-50%, -50%);
	color: var(--c-heading);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.7;
	text-align: center;
}

.circle__item {
	--angle: calc(var(--i) * 60deg - 90deg);
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: var(--size);
	height: var(--size);
	margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
	padding: 14px;
	border: 1px solid var(--c-heading);
	border-radius: 50%;
	background: #fff;
	color: var(--c-heading);
	font-family: var(--f-serif);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
	transform: rotate(var(--angle)) translate(var(--r)) rotate(calc(var(--angle) * -1));
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.circle__item.is-active {
	border-color: var(--c-btn);
	background: var(--c-btn);
	color: #fff;
}

.works {
	padding: 110px 0 130px;
}

.works--gray {
	background: var(--c-gray);
}

.works__title {
	color: var(--c-heading);
	font-size: clamp(40px, 5.6vw, 80px);
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
}

.works__text {
	margin: 60px 0 80px;
}

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

.works__grid img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.works__grid figcaption {
	padding-top: 18px;
	font-size: 14px;
	line-height: 1.7;
	text-align: center;
}

/* ==========================================================================
   会社概要ページ
   ========================================================================== */
.message {
	padding-top: 110px;
}

.message__panel {
	position: relative;
	padding: 100px 0;
	background: var(--c-gray);
}

.message__panel::before,
.message__panel::after {
	content: "";
	position: absolute;
	background: #fff;
}

.message__panel::before {
	top: 0;
	right: 0;
	width: 30%;
	height: 100px;
}

.message__panel::after {
	left: 0;
	bottom: 0;
	width: 30%;
	height: 100px;
}

.message__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 400px minmax(0, 1fr);
	gap: 70px;
	align-items: start;
	padding-top: 70px;
}

.message__image img {
	display: block;
	width: 100%;
}

.message__body p + p {
	margin-top: 1.6em;
}

.message__sign {
	margin-top: 60px !important;
	color: var(--c-heading);
	font-size: 26px;
	line-height: 1.6;
	text-align: right;
}

.message__sign small {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
}

.outline {
	padding: 140px 0 120px;
}

.outline__table {
	border-top: 1px solid var(--c-heading);
}

.outline__row {
	display: grid;
	grid-template-columns: 228px minmax(0, 1fr);
	padding: 24px 0;
	border-bottom: 1px solid var(--c-line);
	font-size: 14px;
	line-height: 1.9;
}

.outline__row dt {
	color: var(--c-heading);
}

.access {
	position: relative;
	padding: 90px 0 290px;
	background-color: #333;
	background-position: center;
	background-size: cover;
	color: #fff;
}

.access::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.58);
}

.access__inner {
	position: relative;
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	align-items: start;
}

.access__inner .sec-title {
	margin-bottom: 0;
}

.access__name {
	margin-bottom: 12px;
	font-size: 24px;
	line-height: 1.6;
}

.access__info p + p {
	margin-top: 10px;
}

.access__info a:hover {
	opacity: 0.7;
}

.access-map {
	position: relative;
	margin-top: -210px;
	margin-bottom: 140px;
}

.access-map iframe {
	display: block;
	width: 100%;
	height: 450px;
	border: 0;
}

/* ==========================================================================
   お問い合わせ（Contact Form 7）
   ========================================================================== */
.contact {
	padding: 150px 0 140px;
}

.contact .sec-title {
	margin-bottom: 70px;
}

.form-row {
	margin-bottom: 28px;
}

.form-row label {
	display: block;
	margin-bottom: 6px;
	color: var(--c-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.8;
}

.form-row .req {
	margin-left: 4px;
	color: var(--c-required);
	font-weight: 400;
}

.form-row .wpcf7-form-control-wrap {
	display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	display: block;
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #c9c9c9;
	border-radius: 2px;
	background: #fff;
	color: var(--c-heading);
	font-family: var(--f-serif);
	font-size: 16px;
	line-height: 1.6;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.wpcf7 textarea {
	min-height: 220px;
	resize: vertical;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: #c0c0c0;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
	border-color: var(--c-btn);
	box-shadow: 0 0 0 3px rgba(73, 76, 80, 0.15);
	outline: 0;
}

.wpcf7 .wpcf7-not-valid {
	border-color: var(--c-required);
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 6px;
	color: var(--c-required);
	font-size: 13px;
	line-height: 1.6;
}

.form-privacy {
	margin-top: 36px;
	font-size: 13px;
	text-align: center;
}

.form-privacy a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.form-submit {
	position: relative;
	margin-top: 36px;
	text-align: center;
}

.form-submit .wpcf7-submit {
	min-width: 220px;
	padding: 16px 40px;
	border: 1px solid var(--c-btn);
	border-radius: 0;
	background: var(--c-btn);
	color: #fff;
	font-family: var(--f-serif);
	font-size: 15px;
	letter-spacing: 0.3em;
	cursor: pointer;
	transition: background-color 0.3s, border-color 0.3s;
	-webkit-appearance: none;
	appearance: none;
}

.form-submit .wpcf7-submit:hover {
	background: var(--c-btn-hover);
	border-color: var(--c-btn-hover);
}

.form-submit .wpcf7-submit:disabled {
	opacity: 0.5;
	cursor: default;
}

.form-submit .wpcf7-spinner {
	position: absolute;
	top: 50%;
	margin: -12px 0 0 14px;
}

.wpcf7 form .wpcf7-response-output {
	margin: 36px 0 0;
	padding: 16px 20px;
	border: 1px solid var(--c-line);
	font-size: 14px;
	line-height: 1.8;
	text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #46b450;
	background: #f2faf3;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--c-required);
	background: #fdf3f3;
}

/* ハニーポット（スパム対策用の非表示欄） */
.form-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ==========================================================================
   レスポンシブ：タブレット以下
   ========================================================================== */
@media (max-width: 1024px) {
	:root {
		--header-h: 70px;
	}

	.site-header__inner {
		padding: 0 12px 0 16px;
	}

	.site-header__logo img {
		height: 62px;
	}

	.nav-toggle {
		display: block;
	}

	.global-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		padding: 30px var(--gutter) 60px;
		background: #fff;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s, visibility 0.3s;
	}

	.global-nav.is-open {
		opacity: 1;
		visibility: visible;
	}

	.global-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.global-nav__list li {
		border-bottom: 1px solid var(--c-line);
	}

	.global-nav__list a {
		padding: 20px 8px;
		font-size: 16px;
	}

	.global-nav__list a::after {
		display: none;
	}

	body.is-menu-open {
		overflow: hidden;
	}

	.hero__content {
		padding: 0 var(--gutter);
	}

	.mission {
		padding-top: 80px;
	}

	.mission__panel {
		flex-direction: column;
		align-items: stretch;
		gap: 50px;
		margin-left: var(--gutter);
		padding: 0 var(--gutter) 70px 0;
	}

	.mission__image {
		width: calc(100% + var(--gutter));
		margin: -40px 0 0 calc(var(--gutter) * -1);
	}

	.mission__body {
		padding-left: var(--gutter);
	}

	.about {
		grid-template-columns: minmax(0, 1fr);
		gap: 60px;
		padding: 90px 0 150px;
	}

	.about__body {
		padding: 0 var(--gutter);
	}

	.about__visual {
		margin-left: 20vw;
	}

	.about__visual::before {
		display: none;
	}

	.about__main {
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.about__sub {
		left: -14vw;
		bottom: -80px;
		width: 40vw;
		max-width: 300px;
	}

	.service {
		padding: 130px 0 150px;
	}

	.service::before,
	.service::after {
		height: 60px;
	}

	.service__head {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		margin-bottom: 70px;
	}

	.service__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 50px 30px;
	}

	.service-card:nth-child(n) {
		margin-top: 0;
	}

	.news {
		padding: 110px 0;
	}

	.news__panel {
		grid-template-columns: minmax(0, 1fr);
	}

	.news__panel::before {
		width: 100%;
		bottom: auto;
		height: 260px;
	}

	.news__head {
		padding: 70px 0 60px;
	}

	.news__body {
		margin-top: 0;
		padding: 30px 30px 0;
	}

	.lineup {
		padding: 90px 0;
	}

	.lineup__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 70px;
	}

	.works {
		padding: 90px 0 100px;
	}

	.works__text {
		margin: 40px 0 60px;
	}

	.message {
		padding-top: 70px;
	}

	.message__panel {
		padding: 70px 0;
	}

	.message__panel::before,
	.message__panel::after {
		display: none;
	}

	.message__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 50px;
		padding-top: 0;
	}

	.message__image {
		max-width: 520px;
	}

	.outline {
		padding: 100px 0 90px;
	}

	.access__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.contact {
		padding: 100px 0 110px;
	}

	.page-body {
		padding: 80px 0 110px;
	}
}

/* ==========================================================================
   レスポンシブ：スマートフォン
   ========================================================================== */
@media (max-width: 767px) {
	body {
		font-size: 14px;
	}

	.side-contact {
		display: none;
	}

	.to-top {
		right: 16px;
		bottom: 16px;
	}

	.sec-title {
		margin-bottom: 28px;
	}

	.sec-title__ja {
		font-size: 14px;
	}

	.btn {
		width: 100%;
		max-width: 320px;
	}

	.hero {
		min-height: 460px;
	}

	/* スマホは「Construction / Excellence / You Can / Trust」の4行で画面幅いっぱいに */
	.hero__title {
		font-size: 14.6vw;
		font-weight: 400;
		line-height: 1.02;
		letter-spacing: -0.01em;
	}

	.hero__title-last span {
		display: block;
	}

	.hero__lead {
		margin-top: 24px;
	}

	.page-hero {
		min-height: 220px;
	}

	.about__visual {
		margin-left: var(--gutter);
	}

	.about__sub {
		left: calc(var(--gutter) * -1);
		bottom: -60px;
		width: 46vw;
	}

	.about {
		padding-bottom: 120px;
	}

	.service {
		padding: 100px 0 120px;
	}

	.service__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.news {
		padding: 80px 0;
	}

	.news__body {
		padding: 20px 20px 0;
	}

	.cta__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.cta__item {
		min-height: 190px;
	}

	.cta__item + .cta__item {
		border-top: 1px solid rgba(255, 255, 255, 0.2);
	}

	.site-footer__inner {
		flex-direction: column;
		align-items: center;
		gap: 40px;
		padding: 60px var(--gutter) 50px;
	}

	.site-footer__logo img {
		width: 260px;
	}

	.site-footer__nav {
		align-items: center;
		gap: 30px;
	}

	.footer-nav__list {
		justify-content: center;
	}

	.site-footer__bottom-inner {
		flex-direction: column;
		gap: 10px;
		padding: 24px var(--gutter);
	}

	.circle {
		--r: 34vw;
		--size: 27vw;
	}

	.circle__item {
		padding: 6px;
		font-size: 10px;
		line-height: 1.5;
	}

	.circle__center {
		width: 34vw;
		font-size: 13px;
	}

	.works__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px 12px;
	}

	.works__grid figcaption {
		padding-top: 10px;
		font-size: 12px;
	}

	.outline__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
		padding: 18px 0;
	}

	.outline__row dt {
		font-weight: 700;
	}

	.access {
		padding: 70px 0 200px;
	}

	.access-map {
		margin-top: -140px;
		margin-bottom: 90px;
	}

	.access-map iframe {
		height: 320px;
	}

	.post-list__title {
		font-size: 16px;
	}
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
