/* ==========================================================================
   UNIONEST theme — Figma "UNIONEST Landing Page" (1440px) 準拠
   ========================================================================== */

:root {
	--c-text: #1a1814;
	--c-moji: #4a4a5a;
	--c-black: #000;
	--c-white: #fff;
	--c-bg-gray: #f7f7f7;
	--c-map-bg: #f0f0ec;
	--c-map-border: #e0e0dc;

	--ff-sans: "Noto Sans JP", sans-serif;
	--ff-serif: "Noto Serif JP", serif;
	--ff-en: "Inter", "Noto Sans JP", sans-serif;
	--ff-num: "DM Sans", "Noto Sans JP", sans-serif;

	--site-max: 2000px; /* 中間セクションの最大幅 */
	--header-h: 81px;
	--gutter: clamp(16px, 3.47vw, 50px);
}

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

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

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--ff-sans);
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
	display: block;
	max-width: 100%;
}

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

h1,
h2,
h3,
p,
ul,
dl,
dd {
	margin: 0;
}

ul {
	padding: 0;
	list-style: none;
}

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

/*
 * レイアウト幅のルール
 * - ヘッダー / メインビジュアル / フッター：画面幅いっぱい
 * - それ以外のセクション：--site-max を上限に中央寄せ（背景色は画面幅いっぱい）
 */
.services,
.guides,
.access__map {
	max-width: var(--site-max);
	margin-left: auto;
	margin-right: auto;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 8px;
	z-index: 1000;
	padding: 8px 16px;
	background: var(--c-black);
	color: var(--c-white);
}

.skip-link:focus {
	top: 8px;
}

:focus-visible {
	outline: 2px solid #019ed6;
	outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
	padding: 0 var(--gutter);
	background: rgba(255, 255, 255, 0.82);
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__logo img {
	width: 174px;
	height: auto;
}

.global-nav__list {
	display: flex;
	align-items: center;
	gap: 40px;
}

.global-nav__list a {
	display: block;
	font-family: var(--ff-sans);
	font-weight: 700;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 1px;
	white-space: nowrap;
	color: var(--c-text);
}

/* ホバーで下線が左から伸び、離すと右へ抜けていく */
.global-nav__list a {
	position: relative;
}

.global-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -7px;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.global-nav__list a:hover::after,
.global-nav__list a:focus-visible::after,
.global-nav__list .current-menu-item > a::after {
	transform: scaleX(1);
	transform-origin: left center;
}

.site-header__toggle {
	display: none;
}

/* ドロップダウン（子メニュー） */
.global-nav__list > li {
	position: relative;
}

.global-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 18px);
	left: 50%;
	z-index: 10;
	min-width: 230px;
	padding: 10px 0;
	background: var(--c-white);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity 0.3s, transform 0.3s var(--ease-out, ease), visibility 0s 0.3s;
}

/* 親項目とドロップダウンの間の隙間でホバーが外れないように */
.global-nav__list .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 20px;
}

.global-nav__list > li:hover > .sub-menu,
.global-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	transition: opacity 0.3s, transform 0.3s var(--ease-out, ease), visibility 0s;
}

.global-nav__list .sub-menu a {
	padding: 10px 24px;
	font-size: 13px;
	letter-spacing: 0.06em;
	transition: background-color 0.2s;
}

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

.global-nav__list .sub-menu a:hover {
	background: var(--c-bg-gray);
}

/* ---------- Common parts ---------- */
.section-label {
	font-family: var(--ff-en);
	font-weight: 700;
	font-size: 20px;
	line-height: 15px;
	letter-spacing: 3px;
}

.arrow-button {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: var(--c-white);
}

.arrow-button__label,
.arrow-button__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 41px;
	background: var(--c-black);
	transition: background-color 0.2s;
}

.arrow-button__label {
	padding: 0 30px;
	font-family: var(--ff-sans);
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
	letter-spacing: 4px;
	white-space: nowrap;
}

.arrow-button__icon {
	width: 41px;
	font-size: 17px;
	line-height: 1;
	transition: background-color 0.2s, transform 0.2s;
}

.arrow-button:hover .arrow-button__label,
.arrow-button:hover .arrow-button__icon {
	background: #333;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	height: clamp(560px, min(67.014vw, 100svh), 965px); /* 画面の高さを超えない（TRUST… が見切れないように） */
	overflow: hidden;
	container-type: inline-size; /* TRUST… をヒーロー幅に合わせて伸縮させる */
}

.hero__bg {
	position: absolute;
	inset: 0;
}

/* スライド：フェードで切り替え、表示中はゆっくりズーム */
.hero__slide {
	position: absolute;
	inset: 0;
	overflow: hidden;
	opacity: 0;
	transition: opacity 1.6s ease;
}

.hero__slide.is-active {
	opacity: 1;
}

.hero__slide-img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transform: scale(1);
	transition: transform 0s 1.6s; /* フェードアウト後に元の大きさへ戻す */
}

.hero.is-slider .hero__slide.is-active .hero__slide-img {
	transform: scale(1.06);
	transition: transform 8s linear;
}

/* 初期画像：Figma のトリミング位置（w134.79% / h134.16% / left -34.81% / top -17.09%）を再現 */
.hero__img {
	position: absolute;
	top: -17.09%;
	left: -34.81%;
	width: 134.79%;
	max-width: none;
	height: 134.16%;
	object-fit: cover;
}

/* 左から右へ薄く暗くして見出しを読みやすくし、下部も暗くして TRUST… を読めるようにする */
.hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to right, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.16) 35%, rgba(0, 0, 0, 0.04) 58%, rgba(0, 0, 0, 0) 75%),
		linear-gradient(to top, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.22) 40%, rgba(0, 0, 0, 0) 100%) bottom / 100% max(30%, 14cqi) no-repeat;
	pointer-events: none;
}

.hero__catch-en {
	position: absolute;
	left: 0.764cqi; /* 1440px幅で11px */
	bottom: 0;
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 8.125cqi; /* 1440px幅で117px。幅に比例して伸縮 */
	line-height: 0.727; /* text-box-trim: cap alphabetic 相当 */
	letter-spacing: 0.0342em; /* 117px時に4px */
	color: #fff;
	text-shadow: 0 0 0.12em rgba(0, 0, 0, 0.25);
	white-space: nowrap;
}

.hero__content {
	position: absolute;
	top: calc(50% - 0.5px);
	left: clamp(16px, 5.28vw, 76px);
	display: flex;
	flex-direction: column;
	gap: 19px;
	width: fit-content;
	transform: translateY(-50%);
}


