/* ==========================================================================
   HACOBUNE Corporate — 追加スタイル
   色・文字サイズ・余白の基本値は theme.json。ここではレイアウトと細部のみ。
   ========================================================================== */

:root {
	--hc-header-h: 84px;
	--hc-section-y: clamp(56px, 9vw, 136px);
	--hc-line: var(--wp--preset--color--line, #D8D2C8);
	--hc-gold: var(--wp--preset--color--gold, #B89A5E);
	--hc-muted: var(--wp--preset--color--muted, #666);
	--hc-ink: var(--wp--preset--color--ink, #1E1E1E);
	--hc-dark: var(--wp--preset--color--dark, #262626);
}
@media (max-width: 781px) {
	:root { --hc-header-h: 64px; }
}

html { scroll-padding-top: calc(var(--hc-header-h) + 16px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "palt" 0; }
img { height: auto; }
p, li, dd { line-break: strict; overflow-wrap: anywhere; word-break: normal; text-wrap: pretty; } /* 最終行に1〜2文字だけ残る改行を避ける（対応ブラウザ） */
h1, h2, h3, .hc-display { overflow-wrap: anywhere; text-wrap: pretty; }
@supports (word-break: auto-phrase) {
	:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; } /* 文節で改行（対応ブラウザのみ） */
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--hc-gold);
	outline-offset: 3px;
}
.hc-section.is-style-hc-dark :where(a, button):focus-visible,
.hc-footer :where(a, button):focus-visible { outline-color: #fff; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* ---------- Header ---------- */
.hc-header {
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid var(--hc-line);
}
.admin-bar .hc-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .hc-header { top: 0; } }
.hc-header__inner { min-height: var(--hc-header-h); gap: 24px; }
.hc-brand { gap: 12px; }
.hc-brand { align-items: center; }
.hc-brand .wp-block-site-logo img { height: 44px; width: auto; display: block; } /* シンボルマーク + 社名テキストを並べて表示 */
@media (max-width: 781px) { .hc-brand .wp-block-site-logo img { height: 36px; } .hc-site-title { font-size: 1rem !important; } }
.hc-site-title a { text-decoration: none; color: inherit; }

.hc-nav { gap: clamp(16px, 2.2vw, 36px); }
.hc-nav .wp-block-navigation-item__content { text-decoration: none; padding: 10px 0; display: inline-flex; align-items: center; min-height: 44px; }
.hc-nav .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--hc-gold); }
.hc-nav .current-menu-item > .wp-block-navigation-item__content,
.hc-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--hc-gold); }

.hc-site-title { white-space: nowrap; }
.hc-nav .wp-block-navigation-item__content { white-space: nowrap; }

/* タブレット幅（600〜1100px）でもメニューをハンバーガーにまとめる（項目の折り返しを防ぐ） */
@media (min-width: 600px) and (max-width: 1100px) {
	.hc-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.hc-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (min-width: 600px) {
	.hc-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .hc-nav-mobile-only { display: none; }
	.hc-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .hc-nav-cta .wp-block-navigation-item__content {
		background: var(--hc-ink); color: #fff; padding: 10px 22px; border-radius: 2px;
	}
	.hc-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .hc-nav-cta .wp-block-navigation-item__content:hover { background: var(--hc-dark); text-decoration: none; }
}
/* モバイルのメニューパネル */
.hc-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--white, #fff); padding: 24px clamp(20px, 6vw, 40px); }
.hc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 0; padding-top: 48px; align-items: stretch; }
.hc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--hc-line); }
.hc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { width: 100%; padding: 14px 0; font-size: 1.0625rem; }
.hc-nav .wp-block-navigation__responsive-container-open,
.hc-nav .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* ---------- Main / sections ---------- */
.wp-site-blocks > * { margin-block-start: 0 !important; } /* ヘッダー・本文・フッターの間に背景色の隙間を作らない */
.hc-main { padding-top: 0; padding-bottom: 0; }
.hc-main > .wp-block-post-content > *:first-child, .hc-main--front .wp-block-post-content > .hc-hero:first-child { margin-block-start: 0; }
.wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }

.hc-section { padding-top: var(--hc-section-y); padding-bottom: var(--hc-section-y); }
.hc-section.is-style-hc-white { background: var(--wp--preset--color--white, #fff); }
.hc-section.is-style-hc-dark { background: var(--hc-dark); color: #fff; }
.hc-section.is-style-hc-dark a:not(.wp-element-button) { color: #fff; }
.hc-section.is-style-hc-dark .hc-muted, .hc-section.is-style-hc-dark .hc-note { color: rgba(255,255,255,.72); }
.hc-section--line-top { border-top: 1px solid var(--hc-line); }

.hc-eyebrow, .is-style-hc-eyebrow {
	font-family: var(--wp--preset--font-family--latin);
	font-size: 0.75rem !important; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--hc-muted); display: flex; align-items: center; gap: 14px; margin-bottom: 0.75rem;
	line-height: 1.6;
}
.hc-eyebrow::before, .is-style-hc-eyebrow::before { content: ""; display: block; width: 28px; height: 1px; background: var(--hc-gold); flex: none; }
.is-style-hc-dark .hc-eyebrow, .hc-hero .hc-eyebrow { color: rgba(255,255,255,.78); }

.hc-section-title { font-size: var(--wp--preset--font-size--xx-large); margin-top: 0; }
.hc-section-title--sm { font-size: var(--wp--preset--font-size--x-large); }
.hc-subheading { font-size: var(--wp--preset--font-size--large); margin-top: 3rem; padding-bottom: .75rem; border-bottom: 1px solid var(--hc-line); }
.hc-mincho, .hc-display { font-family: var(--wp--preset--font-family--mincho); font-weight: 500; letter-spacing: 0.06em; }
.is-style-hc-lead, .hc-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.9; }
.hc-muted { color: var(--hc-muted); }
.hc-note { font-size: var(--wp--preset--font-size--small); color: var(--hc-muted); line-height: 1.8; }

.hc-text-link {
	display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
	text-decoration: none; font-size: var(--wp--preset--font-size--small); letter-spacing: .08em;
	border-bottom: 1px solid currentColor; padding-bottom: 2px; min-height: 0; line-height: 2;
}
.hc-text-link::after { content: "→"; transition: transform .2s ease; }
.hc-text-link:hover::after { transform: translateX(4px); }
.hc-back { margin-top: 3rem; }

.wp-block-button.is-style-hc-line .wp-block-button__link { background: transparent; color: currentColor; border: 1px solid currentColor; }
.wp-block-button.is-style-hc-line .wp-block-button__link:hover { background: var(--hc-ink); color: #fff; border-color: var(--hc-ink); }
.is-style-hc-dark .wp-block-button:not(.is-style-hc-line) .wp-block-button__link,
.hc-hero .wp-block-button:not(.is-style-hc-line) .wp-block-button__link { background: #fff; color: var(--hc-ink); }
.is-style-hc-dark .wp-block-button.is-style-hc-line .wp-block-button__link:hover,
.hc-hero .wp-block-button.is-style-hc-line .wp-block-button__link:hover { background: #fff; color: var(--hc-ink); border-color: #fff; }
.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

.is-style-hc-lines { list-style: none; padding-left: 0; border-top: 1px solid var(--hc-line); }
.is-style-hc-lines > li { padding: 14px 0 14px 1.5em; border-bottom: 1px solid var(--hc-line); position: relative; margin: 0; }
.is-style-hc-lines > li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 10px; height: 1px; background: var(--hc-gold); }

/* ---------- Hero ---------- */
.hc-hero.wp-block-cover { min-height: min(78vh, 680px) !important; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(56px, 8vw, 104px); align-items: flex-end; }
.hc-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--wp--style--global--wide-size, 1280px); margin-inline: auto; color: #fff; }
.hc-hero .hc-display { font-size: var(--wp--preset--font-size--display); line-height: 1.35; margin: 0 0 1.5rem; }
.hc-hero .wp-block-cover__inner-container > * { margin-left: 0; margin-right: 0; }
.hc-hero__lead { max-width: 40em; font-size: var(--wp--preset--font-size--medium); line-height: 1.95; color: rgba(255,255,255,.9); }
.hc-hero__tagline { font-family: var(--wp--preset--font-family--latin); font-size: .75rem !important; letter-spacing: .3em; color: var(--hc-gold); margin-top: 2.5rem; }
.hc-hero .wp-block-cover__background { background-color: var(--hc-dark); }
.hc-hero .wp-block-cover__image-background + .wp-block-cover__background,
.hc-hero img + .wp-block-cover__background { opacity: .55; } /* 写真設定時の文字のコントラスト確保 */

/* ---------- News strip ---------- */
.hc-news { background: var(--wp--preset--color--white, #fff); border-bottom: 1px solid var(--hc-line); }
.hc-news__inner {
	max-width: var(--wp--style--global--wide-size, 1280px); margin-inline: auto;
	padding: 28px var(--wp--style--root--padding-right, 20px) 28px var(--wp--style--root--padding-left, 20px);
	display: grid; grid-template-columns: auto 1fr auto; gap: 16px clamp(24px, 4vw, 64px); align-items: start;
}
.hc-news__heading { font-size: 1rem; margin: 0; display: grid; gap: 2px; font-weight: 700; }
.hc-news__heading .hc-eyebrow { margin: 0; }
.hc-news__list, .hc-news-archive__list { list-style: none; margin: 0; padding: 0; }
.hc-news__item + .hc-news__item { border-top: 1px solid var(--hc-line); }
.hc-news__link { display: grid; grid-template-columns: 6.5em auto 1fr; gap: 4px 20px; padding: 10px 0; text-decoration: none; align-items: baseline; }
.hc-news__link:hover .hc-news__title { text-decoration: underline; }
.hc-news__date, .wp-block-post-date.hc-news__date { font-family: var(--wp--preset--font-family--latin); font-size: var(--wp--preset--font-size--small); color: var(--hc-muted); letter-spacing: .06em; }
.hc-news__cat, .wp-block-post-terms.hc-news__cat a, .wp-block-post-terms.hc-news__cat {
	font-size: .75rem; color: var(--hc-muted); text-decoration: none;
}
.hc-news__cat:not(.wp-block-post-terms), .wp-block-post-terms.hc-news__cat a { border: 1px solid var(--hc-line); padding: 1px 10px; white-space: nowrap; }
@media (max-width: 781px) {
	.hc-news__inner { grid-template-columns: 1fr; }
	.hc-news__link { grid-template-columns: auto 1fr; }
	.hc-news__title { grid-column: 1 / -1; }
}

/* News archive */
.hc-news-archive__list { border-top: 1px solid var(--hc-line); }
.hc-news-archive__item { padding: 22px 0; border-bottom: 1px solid var(--hc-line); gap: 6px 24px; margin: 0 !important; }
.hc-news-archive__title { font-size: var(--wp--preset--font-size--medium) !important; font-weight: 400; margin: 0; flex-basis: 100%; }
@media (min-width: 782px) { .hc-news-archive__title { flex-basis: auto; flex: 1 1 20em; } }
.hc-news-archive__title a { text-decoration: none; }
.hc-news-archive__title a:hover { text-decoration: underline; }
.wp-block-query-pagination { margin-top: 2.5rem; gap: 8px; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Page header (下層) ---------- */
.hc-page-header { border-bottom: 1px solid var(--hc-line); padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 80px); }
.hc-page-title { font-size: var(--wp--preset--font-size--xx-large) !important; margin: 1.25rem 0 0; font-weight: 700; }
.hc-page-title--post { font-size: var(--wp--preset--font-size--x-large) !important; }
.hc-page-content { padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(64px, 9vw, 136px); }
.hc-page-content > .alignfull:first-child { margin-top: calc(-1 * clamp(48px, 7vw, 104px)); }
.hc-page-content > .alignfull:last-child { margin-bottom: calc(-1 * clamp(64px, 9vw, 136px)); }
/* 本文の最後とフッター前の CONTACT 帯の間に、CTA がないページと同じ余白を取る */
.hc-page-content > :not(.alignfull) + .hc-cta.alignfull { margin-block-start: clamp(64px, 9vw, 136px); }
.hc-post-meta { gap: 16px; margin-top: 1.25rem; align-items: center; }
.hc-eyebrow-terms { margin-top: 1.25rem; font-size: .8125rem; }
.hc-eyebrow-terms a { color: var(--hc-muted); text-decoration: none; }
.hc-article h2 { font-size: var(--wp--preset--font-size--large); margin-top: 2.5em; padding-bottom: .5em; border-bottom: 1px solid var(--hc-line); }

/* Breadcrumbs */
.hc-breadcrumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .8125rem; color: var(--hc-muted); }
.hc-breadcrumbs__list li { display: inline-flex; align-items: center; }
.hc-breadcrumbs__list li + li::before { content: ""; width: 5px; height: 5px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); margin: 0 12px 0 10px; }
.hc-breadcrumbs__list a { color: var(--hc-muted); text-decoration: none; }
.hc-breadcrumbs__list a:hover { text-decoration: underline; }

/* ---------- Editorial split (左に見出し・右に本文) ---------- */
:root { --hc-col-gap: clamp(24px, 5vw, 80px); }
.hc-split { gap: var(--hc-col-gap) !important; }
.hc-split .hc-section-title { margin-bottom: 0; }

/* ---------- Business rows ---------- */
.hc-biz { border-top: 1px solid var(--hc-line); margin-top: clamp(40px, 6vw, 72px) !important; }
.hc-biz__row { border-bottom: 1px solid var(--hc-line); padding: clamp(28px, 4vw, 48px) 0; gap: var(--hc-col-gap) !important; margin: 0 !important; align-items: start !important; }
.hc-biz__row .wp-block-column { margin: 0; }
.hc-num {
	font-family: var(--wp--preset--font-family--latin); color: var(--hc-gold) !important;
	font-size: .875rem !important; letter-spacing: .14em; margin: 0 0 .5rem;
}
.is-style-hc-dark .hc-num { color: var(--hc-gold); }
.hc-biz__title { font-size: var(--wp--preset--font-size--x-large); margin: 0; }
.hc-biz__title a { text-decoration: none; }
.hc-biz__title a:hover { text-decoration: underline; text-decoration-color: var(--hc-gold); text-underline-offset: 8px; }
.hc-biz__row p { margin-top: 0; }
/* 写真付きの行：左に写真、右に番号・見出し・説明 */
.hc-biz__row--photo { align-items: center !important; }
.hc-biz__img, .hc-pair__img, .hc-office__img { margin: 0 !important; }
.hc-biz__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.hc-biz__row--photo .hc-biz__title { margin-bottom: 1rem; }
.hc-pair__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; margin-bottom: clamp(24px, 3vw, 40px); }
/* 「※画像はイメージです」などの注記：写真下の余白内に置き、左右の列の見出し位置をそろえる */
.hc-pair__img, .hc-biz__img, .hc-office__img { position: relative; }
.hc-pair__img figcaption, .hc-biz__img figcaption, .hc-office__img figcaption {
	font-size: .6875rem; color: var(--hc-muted); text-align: right; letter-spacing: .04em; line-height: 1.4; margin: 0;
}
.hc-pair__img { padding-bottom: clamp(24px, 3vw, 40px) !important; }
.hc-pair__img img { margin-bottom: 0 !important; }
.hc-pair__img figcaption { position: absolute; right: 0; top: calc(100% - clamp(24px, 3vw, 40px) + 6px); }
.hc-biz__img figcaption, .hc-office__img figcaption { margin-top: 6px; }
.hc-office { gap: 16px !important; }
.hc-office__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* ---------- Approach: 4 steps + 役割の区分 ---------- */
.hc-steps { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 !important; margin-top: clamp(40px, 6vw, 72px) !important; border-top: 1px solid rgba(255,255,255,.22); }
.hc-step { padding: 28px clamp(16px, 2vw, 28px) 28px 0; margin: 0 !important; position: relative; }
.hc-step + .hc-step { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid rgba(255,255,255,.22); }
.hc-step h3 { font-size: var(--wp--preset--font-size--large); margin: .25rem 0 .75rem; }
.hc-step p:last-child { margin-bottom: 0; }
:not(.is-style-hc-dark) > .hc-steps, .hc-page-content .hc-steps { border-top-color: var(--hc-line); }
.hc-page-content .hc-step + .hc-step { border-left-color: var(--hc-line); }
@media (max-width: 960px) {
	.hc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hc-step:nth-child(3) { border-left: 0; padding-left: 0; }
	.hc-step:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
	.hc-page-content .hc-step:nth-child(n+3) { border-top-color: var(--hc-line); }
}
@media (max-width: 600px) {
	.hc-steps { grid-template-columns: 1fr; }
	.hc-step + .hc-step { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
	.hc-page-content .hc-step + .hc-step { border-top-color: var(--hc-line); }
}

.hc-roles { margin-top: clamp(32px, 5vw, 56px) !important; gap: 0 !important; border: 1px solid rgba(255,255,255,.22); }
.hc-roles > .wp-block-column { padding: 24px clamp(20px, 3vw, 36px); margin: 0 !important; }
.hc-roles > .wp-block-column + .wp-block-column { border-left: 1px solid rgba(255,255,255,.22); }
.hc-roles h3 { font-size: 1rem; margin: 0 0 .5rem; display: flex; gap: 10px; align-items: center; }
.hc-roles h3::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--hc-gold); flex: none; }
.hc-roles .hc-roles__self h3::before { background: var(--hc-gold); }
.hc-roles p { margin: 0; font-size: var(--wp--preset--font-size--small); }
.hc-page-content .hc-roles, .hc-page-content .hc-roles > .wp-block-column + .wp-block-column { border-color: var(--hc-line); }
@media (max-width: 781px) {
	.hc-roles > .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
	.hc-page-content .hc-roles > .wp-block-column + .wp-block-column { border-top-color: var(--hc-line); }
}

/* ---------- Company / Partnership pair ---------- */
.hc-pair { gap: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.hc-pair > .wp-block-column { padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px); margin: 0 !important; }
.hc-pair > .wp-block-column:first-child { background: var(--wp--preset--color--white, #fff); }
.hc-pair > .wp-block-column:last-child { background: #EFEBE5; }
.hc-pair .hc-section-title { font-size: var(--wp--preset--font-size--x-large); }

/* ---------- CTA ---------- */
.hc-cta .hc-section-title { font-family: var(--wp--preset--font-family--mincho); }
.hc-cta__inner { gap: clamp(24px, 5vw, 80px) !important; align-items: end !important; }

/* ---------- Content blocks for sub pages ---------- */
.hc-intro { border-bottom: 1px solid var(--hc-line); padding-bottom: clamp(40px, 6vw, 72px); margin-bottom: clamp(40px, 6vw, 72px); }
.hc-block { margin-top: clamp(48px, 7vw, 96px) !important; }
.hc-block > h2 { font-size: var(--wp--preset--font-size--x-large); margin-bottom: 1.5rem; }
.hc-cases { gap: 16px !important; }
.hc-cases > .wp-block-column { background: var(--wp--preset--color--white, #fff); border-top: 2px solid var(--hc-ink); padding: 24px; margin: 0 !important; }
.hc-cases p { margin: 0; }
.hc-disclaimer { margin-top: clamp(40px, 6vw, 72px) !important; padding: 20px 24px; border: 1px solid var(--hc-line); background: var(--wp--preset--color--white, #fff); font-size: var(--wp--preset--font-size--small); color: var(--hc-muted); }
.hc-disclaimer p { margin: 0; }
.hc-flow { counter-reset: hcflow; list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--hc-line); }
.hc-flow > li { counter-increment: hcflow; display: grid; grid-template-columns: 3.5rem 1fr; padding: 18px 0; border-bottom: 1px solid var(--hc-line); margin: 0; }
.hc-flow > li::before { content: counter(hcflow, decimal-leading-zero); font-family: var(--wp--preset--font-family--latin); color: var(--hc-gold); font-size: .875rem; letter-spacing: .12em; padding-top: .2em; }
.hc-strength { border-top: 1px solid var(--hc-line); padding-top: 2rem; margin-top: 3rem !important; gap: clamp(20px, 5vw, 80px) !important; }
.hc-policy h2 { font-size: var(--wp--preset--font-size--large); margin-top: 2.75em; padding-bottom: .5em; border-bottom: 1px solid var(--hc-line); }
.hc-policy h2:first-child { margin-top: 0; }
.hc-review-mark { background: #FFF6D6; outline: 1px dashed #B08A2E; padding: 0 4px; }

/* Company info (plugin blocks) */
.hc-company-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--hc-line); }
.hc-company-table th, .hc-company-table td { text-align: left; vertical-align: top; padding: 20px 0; border-bottom: 1px solid var(--hc-line); font-weight: 400; }
.hc-company-table th { width: 28%; padding-right: 24px; color: var(--hc-muted); font-size: var(--wp--preset--font-size--small); }
@media (max-width: 600px) {
	.hc-company-table th, .hc-company-table td { display: block; width: 100%; box-sizing: border-box; }
	.hc-company-table th { padding-bottom: 4px; padding-right: 0; border-bottom: 0; }
	.hc-company-table td { padding-top: 0; }
}
.hc-map-link { font-size: var(--wp--preset--font-size--small); }
.hc-contact-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--hc-line); }
.hc-contact-list > div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hc-line); }
.hc-contact-list dt { color: var(--hc-muted); font-size: var(--wp--preset--font-size--small); }
.hc-contact-list dd { margin: 0; }
.hc-contact-list__note { display: block; font-size: var(--wp--preset--font-size--small); color: var(--hc-muted); }

/* Projects */
.hc-projects .hc-section-head { margin-bottom: 2rem; }
.hc-projects__list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.hc-projects--single .hc-projects__list { grid-template-columns: 1fr; }
.hc-project-card { border-top: 1px solid var(--hc-ink); padding-top: 20px; margin: 0; }
.hc-projects--single .hc-project-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.hc-projects--single .hc-project-card--noimage { grid-template-columns: 1fr; }
@media (max-width: 781px) { .hc-projects--single .hc-project-card { grid-template-columns: 1fr; } }
.hc-project-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.hc-project-card__area, .hc-project-card__stage { font-size: .8125rem; color: var(--hc-muted); margin: 0 0 .5rem; }
.hc-project-card__stage { display: inline-block; border: 1px solid var(--hc-line); padding: 2px 10px; margin-top: .5rem; }
.hc-project-card__title { font-size: var(--wp--preset--font-size--large); margin: .25rem 0 .5rem; }
.hc-project-card__title a { text-decoration: none; }
.hc-project-card__title a:hover { text-decoration: underline; }
.hc-project-card__summary { margin: 0; color: var(--hc-muted); font-size: var(--wp--preset--font-size--small); }
.hc-projects-note { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--hc-line); }
.hc-facts { margin: 2.5rem 0 0; border-top: 1px solid var(--hc-line); }
.hc-facts__row { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hc-line); }
.hc-facts__row dt { color: var(--hc-muted); font-size: var(--wp--preset--font-size--small); }
.hc-facts__row dd { margin: 0; }
@media (max-width: 600px) { .hc-facts__row, .hc-contact-list > div { grid-template-columns: 1fr; gap: 4px; } }
.hc-facts__links { margin-top: 1.5rem; }

