/*
Theme Name: SETA Group
Description: SETA Group Website のためのオリジナルテーマ。会社・オフィス情報（Googleマップ付き）と製品ページへのリンクを表示します。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: seta-group
*/

:root {
	--ink: #193960;      /* ロゴの濃紺 */
	--deep: #094b72;
	--sea: #0f6492;      /* ロゴの青 */
	--mist: #a1bbcc;
	--wash: #eef3f7;
	--line: #d3dee7;
	--text: #1f2b38;
	--muted: #4f6274;
	--paper: #ffffff;
	--display: "Marcellus", "Times New Roman", serif;
	--body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	--wrap: 1120px;
	--gutter: clamp(20px, 5vw, 48px);
}

html[lang="vi"] {
	--body: "Be Vietnam Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--body);
	font-size: 1rem;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--sea); }
a:hover { color: var(--ink); }

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

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

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	padding: 8px 14px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.section-inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

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

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}

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

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: auto; }
.brand__word { width: 96px; height: auto; }
.custom-logo { max-height: 48px; width: auto; display: block; }

.site-nav__list {
	display: flex; gap: 36px;
	margin: 0; padding: 0; list-style: none;
}
.site-nav__list a {
	font-family: var(--display);
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	color: var(--ink);
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 1px solid transparent;
}
.site-nav__list a:hover { border-bottom-color: var(--sea); }

.site-nav { display: flex; align-items: center; gap: 36px; }

.lang-switch {
	display: flex;
	margin: 0; padding: 0 0 0 28px;
	list-style: none;
	border-left: 1px solid var(--line);
	font-family: "Be Vietnam Pro", var(--body);
	font-size: 0.85rem;
}
.lang-switch li + li::before { content: "/"; margin: 0 8px; color: var(--mist); }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang-switch a[aria-current] { color: var(--ink); font-weight: 500; }

.nav-toggle {
	display: none;
	width: 44px; height: 44px; padding: 0;
	background: none; border: 0; cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	display: block; width: 24px; height: 2px; margin: 0 auto;
	background: var(--ink); content: ""; position: relative;
	transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle__bar::before { position: absolute; top: -7px; }
.nav-toggle__bar::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}

.hero__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: clamp(72px, 12vw, 148px) var(--gutter) clamp(64px, 10vw, 128px);
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 32px;
}

.hero__title {
	margin: 0;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(3rem, 8.5vw, 6.5rem);
	line-height: 1;
	letter-spacing: 0.06em;
	color: var(--ink);
}

.hero__lead {
	margin: 32px 0 0;
	max-width: 30em;
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
	font-weight: 500;
	line-height: 1.8;
	text-wrap: pretty;
}

.hero__places {
	margin: 28px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	max-width: 30em;
	font-family: var(--display);
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	color: var(--muted);
}

/* The one bold element: the logo's ribbons, oversized and bleeding off the edge. */
.hero__visual {
	justify-self: end;
	width: 100%;
	margin-right: calc(var(--gutter) * -1 - 6vw);
}
.hero__visual img {
	display: block;
	width: min(560px, 46vw);
	margin-left: auto;
	animation: ribbon-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

@keyframes ribbon-in {
	from { opacity: 0; transform: translateX(48px) rotate(-4deg); }
	to   { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */

.about,
.product,
.offices,
.front-content { padding: clamp(64px, 9vw, 112px) 0; }

.section-title {
	margin: 0 0 40px;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.15;
	letter-spacing: 0.03em;
	color: var(--ink);
}

.about__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 32px;
}
.about__inner .section-title { margin: 0; }
.about__body { max-width: 38em; font-size: 1.08rem; }
.about__body p { margin: 0 0 1.2em; }
.about__body p:last-child { margin-bottom: 0; }

/* Product */

.product { background: var(--wash); }

.product__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 32px;
	align-items: start;
}
.product__inner .section-title { margin: 0; }

.product__item {
	display: grid;
	gap: 8px;
	padding: 28px 32px;
	background: var(--paper);
	border-left: 4px solid var(--sea);
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.2s ease;
}
.product__item:hover { border-left-color: var(--ink); color: var(--text); }
.product__name { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.product__desc { color: var(--muted); }
.product__more {
	margin-top: 8px;
	font-weight: 500;
	color: var(--sea);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Offices */

.company + .company { margin-top: 72px; }

.company__head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	padding-bottom: 16px;
	margin-bottom: 28px;
	border-bottom: 2px solid var(--ink);
}
.company__name {
	margin: 0;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(1.3rem, 2.6vw, 1.75rem);
	letter-spacing: 0.04em;
	color: var(--ink);
}
.company__country {
	margin: 0;
	font-family: var(--display);
	font-size: 1.05rem;
	color: var(--muted);
}

.company__offices { display: grid; gap: 40px; }
.company__offices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.company__offices--1 .office {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.office__map {
	aspect-ratio: 4 / 3;
	background: var(--wash);
	border: 1px solid var(--line);
}
.company__offices--1 .office__map { aspect-ratio: 16 / 9; }
.office__map iframe { display: block; width: 100%; height: 100%; border: 0; }

.office__body { padding-top: 20px; }
.company__offices--1 .office__body { padding-top: 0; }

.office__label {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--ink);
}
.office__address {
	margin: 0 0 14px;
	font-style: normal;
	max-width: 32em;
}
.office__link { font-weight: 500; text-underline-offset: 4px; }

/* Generic pages */

.page-article { padding: clamp(48px, 8vw, 96px) 0; }
.page-title {
	margin: 0 0 32px;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2rem, 4vw, 2.75rem);
	color: var(--ink);
}
.entry-content { max-width: 44em; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.5rem; color: var(--ink); margin: 2em 0 0.6em; }
.entry-content h3 { font-size: 1.2rem; color: var(--ink); margin: 1.6em 0 0.5em; }
.post-date { margin: 0; color: var(--muted); font-size: 0.9rem; }
.post-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-row__title { margin: 4px 0 0; font-size: 1.15rem; }
.post-row__title a { color: var(--text); text-decoration: none; }
.post-row__title a:hover { color: var(--sea); }

/* Contact call-to-action on the front page */

.contact-cta { padding: clamp(64px, 9vw, 112px) 0; background: var(--wash); }
.contact-cta__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 32px;
	align-items: start;
}
.contact-cta__inner .section-title { margin: 0; }
.contact-cta__body p { margin: 0 0 24px; max-width: 34em; font-size: 1.08rem; }