.hero__title {
	position: relative;
	font-family: var(--ff-sans);
	font-weight: 700;
	font-size: clamp(28px, 3.889vw, 56px); /* デザイン65pxから約15%縮小 */
	line-height: 1.4615; /* 95px */
	letter-spacing: 0.154em; /* 10px */
	color: var(--c-white);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	white-space: nowrap;
}

.hero__sub {
	position: relative;
	padding: clamp(12px, 1.25vw, 18px) 28px;
	background: var(--c-black);
	font-family: var(--ff-sans);
	font-weight: 700;
	font-size: clamp(13px, 1.667vw, 24px);
	line-height: 1.2;
	letter-spacing: 1px;
	text-align: center;
	color: var(--c-white);
}

/* ---------- Philosophy ---------- */
.philosophy {
	display: flex;
	align-items: center;
	gap: 85px;
	max-width: 1440px;
	min-height: 628px;
	margin: 0 auto;
	padding: 90px 34px 90px 90px;
}

.philosophy__image {
	flex: 0 0 auto;
	width: min(532px, 37vw);
	aspect-ratio: 532 / 398;
}

.philosophy__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: bottom;
}

.philosophy__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 15px;
	max-width: 699px;
	color: var(--c-text);
}

/* トップの書体ルール：h1＝ゴシック、h2＝明朝、h3以下と本文＝ゴシック */
.home .site-main h2 {
	font-family: var(--ff-serif);
}

.philosophy__title {
	font-weight: 700;
	font-size: 35px;
	line-height: 1.94;
}

.philosophy__title span {
	letter-spacing: 4.55px;
}

.philosophy__text {
	margin-top: 1px; /* title との間隔 16px */
	font-size: 18px;
	line-height: 1.94;
}

/* ---------- Services (3 cards) ---------- */
.services {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
}

.service-card {
	position: relative;
	aspect-ratio: 480 / 532;
	overflow: hidden;
	color: var(--c-white);
}

.service-card__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.service-card__media img {
	position: absolute;
	max-width: none;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.service-card--property .service-card__media img {
	top: -3.79%;
	left: -30.47%;
	width: 150.35%;
	height: 112.22%;
}

.service-card--monthly .service-card__media img {
	top: -7.84%;
	left: -48.04%;
	width: 203.76%;
	height: 122.77%;
}

.service-card--rental .service-card__media img {
	top: -1.94%;
	left: -27.44%;
	width: 165.32%;
	height: 111.87%;
}

.service-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	mix-blend-mode: multiply;
}

.service-card--property .service-card__media::after {
	background: linear-gradient(to bottom, #c3d0da 30.769%, rgba(195, 208, 218, 0) 69.712%);
}

.service-card--monthly .service-card__media::after {
	background: linear-gradient(to bottom, #d8d5c4 30.769%, rgba(216, 213, 196, 0) 68.269%);
}

.service-card:hover .service-card__media img {
	transform: scale(1.04);
}

.service-card__body {
	position: absolute;
	top: 44px;
	left: 34px;
	right: 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.service-card__head {
	display: flex;
	align-items: center;
	gap: 15px;
	height: 51px;
}

.service-card__num {
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 60px;
	line-height: 0.727;
}

.service-card__divider {

	width: 1px;
	height: 51px;
}

.service-card__en {

	margin: -7px 0;
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 28px;
	letter-spacing: 4px;
	white-space: nowrap;
}

.service-card__lead {
	font-weight: 700;
	font-size: 30px;
	line-height: 46px;
}

.service-card--monthly .arrow-button__label {
	letter-spacing: 0;
}

/* ---------- Guides (agents / residents) ---------- */
.guides {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2px;
	padding: 90px 0;
}

.guide-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 350px;
	padding: 30px 34px;
	overflow: hidden;
	color: var(--c-white);
}

.guide-card__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.guide-card__media img {
	position: absolute;
	left: 0;
	width: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.guide-card--agents .guide-card__media img {
	top: -31.78%;
	height: 154.07%;
}

.guide-card--residents .guide-card__media img {
	top: -26.38%;
	height: 133.79%;
}

.guide-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.guide-card:hover .guide-card__media img {
	transform: scale(1.04);
}

.guide-card__body {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.guide-card__en {
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 15px;
	letter-spacing: 3px;
	white-space: nowrap;
}

.guide-card__title {
	font-weight: 600;
	font-size: 40px;
	line-height: 52px;
	letter-spacing: 6px;
	white-space: nowrap;
}

.guide-card__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 2px;
	border-bottom: 1px solid var(--c-white);
	font-family: var(--ff-en);
	font-weight: 500;
	font-size: 18px;
	line-height: 15px;
	white-space: nowrap;
}

.guide-card__link span {
	font-family: var(--ff-sans);
	font-size: 13px;
	line-height: 19.5px;
	transition: transform 0.2s;
}

.guide-card:hover .guide-card__link span {
	transform: translateX(4px);
}

/* ---------- Access ---------- */
.access {
	padding: 90px 0;
	background: var(--c-bg-gray);
	color: var(--c-moji);
}

.section-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 0 var(--gutter) 50px;
	color: var(--c-moji);
	text-align: center;
}

.section-head__en {
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 15px;
	letter-spacing: 3px;
}

/* h2 のルールに合わせ「信頼関係を第一に。」と同じ大きさ */
.section-head__ja {
	font-weight: 700;
	font-size: 35px;
	line-height: 1.5;
	letter-spacing: 0.13em;
	color: var(--c-text);
}

.access__map {
	height: 450px;
	overflow: hidden;
	background: var(--c-map-bg);
	border: 1px solid var(--c-map-border);
	border-radius: 4px;
}

.access__map img,
.access__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.access__info {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 56px;
	margin-top: 60px;
	padding: 0 120px;
}

.access__company {
	flex: 0 0 256px;
	align-self: stretch;
	padding-right: 56px;
	border-right: 1px solid var(--c-black);
	font-family: var(--ff-sans);
	font-weight: 700;
	font-size: 20px;
	line-height: normal;
	white-space: nowrap;
}

.access__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 498px;
	max-width: 100%;
	font-size: 16px;
	line-height: 1.8;
}

.access__row {
	display: flex;
	gap: 18px;
}

.access__row dt {
	flex: 0 0 80px;
}

.access__row dd {
	flex: 1 1 auto;
	max-width: 400px;
}

.access__tel {
	font-family: var(--ff-num);
	font-variation-settings: "opsz" 14;
}

/* ---------- Footer ---------- */
.site-footer {
	padding: 60px 80px 40px;
	background: var(--c-black);
	color: var(--c-white);
}

.site-footer__main {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.site-footer__brand img {
	width: 160px;
	height: auto;
}

.site-footer__tagline {
	font-size: 14px;
	line-height: normal;
}

.site-footer__nav {
	display: flex;
	align-items: flex-start;
	gap: 81px;
}

.site-footer__list {
	line-height: 38px;
	white-space: nowrap;
}

.site-footer__list--services {
	font-size: 18px;
}

.site-footer__list--company {
	font-size: 16px;
}

.site-footer__list a {
	transition: opacity 0.2s;
}

.site-footer__list a:hover {
	opacity: 0.6;
}

/* サイトマップ（グローバルナビと同じメニューを2階層で） */
.site-footer__sitemap {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 28px 56px;
}

.site-footer__sitemap > li > a {
	display: inline-block;
	margin-bottom: 10px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.08em;
}

.site-footer__sitemap .sub-menu li {
	line-height: 1.6;
}

.site-footer__sitemap .sub-menu li + li {
	margin-top: 8px;
}

.site-footer__sitemap .sub-menu a {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.72);
}

.site-footer__sitemap a {
	transition: opacity 0.2s;
}

.site-footer__sitemap a:hover {
	opacity: 0.6;
}

.site-footer__bottom {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--c-white);
}