/* ---------- Contact Form 7 ---------- */
.hc-form-wrap { background: var(--wp--preset--color--white, #fff); padding: clamp(24px, 5vw, 56px); border-top: 2px solid var(--hc-ink); }
.wpcf7 .hc-field, .wpcf7 .hb-field { margin: 0 0 28px; }
.wpcf7 .hc-field > p, .wpcf7 .hb-field > p { margin: 0; } /* CF7 の自動整形で入る段落・改行を詰める */
.wpcf7 .hc-field br, .wpcf7 .hb-field br { display: none; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 label, .wpcf7 .hc-field__label, .wpcf7 .hb-field__label { display: block; font-weight: 700; margin-bottom: 8px; }
.wpcf7 .hb-field__en { display: none; }
.wpcf7 .hc-req, .wpcf7 .hb-field__req {
	display: inline-block; margin-left: 8px; font-size: .6875rem; font-style: normal; letter-spacing: .06em;
	color: #fff; background: var(--hc-ink); padding: 1px 6px; vertical-align: 2px;
}
.wpcf7 .hc-opt { display: inline-block; margin-left: 8px; font-size: .6875rem; color: var(--hc-muted); border: 1px solid var(--hc-line); padding: 0 6px; vertical-align: 2px; }
.wpcf7 .hc-help { display: block; font-size: var(--wp--preset--font-size--small); color: var(--hc-muted); margin-top: 6px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--hc-ink); background: #fff;
	border: 1px solid #8C877F; border-radius: 2px; padding: 10px 14px; min-height: 48px; line-height: 1.5; box-sizing: border-box;
}
.wpcf7 textarea { min-height: 200px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { border-color: var(--hc-ink); outline: 2px solid var(--hc-gold); outline-offset: 1px; }
.wpcf7 .wpcf7-not-valid { border-color: #B3261E !important; }
.wpcf7 .wpcf7-not-valid-tip { color: #B3261E; font-size: var(--wp--preset--font-size--small); margin-top: 6px; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.wpcf7 input[type="checkbox"] { width: 20px; height: 20px; margin-top: .3em; flex: none; accent-color: var(--hc-ink); }
.wpcf7 .wpcf7-submit {
	font: inherit; font-size: var(--wp--preset--font-size--small); letter-spacing: .1em; cursor: pointer;
	background: var(--hc-ink); color: #fff; border: 0; border-radius: 2px; padding: 16px 48px; min-height: 52px; min-width: 240px;
}
.wpcf7 .wpcf7-submit:hover { background: var(--hc-dark); }
.wpcf7 .wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 16px 20px; border: 1px solid var(--hc-line); font-size: var(--wp--preset--font-size--small); }
.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: #B3261E; color: #B3261E; }
.hc-form-result { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--hc-line); background: #fff; }
.hc-form-result h2 { font-size: var(--wp--preset--font-size--large); margin-top: 0; }
.hc-form-result:focus { outline: 2px solid var(--hc-gold); outline-offset: 4px; }

/* ---------- Footer ---------- */
.hc-footer { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 32px; font-size: var(--wp--preset--font-size--small); }
.hc-footer a { color: #fff; text-decoration: none; }
.hc-footer a:hover { text-decoration: underline; }
.hc-footer__main { gap: clamp(32px, 6vw, 96px) !important; }
.hc-footer__title { font-size: 1.25rem; margin-bottom: .5rem; }
.hc-footer__tagline { color: rgba(255,255,255,.75); }
.hc-footer__list { list-style: none; padding: 0; margin: 0; }
.hc-footer__list li { margin: 0 0 12px; }
.hc-footer__list a { display: inline-block; padding: 2px 0; }
.hc-company-footer { color: rgba(255,255,255,.75); margin-top: 1.5rem; }
.hc-company-footer p { margin: 0 0 4px; }
.hc-footer__bottom { margin-top: clamp(48px, 6vw, 80px) !important; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.72); }
.hc-footer__bottom p { margin: 0; font-size: .75rem; letter-spacing: .12em; }
.hc-footer__tagline-en { color: var(--hc-gold); }

/* Search */
.hc-search .wp-block-search__input { border: 1px solid #8C877F; min-height: 48px; padding: 8px 12px; }
.hc-search .wp-block-search__button { min-height: 48px; margin-left: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
	.hc-header, .hc-footer, .hc-news { display: none; }
}
