/* HANZ Corporation — site styles.
   Tokens come from theme.json (--wp--preset--*). Scale: 1rem body, 1.25 lead, 1.75 heading, display clamps. */

:root {
	--ink: var(--wp--preset--color--ink, #1C2A33);
	--stone: var(--wp--preset--color--stone, #5E6A72);
	--line: var(--wp--preset--color--line, #D9DEDB);
	--mist: var(--wp--preset--color--mist, #F3F5F2);
	--paper: var(--wp--preset--color--paper, #FFFFFF);
	--teal: var(--wp--preset--color--teal, #1592B8);
	--teal-deep: var(--wp--preset--color--teal-deep, #0E6F8C);
	--leaf: var(--wp--preset--color--leaf, #9DBB5A);
	--display: "Archivo", "Zen Kaku Gothic New", sans-serif;
	--body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
	--gutter: clamp(16px, 4vw, 48px);
	--wide: 1200px;
	--measure: 720px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1rem;
	line-height: 1.9;
	font-feature-settings: "palt" 0;
	text-rendering: optimizeLegibility;
}

body.lang-en { line-height: 1.7; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.hc-skip {
	position: absolute; left: -9999px; top: 0;
	background: var(--ink); color: var(--paper); padding: 8px 16px; z-index: 100;
}
.hc-skip:focus { left: 16px; top: 16px; }

/* ---------- Header ---------- */

.hc-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--line);
}

.hc-header__inner {
	max-width: var(--wide); margin: 0 auto; padding: 12px var(--gutter);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.hc-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.hc-brand img { width: auto; height: 48px; }
.hc-brand__name { font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.04em; }

.hc-nav__toggle {
	list-style: none; cursor: pointer;
	font-size: 0.875rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: 2px;
}
.hc-nav__toggle::-webkit-details-marker { display: none; }

.hc-nav__panel {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--paper); border-bottom: 1px solid var(--line);
	padding: 8px var(--gutter) 24px;
}

.hc-nav__list, .hc-lang { list-style: none; margin: 0; padding: 0; }
.hc-nav__list a {
	display: block; padding: 12px 0; text-decoration: none; color: var(--ink);
	border-bottom: 1px solid var(--line); font-size: 1rem;
}
.hc-nav__list .current-menu-item > a { color: var(--teal-deep); }

.hc-lang { display: flex; gap: 4px; margin-top: 16px; }
.hc-lang a {
	display: inline-block; min-width: 44px; padding: 8px 10px; text-align: center;
	font-family: var(--display); font-size: 0.8125rem; letter-spacing: 0.06em;
	color: var(--stone); text-decoration: none;
}
.hc-lang a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--leaf); }

@media (min-width: 960px) {
	.hc-nav__toggle { display: none; }
	.hc-nav__panel {
		position: static; padding: 0; border: 0; background: none;
		display: flex; align-items: center; gap: 28px;
	}
	.hc-nav__list { display: flex; gap: 28px; }
	.hc-nav__list a { border: 0; padding: 8px 0; font-size: 0.9375rem; }
	.hc-nav__list a:hover, .hc-nav__list .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--teal); color: var(--ink); }
	.hc-lang { margin: 0; padding-left: 20px; border-left: 1px solid var(--line); }
}

/* ---------- Page head ---------- */

.hc-pagehead {
	max-width: var(--wide); margin: 0 auto;
	padding: clamp(48px, 9vw, 112px) var(--gutter) clamp(32px, 5vw, 56px);
}
.hc-pagehead__title {
	margin: 0; font-family: var(--display); font-weight: 600;
	font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.25; letter-spacing: 0.01em;
	font-variation-settings: "wdth" 112;
}
.lang-ja .hc-pagehead__title { font-family: var(--body); font-weight: 700; letter-spacing: 0.04em; }
.hc-pagehead__date { display: block; color: var(--stone); font-family: var(--display); font-size: 0.875rem; margin-bottom: 12px; }

.hc-pagehead--photo { position: relative; max-width: none; padding: 0; color: var(--paper); }
.hc-pagehead--photo .hc-pagehead__img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; }
.hc-pagehead--photo .hc-pagehead__title {
	position: absolute; left: 0; right: 0; bottom: 0;
	max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) clamp(24px, 4vw, 48px);
	text-shadow: 0 1px 24px rgba(28, 42, 51, 0.45);
}
.hc-pagehead--photo::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to top, rgba(28, 42, 51, 0.55), rgba(28, 42, 51, 0) 55%);
}
.hc-pagehead--photo .hc-pagehead__title { z-index: 1; }