.site-footer__copy {
	font-family: "Inter", sans-serif;
	font-weight: 500;
	font-size: 11px;
	line-height: 16.5px;
}

/* ---------- Sub pages ---------- */
/* 見出し：写真の上に英字＋日本語タイトル（トップのメインビジュアルと同じ語り口） */
.sub-hero {
	position: relative;
	height: clamp(340px, 32vw, 520px);
	overflow: hidden;
	background: #000;
	color: var(--c-white);
}

.sub-hero__bg,
.sub-hero__img,
.sub-hero__shade {
	position: absolute;
	inset: 0;
}

.sub-hero__img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.sub-hero__shade {
	background:
		linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0) 75%),
		linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 50%);
}

.sub-hero__inner {
	position: absolute;
	left: var(--gutter);
	right: var(--gutter);
	bottom: clamp(32px, 4vw, 64px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(10px, 1.2vw, 18px);
}

.sub-hero__en {
	overflow: hidden;
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: clamp(36px, 5.6vw, 96px);
	line-height: 1;
	letter-spacing: 0.04em;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.sub-hero__en > span,
.sub-hero__title > span {
	display: inline-block;
}

.sub-hero__title {
	padding: clamp(8px, 0.9vw, 14px) clamp(16px, 1.8vw, 28px);
	background: var(--c-black);
	font-family: var(--ff-sans);
	font-weight: 700;
	font-size: clamp(16px, 1.6vw, 24px);
	line-height: 1.4;
	letter-spacing: 0.12em;
}

/* パンくず */
.breadcrumb {
	max-width: var(--site-max);
	margin: 0 auto;
	padding: 16px var(--gutter);
	font-size: 12px;
	color: var(--c-moji);
}

.breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumb__list li + li::before {
	content: "/";
	margin: 0 10px;
	color: #bbb;
}

.breadcrumb__list a:hover {
	text-decoration: underline;
}

.sub-lead {
	max-width: 960px;
	margin: 40px auto 0;
	padding: 0 var(--gutter);
	font-family: var(--ff-sans);
	font-weight: 500;
	font-size: clamp(16px, 1.5vw, 20px);
	line-height: 2;
}

/* 本文 */
.content {
	max-width: 960px;
	margin: 0 auto;
	padding: 64px var(--gutter) 100px;
}

.content--wide {
	max-width: 1200px;
}

.sub-lead + .content {
	padding-top: 40px;
}

.entry-content {
	font-size: 16px;
	line-height: 2;
}

.entry-content > * + * {
	margin-top: 1.5em;
}

/*
 * 下層ページの見出しルール：すべてゴシック（Noto Sans JP）の太字。大きさはタグのレベルで決まる
 *   h1 ページ名（写真の上の黒い帯）  … 24px
 *   h2 大見出し（上に短い線）        … 22〜28px
 *   h3 小見出し（左に縦線）          … 20px
 *   h4                               … 16px
 *   カードやフォームの中の見出しも、タグに合わせて同じ大きさ（飾りだけ部品ごと）
 *   英字の飾り（ページ上部の大きな英字、カードの英字）は Inter
 */
.entry-content h2 {
	position: relative;
	margin-top: 2.6em;
	padding-top: 22px;
	font-family: var(--ff-sans);
	font-weight: 700;
	font-size: clamp(22px, 2vw, 28px);
	line-height: 1.6;
	letter-spacing: 0.08em;
}

.entry-content h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--c-black);
}

.entry-content > h2:first-child {
	margin-top: 0;
}

.entry-content h3 {
	margin-top: 2em;
	padding-left: 14px;
	border-left: 3px solid var(--c-black);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.6;
	letter-spacing: 0.06em;
}

.entry-content h4 {
	margin-top: 1.8em;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.7;
	letter-spacing: 0.04em;
}

/* 見出しと中身の間 */
.entry-content h2 + * {
	margin-top: 32px;
}

.entry-content h3 + * {
	margin-top: 22px;
}

/* 見出しが続くときは、下の見出しの前を広めに */
.entry-content h2 + h3 {
	margin-top: 2.2em;
}

.entry-content a:not(.wp-block-button__link):not(.arrow-button) {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.entry-content a:not(.wp-block-button__link):not(.arrow-button):hover {
	text-decoration: none;
}

.entry-content ul.wp-block-list,
.entry-content ol.wp-block-list {
	padding-left: 1.4em;
}

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

.entry-content .wp-block-list li + li {
	margin-top: 0.4em;
}

.entry-content strong {
	font-weight: 700;
}

.entry-content small,
.entry-content .has-small-font-size {
	font-size: 13px;
	color: var(--c-moji);
}

/* 表（会社概要など） */
.entry-content .wp-block-table {
	margin-left: 0;
	margin-right: 0;
	overflow-x: auto;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid #d9d9d9;
	font-size: 15px;
	line-height: 1.8;
}

.entry-content th,
.entry-content td {
	padding: 18px 20px;
	border: 0;
	border-bottom: 1px solid #d9d9d9;
	text-align: left;
	vertical-align: top;
}

.entry-content tr > :first-child {
	width: 26%;
	min-width: 120px;
	background: var(--c-bg-gray);
	font-weight: 700;
	white-space: nowrap;
}

.entry-content .wp-block-table figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--c-moji);
}

