/* Simez K.K. corporate site
   Palette carried over from the original simez.jp build:
   navy #16294d / #1F3864, coral accent #e8604c.
   No webfonts — CJK families cost megabytes, so we use the system stack. */

:root {
  --navy: #16294d;
  --navy2: #1f3864;
  --navy3: #2e5395;
  --accent: #e8604c;
  --accent-dark: #c8452f;
  --ink: #1c2333;
  --mut: #5b6577;
  --bg: #f7f9fc;
  --line: #e4e9f2;
  --wrap: 1080px;
  --radius: 10px;

  /* Latin first, then Japanese and Simplified Chinese fallbacks. */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Noto Sans JP", Meiryo, "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
    "Source Han Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* CJK needs a little more air between lines. */
html[lang="ja"] body,
html[lang="zh-Hans"] body {
  line-height: 1.9;
}

a {
  color: var(--navy2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
}

.skip:focus {
  left: 0;
}

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

/* ---------- header ---------- */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.logo:hover {
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
}

.langs {
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.lang-link {
  color: var(--mut);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.lang-link:hover {
  color: var(--navy);
  background: var(--bg);
  text-decoration: none;
}

.lang-link.is-current {
  background: var(--navy);
  color: #fff;
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy2) 55%,
    var(--navy3) 100%
  );
  color: #fff;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% -10%;
  height: 75%;
  background: radial-gradient(
    ellipse at center,
    rgba(232, 96, 76, 0.28),
    transparent 65%
  );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  line-height: 1.3;
  max-width: 20em;
  font-weight: 800;
  margin: 0;
}

.hero .lede {
  max-width: 44em;
  margin: 22px 0 34px;
  font-size: 1.08rem;
  color: #dbe4f5;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 700;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  text-decoration: none;
}

/* ---------- sections ---------- */

.section {
  padding: 76px 0;
}

.section.alt {
  background: var(--bg);
}

h2 {
  font-size: 1.7rem;
  color: var(--navy);
  margin: 0 0 14px;
  line-height: 1.35;
}

.lead {
  max-width: 52em;
  color: var(--mut);
  margin: 0 0 40px;
}

.section h2 + .grid {
  margin-top: 28px;
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.g2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.g3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.g4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 3px rgba(22, 41, 77, 0.05);
}

.card h3 {
  color: var(--navy2);
  font-size: 1.06rem;
  margin: 0 0 10px;
  line-height: 1.45;
}

.card p {
  font-size: 0.94rem;
  color: var(--mut);
  margin: 0;
}

/* ---------- nodes (two axes, three nodes each) ---------- */

.nodes .axis {
  border-top: 4px solid var(--accent);
}

.nodes .axis:last-child {
  border-top-color: var(--navy3);
}

.node-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.node-list li {
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--line);
}

.node-name {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.98rem;
}

.node-role {
  display: block;
  font-size: 0.9rem;
  color: var(--mut);
  line-height: 1.6;
}

.note {
  margin: 22px 0 0;
  font-size: 0.88rem;
  color: var(--mut);
  max-width: 62em;
  padding-inline-start: 14px;
  border-inline-start: 3px solid var(--line);
}

/* ---------- service lines ---------- */

.card.service {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--navy3);
}

.tag {
  align-self: flex-start;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.card.service .meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--navy2);
}

.agents {
  margin-top: 26px;
  background: var(--navy);
  color: #dbe4f5;
  border-radius: var(--radius);
  padding: 30px 32px;
}

.agents h3 {
  color: #fff;
  font-size: 1.06rem;
  margin: 0 0 10px;
}

.agents p {
  margin: 0;
  font-size: 0.94rem;
  max-width: 62em;
}

/* ---------- about table ---------- */

table.about {
  border-collapse: collapse;
  width: 100%;
  max-width: 640px;
  margin-top: 26px;
}

table.about th,
table.about td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 0.94rem;
  text-align: start;
}

table.about th {
  background: var(--bg);
  font-weight: 700;
  white-space: nowrap;
  color: var(--navy);
}

/* ---------- contact ---------- */

.contact-box {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 44px;
  text-align: center;
}

.contact-box h2 {
  color: #fff;
}

.contact-box p {
  color: #c9d6ef;
  max-width: 40em;
  margin: 0 auto 26px;
}

.contact-box .mail {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid var(--accent);
}

.contact-box .mail:hover {
  text-decoration: none;
  border-bottom-color: #fff;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 34px 0;
  font-size: 0.85rem;
  color: var(--mut);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 760px) {
  .nav {
    order: 3;
    width: 100%;
    gap: 18px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 64px 0 60px;
  }

  .section {
    padding: 52px 0;
  }

  .contact-box {
    padding: 32px 22px;
  }
}