/* ---------- Buttons & contact form ---------- */

.button-primary {
	display: inline-block;
	padding: 14px 36px;
	background: var(--ink);
	color: #fff;
	border: 0;
	border-radius: 2px;
	font: 500 1rem/1.4 var(--body);
	letter-spacing: 0.06em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.button-primary:hover,
.button-primary:focus-visible { background: var(--sea); color: #fff; }

.contact-form { max-width: 40em; }
.form-note { margin: 0 0 28px; color: var(--muted); font-size: 0.92rem; }

.form-row { margin-bottom: 24px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--ink); }

.req {
	display: inline-block;
	margin-left: 6px;
	padding: 0 6px;
	background: var(--sea);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.7;
	vertical-align: 2px;
}
.form-note .req { margin-left: 0; }

.form-row input,
.form-row select,
.form-row textarea {
	display: block;
	width: 100%;
	padding: 12px 14px;
	background: var(--paper);
	color: var(--text);
	border: 1px solid #9fb2c2;
	border-radius: 2px;
	font: 400 1rem/1.6 var(--body);
}
.form-row textarea { resize: vertical; min-height: 10em; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: 2px solid var(--sea); outline-offset: 0; border-color: var(--sea); }
.form-row [aria-invalid="true"] { border-color: #b3261e; background: #fdf6f5; }

.form-error { margin: 6px 0 0; color: #b3261e; font-size: 0.92rem; }

.form-alert {
	margin: 0 0 28px;
	padding: 14px 18px;
	border-left: 4px solid #b3261e;
	background: #fdf6f5;
	color: #7a1a14;
}
.form-alert p { margin: 0; }

.form-actions { margin-top: 32px; }

.form-done {
	padding: 28px 32px;
	border-left: 4px solid var(--sea);
	background: var(--wash);
}
.form-done__title { margin: 0 0 8px; font-size: 1.3rem; color: var(--ink); }
.form-done p { margin: 0 0 8px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

.site-footer { background: var(--ink); color: #dfe8ef; }

.site-footer__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 64px var(--gutter) 40px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 24px 64px;
	align-items: start;
}

.logo-vertical { display: block; width: 108px; height: auto; filter: brightness(0) invert(1); }

.site-footer__companies { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.site-footer__company { display: block; font-family: var(--display); font-size: 1.1rem; letter-spacing: 0.04em; color: #fff; }
.site-footer__offices { display: block; font-size: 0.92rem; color: var(--mist); }

.site-footer__contact { grid-column: 2; margin: 0; }
.site-footer__contact a { color: #fff; text-underline-offset: 4px; }
.site-footer__contact a:hover { color: var(--mist); }

.site-footer__copy {
	grid-column: 1 / -1;
	margin: 24px 0 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.85rem;
	color: var(--mist);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 8px; }
	.lang-switch { margin: 0 var(--gutter) 20px; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
	.site-nav__list a { display: block; padding: 12px 0; }

	.hero__inner { grid-template-columns: 1fr; }
	.hero__visual { order: -1; margin-right: calc(var(--gutter) * -1); }
	.hero__visual img { width: min(320px, 62vw); }

	.about__inner,
	.product__inner,
	.contact-cta__inner { grid-template-columns: 1fr; }
	.site-footer__contact { grid-column: 1; }

	.company__offices--2 { grid-template-columns: 1fr; }
	.company__offices--1 .office { grid-template-columns: 1fr; gap: 0; }
	.company__offices--1 .office__body { padding-top: 20px; }
	.company__offices--1 .office__map { aspect-ratio: 4 / 3; }
	.company__head { flex-direction: column; gap: 2px; }

	.site-footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero__visual img { animation: none; }
	* { transition: none !important; }
}