/* 注意書きの枠（グループブロックに class="is-style-note"） */
.entry-content .is-style-note {
	padding: 24px 28px;
	background: var(--c-bg-gray);
	border-left: 3px solid var(--c-black);
	font-size: 15px;
}

.entry-content .is-style-note > * + * {
	margin-top: 0.8em;
}

/* メールアドレスの画像（迷惑メール対策で文字の代わりに使う）。文中に並べ、文字の下端にそろえる */
.entry-content img.mail-image {
	display: inline-block;
	vertical-align: -5px;
}

/* ボタン：トップの「→」付き黒ボタンに合わせる */
.entry-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.entry-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	padding: 12px 22px 12px 28px;
	border-radius: 0;
	background: var(--c-black);
	color: var(--c-white);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: 0.12em;
	transition: background-color 0.2s;
}

.entry-content .wp-block-button__link::after {
	content: "→";
	font-size: 15px;
	transition: transform 0.3s var(--ease-out, ease);
}

.entry-content .wp-block-button__link:hover {
	background: #333;
}

.entry-content .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

.entry-content .is-style-outline .wp-block-button__link {
	border: 1px solid var(--c-black);
	background: transparent;
	color: var(--c-black);
}

.entry-content .is-style-outline .wp-block-button__link:hover {
	background: var(--c-black);
	color: var(--c-white);
}

.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img {
	height: auto;
}

.entry-content .wp-block-gallery {
	gap: 8px;
}

.entry-content figcaption {
	font-size: 13px;
	color: var(--c-moji);
}

.entry-date {
	display: block;
	font-family: var(--ff-num);
	font-size: 14px;
	color: var(--c-moji);
}

/* 本文幅より広く出す要素（最大1200px） */
.entry-content > .alignwide {
	margin-left: calc(50% - min(600px, 50vw - var(--gutter)));
	margin-right: calc(50% - min(600px, 50vw - var(--gutter)));
}

.entry-content > * + .alignwide,
.entry-content > .alignwide + * {
	margin-top: 3em;
}

/* リード文（企業理念など） */
.entry-content .is-style-lead {
	font-family: var(--ff-sans);
	font-weight: 500;
	font-size: clamp(16px, 1.6vw, 21px);
	line-height: 2.1;
	letter-spacing: 0.06em;
}

/*
 * サービス紹介：「メディアと文章」ブロック＋スタイル「サービス紹介」
 * 写真と文章を左右に並べる（左右はブロックの「メディアを右に表示」で切り替え。広い列は常に左側）。
 * 1つ目の段落（クラス service-label）が英字の小見出しになり、前に番号 01, 02… が自動で付く。
 */
.entry-content {
	counter-reset: service;
}

.entry-content .wp-block-media-text.is-style-service {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	align-items: center;
	gap: clamp(28px, 5vw, 80px);
	counter-increment: service;
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.entry-content > .is-style-service + .is-style-service {
	margin-top: clamp(56px, 7vw, 110px);
}

.entry-content .is-style-service > .wp-block-media-text__media {
	margin: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.entry-content .is-style-service > .wp-block-media-text__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease-out, ease);
}

.entry-content .is-style-service:hover > .wp-block-media-text__media img {
	transform: scale(1.04);
}

.entry-content .is-style-service > .wp-block-media-text__content {
	padding: 0;
}

.entry-content .is-style-service .service-label {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 14px;
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 13px;
	line-height: 2;
	letter-spacing: 0.2em;
	color: var(--c-moji);
}

.entry-content .is-style-service .service-label::before {
	content: counter(service, decimal-leading-zero);
	padding-right: 16px;
	border-right: 1px solid #bbb;
	font-family: var(--ff-num);
	font-weight: 700;
	font-size: 40px;
	line-height: 1;
	letter-spacing: normal;
	color: var(--c-text);
}

.entry-content .is-style-service h2 {
	margin-top: 0;
	padding-top: 0;
}

.entry-content .is-style-service h2::before {
	display: none;
}

.entry-content .is-style-service .wp-block-media-text__content p:not(.service-label) {
	font-size: 15px;
	line-height: 2;
}

.entry-content .is-style-service .wp-block-buttons {
	margin-top: 28px;
}

/* ボタン：文字の箱と矢印の箱を分けた黒いボタン（トップのサービス欄と同じ形） */
.entry-content .is-style-service .wp-block-button {
	margin-right: 43px; /* 矢印の箱の分 */
}

.entry-content .is-style-service .wp-block-button__link {
	position: relative;
	gap: 0;
	width: auto;
	height: 41px;
	padding: 0 30px;
	font-family: var(--ff-sans);
	font-size: 20px;
	line-height: 1;
	letter-spacing: 4px;
	white-space: nowrap;
}

.entry-content .is-style-service .wp-block-button__link::after {
	position: absolute;
	top: 0;
	left: calc(100% + 2px);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 41px;
	height: 100%;
	background: var(--c-black);
	font-size: 17px;
	letter-spacing: normal;
	transition: background-color 0.2s;
}

.entry-content .is-style-service .wp-block-button__link:hover::after {
	background: #333;
	transform: none;
}

/* 写真付きリンクカード（物件サイト・物件検索） */
.entry-content .banner-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2px;
	padding: 0;
	list-style: none;
}

.entry-content .banner-cards li + li {
	margin-top: 0;
}

.entry-content .banner-card {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	color: var(--c-white);
	text-decoration: none;
}

.banner-card__media,
.banner-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.banner-card__media img {
	transition: transform 1.2s var(--ease-out, ease);
}

.banner-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
}

.banner-card__title {
	position: absolute;
	left: 24px;
	right: 64px;
	bottom: 20px;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.5;
	letter-spacing: 0.06em;
}

.banner-card__arrow {
	position: absolute;
	right: 20px;
	bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--c-black);
	font-size: 15px;
	transition: transform 0.4s var(--ease-out, ease);
}

.banner-card:hover .banner-card__media img {
	transform: scale(1.06);
}

.banner-card:hover .banner-card__arrow {
	transform: translate(3px, -3px);
}