/* ---------- Content flow ---------- */

.hc-content { padding: 0 var(--gutter) clamp(64px, 10vw, 128px); }
.hc-content > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.hc-content > .alignwide { max-width: var(--wide); }
.hc-content > .alignfull { max-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
.hc-content--home { padding-top: 0; }

.hc-content h2 {
	font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 110;
	font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.35; margin: 2.6em auto 0.8em;
}
.lang-ja .hc-content h2 { font-family: var(--body); font-weight: 700; letter-spacing: 0.04em; }
.hc-content h3 { font-size: 1.25rem; line-height: 1.5; margin: 2em auto 0.6em; font-weight: 700; }
.hc-content p, .hc-content li { font-size: 1rem; }
.hc-content p { margin-top: 0; margin-bottom: 1.4em; }

.hc-container { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter) 96px; }

/* Lead paragraph */
.hc-lede { font-size: clamp(1.125rem, 2.2vw, 1.375rem) !important; line-height: 1.85; }

/* ---------- Hero (core/cover with class hc-hero) ---------- */

.wp-block-cover.hc-hero {
	min-height: min(86vh, 820px); padding: 0; align-items: flex-end;
}
.wp-block-cover.hc-hero .wp-block-cover__inner-container {
	width: 100%; max-width: var(--wide); margin: 0 auto;
	padding: 0 var(--gutter) clamp(40px, 7vw, 88px); color: var(--paper);
}
.hc-hero__statement {
	margin: 0; max-width: 22em; font-family: var(--body); font-weight: 700;
	font-size: clamp(1.75rem, 4.4vw, 3.25rem); line-height: 1.45; letter-spacing: 0.04em;
}
.lang-en .hc-hero__statement {
	font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 115;
	letter-spacing: 0; line-height: 1.15; max-width: 16em;
}
.hc-hero__sub { margin: 20px 0 0; max-width: 34em; font-size: clamp(1rem, 1.6vw, 1.125rem); opacity: 0.92; }

/* ---------- Section band ---------- */

.is-style-hc-band, .hc-band {
	background: var(--mist);
	padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.hc-content > .is-style-hc-band { max-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
.is-style-hc-band > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }

/* Section heading row: heading left, short intro right on wide screens */
.hc-sechead { display: grid; gap: 12px 48px; align-items: end; margin: clamp(72px, 10vw, 128px) auto 32px !important; }
.hc-sechead h2 { margin: 0 !important; }
.hc-sechead p { margin: 0 !important; color: var(--stone); }
@media (min-width: 900px) { .hc-sechead { grid-template-columns: 1fr 1fr; } }

/* ---------- Business index (the group as places) ---------- */

.hc-index { border-top: 1px solid var(--ink); margin-bottom: 0 !important; }
.hc-index__row {
	display: grid; gap: 16px 40px;
	padding: 28px 0; border-bottom: 1px solid var(--line);
	grid-template-columns: 1fr;
}
.hc-index__row > * { margin: 0 !important; }
.hc-index__row figure { margin: 0; }
.hc-index__row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hc-index__kind { color: var(--stone); font-size: 0.875rem; }
.hc-index__name {
	font-family: var(--display) !important; font-weight: 600 !important; font-variation-settings: "wdth" 112;
	font-size: clamp(1.375rem, 2.6vw, 1.875rem) !important; line-height: 1.25 !important; margin: 4px 0 8px !important;
}
.hc-index__place { color: var(--stone); font-size: 0.9375rem; }
.hc-index__link a { font-size: 0.9375rem; }

@media (min-width: 900px) {
	.hc-index__row { grid-template-columns: 5fr 7fr; align-items: center; padding: 36px 0; }
	.hc-index__row figure { order: 2; }
	.hc-index__row img { transition: transform 600ms cubic-bezier(.2, .7, .2, 1); }
	.hc-index__row:hover img { transform: scale(1.025); }
	.hc-index__row figure { overflow: hidden; }
}

/* ---------- Company facts table ---------- */

.wp-block-table.is-style-hc-facts table, .hc-facts table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.wp-block-table.is-style-hc-facts td, .wp-block-table.is-style-hc-facts th {
	border: 0; border-bottom: 1px solid var(--line); padding: 18px 0; vertical-align: top; text-align: left;
}
.wp-block-table.is-style-hc-facts tr > :first-child { width: 30%; padding-right: 24px; color: var(--stone); font-weight: 500; white-space: nowrap; }
@media (max-width: 600px) {
	.wp-block-table.is-style-hc-facts tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.wp-block-table.is-style-hc-facts td { display: block; border: 0; padding: 0; width: auto !important; white-space: normal !important; }
}

/* ---------- History timeline (the one loud element) ---------- */

.hc-timeline { max-width: var(--wide) !important; margin-top: 24px !important; }
.hc-year {
	display: grid; grid-template-columns: 1fr; gap: 4px 48px;
	padding: 28px 0 32px; border-top: 1px solid var(--line);
}
.hc-year > * { margin: 0 !important; }
.hc-year__num {
	font-family: var(--display) !important; font-weight: 300 !important;
	font-variation-settings: "wdth" 125; font-size: clamp(3rem, 9vw, 6.5rem) !important;
	line-height: 0.95 !important; letter-spacing: -0.02em; color: var(--ink);
	font-variant-numeric: lining-nums tabular-nums;
}
.hc-year__events { list-style: none; padding: 0 !important; }
.hc-year__events li { padding: 6px 0 6px 20px; position: relative; }
.hc-year__events li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 2px; background: var(--leaf); }
.hc-year--milestone .hc-year__num { color: var(--teal-deep); }
@media (min-width: 900px) {
	.hc-year { grid-template-columns: 4fr 8fr; align-items: baseline; }
}

