/*
Theme Name: DXJAPAN
Theme URI: https://dxjapan.co.jp
Author: DXJAPAN株式会社
Description: DXJAPAN株式会社 コーポレートサイト用テーマ。5言語(日本語・中文・한국어・台灣・English)の自動切替、お知らせ、事業別お問い合わせフォーム、Googleマップ、改ざん・ランサムウェア自動チェックを内蔵。
Version: 1.0.6
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: dxjapan
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #0b0b0c;
	--red: #d1363c;
	--red-text: #b42a30;
	--red-on-dark: #ee6a70;
	--paper: #f5f4f1;
	--white: #fff;
	--line: #dad7d0;
	--line-dark: #2e2e33;
	--muted: #55534e;
	--muted-dark: #a9a6a0;
	--soft-dark: #d6d3cd;
	--panel: #141416;
	--font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	--font-display: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", sans-serif;
	--font-serif: "Shippori Mincho B1", "Noto Serif CJK JP", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--wrap: 1240px;
	--gutter: 24px;
	--header-h: 68px;
}
.lang-zh-cn { --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; --font-display: var(--font-body); --font-serif: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", serif; }
.lang-zh-tw { --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; --font-display: var(--font-body); --font-serif: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", serif; }
.lang-ko { --font-body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; --font-display: var(--font-body); --font-serif: "Noto Serif KR", "Noto Serif CJK KR", "AppleMyungjo", serif; }
.lang-en { --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; --font-display: var(--font-body); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; word-break: normal; line-break: strict; }
.lang-ko body, body.lang-ko { word-break: keep-all; }
img, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--ink); }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid #2f6fde; outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.4; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; text-decoration: none; }
.skip-link:focus { top: 8px; color: #fff; }
.site-main:focus { outline: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.icon { flex: none; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 24px; font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background-color .15s, color .15s, border-color .15s; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 28px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-text); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2a2e; color: #fff; }
.btn--ghost-light { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); }
.text-link:hover { color: var(--red-text); }
.text-link .icon { transition: transform .15s; }
.text-link:hover .icon { transform: translateX(3px); }
.text-link--light { color: var(--paper); border-bottom: 1px solid var(--paper); min-height: 40px; }
.text-link--light:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; position: relative; }
.site-logo { display: flex; align-items: center; min-height: 44px; flex: none; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px 32px; flex: 1; }
.gnav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; font-weight: 500; }
.gnav a { text-decoration: none; padding: 12px 0; display: inline-block; }
.header-tools { display: flex; align-items: center; gap: 16px; }
/* Language: dropdown on PC, button row on phones */
.lang-menu { position: relative; }
.lang-menu__btn { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; user-select: none; }
.lang-menu__btn::-webkit-details-marker { display: none; }
.lang-menu__btn:hover { background: var(--paper); }
.lang-menu[open] .lang-menu__btn { border-color: var(--ink); }
.lang-menu[open] .icon-chevron { transform: rotate(180deg); }
.lang-menu__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(0,0,0,.10); padding: 6px 0; }
.lang-menu__list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 16px; text-decoration: none; font-size: 15px; }
.lang-menu__list a:hover { background: var(--paper); color: var(--ink); }
.lang-menu__list a[aria-current] { font-weight: 700; box-shadow: inset 3px 0 0 var(--red); }
.lang-menu__code { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.lang-switch { display: none; flex-wrap: wrap; border: 1px solid var(--line); font-size: 14px; }
.lang-switch a { flex: 1 1 auto; min-width: 56px; min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); white-space: nowrap; }
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a:hover { background: var(--paper); }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; font-weight: 700; }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: inline-flex; }

@media (max-width: 1180px) {
	.js .nav-toggle { display: inline-flex; }
	.js .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: 0 16px 32px rgba(0,0,0,.08); }
	.js .site-nav.is-open { display: flex; }
	.js .gnav { flex-direction: column; font-size: 16px; }
	.js .gnav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.js .header-tools { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 16px; }
	.lang-menu { display: none; }
	.lang-switch { display: flex; }
	.js .header-tools .btn { min-height: 52px; }
	.no-js .site-header__inner { flex-wrap: wrap; }
	.no-js .site-nav { flex-wrap: wrap; justify-content: flex-start; }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--compact { padding: 88px 0; }