/* 空室情報 */
.vacancy-list {
	display: grid;
	gap: clamp(24px, 3vw, 40px);
}

.vacancy-card {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: clamp(24px, 4vw, 56px);
	padding: clamp(20px, 3vw, 40px);
	background: var(--c-bg-gray);
}

.vacancy-card--no-photo {
	grid-template-columns: 1fr;
}

/* 写真が2枚のときは2枚目も横いっぱいに */
.vacancy-card__photos img:nth-child(2):last-child {
	grid-column: 1 / -1;
}

.vacancy-card__photos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	align-content: start;
}

.vacancy-card__photos img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.vacancy-card__photos img:first-child {
	grid-column: 1 / -1;
}

.entry-content .vacancy-card__title {
	margin: 0;
	padding: 0;
}

.entry-content .vacancy-card__title::before {
	display: none;
}

.entry-content .vacancy-card__spec {
	margin-top: 32px; /* 本文の h2 と同じ間隔 */
	border-top: 1px solid #d9d9d9;
	font-size: 15px;
}

.vacancy-card__spec > div {
	display: grid;
	grid-template-columns: 6em 1fr;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid #d9d9d9;
}

.vacancy-card__spec dt {
	font-weight: 700;
}

.entry-content .vacancy-card__comment {
	margin: 18px 0 0;
	font-size: 15px;
}

.entry-content .vacancy-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 22px 0 0;
}

.entry-content .text-link {
	position: relative;
	padding-right: 1.3em;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.entry-content .text-link::after {
	content: "→";
	position: absolute;
	right: 0;
	transition: transform 0.3s var(--ease-out, ease);
}

.entry-content .text-link:hover::after {
	transform: translateX(3px);
}

/* 写真一覧（オフィス） */
.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.photo-grid figure {
	margin: 0;
}

.photo-grid img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.photo-grid figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--c-moji);
}

/*
 * ギャラリーブロックのスタイル（functions.php の unionest_block_styles）
 * コアのギャラリーは :not(#individual-image) や :nth-last-child() 付きの強い指定で幅を決めているので、
 * 幅だけは !important でグリッドに合わせる
 */
.entry-content .wp-block-gallery.is-style-photo-grid,
.entry-content .wp-block-gallery.is-style-banner-cards {
	display: grid;
	align-items: start;
}

.entry-content .wp-block-gallery.is-style-photo-grid.has-nested-images figure.wp-block-image:not(#individual-image),
.entry-content .wp-block-gallery.is-style-banner-cards.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: auto !important;
	margin: 0;
}

.entry-content .wp-block-gallery.is-style-photo-grid.has-nested-images figure.wp-block-image::before,
.entry-content .wp-block-gallery.is-style-banner-cards.has-nested-images figure.wp-block-image::before {
	content: none;
}

/* 写真一覧：.photo-grid と同じ見た目 */
.entry-content .wp-block-gallery.is-style-photo-grid {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.entry-content .wp-block-gallery.is-style-photo-grid.has-nested-images figure.wp-block-image:not(#individual-image) img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	flex: none;
}

.entry-content .wp-block-gallery.is-style-photo-grid.has-nested-images figure.wp-block-image figcaption {
	position: static;
	margin-top: 8px;
	padding: 0;
	background: none;
	color: var(--c-moji);
	font-size: 13px;
	text-align: left;
	text-shadow: none;
	overflow: visible;
}

/* バナー：.banner-cards と同じ見た目（画像全体がリンク） */
.entry-content .wp-block-gallery.is-style-banner-cards {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2px;
}

.entry-content .wp-block-gallery.is-style-banner-cards.has-nested-images figure.wp-block-image:not(#individual-image) {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.entry-content .wp-block-gallery.is-style-banner-cards.has-nested-images figure.wp-block-image:not(#individual-image) a,
.entry-content .wp-block-gallery.is-style-banner-cards.has-nested-images figure.wp-block-image:not(#individual-image) img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none !important;
	object-fit: cover;
}

.entry-content .wp-block-gallery.is-style-banner-cards.has-nested-images figure.wp-block-image img {
	transition: transform 1.2s var(--ease-out, ease);
}

/* 下からのグラデーション（リンクの上に重ねるがクリックは通す） */
.entry-content .wp-block-gallery.is-style-banner-cards.has-nested-images figure.wp-block-image a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
}

.entry-content .wp-block-gallery.is-style-banner-cards.has-nested-images figure.wp-block-image figcaption {
	top: auto;
	left: 24px;
	right: 64px;
	bottom: 20px;
	width: auto;
	max-height: none;
	padding: 0;
	background: none;
	color: var(--c-white);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.5;
	letter-spacing: 0.06em;
	text-align: left;
	text-shadow: none;
	overflow: visible;
	pointer-events: none;
}

/* 右下の矢印 */
.entry-content .wp-block-gallery.is-style-banner-cards.has-nested-images figure.wp-block-image::after {
	content: "↗";
	position: absolute;
	right: 20px;
	bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--c-black);
	color: var(--c-white);
	font-size: 15px;
	pointer-events: none;
	transition: transform 0.4s var(--ease-out, ease);
}

.entry-content .wp-block-gallery.is-style-banner-cards.has-nested-images figure.wp-block-image:hover img {
	transform: scale(1.06);
}

.entry-content .wp-block-gallery.is-style-banner-cards.has-nested-images figure.wp-block-image:hover::after {
	transform: translate(3px, -3px);
}

/* 地図 */
.map-embed {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--c-map-border);
	background: var(--c-map-bg);
}

.map-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* 物件名のタグ（リストブロック＋スタイル「タグ」） */
.entry-content ul.is-style-tags,
.entry-content .tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.entry-content ul.is-style-tags li,
.entry-content .tag-list li {
	margin: 0;
	padding: 6px 14px;
	border: 1px solid #d0d0d0;
	font-size: 14px;
	line-height: 1.5;
}

/* ファイルのダウンロード */
.entry-content .file-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 2px 6px 2px 0;
	padding: 4px 12px;
	border: 1px solid var(--c-black);
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	line-height: 1.6;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}

.entry-content .file-badge::before {
	content: "↓";
}

.entry-content .file-badge:hover {
	background: var(--c-black);
	color: var(--c-white);
}

.entry-content td:last-child:has(.file-badge) {
	width: 1%;
	white-space: nowrap;
}

/* フォームの補助要素 */
.wpcf7 .form-group-title {
	margin: 48px 0 0;
	padding: 0 0 12px;
	border: 0;
}