/* ---------- Message (CEO) ---------- */

.hc-message__quote {
	border: 0 !important; padding: 0 !important; margin: 0 auto 40px !important;
}
.hc-message__quote p {
	font-weight: 700; font-size: clamp(1.375rem, 3vw, 2rem) !important; line-height: 1.6; letter-spacing: 0.03em;
}
.hc-signature { text-align: right; font-weight: 500; }

/* ---------- News list ---------- */

.hc-news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.hc-news__item { display: grid; gap: 4px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.hc-news__item time { color: var(--stone); font-family: var(--display); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.hc-news__item a { color: var(--ink); text-decoration: none; }
.hc-news__item a:hover { color: var(--teal-deep); text-decoration: underline; }
@media (min-width: 700px) { .hc-news__item { grid-template-columns: 9em 1fr; } }

/* Latest posts block on the home page uses the same look */
.wp-block-latest-posts.hc-news-latest { padding: 0; border-top: 1px solid var(--ink); }
.wp-block-latest-posts.hc-news-latest li { display: grid; gap: 4px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); margin: 0; }
.wp-block-latest-posts.hc-news-latest .wp-block-latest-posts__post-date { order: -1; color: var(--stone); font-family: var(--display); font-size: 0.875rem; }
.wp-block-latest-posts.hc-news-latest a { color: var(--ink); text-decoration: none; }
@media (min-width: 700px) { .wp-block-latest-posts.hc-news-latest li { grid-template-columns: 9em 1fr; } }

/* ---------- Buttons & small parts ---------- */

.wp-block-button__link, .hc-button {
	display: inline-block; background: var(--ink); color: var(--paper) !important;
	border-radius: 2px; padding: 14px 28px; text-decoration: none; font-size: 0.9375rem; font-weight: 500;
	transition: background 200ms ease;
}
.wp-block-button__link:hover, .hc-button:hover { background: var(--teal-deep); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink) !important; border: 1px solid var(--ink); }

.hc-back { margin-top: 48px; }