.section--white { background: #fff; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--line { border-top: 1px solid var(--line); }
.section--article { padding: 72px 0 112px; }
.section--form { padding: 72px 0 120px; }
@media (max-width: 720px) {
	.section { padding: 72px 0; }
	.section--compact { padding: 56px 0; }
	.section--article, .section--form { padding: 48px 0 80px; }
}
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; color: var(--red-text); }
.section--dark .eyebrow, .page-hero .eyebrow { color: var(--red-on-dark); }
.h2 { margin-top: 20px; font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.35; }
.h2 .line { display: block; }
.lead { margin-top: 24px; max-width: 760px; font-size: 16px; line-height: 1.95; color: var(--muted); }
.section--dark .lead { color: var(--soft-dark); }
.head-row { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.head-row .h2 { flex: 1 1 480px; }
.head-row .lead { flex: 1 1 400px; margin-top: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero__tri, .hero__stripes { position: absolute; right: -160px; bottom: -120px; width: 760px; height: 700px; pointer-events: none; }
.hero__tri { background: var(--red); clip-path: polygon(50% 0, 100% 100%, 50% 100%); opacity: .92; }
.hero__stripes { background: repeating-linear-gradient(118deg, rgba(245,244,241,.10) 0 2px, transparent 2px 22px); clip-path: polygon(50% 0, 50% 100%, 0 100%); }
.hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; padding-top: 112px; padding-bottom: 128px; }
.hero__copy { flex: 1 1 520px; min-width: 0; }
.hero__eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; color: var(--muted-dark); }
.hero__title { margin-top: 28px; font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 6.2vw, 88px); line-height: 1.14; letter-spacing: .01em; }
.lang-zh-cn .hero__title, .lang-zh-tw .hero__title { font-size: clamp(40px, 5.8vw, 84px); line-height: 1.18; }
.lang-ko .hero__title { font-size: clamp(38px, 5.4vw, 78px); line-height: 1.2; }
.lang-en .hero__title { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.1; letter-spacing: -.01em; font-weight: 700; }
.hero__title .line { display: block; }
.hero__title:first-child { margin-top: 0; }
.line--accent { color: var(--red); }
.hero__lead { margin-top: 32px; max-width: 560px; font-size: 18px; line-height: 1.9; color: var(--soft-dark); }
.hero__ctas { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; }

