/* Seiwa Tech — site styles */
:root {
  --navy: #0F1E33;
  --navy-deep: #0B1626;
  --graphite: #1C2027;
  --red: #D3283A;
  --red-on-dark: #E3343F;
  --ink: #0F1E33;
  --text: #3A4250;
  --muted: #4A5260;
  --subtle: #6B7482;
  --grey: #8B95A3;
  --on-dark: #B8C0CC;
  --line: #E3E5E8;
  --line-2: #D5D9DF;
  --field: #C9CED6;
  --paper: #F6F6F3;
  --white: #FFFFFF;
  --gutter: 64px;
  --max: 1440px;
  --font-display: "Sora", "IBM Plex Sans JP", system-ui, sans-serif;
  --font-body: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
html[lang="ja"] body { line-break: strict; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand svg { width: 40px; height: 40px; }
.wordmark { font-family: "Sora", sans-serif; font-size: 18px; letter-spacing: 0.14em; color: var(--ink); white-space: nowrap; }
.wordmark b { font-weight: 600; }
.wordmark span { font-weight: 300; }
.nav { flex-grow: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 26px; font-size: 14px; }
.nav a { display: inline-block; padding: 8px 0; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--red); }
.lang { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.lang a, .lang span[aria-current] { padding: 10px 4px; color: var(--grey); }
.lang span[aria-current] { color: var(--ink); }
.lang .sep { color: #C5CBD3; font-weight: 400; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 2px; border: 1px solid transparent;
  font: 500 15px/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-lg { min-height: 52px; padding: 0 28px; }
.btn-navy { background: var(--navy); color: #fff; font-size: 14px; }
.btn-navy:hover { background: var(--graphite); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #B71F30; color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- sections ---------- */
.section { padding-block: 112px; }
.section.white { background: var(--white); }
.section.paper { background: var(--paper); }
.section.dark { background: var(--navy); color: #fff; }
.section.border-top { border-top: 1px solid var(--line); }
.kicker { font-size: 12px; letter-spacing: 0.24em; color: var(--grey); font-weight: 500; text-transform: uppercase; }
html[lang="ja"] .kicker { letter-spacing: 0.16em; }
.kicker.red { color: var(--red); display: flex; align-items: center; gap: 12px; }
.kicker.red::before { content: ""; width: 32px; height: 2px; background: var(--red); }
.h2 { font-size: 40px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.dark .h2, .dark h2 { color: #fff; }
.lead { font-size: 17px; line-height: 1.75; color: var(--muted); }
.dark .lead { color: var(--on-dark); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* page hero (inner pages) */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); padding-block: 104px 88px; }
.page-hero .kicker { color: var(--red); margin-bottom: 24px; }
.page-hero h1 { font-size: 56px; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; max-width: 900px; }
html[lang="ja"] .page-hero h1 { font-size: 48px; line-height: 1.3; letter-spacing: 0; }
.page-hero p { margin-top: 28px; font-size: 19px; line-height: 1.75; color: var(--text); max-width: 760px; }

/* home hero */
.hero { background: var(--white); padding-block: 96px; }
.hero .grid-12 { align-items: center; }
.hero-copy { grid-column: span 6; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: 64px; line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
html[lang="ja"] .hero h1 { font-size: 52px; line-height: 1.3; letter-spacing: 0; }
.hero-copy > p { font-size: 19px; line-height: 1.7; color: var(--text); max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-map { grid-column: 8 / span 5; aspect-ratio: 560 / 520; background: var(--navy); border-radius: 4px; overflow: hidden; }

/* flow animation on maps */
.flow { stroke-dasharray: 4 6; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -40; } }
@media (prefers-reduced-motion: reduce) { .flow { animation: none; } html { scroll-behavior: auto; } }

/* pillars */
.pillars { border-block: 1px solid var(--line); padding-block: 64px; }
.pillars ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pillars li { display: flex; flex-direction: column; gap: 12px; padding-right: 16px; }
.num { font-family: "Sora", sans-serif; font-size: 13px; font-weight: 600; color: var(--red); }
.dark .num { color: var(--red-on-dark); }
.pillars strong { font-size: 18px; font-weight: 600; }
.pillars span { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* section head */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.section-head .stack { gap: 16px; }
.section-head .lead { max-width: 520px; }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.tile { background: var(--white); padding: 32px 28px; min-height: 200px; display: flex; flex-direction: column; gap: 14px; }
.tile .num { color: var(--grey); font-weight: 400; }
.tile h3 { font-family: var(--font-body); font-size: 20px; font-weight: 600; }
.tile p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.tile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text); }
.tile li::before { content: "—"; color: var(--red); margin-right: 10px; }
.tiles.tall .tile { min-height: 280px; }
.more-link { margin-top: 32px; display: inline-flex; font-weight: 500; color: var(--navy); border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* brands strip */
.brands { padding-block: 64px; text-align: center; border-top: 1px solid var(--line); background: var(--paper); }
.brands .intro { font-size: 14px; color: var(--muted); }
.brands .names { margin: 16px 0; font-family: "Sora", sans-serif; font-size: 26px; letter-spacing: 0.06em; color: var(--ink); }
.brands .note { font-size: 12px; line-height: 1.7; color: var(--subtle); max-width: 760px; margin-inline: auto; }

/* dot lists & steps */
.dot-list { list-style: none; margin: 8px 0 0; padding: 0; }
.dot-list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.12); font-size: 16px; }
.dot-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red-on-dark); flex-shrink: 0; }
.steps-list { list-style: none; margin: 8px 0 0; padding: 0; }
.steps-list li { display: grid; grid-template-columns: 56px 220px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.12); align-items: baseline; }
.steps-list strong { font-size: 17px; font-weight: 600; color: #fff; }
.steps-list span { font-size: 15px; line-height: 1.6; color: var(--on-dark); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.rows li { display: grid; grid-template-columns: 24px 260px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
.rows li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.rows strong { font-size: 17px; font-weight: 600; }
.rows span { font-size: 15px; line-height: 1.7; color: var(--muted); }

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.process li { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 2px solid var(--navy); }
.process strong { font-size: 18px; font-weight: 600; }
.process span { font-size: 15px; line-height: 1.7; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
.chips li { padding: 8px 14px; border: 1px solid rgba(255,255,255,0.25); border-radius: 2px; font-size: 13px; color: #fff; }

/* cards (business lines) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards li { background: var(--white); border: 1px solid var(--line); padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; }
.cards strong { font-size: 22px; font-weight: 600; }
.cards span { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* values grid */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.values li { background: var(--white); padding: 36px 32px; min-height: 200px; display: flex; flex-direction: column; gap: 14px; }
.values li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.values strong { font-size: 19px; font-weight: 600; }
.values span { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* definition table */
.dl { margin: 0; border-top: 1px solid var(--navy); }
.dl div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.dl dt { font-size: 14px; font-weight: 600; }
.dl dd { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.dl.compact div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
.dl.compact dt { font-size: 12px; letter-spacing: 0.12em; color: var(--grey); font-weight: 500; }
.dl.compact dd { font-size: 16px; color: var(--ink); }

/* CTA band */
.cta { background: var(--navy); padding-block: 96px; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta h2 { font-size: 34px; line-height: 1.3; font-weight: 600; color: #fff; max-width: 760px; }
.cta p { margin-top: 12px; font-size: 17px; color: var(--on-dark); }

/* map block */
.map-block { width: 100%; height: auto; }

/* form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; align-content: start; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text); }
.field input, .field textarea {
  font: 400 16px/1.5 var(--font-body); color: var(--ink); background: var(--white);
  border: 1px solid var(--field); border-radius: 2px; padding: 12px 14px; width: 100%;
}
.field input { height: 48px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.req { color: var(--red); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 400; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.form-foot small { font-size: 12px; color: var(--subtle); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; color: var(--red); }
.form-status:empty { display: none; }
.form-card { background: var(--white); border: 1px solid var(--line); padding: 48px; }

/* footer */
.site-footer { background: var(--navy-deep); color: var(--on-dark); padding-block: 72px 40px; font-size: 14px; }
.site-footer .grid-12 { row-gap: 40px; }
.site-footer .brand .wordmark { color: #fff; }
.foot-about { grid-column: span 4; display: flex; flex-direction: column; gap: 20px; line-height: 1.7; }
.foot-contact { grid-column: 6 / span 3; display: flex; flex-direction: column; gap: 8px; }
.foot-contact h2 { font-family: var(--font-body); font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 6px; }
.foot-contact a { color: var(--on-dark); }
.foot-contact a:hover, .foot-nav a:hover { color: #fff; }
.foot-license { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--grey); }
.foot-nav { grid-column: 10 / span 3; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-nav a { color: var(--on-dark); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--grey); }
.foot-bottom a { color: var(--grey); }

/* simple message pages */
.message { min-height: 50vh; display: flex; align-items: center; background: var(--white); padding-block: 120px; }
.message h1 { font-size: 44px; line-height: 1.25; font-weight: 600; }
.message p { margin: 20px 0 32px; font-size: 18px; color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav ul { gap: 18px; font-size: 13px; }
  .site-header .wrap { gap: 20px; }
}
@media (max-width: 1100px) {
  :root { --gutter: 40px; --header-h: 72px; }
  .menu-btn { display: inline-flex; order: 4; }
  .header-cta { display: none; }
  .lang { margin-left: auto; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); padding: 24px var(--gutter) 40px; overflow-y: auto; }
  .js .nav { display: none; }
  .js .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; font-size: 18px; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 16px 0; }
  .nav .nav-cta { display: flex; margin-top: 24px; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-map { grid-column: 1 / -1; aspect-ratio: 560 / 400; }
  .pillars ol, .tiles, .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
  .foot-contact { grid-column: span 7; }
  .foot-nav { grid-column: span 5; }
}
@media (min-width: 1101px) { .nav .nav-cta { display: none; } }
@media (max-width: 860px) {
  .split > * { grid-column: 1 / -1 !important; }
  .split { row-gap: 56px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .steps-list li, .rows li { grid-template-columns: 36px minmax(0, 1fr); }
  .steps-list li span:not(.num), .rows li span { grid-column: 2; }
  .rows li::before { margin-top: 8px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 15px; }
  .brand svg { width: 32px; height: 32px; }
  .wordmark { font-size: 15px; letter-spacing: 0.12em; }
  .section { padding-block: 64px; }
  .hero { padding-block: 48px 40px; }
  .hero h1 { font-size: 38px; }
  html[lang="ja"] .hero h1 { font-size: 32px; }
  .hero-copy > p, .page-hero p { font-size: 16px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .page-hero { padding-block: 56px 48px; }
  .page-hero h1 { font-size: 34px; }
  html[lang="ja"] .page-hero h1 { font-size: 28px; }
  .h2 { font-size: 30px; }
  .cta { padding-block: 64px; }
  .cta h2 { font-size: 26px; }
  .cta .btn { width: 100%; }
  .pillars { padding-block: 40px; }
  .pillars ol, .tiles, .process, .values, .cards { grid-template-columns: 1fr; }
  .tile, .tiles.tall .tile, .values li { min-height: 0; padding: 24px 20px; }
  .cards li { padding: 28px 24px; }
  .brands .names { font-size: 18px; line-height: 1.6; }
  .dl div { grid-template-columns: 1fr; gap: 4px; }
  .form { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .form-foot .btn { width: 100%; }
  .foot-contact, .foot-nav { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; }
  .lang a, .lang span[aria-current] { padding: 10px 6px; }
}

/* language hint bar (shown by site.js when the browser language differs) */
.lang-hint { background: var(--navy); color: #fff; font-size: 14px; }
.lang-hint .wrap { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; }
.lang-hint a { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.lang-hint a:hover { color: #fff; text-decoration-thickness: 2px; }
.lang-hint button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--on-dark); cursor: pointer; margin-right: -12px; }
.lang-hint button:hover { color: #fff; }