/* Forms (Contact Form 7) */
.wpcf7 label { display: block; font-weight: 500; font-size: 0.9375rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; color: var(--ink);
	border: 1px solid #AEB7BC; border-radius: 2px; background: var(--paper);
}
.wpcf7 textarea { min-height: 180px; }
.wpcf7 input[type="submit"] {
	background: var(--ink); color: var(--paper); border: 0; padding: 14px 32px; font: inherit; cursor: pointer; border-radius: 2px;
}
.wpcf7 input[type="submit"]:hover { background: var(--teal-deep); }
.wpcf7-not-valid-tip { color: #A3271F; font-size: 0.875rem; }

/* Map embed */
.hc-map iframe { width: 100%; height: 360px; border: 0; filter: grayscale(0.35); }

/* ---------- Footer ---------- */

.hc-footer { background: var(--ink); color: #DCE3E6; margin-top: 0; }
.hc-footer__inner {
	max-width: var(--wide); margin: 0 auto; padding: 56px var(--gutter) 32px;
	display: grid; gap: 32px;
}
.hc-footer__name { margin: 0 0 12px; font-weight: 700; color: var(--paper); }
.hc-footer address { font-style: normal; font-size: 0.875rem; line-height: 1.9; }
.hc-footer a { color: #DCE3E6; }
.hc-footer a:hover { color: var(--paper); }
.hc-footer__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; font-size: 0.875rem; }
.hc-footer__list li { padding: 4px 0; break-inside: avoid; }
.hc-footer__list a { text-decoration: none; }
.hc-footer__copy {
	max-width: var(--wide); margin: 0 auto; padding: 20px var(--gutter) 32px;
	border-top: 1px solid rgba(220, 227, 230, 0.2); font-size: 0.8125rem; color: #A9B4BA;
}
@media (min-width: 900px) { .hc-footer__inner { grid-template-columns: 1fr 1fr; } }

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

/* Preview only: facts still waiting on George. Remove the marks before launch. */
mark.hc-confirm { background: #FFF1B8; color: var(--ink); padding: 0 4px; font-size: 0.8125rem; border-radius: 2px; white-space: nowrap; }

/* Home intro under the hero */
.hc-intro { max-width: var(--measure); margin: clamp(56px, 9vw, 112px) auto 0 !important; }
.hc-intro h2 { margin-top: 0 !important; }

/* Hero: keep the photo's own colour; darken only behind the words. */
.wp-block-cover.hc-hero .wp-block-cover__background { opacity: 0 !important; }
.wp-block-cover.hc-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
	background: linear-gradient(to top, rgba(28, 42, 51, 0.72) 0%, rgba(28, 42, 51, 0.25) 38%, rgba(28, 42, 51, 0) 60%);
}
.wp-block-cover.hc-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }
.wp-block-cover.hc-hero .wp-block-cover__image-background { object-position: 50% 35%; }

/* ---------- Pass 2 fixes ---------- */

/* One left edge for everything: content sits in the wide column, text keeps a reading measure. */
.hc-content { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; }
.hc-content > * { max-width: var(--measure); margin-left: 0; margin-right: 0; }
.hc-content > .alignwide, .hc-content > .hc-index, .hc-content > .hc-timeline, .hc-content > .hc-sechead { max-width: none; }
.hc-content > .alignfull, .hc-content > .is-style-hc-band, .hc-content > .wp-block-cover.alignfull {
	max-width: none; width: 100vw; margin-left: calc(50% - 50vw) !important; margin-right: 0 !important;
}
.hc-content--home > .hc-intro { margin-left: 0 !important; }
.hc-content--home { padding-top: 0; }
.is-style-hc-band > * { max-width: calc(var(--wide)); }

/* History: events read at body size, aligned to the top of the year. */
.hc-year { align-items: start; }
.hc-year__events { padding-top: 0.6em !important; }
.hc-year__events li { font-size: 1.0625rem !important; }
@media (min-width: 900px) { .hc-year__events { padding-top: 1.4em !important; } }

/* Phone header: keep the name on one line, never squeeze the menu button. */
.hc-nav__toggle { white-space: nowrap; }
@media (max-width: 520px) {
	.hc-brand img { height: 40px; }
	.hc-brand__name { font-size: 0.8125rem; letter-spacing: 0.02em; }
}
@media (max-width: 380px) { .hc-brand__name { display: none; } }
.hc-pagehead { max-width: calc(var(--wide) + 2 * var(--gutter)); }
.wp-block-cover.hc-hero::after { background: linear-gradient(to top, rgba(28, 42, 51, 0.82) 0%, rgba(28, 42, 51, 0.35) 34%, rgba(28, 42, 51, 0) 58%); }
.hc-hero__sub { opacity: 1; }