.wpcf7 .form-group-title:first-child {
	margin-top: 0;
}

.wpcf7 .form-group-intro {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--c-moji);
}

.wpcf7 .form-static {
	padding-top: 10px;
}

.wpcf7 .form-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.wpcf7 .form-inline + .form-inline {
	margin-top: 10px;
}

.wpcf7 .form-inline__label {
	flex: 0 0 4.5em;
	font-size: 14px;
	font-weight: 700;
}

.wpcf7 .form-inline .wpcf7-form-control-wrap:first-of-type {
	flex: 1 1 180px;
}

.wpcf7 .form-inline select {
	width: auto;
	min-width: 80px;
}

.wpcf7 .form-terms {
	max-height: 320px;
	overflow-y: auto;
	padding: 24px 28px;
	border: 1px solid #d9d9d9;
	background: var(--c-bg-gray);
	font-size: 14px;
	line-height: 1.9;
}

.wpcf7 .form-agree .wpcf7-list-item {
	margin: 0;
}

.wpcf7 .form-agree label {
	font-weight: 700;
}

.wpcf7 .form-agree a {
	text-decoration: underline;
}

.wpcf7 input[type="file"] {
	max-width: 100%;
	font-size: 14px;
}

/* 子ページへのカード */
.child-links {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--gutter) 110px;
}

.content + .child-links {
	margin-top: -36px;
}

.sub-lead + .child-links,
.breadcrumb + .child-links {
	padding-top: 56px;
}

.link-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2px;
	background: var(--c-white);
}

.link-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	min-height: 220px;
	padding: 32px 32px 72px;
	background: var(--c-bg-gray);
	color: var(--c-text);
	transition: background-color 0.4s var(--ease-out, ease), color 0.4s var(--ease-out, ease);
}

.link-card__num {
	font-family: var(--ff-num);
	font-weight: 700;
	font-size: 14px;
	color: var(--c-moji);
	transition: color 0.4s;
}

.link-card__en {
	margin-top: 10px;
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.2em;
	color: var(--c-moji);
	transition: color 0.4s;
}

.link-card__title {
	font-weight: 700;
	font-size: 20px;
	line-height: 1.5;
	letter-spacing: 0.06em;
}

.link-card__text {
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--c-moji);
	transition: color 0.4s;
}

.link-card__arrow {
	position: absolute;
	right: 24px;
	bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 41px;
	height: 41px;
	background: var(--c-black);
	color: var(--c-white);
	font-size: 17px;
	transition: transform 0.4s var(--ease-out, ease), background-color 0.4s, color 0.4s;
}

.link-card:hover {
	background: var(--c-black);
	color: var(--c-white);
}

.link-card:hover .link-card__num,
.link-card:hover .link-card__en,
.link-card:hover .link-card__text {
	color: rgba(255, 255, 255, 0.7);
}

.link-card:hover .link-card__arrow {
	background: var(--c-white);
	color: var(--c-black);
	transform: translateX(6px);
}

/* 同じカテゴリのメニュー（子ページの下） */
.local-nav {
	padding: 56px var(--gutter) 64px;
	background: var(--c-bg-gray);
}

.local-nav__head,
.local-nav__list {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.local-nav__head {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 24px;
}

.local-nav__en {
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 3px;
}

.local-nav__parent {
	font-size: 14px;
	color: var(--c-moji);
}

.local-nav__parent:hover {
	text-decoration: underline;
}

.local-nav__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 2px;
}

.local-nav__list a {
	position: relative;
	display: block;
	padding: 18px 48px 18px 22px;
	background: var(--c-white);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.5;
	transition: background-color 0.3s, color 0.3s;
}

.local-nav__list a::after {
	content: "→";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s var(--ease-out, ease);
}

.local-nav__list a:hover,
.local-nav__list a[aria-current="page"] {
	background: var(--c-black);
	color: var(--c-white);
}

.local-nav__list a:hover::after {
	transform: translate(4px, -50%);
}

/* フォーム（Contact Form 7） */
.wpcf7 {
	margin-top: 2.5em;
}

.wpcf7 .form-table {
	border-top: 1px solid #d9d9d9;
}

.wpcf7 .form-row {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 8px 32px;
	padding: 24px 0;
	border-bottom: 1px solid #d9d9d9;
}

.wpcf7 .form-row > p {
	display: contents;
}

.wpcf7 .form-label {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding-top: 10px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.6;
}

.wpcf7 .req,
.wpcf7 .opt {
	flex: 0 0 auto;
	padding: 2px 8px;
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 0.1em;
}

.wpcf7 .req {
	background: var(--c-black);
	color: var(--c-white);
}

.wpcf7 .opt {
	border: 1px solid #bbb;
	color: var(--c-moji);
}

.wpcf7 .form-field {
	min-width: 0;
}

.wpcf7 .form-note {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--c-moji);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cfcfcf;
	border-radius: 0;
	background: var(--c-white);
	color: var(--c-text);
	font: inherit;
	font-size: 16px;
	line-height: 1.6;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	border-color: var(--c-black);
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

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

.wpcf7 .wpcf7-list-item {
	display: inline-flex;
	margin: 6px 24px 6px 0;
}

.wpcf7 .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.wpcf7 input[type="radio"],
.wpcf7 input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--c-black);
}

.wpcf7 .form-agree {
	margin-top: 32px;
	text-align: center;
}

.wpcf7 .form-submit {
	margin-top: 32px;
	text-align: center;
}

.wpcf7 input[type="submit"] {
	min-width: 280px;
	padding: 18px 40px;
	border: 0;
	border-radius: 0;
	background: var(--c-black);
	color: var(--c-white);
	font: inherit;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: 0.2em;
	cursor: pointer;
	transition: background-color 0.2s;
}

.wpcf7 input[type="submit"]:hover {
	background: #333;
}

/* 同意チェック前は押せないことが分かるように */
.wpcf7 input[type="submit"]:disabled {
	background: #b5b5b5;
	cursor: not-allowed;
}

.wpcf7 .wpcf7-spinner {
	display: block;
	margin: 12px auto 0;
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
	color: #c4301c;
}

.wpcf7 form .wpcf7-response-output {
	margin: 32px 0 0;
	padding: 16px 20px;
	border: 1px solid currentColor;
	font-size: 15px;
}

.post-list {
	border-top: 1px solid #ddd;
}