.board { flex: 1 1 380px; max-width: 460px; min-width: 0; background: var(--panel); border: 1px solid var(--line-dark); padding: 28px; font-family: var(--font-mono); }
.board__head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .14em; color: var(--muted-dark); padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.board__route { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.board__end { display: flex; flex-direction: column; gap: 2px; min-width: 56px; }
.board__end--to { align-items: flex-end; }
.board__code { font-size: 22px; font-weight: 500; line-height: 1.2; }
.board__name { font-family: var(--font-body); font-size: 12px; color: var(--muted-dark); }
.board__line { flex: 1; border-top: 1px dashed #6b6870; }
.board__arrow { color: var(--red-on-dark); display: inline-flex; }
.board__fields-head { padding-top: 20px; font-size: 12px; letter-spacing: .14em; color: var(--muted-dark); }
.board__fields { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-body); font-size: 13px; }
.board__fields li { border: 1px solid #45434a; padding: 6px 12px; line-height: 1.4; }

@media (max-width: 720px) {
	.hero__inner { padding-top: 64px; padding-bottom: 80px; }
	.hero__tri, .hero__stripes { width: 440px; height: 400px; right: -150px; bottom: -110px; }
	.hero__lead { font-size: 16px; }
	.hero__ctas .btn { flex: 1 1 100%; }
	.board { padding: 20px; flex-basis: 100%; }
}

/* ---------- News ---------- */
.news__inner { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.news__head { flex: 0 1 280px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.news__title { margin-top: 16px; font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3vw, 36px); }
.news__lead { margin-top: 8px; color: var(--muted); font-size: 15px; }
.news__head .text-link { margin-top: 16px; }
.news__body { flex: 1 1 560px; min-width: 0; }
.news__empty { padding: 24px 0; border-top: 2px solid var(--ink); color: var(--muted); }
.news-list { border-top: 2px solid var(--ink); }
.news-row { border-bottom: 1px solid var(--line); }
.news-row__link { display: grid; grid-template-columns: 236px minmax(0, 1fr) 24px; gap: 8px 24px; align-items: center; padding: 22px 0; text-decoration: none; color: var(--ink); }
.news-row__link:hover { color: var(--red-text); }
.news-row__link:hover .news-row__arrow { transform: translateX(3px); color: var(--red-text); }
.news-row__meta { display: flex; align-items: center; gap: 12px; }
.news-row__date { font-family: var(--font-mono); font-size: 14px; color: var(--muted); white-space: nowrap; }
.news-row__tag { display: inline-block; font-size: 12px; line-height: 1.4; padding: 3px 10px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.news-row__tag--light { border-color: #45434a; color: var(--soft-dark); }
.news-row__title { font-weight: 500; line-height: 1.7; }
.news-row__arrow { display: inline-flex; color: var(--muted); transition: transform .15s; }
@media (max-width: 720px) {
	.news-row__link { grid-template-columns: minmax(0, 1fr) 20px; padding: 18px 0; }
	.news-row__meta { grid-column: 1 / -1; }
	.news-row__title { grid-column: 1; }
}

/* ---------- Cards (business / services) ---------- */
.cards { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 320px; min-width: 0; background: #fff; border: 1px solid var(--line); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.cards--4 .card { flex-basis: 260px; padding: 32px; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.card__no { font-family: var(--font-mono); font-size: 14px; color: var(--red-text); }
.card__title { margin-top: 6px; font-size: 22px; font-weight: 700; line-height: 1.45; }
.card--compact .card__title { font-size: 20px; margin-top: 0; }
.card__text { font-size: 15px; line-height: 1.9; color: var(--muted); }
.card__link { margin-top: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-mono); font-size: 12px; }
.tags li { border: 1px solid var(--line); padding: 4px 10px; line-height: 1.4; }
@media (max-width: 720px) { .card, .cards--4 .card { padding: 28px 24px; } .cards { margin-top: 40px; } }

/* ---------- Philosophy (三方よし) — Japanese motifs ---------- */
.philosophy { --washi: #f5efe3; --shu: #b7352f; --tokiwa: #2f5d3a; --bengara: #a5521f; --kin: #c9a227; --sumi: #1c1a17; }
.philosophy__title { font-family: var(--font-serif); font-weight: 800; letter-spacing: .02em; }
.philosophy__grid { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.sanpo { flex: 1 1 520px; min-width: 0; max-width: 640px; margin: 0 auto; position: relative; aspect-ratio: 640 / 600; background: var(--washi); border: 1px solid #e2d6bf; overflow: hidden; }
.sanpo::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(183, 53, 47, .28); pointer-events: none; z-index: 3; }
.sanpo__wave { position: absolute; left: 0; right: 0; bottom: 0; height: 20%; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='20'><g fill='%23F5EFE3' stroke='%23B7352F' stroke-opacity='.2' stroke-width='1'><circle cx='20' cy='0' r='19.5'/><circle cx='20' cy='0' r='14.5'/><circle cx='20' cy='0' r='9.5'/><circle cx='20' cy='0' r='4.5'/><circle cx='0' cy='10' r='19.5'/><circle cx='0' cy='10' r='14.5'/><circle cx='0' cy='10' r='9.5'/><circle cx='0' cy='10' r='4.5'/><circle cx='40' cy='10' r='19.5'/><circle cx='40' cy='10' r='14.5'/><circle cx='40' cy='10' r='9.5'/><circle cx='40' cy='10' r='4.5'/><circle cx='20' cy='20' r='19.5'/><circle cx='20' cy='20' r='14.5'/><circle cx='20' cy='20' r='9.5'/><circle cx='20' cy='20' r='4.5'/></g></svg>"); background-size: 40px 20px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%); mask-image: linear-gradient(to bottom, transparent, #000 70%); }
.sanpo__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sanpo__node { position: absolute; width: 25%; height: 26.667%; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; color: #fff; line-height: 1.25; z-index: 2; box-shadow: inset 0 0 0 5px var(--c), inset 0 0 0 7px rgba(255, 255, 255, .85), 0 2px 0 rgba(0, 0, 0, .08); background: var(--c); }
.sanpo__node span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sanpo__node b { font-family: var(--font-serif); font-weight: 800; font-size: clamp(12px, 1.65vw, 22px); letter-spacing: .02em; white-space: nowrap; }
.sanpo__node small { font-size: clamp(8.5px, .85vw, 11px); opacity: .92; max-width: 86%; }
.lang-en .sanpo__node b { font-size: clamp(10px, 1.3vw, 16px); letter-spacing: 0; white-space: normal; max-width: 84%; }
.lang-ko .sanpo__node b { font-size: clamp(11px, 1.6vw, 20px); }
.sanpo__node--top { --c: var(--shu); left: 37.5%; top: 2.5%; }
.sanpo__node--left { --c: var(--tokiwa); left: 5.469%; top: 65%; }
.sanpo__node--right { --c: var(--bengara); left: 69.531%; top: 65%; }
.sanpo__tategaki { position: absolute; left: 44%; width: 12%; top: 42.5%; height: 22.5%; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; text-orientation: upright; font-family: "Shippori Mincho B1", "Noto Serif CJK JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 800; font-size: clamp(12px, 2.2vw, 26px); letter-spacing: .14em; color: var(--washi); z-index: 2; }
.sanpo__caption { position: absolute; left: 30%; width: 40%; top: 85%; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; z-index: 2; }
.sanpo__caption-main { font-family: var(--font-serif); font-weight: 800; font-size: clamp(13px, 1.8vw, 20px); color: var(--sumi); }
.sanpo__caption-sub { font-family: var(--font-serif); font-size: clamp(11px, 1.2vw, 15px); letter-spacing: .3em; color: var(--shu); font-weight: 700; }
.parties { flex: 1 1 400px; min-width: 0; }
.parties__item { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.parties__item:first-child { border-top: 2px solid var(--ink); }
.parties__item:last-child { border-bottom: 1px solid var(--line); }
.parties__dot { flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; margin-top: 10px; box-shadow: inset 0 0 0 2px var(--c), inset 0 0 0 3.5px rgba(255,255,255,.85); background: var(--c); }
.parties__item--society .parties__dot { --c: var(--shu); }
.parties__item--buyer .parties__dot { --c: var(--tokiwa); }
.parties__item--seller .parties__dot { --c: var(--bengara); }
.parties__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.parties__head h3 { font-family: var(--font-serif); font-size: 23px; font-weight: 800; }
.parties__head span { font-size: 13px; color: var(--muted); }
.parties p { margin-top: 10px; font-size: 15px; line-height: 1.9; color: var(--muted); }
.stances { margin-top: 96px; }
.stances__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.stances__head h3 { font-family: var(--font-serif); font-size: 23px; font-weight: 800; }
.stances__head span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.stances__list { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 32px 48px; }
.stance { flex: 1 1 300px; min-width: 0; display: flex; gap: 24px; align-items: flex-start; }
/* 落款 (seal) style */
.stance__kanji { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 8px; background: var(--shu); color: var(--washi); display: flex; align-items: center; justify-content: center; font-family: "Shippori Mincho B1", "Noto Serif CJK JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 800; font-size: 46px; line-height: 1; box-shadow: inset 0 0 0 4px var(--shu), inset 0 0 0 6px rgba(245, 239, 227, .9); transform: rotate(-2deg); }
.stance:nth-child(2) .stance__kanji { transform: rotate(1.5deg); }
.stance__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--red-text); }
.stance__text { margin-top: 8px; font-family: var(--font-serif); font-size: 18px; font-weight: 800; line-height: 1.6; }
@media (max-width: 720px) {
	.philosophy__grid { margin-top: 40px; }
	.stances { margin-top: 64px; }
	.stance__kanji { flex-basis: 64px; width: 64px; height: 64px; font-size: 34px; }
	.stance__text { font-size: 16px; }
	.sanpo::before { inset: 6px; }
	.sanpo__node { box-shadow: inset 0 0 0 3px var(--c), inset 0 0 0 4.5px rgba(255, 255, 255, .85); }
}

/* ---------- Migration ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.split__main { flex: 1 1 420px; min-width: 0; }
.split__side { flex: 1 1 480px; min-width: 0; }
.pairs { margin: 40px 0 0; font-family: var(--font-mono); font-size: 15px; }
.pairs__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.pairs__row:last-child { border-bottom: 1px solid var(--line); }
.pairs dt { flex: 0 0 140px; }
.pairs dd { margin: 0; }
.pairs dd span { color: var(--red-text); margin-right: 8px; }
.steps__item { display: flex; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); }
.steps__item:first-child { border-top: 2px solid var(--ink); }
.steps__item:last-child { border-bottom: 1px solid var(--line); }
.steps__no { font-family: var(--font-mono); font-size: 14px; color: var(--red-text); flex: 0 0 32px; padding-top: 3px; }
.steps h3 { font-size: 20px; font-weight: 700; }
.steps p { margin-top: 10px; font-size: 15px; line-height: 1.85; color: var(--muted); }
.note { margin: 28px 0 24px; font-size: 14px; line-height: 1.8; color: var(--muted); }

/* ---------- Entry / fields (dark) ---------- */
.tiles { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.tile { flex: 1 1 260px; min-width: 0; background: var(--ink); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.tile__no { font-family: var(--font-mono); font-size: 13px; color: var(--red-on-dark); }
.tile h3 { font-size: 20px; font-weight: 700; }
.tile p { font-size: 14px; line-height: 1.85; color: var(--muted-dark); }
.fields-label { margin-top: 72px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--muted-dark); }
.fields { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 24px; }
.fields--detail { margin-top: 56px; }
.field { flex: 1 1 220px; min-width: 0; border-top: 2px solid var(--red); padding-top: 18px; display: flex; flex-direction: column; }
.field__name { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.4; }
.field__en { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--muted-dark); }
.field__text { margin-top: 16px; font-size: 14px; line-height: 1.85; color: var(--muted-dark); }
.compliance { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; border: 1px solid var(--line-dark); padding: 28px; }
.compliance__body { display: flex; gap: 16px; align-items: flex-start; flex: 1 1 520px; min-width: 0; }
.compliance__body .icon { color: var(--red-on-dark); }
.compliance h3 { font-size: 16px; font-weight: 700; }
.compliance p { margin-top: 8px; font-size: 14px; line-height: 1.85; color: var(--muted-dark); }
@media (max-width: 720px) { .tile { padding: 24px; } .compliance { padding: 20px; } .field__name { font-size: 22px; } }

/* ---------- Why ---------- */
.reasons { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px 48px; }
.reason { flex: 1 1 320px; min-width: 0; border-top: 2px solid var(--ink); padding-top: 28px; }
.reason__no { font-family: var(--font-mono); font-size: 14px; color: var(--red-text); }
.reason h3 { margin-top: 14px; font-size: 22px; font-weight: 700; }
.reason p { margin-top: 12px; font-size: 15px; line-height: 1.9; color: var(--muted); }

/* ---------- Company ---------- */
.company { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 48px 64px; }
.profile { flex: 1 1 380px; max-width: 960px; min-width: 0; margin: 0; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.profile__row { display: flex; border-top: 1px solid #ebe8e2; }
.profile__row:first-child { border-top: 0; }
.profile dt { flex: 0 0 240px; padding: 22px 28px; background: #f8f7f4; font-weight: 700; color: var(--ink); }
.profile dd { flex: 1 1 auto; margin: 0; padding: 22px 28px; line-height: 1.8; min-width: 0; color: #2b2a27; }
@media (max-width: 720px) { .profile dt { flex-basis: 128px; padding: 16px; } .profile dd { padding: 16px; } }
@media (max-width: 480px) { .profile__row { flex-direction: column; } .profile dt { flex-basis: auto; padding: 12px 16px 4px; font-size: 13px; } .profile dd { padding: 4px 16px 14px; background: #fff; } .profile__row { background: #f8f7f4; } .profile dd { border-top: 0; } }

/* ---------- Contact CTA ---------- */
.cta-cards { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; }
.cta-card { flex: 1 1 260px; min-width: 0; min-height: 168px; background: #fff; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cta-card:hover { border-color: var(--ink); color: var(--ink); }
.cta-card__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.cta-card__label { font-size: 18px; font-weight: 700; line-height: 1.5; }
.cta-card__arrow { margin-top: auto; display: flex; justify-content: flex-end; color: var(--red-text); }
.cta-card--accent { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cta-card--accent:hover { color: #fff; border-color: var(--red); }
.cta-card--accent .cta-card__kicker { color: var(--muted-dark); }
.cta-card--accent .cta-card__arrow { color: var(--red-on-dark); }
.section--dark .cta-cards { gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.section--dark .cta-card { background: var(--ink); border: 0; color: var(--paper); }
.section--dark .cta-card:hover { background: #18181b; color: #fff; }
.section--dark .cta-card__kicker { color: var(--red-on-dark); font-size: 13px; }
.section--dark .cta-card__arrow { color: var(--red-on-dark); }
.section--dark .cta-card--accent { background: var(--red); color: #fff; }
.section--dark .cta-card--accent:hover { background: var(--red-text); }
.section--dark .cta-card--accent .cta-card__kicker, .section--dark .cta-card--accent .cta-card__arrow { color: #fff; }
.contact-line { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; }
.contact-line a { font-weight: 700; }
.section--dark .contact-line a { color: var(--paper); }
@media (max-width: 720px) { .cta-card { min-height: 0; padding: 22px; } .cta-card__label { font-size: 16px; } }

/* ---------- Page hero ---------- */
.page-hero { background: var(--ink); color: var(--paper); padding: 88px 0 80px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; bottom: -60px; width: 360px; height: 320px; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 50% 100%); opacity: .9; pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero--small { padding: 64px 0 56px; }
.page-hero--small::after { width: 260px; height: 230px; }
.page-hero__title { margin-top: 12px; font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.3; }
.page-hero__title--article { font-size: clamp(24px, 3.2vw, 40px); margin-top: 16px; max-width: 820px; }
.page-hero__lead { margin-top: 20px; max-width: 720px; color: var(--soft-dark); font-size: 16px; line-height: 1.9; }
.page-hero p + p { margin-top: 28px; }
.article__meta { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 14px; color: var(--muted-dark); }
@media (max-width: 720px) { .page-hero { padding: 56px 0; } .page-hero::after { width: 200px; height: 180px; right: -70px; bottom: -50px; } }

/* ---------- Article / page content ---------- */
.entry-content { font-size: 16px; line-height: 2; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { font-size: 22px; font-weight: 700; padding-top: 16px; border-top: 2px solid var(--ink); margin-top: 2.4em; }
.entry-content h3 { font-size: 18px; font-weight: 700; margin-top: 2em; }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content a { color: var(--red-text); }
.entry-content img { display: block; }
.entry-content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--line); color: var(--muted); }
.article__thumb { margin: 0 0 40px; }
.article__nav { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.news-list--archive { margin-top: 0; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); text-decoration: none; font-family: var(--font-mono); }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Telework declaration ---------- */
.declaration { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.declaration__figure { flex: 0 1 440px; min-width: 0; margin: 0; }
.declaration__figure a { display: block; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .08); padding: 10px; }
.declaration__figure a:hover { border-color: var(--ink); }
.declaration__figure img { display: block; width: 100%; height: auto; }
.declaration__figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.declaration__body { flex: 1 1 420px; min-width: 0; }
.declaration__title { margin-top: 16px; font-family: var(--font-serif); font-weight: 800; font-size: clamp(26px, 3vw, 38px); line-height: 1.4; }
.declaration__lead { margin-top: 20px; font-size: 17px; line-height: 1.9; font-weight: 700; }
.declaration__badges { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.declaration__badges li { font-size: 13px; font-weight: 700; padding: 6px 12px; background: var(--ink); color: #fff; }
.declaration__head { margin-top: 36px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 17px; font-weight: 700; }
.declaration__rules li { position: relative; padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.8; }
.declaration__rules li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 8px; height: 8px; background: var(--red); }
.declaration__meta { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 14px; }
.declaration__meta div { display: flex; gap: 10px; }
.declaration__meta dt { color: var(--muted); }
.declaration__meta dd { margin: 0; font-weight: 700; }
@media (max-width: 720px) { .declaration__figure { flex-basis: 100%; max-width: 420px; margin: 0 auto; } }

/* ---------- Contact form ---------- */
.contact-layout { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.contact-layout__main { flex: 999 1 600px; min-width: 0; }
.contact-layout__side { flex: 1 1 300px; min-width: 0; }
.contact-intro { margin-bottom: 32px; }
.contact-form { background: #fff; border: 1px solid var(--line); padding: 48px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 720px) { .contact-form { padding: 28px 20px; } }
.form-group { min-width: 0; border: 0; margin: 0; padding: 0; }
.form-row { display: flex; flex-wrap: wrap; gap: 28px 24px; }
.form-row > .form-group { flex: 1 1 260px; }
.form-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.badge { font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 6px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.badge--req { background: var(--red-text); border-color: var(--red-text); color: #fff; }
.form-hint { font-size: 13px; color: var(--muted); margin: -4px 0 10px; line-height: 1.7; }
.input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #8f8c86; border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6; }
.input:focus { outline: 3px solid #2f6fde; outline-offset: 0; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--red-text); border-width: 2px; background: #fff7f7; }
.input--half { max-width: 360px; }
.textarea { min-height: 200px; resize: vertical; }
.field-error { margin-top: 8px; color: var(--red-text); font-size: 14px; font-weight: 700; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.type-option { display: block; cursor: pointer; }
.type-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-option__box { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid #8f8c86; background: #fff; font-size: 14px; line-height: 1.5; font-weight: 500; }
.type-option__mark { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #8f8c86; background: #fff; }
.type-option input:checked + .type-option__box { border: 2px solid var(--ink); background: var(--paper); padding: 11px 15px; }
.type-option input:checked + .type-option__box .type-option__mark { border-color: var(--red); background: radial-gradient(circle, var(--red) 0 4px, #fff 5px); }
.type-option input:focus-visible + .type-option__box { outline: 3px solid #2f6fde; outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.7; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.check span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.check a { color: var(--red-text); }
.btn--submit { align-self: flex-start; min-width: 240px; }
@media (max-width: 720px) { .btn--submit { align-self: stretch; } }
.btn--submit[disabled] { opacity: .7; cursor: progress; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border: 2px solid var(--red-text); background: #fff7f7; padding: 20px 24px; margin-bottom: 24px; }
.form-alert ul { margin-top: 8px; list-style: disc; padding-left: 1.2em; }
.form-alert a { color: var(--red-text); }
.sent { background: #fff; border: 1px solid var(--line); padding: 56px 48px; }
.sent__icon { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; background: var(--ink); color: #fff; border-radius: 50%; }
.sent h2 { margin-top: 24px; font-family: var(--font-display); font-weight: 900; font-size: 28px; }
.sent p { margin-top: 16px; line-height: 1.9; }
.sent__note { color: var(--muted); font-size: 14px; }
.sent .btn { margin-top: 32px; }
@media (max-width: 720px) { .sent { padding: 36px 24px; } }
.side-box { border-top: 2px solid var(--ink); padding-top: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.side-box h2 { font-size: 16px; font-weight: 700; }
.side-box__tel { margin-top: 12px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 24px; font-weight: 500; text-decoration: none; min-height: 44px; }
.side-box__hours { font-size: 14px; color: var(--muted); }
.side-box__note { margin-top: 20px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.side-box__types { margin-top: 12px; font-size: 13px; }
.side-box__types li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 80px 0 40px; border-top: 1px solid var(--line-dark); }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 56px 64px; }
.site-footer__info { flex: 1 1 520px; min-width: 0; }
.site-footer__tagline { margin-top: 20px; font-size: 15px; color: var(--soft-dark); }
.site-footer__address { margin-top: 20px; font-style: normal; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted-dark); }
.site-footer__line { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--muted-dark); text-decoration: none; min-height: 32px; line-height: 1.7; }
.site-footer__line .icon { margin-top: 3px; color: var(--red-on-dark); }
a.site-footer__line:hover { color: #fff; }
.site-footer__nav { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 32px 56px; font-size: 14px; }
.site-footer__col { display: flex; flex-direction: column; min-width: 140px; }
.site-footer__head { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted-dark); margin-bottom: 8px; }
.site-footer__col a { color: var(--paper); text-decoration: none; padding: 7px 0; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.site-footer__map { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; }
.map-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--panel); border: 1px solid var(--line-dark); overflow: hidden; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.site-footer__maplink { margin-top: 12px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: var(--paper); font-size: 14px; font-weight: 700; min-height: 44px; }
.site-footer__maplink:hover { color: #fff; }
.site-footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 12px; color: var(--muted-dark); }
@media (max-width: 720px) { .site-footer { padding: 56px 0 32px; } .map-frame { aspect-ratio: 1 / 1; } }

/* ---------- Print ---------- */
@media print {
	.site-header, .nav-toggle, .hero__tri, .hero__stripes, .site-footer__map, .page-hero::after { display: none !important; }
	.hero, .section--dark, .page-hero, .site-footer { background: #fff !important; color: #000 !important; }
}