.post-list__item {
	display: flex;
	gap: 24px;
	padding: 20px 0;
	border-bottom: 1px solid #ddd;
}

.post-list__date {
	flex: 0 0 auto;
	font-family: var(--ff-num);
	color: var(--c-moji);
}

.post-list__title:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* 1440pxより広い画面：メインビジュアル全体をデザイン比率のまま拡大
   （cqi = .hero の幅に対する%。値は 1440px 時の px ÷ 14.4）
   キャッチコピー部分は画面幅2000px時の大きさで頭打ち */
@media (min-width: 1441px) {
	.hero {
		height: max(560px, min(67.014vw, 100svh));
	}

	.hero__content {
		left: min(5.278cqi, 106px);
		gap: min(1.319cqi, 26px);
	}

	.hero__title {
		font-size: min(3.889cqi, 78px);
	}

	.hero__sub {
		padding: min(1.111cqi, 22px) min(1.667cqi, 33px);
		font-size: min(1.667cqi, 33px);
		letter-spacing: min(0.069cqi, 1.4px);
	}

}

@media (max-width: 1160px) {
	:root {
		--header-h: 64px;
	}

	.site-header__logo img {
		width: 140px;
	}

	.site-header__toggle {
		position: relative;
		display: block;
		width: 44px;
		height: 44px;
		margin-right: -10px;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}

	.site-header__toggle-bar,
	.site-header__toggle-bar::before,
	.site-header__toggle-bar::after {
		position: absolute;
		left: 11px;
		width: 22px;
		height: 2px;
		background: var(--c-text);
		transition: transform 0.25s, opacity 0.25s;
	}

	.site-header__toggle-bar {
		top: 21px;
	}

	.site-header__toggle-bar::before,
	.site-header__toggle-bar::after {
		content: "";
		left: 0;
	}

	.site-header__toggle-bar::before {
		top: -7px;
	}

	.site-header__toggle-bar::after {
		top: 7px;
	}

	.is-nav-open .site-header__toggle-bar {
		background: transparent;
	}

	.is-nav-open .site-header__toggle-bar::before {
		transform: translateY(7px) rotate(45deg);
	}

	.is-nav-open .site-header__toggle-bar::after {
		transform: translateY(-7px) rotate(-45deg);
	}

	.global-nav {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		bottom: 0;
		padding: 24px var(--gutter) 40px;
		overflow-y: auto;
		background: var(--c-white);
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.25s, visibility 0.25s;
	}

	.admin-bar .global-nav {
		top: calc(var(--header-h) + 32px);
	}

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

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

	.global-nav__list a {
		padding: 18px 4px;
		border-bottom: 1px solid #e5e5e5;
		font-size: 16px;
	}

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

	/* スマホメニュー内の子メニューは常に表示（字下げ） */
	.global-nav__list .sub-menu {
		position: static;
		min-width: 0;
		padding: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.global-nav__list .sub-menu::before {
		display: none;
	}

	.global-nav__list .sub-menu a {
		padding: 12px 4px 12px 20px;
		font-weight: 500;
		font-size: 14px;
		color: var(--c-moji);
	}

	.philosophy {
		gap: 48px;
		padding: 80px var(--gutter);
	}

	.service-card__lead {
		font-size: clamp(22px, 2.6vw, 30px);
		line-height: 1.5;
	}

	.service-card__num {
		font-size: clamp(44px, 5vw, 60px);
	}

	.service-card__en {
		font-size: 16px;
		line-height: 24px;
		letter-spacing: 3px;
	}

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

	.site-footer {
		padding-left: var(--gutter);
		padding-right: var(--gutter);
	}
}

@media (max-width: 960px) {
	.vacancy-card,
	.entry-content .wp-block-media-text.is-style-service,
	.entry-content .wp-block-media-text.is-style-service.has-media-on-the-right {
		grid-template-columns: 1fr;
	}

	.entry-content .wp-block-media-text.is-style-service > .wp-block-media-text__media {
		grid-column: 1;
		grid-row: 1;
	}

	.entry-content .wp-block-media-text.is-style-service > .wp-block-media-text__content {
		grid-column: 1;
		grid-row: 2;
	}

	.wpcf7 .form-row {
		grid-template-columns: 1fr;
		padding: 20px 0;
	}

	.wpcf7 .form-label {
		justify-content: flex-start;
		padding-top: 0;
	}

	.entry-content tr > :first-child {
		width: 32%;
		white-space: normal;
	}

	.link-card {
		min-height: 180px;
	}

	.philosophy {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
	}

	.philosophy__image {
		width: 100%;
	}

	.philosophy__text br {
		display: none;
	}

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

	.service-card {
		aspect-ratio: auto;
		height: 420px;
	}

	.guides {
		grid-template-columns: 1fr;
		padding: 60px 0;
	}

	.access__info {
		flex-direction: column;
		gap: 24px;
	}

	.access__company {
		flex: none;
		align-self: auto;
		padding: 0 0 16px;
		border-right: 0;
		border-bottom: 1px solid var(--c-black);
		width: 100%;
	}

	.access__list {
		width: 100%;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.admin-bar .global-nav {
		top: calc(var(--header-h) + 46px);
	}
}

@media (max-width: 600px) {
	.entry-content th,
	.entry-content td {
		display: block;
		width: auto !important;
		padding: 12px 14px;
	}

	.entry-content tr > :first-child {
		border-bottom: 0;
	}

	.wpcf7 input[type="submit"] {
		width: 100%;
		min-width: 0;
	}

	.hero {
		height: 100svh;
		min-height: 560px;
		max-height: 760px;
	}

	.hero__title {
		font-size: clamp(24px, 7.2vw, 34px);
		letter-spacing: 0.1em;
	}

	.hero__sub {
		padding: 12px 16px;
		font-size: clamp(13px, 3.6vw, 16px);
	}

	.hero__shade {
		background:
			linear-gradient(to right, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.14) 50%, rgba(0, 0, 0, 0.04) 100%),
			linear-gradient(to top, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.22) 40%, rgba(0, 0, 0, 0) 100%) bottom / 100% max(30%, 14cqi) no-repeat;
	}


	.philosophy {
		padding: 60px var(--gutter);
		gap: 32px;
	}

	.philosophy__title {
		font-size: 26px;
	}

	.philosophy__title span {
		letter-spacing: 0.08em;
	}

	.section-head__ja {
		font-size: 26px;
		letter-spacing: 0.08em;
	}

	.philosophy__text {
		font-size: 15px;
	}

	.service-card {
		height: 380px;
	}

	.service-card__body {
		top: 32px;
		left: 20px;
	}

	.arrow-button__label {
		padding: 0 20px;
		font-size: 16px;
		letter-spacing: 2px;
	}

	.guide-card {
		height: 260px;
		padding: 24px 20px;
	}

	.guide-card__en {
		font-size: 16px;
	}

	.guide-card__title {
		font-size: 30px;
		line-height: 1.3;
		letter-spacing: 4px;
	}

	.guide-card__link {
		font-size: 15px;
	}

	.access {
		padding: 60px 0;
	}

	.access__map {
		height: 300px;
	}

	.access__row {
		flex-direction: column;
		gap: 0;
	}

	.access__row dt {
		flex: none;
		font-weight: 700;
	}

	.site-footer {
		padding-top: 48px;
	}

	.site-footer__main {
		flex-direction: column;
	}

	.site-footer__nav {
		flex-direction: column;
		gap: 16px;
	}

	.site-footer__sitemap {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		justify-content: start;
		gap: 28px 24px;
	}

	.site-footer__list--services {
		font-size: 16px;
	}

	.site-footer__list--company {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

/* =========================================================
   アニメーション
   .js は header.php で付与。JSが動かない環境では最初から表示される
   ========================================================= */
:root {
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.hero {
	background: #000;
}

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

.hero__line {
	display: block;
}

.hero__char {
	display: inline-block;
}

.hero__sub > span {
	display: block;
}

/* --- 最初の表示：写真がぼかしから浮かび上がり、文字が順に立ち上がる --- */
.js .hero__slides {
	animation: hero-photo-in 2.6s var(--ease-out) both;
}

.js .hero__shade {
	animation: fade-in 2s ease both;
}

/* タイトル：光でなぞるように、行ごとに左から柔らかく現れる */
.js .hero__line {
	width: fit-content;
	-webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
	mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
	-webkit-mask-size: 250% 100%;
	mask-size: 250% 100%;
	animation: soft-sweep 2s cubic-bezier(0.45, 0, 0.2, 1) both;
	animation-delay: calc(0.8s + var(--i) * 0.45s);
}

@keyframes soft-sweep {
	from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
	to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}

/* サブ：黒い帯が左から伸び、少し遅れて文字が現れる */
.js .hero__sub {
	background: transparent;
	isolation: isolate;
}

.js .hero__sub::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--c-black);
	transform-origin: left center;
	animation: band-in 0.9s cubic-bezier(0.77, 0, 0.18, 1) 1.9s both;
}

.js .hero__sub > span {
	animation: band-text-in 0.8s var(--ease-out) 2.6s both;
}

.js .hero__char {
	animation: char-in 1.2s var(--ease-out) both;
	animation-delay: calc(2.6s + var(--i) * 0.14s);
}

.js .home .site-header {
	animation: header-in 1s var(--ease-out) 0.3s both;
}

@keyframes hero-photo-in {
	from {
		opacity: 0;
		transform: scale(1.12);
		filter: blur(12px) brightness(1.3);
	}
	to {
		opacity: 1;
		transform: none;
		filter: none;
	}
}

@keyframes fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes band-in {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@keyframes band-text-in {
	from {
		opacity: 0;
		transform: translateX(-16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes rise-in {
	from { transform: translateY(110%); }
	to { transform: none; }
}

@keyframes wipe-in {
	from { clip-path: inset(0 100% 0 0); }
	to { clip-path: inset(0 0 0 0); }
}

@keyframes char-in {
	from {
		opacity: 0;
		transform: translateY(60%);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes header-in {
	from {
		opacity: 0;
		transform: translateY(-100%);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* --- 下層ページの見出し --- */
.js .sub-hero__img {
	animation: hero-photo-in 2.2s var(--ease-out) both;
}

.js .sub-hero__en > span {
	animation: rise-in 1.2s var(--ease-out) 0.4s both;
}

.js .sub-hero__title {
	animation: wipe-in 1s var(--ease-out) 0.75s both;
}

/* --- スクロールで表示：ぼかしが晴れながら浮かび上がる --- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(40px);
	filter: blur(8px);
	transition:
		opacity 1.4s var(--ease-out) var(--d, 0s),
		transform 1.4s var(--ease-out) var(--d, 0s),
		filter 1.4s var(--ease-out) var(--d, 0s);
}

.js [data-reveal].is-inview {
	opacity: 1;
	transform: none;
	filter: none;
}

/* 写真：白い幕が上へ引き上がるように現れ、拡大からゆっくり戻る
   （clip-path で完全に隠すと IntersectionObserver が反応しないため、幕を重ねる方式） */
.js [data-reveal="mask"] {
	position: relative;
	overflow: hidden; /* 拡大中の写真が枠からはみ出さないように */
	opacity: 1;
	transform: none;
	filter: none;
}

.js [data-reveal="mask"]::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background: var(--c-white, #fff);
	transform-origin: center top;
	transition: transform 1.5s cubic-bezier(0.77, 0, 0.18, 1) var(--d, 0s);
	pointer-events: none;
}

.js [data-reveal="mask"].is-inview::before {
	transform: scaleY(0);
}

.js [data-reveal="mask"] > :first-child {
	transform: scale(1.25);
	transition: transform 2.4s var(--ease-out) var(--d, 0s);
}

.js [data-reveal="mask"].is-inview > :first-child {
	transform: none;
}

/* カードの文字は写真のあとに */
.js [data-reveal="mask"] .service-card__body,
.js [data-reveal="mask"] .guide-card__body {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 1.2s var(--ease-out) calc(var(--d, 0s) + 0.6s),
		transform 1.2s var(--ease-out) calc(var(--d, 0s) + 0.6s);
}

.js [data-reveal="mask"].is-inview .service-card__body,
.js [data-reveal="mask"].is-inview .guide-card__body {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.js .hero__slides,
	.js .hero__shade,
	.js .hero__line,
	.js .hero__sub::before,
	.js .hero__sub > span,
	.js .hero__char,
	.js .sub-hero__img,
	.js .sub-hero__en > span,
	.js .sub-hero__title,
	.js .home .site-header {
		animation: none !important;
	}

	.js [data-reveal="mask"]::before {
		display: none;
	}

	.js [data-reveal],
	.js [data-reveal] > :first-child,
	.js [data-reveal] .service-card__body,
	.js [data-reveal] .guide-card__body {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
		clip-path: none !important;
	}
}
