:root {
  --seapath-blue: #1100fb;
  --seapath-cyan: #00ddff;
  --navy-950: #00101f;
  --navy-900: #00192f;
  --navy-850: #00213d;
  --navy-800: #002b4f;
  --ink: #071b45;
  --muted: #5f6f8c;
  --line: #bfe9f4;
  --soft: #eef8fd;
  --white: #ffffff;
  --max: 1180px;
  --shadow: 0 18px 45px rgba(1, 30, 62, .18);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: calc(100% - 48px); max-width: var(--max); margin: 0 auto; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #0b6aa2;
}
.section-title {
  margin: 0;
  font-size: 48px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink);
}
.section-title .accent { color: #1a5ae6; }
.section-lead {
  margin: 14px 0 0;
  max-width: 840px;
  font-size: 18px;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.45;
  color: #15345f;
}

/* Header */
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: rgba(0, 18, 36, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand img { width: 360px; max-width: 42vw; height: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; color: #fff; font-size: 16px; }
.main-nav a { position: relative; padding: 28px 0 24px; opacity: .94; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--seapath-cyan); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--seapath-cyan);
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-left: 22px;
  margin-left: 6px;
  border-left: 1px solid rgba(0,221,255,.7);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}
.lang-switch a { opacity: .88; }
.lang-switch a[aria-current="page"] { color: var(--seapath-cyan); font-weight: 800; opacity: 1; }
.header-cta {
  margin-left: 6px;
  padding: 12px 23px;
  border-radius: 8px;
  background: var(--seapath-cyan);
  color: #001a34;
  font-weight: 800;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  padding: 8px 10px;
  line-height: 1;
}
.menu-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: var(--navy-950);
}
.hero::before {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, rgba(0,16,31,.98) 0%, rgba(0,21,43,.94) 31%, rgba(0,24,48,.6) 52%, rgba(0,24,48,.18) 78%, rgba(0,24,48,.08) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 34%;
  width: 66%; height: 100%; object-fit: cover; object-position: center;
  z-index: 0;
}
.hero .site-header { background: rgba(0,18,36,.68); }
.hero-content {
  position: relative; z-index: 2;
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: 48px 0 64px;
}
.hero-copy { max-width: 600px; }
.hero-title {
  margin: 0;
  font-size: 64px;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 800;
  color: #fff;
}
.hero-title .light { font-weight: 350; }
.hero-title .accent { color: var(--seapath-cyan); }
.hero-text {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: 19px;
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.4;
  color: #f6fbff;
}
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--seapath-cyan); color: #001a34; }
.btn-outline { border: 1.5px solid rgba(255,255,255,.8); color: #fff; background: rgba(0,22,45,.38); }
.btn-outline-cyan { border: 1.5px solid var(--seapath-cyan); color: var(--seapath-cyan); background: transparent; }
.arrow { font-size: 22px; line-height: 1; }
.hero-tagline {
  margin-top: 34px;
  display: inline-flex; align-items: center; gap: 18px;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: #b8d9f4;
}
.hero-tagline::before { content: ""; width: 42px; height: 2px; background: var(--seapath-cyan); }

/* Feature strip */
.feature-strip { background: linear-gradient(180deg, #fff, #f5fbff); border-bottom: 1px solid #d5edf7; }
.feature-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature-item { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center; padding: 26px 24px; position: relative; }
.feature-item:not(:last-child)::after { content: ""; position: absolute; right: 0; height: 58px; width: 1px; background: #c7dcec; }
.icon-line { width: 48px; height: 48px; color: #09346b; }
.feature-item h3 { margin: 0 0 5px; font-size: 16px; line-height: 1.12; }
.feature-item p { margin: 0; font-size: 14px; line-height: 1.35; color: #526887; }

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: linear-gradient(180deg, #f6fbff 0%, #ffffff 100%); }
.section-dark { background: linear-gradient(180deg, #00315a 0%, #001b34 100%); color: #fff; }
.section-dark .eyebrow { color: #9adff0; }
.section-dark .section-title, .section-dark .section-lead { color: #fff; }
.section-dark .section-lead { opacity: .9; }

/* Core technology home */
.core-layout { display: grid; grid-template-columns: 1fr 1.45fr 1fr; gap: 24px; align-items: stretch; margin-top: 30px; }
.core-column { display: grid; gap: 16px; }
.core-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #c6e7f4;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
}
.core-card:nth-child(2) { background: linear-gradient(135deg, #fffaf1, #ffffff); border-color: #f3d8b7; }
.core-card:nth-child(3) { background: linear-gradient(135deg, #f6fbff, #ffffff); }
.core-card h3 { margin: 0 0 5px; font-size: 17px; }
.core-card p { margin: 0; font-size: 14px; line-height: 1.35; color: #4f6484; }
.core-icon {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #eef9ff; border: 1px solid #ccebf7;
  color: #1157cf;
}
.core-icon svg { width: 34px; height: 34px; }
.world-state-visual {
  margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #002b4f; border: 1px solid rgba(0,221,255,.55);
  align-self: center;
}
.world-state-visual img { width: 100%; aspect-ratio: 1.7 / 1; object-fit: cover; }
.world-state-visual figcaption { padding: 13px 16px 15px; text-align: center; background: #fff; }
.world-state-visual strong { display: block; letter-spacing: .18em; font-size: 12px; }
.world-state-visual span { display: block; margin-top: 5px; font-size: 10px; letter-spacing: .16em; color: #496684; text-transform: uppercase; }

/* App cards */
.app-header-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.app-header-row .section-lead { max-width: 330px; font-size: 15px; }
.app-grid-home { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.app-card {
  position: relative; min-height: 170px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(69,190,230,.6); background: #00223f; color: #fff;
}
.app-card.large { grid-row: span 2; min-height: 360px; }
.app-card img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.app-card::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(0,12,26,0) 32%, rgba(0,17,35,.9) 78%, rgba(0,17,35,.98) 100%); }
.app-card-content { position: absolute; z-index: 2; top: auto; right: 18px; bottom: 16px; left: 18px; }
.app-kicker { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--seapath-cyan); text-transform: uppercase; }
.app-card h3 { margin: 6px 0 4px; font-size: 23px; line-height: 1.05; }
.app-card.small h3 { font-size: 16px; }
.app-card p { margin: 0; font-size: 14px; line-height: 1.3; color: #dcebf8; }
.app-arrow { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--seapath-cyan); color: var(--seapath-cyan); }

/* Real-world banner */
.real-world {
  position: relative; overflow: hidden; min-height: 170px;
  background: #f4fbff;
}
.real-world img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: .63; }
.real-world::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(245,251,255,.98), rgba(245,251,255,.86) 55%, rgba(245,251,255,.48)); }
.real-world-inner { position: relative; z-index: 2; min-height: 170px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.real-world h2 { margin: 3px 0 8px; font-size: 32px; font-size: clamp(25px, 3vw, 36px); }
.real-world p { margin: 0; max-width: 680px; line-height: 1.45; color: #16365e; }
.contact-mini { text-align: right; flex: 0 0 auto; }
.contact-mini .btn { border-radius: 12px; }
.contact-mini .email { display: block; margin-top: 10px; font-size: 14px; font-weight: 700; }

/* Technology page */
.hero.hero-tech .hero-bg { left: 31%; right: 0; width: 69%; object-position: center 45%; }
.hero.hero-tech .hero-content { min-height: 540px; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.tech-card { border: 1px solid #bfe5f3; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(17,65,110,.06); }
.tech-card img { width: 100%; aspect-ratio: 1.85/1; object-fit: cover; }
.tech-card-body { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 16px 16px 19px; }
.tech-card .core-icon { width: 48px; height: 48px; border-radius: 12px; }
.tech-card .core-icon svg { width: 27px; height: 27px; }
.tech-card h3 { margin: 0 0 5px; font-size: 19px; }
.tech-card p { margin: 0; color: #536987; line-height: 1.4; font-size: 14px; }

/* Applications page */
.hero.hero-apps .hero-bg { left: 31%; right: 0; width: 69%; object-position: center; }
.apps-main-grid { display: grid; grid-template-columns: 1.15fr 1.15fr .7fr .7fr; grid-template-rows: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.apps-main-grid .app-card:nth-child(1), .apps-main-grid .app-card:nth-child(2) { grid-row: span 2; min-height: 365px; }
.apps-main-grid .app-card { min-height: 177px; }
.apps-main-grid .app-card h3 { font-size: 18px; }
.apps-main-grid .app-card:nth-child(1) h3, .apps-main-grid .app-card:nth-child(2) h3 { font-size: 27px; }
.app-bullets { margin: 11px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 13px; color: #dcebf8; }
.app-bullets li::before { content: "○"; color: var(--seapath-cyan); margin-right: 8px; }
.direction-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.direction-card { border: 1px solid rgba(0,221,255,.6); border-radius: 14px; overflow: hidden; background: #00223f; color: #fff; }
.direction-card img { width: 100%; aspect-ratio: 1.9/1; object-fit: cover; }
.direction-card-body { padding: 14px 15px 17px; }
.direction-card h3 { margin: 0 0 5px; font-size: 18px; }
.direction-card p { margin: 0; color: #d8e7f3; line-height: 1.35; font-size: 14px; }

/* Contact */
.hero.hero-contact .hero-bg { left: 31%; right: 0; width: 69%; object-position: center; }
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; margin-top: -18px; position: relative; z-index: 3; }
.contact-panel { background: rgba(255,255,255,.98); border: 1px solid #bfe7f4; border-radius: 16px; padding: 30px; box-shadow: 0 10px 28px rgba(14,59,100,.08); }
.contact-panel h2 { margin: 4px 0 14px; font-size: 38px; font-size: clamp(30px, 3vw, 44px); line-height: 1.06; letter-spacing: 0; }
.contact-panel h2 .accent { color: #1a5ae6; }
.contact-panel p { font-size: 16px; line-height: 1.45; color: #263f65; }
.email-box { margin: 22px 0; padding: 20px; border-radius: 12px; background: linear-gradient(90deg, #dff5ff, #edf9ff); color: #041a53; font-size: 20px; font-weight: 800; word-break: break-all; }
.inquiry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.inquiry-card { border-radius: 12px; padding: 18px; border: 1px solid #c7e4f2; background: #f6fbff; }
.inquiry-card:nth-child(3) { background: #fff9ef; border-color: #eedbbc; }
.inquiry-card:nth-child(4) { background: #f5f1ff; border-color: #d7ccf7; }
.inquiry-card h3 { margin: 0 0 5px; font-size: 16px; }
.inquiry-card p { margin: 0; font-size: 13px; }
.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 800; }
.form-row input, .form-row textarea {
  width: 100%; border: 1px solid #c7d5e4; border-radius: 8px; padding: 13px 14px; color: #17345c; background: #fff; outline: none;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--seapath-cyan); box-shadow: 0 0 0 3px rgba(0,221,255,.12); }
.form-row textarea { min-height: 130px; resize: vertical; }
.required { color: #df284f; }
.form-submit { border: 0; width: 100%; }
.form-note { margin: 0; font-size: 12px !important; color: #71809a !important; }
.contact-closing { position: relative; overflow: hidden; background: #00213e; color: #fff; min-height: 320px; }
.contact-closing img { position: absolute; top: 0; right: 0; bottom: 0; left: 36%; width: 64%; height: 100%; object-fit: cover; opacity: .83; }
.contact-closing::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(0,20,40,.99) 0%, rgba(0,29,55,.9) 42%, rgba(0,29,55,.25) 70%); }
.contact-closing .container { position: relative; z-index: 2; min-height: 320px; display: flex; align-items: center; }
.closing-copy { max-width: 490px; }
.closing-copy h2 { margin: 4px 0 14px; font-size: 50px; font-size: clamp(38px, 4.5vw, 58px); line-height: 1; }
.closing-copy h2 .accent { color: var(--seapath-cyan); }
.closing-copy p { line-height: 1.45; color: #dbe9f6; }

/* Footer */
.site-footer { background: #00172c; color: #fff; border-top: 1px solid rgba(0,221,255,.42); }
.footer-inner { min-height: 96px; display: flex; align-items: center; gap: 28px; }
.footer-logo img { width: 270px; }
.footer-tagline { color: #92b2d2; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.footer-nav { margin-left: auto; display: flex; gap: 22px; font-size: 13px; color: #dbe8f4; }
.footer-lang { margin-left: 8px; padding-left: 20px; border-left: 1px solid rgba(0,221,255,.6); display: flex; gap: 10px; font-size: 13px; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.08); color: #7997b6; padding: 11px 0 14px; font-size: 12px; text-align: center; }

/* Utilities */
.skip-link { position: fixed; left: 10px; top: -60px; z-index: 1000; padding: 10px 14px; background: #fff; color: #000; border-radius: 6px; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Responsive */
@media (max-width: 1040px) {
  .main-nav { gap: 20px; font-size: 14px; }
  .header-cta { display: none; }
  .brand img { width: 320px; }
  .feature-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2)::after { display: none; }
  .core-layout { grid-template-columns: 1fr 1fr; }
  .world-state-visual { grid-column: 1 / -1; grid-row: 1; max-width: 720px; margin: 0 auto; }
  .app-grid-home, .apps-main-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .app-card.large, .apps-main-grid .app-card:nth-child(1), .apps-main-grid .app-card:nth-child(2) { grid-row: auto; min-height: 300px; }
  .direction-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .container { width: calc(100% - 32px); max-width: var(--max); }
  .header-inner { min-height: 66px; }
  .brand img { width: 285px; max-width: 78vw; }
  .menu-toggle { display: inline-flex; }
  .main-nav, .lang-switch { display: none; }
  .site-header.is-open .main-nav {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 66px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #00172c;
    padding: 10px 24px 18px;
    border-bottom: 1px solid rgba(0,221,255,.4);
  }
  .site-header.is-open .main-nav a { padding: 13px 0; }
  .site-header.is-open .main-nav a.active::after { bottom: 7px; }
  .mobile-lang { display: flex !important; gap: 14px; padding-top: 12px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.12); }
  .hero-bg { top: 0; right: 0; bottom: 0; left: 0; width: 100%; opacity: .72; object-position: 60% center; }
  .hero::before { background: linear-gradient(180deg, rgba(0,15,30,.5) 0%, rgba(0,17,34,.94) 70%, rgba(0,17,34,.99) 100%); }
  .hero-content { min-height: 620px; align-items: end; padding-bottom: 58px; }
  .hero-copy { max-width: 660px; }
  .hero-title { font-size: 52px; font-size: clamp(40px, 9vw, 60px); line-height: 1.08; }
  .hero-text { font-size: 17px; }
  .hero-tech .hero-content, .hero-apps .hero-content { min-height: 620px; }
  .hero-contact .hero-content { min-height: 520px; }
  .core-layout { grid-template-columns: 1fr; }
  .world-state-visual { grid-column: auto; grid-row: auto; order: -1; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .app-header-row { align-items: start; flex-direction: column; }
  .app-header-row .section-lead { max-width: 720px; }
  .real-world-inner { align-items: start; flex-direction: column; justify-content: center; padding: 34px 0; }
  .contact-mini { text-align: left; }
  .footer-inner { flex-wrap: wrap; padding: 24px 0; }
  .footer-nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; }
  .footer-lang { margin-left: auto; }
}

@media (max-width: 620px) {
  .section { padding: 54px 0; }
  .feature-strip-grid { grid-template-columns: 1fr; }
  .feature-item::after { display: none !important; }
  .feature-item { padding: 20px 8px; }
  .feature-item:not(:last-child) { border-bottom: 1px solid #d9ebf4; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .tech-grid, .direction-grid, .app-grid-home, .apps-main-grid { grid-template-columns: 1fr; }
  .app-card, .app-card.large, .apps-main-grid .app-card, .apps-main-grid .app-card:nth-child(1), .apps-main-grid .app-card:nth-child(2) { min-height: 280px; }
  .core-card { grid-template-columns: 52px 1fr; }
  .inquiry-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: 22px; }
  .email-box { font-size: 16px; }
  .contact-closing img { top: 0; right: 0; bottom: 0; left: 0; width: 100%; opacity: .48; }
  .contact-closing::after { background: linear-gradient(180deg, rgba(0,20,40,.65), rgba(0,20,40,.97)); }
  .footer-logo img { width: 238px; }
  .footer-tagline { width: 100%; order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


html[lang="ja"] body { line-height: 1.6; }
html[lang="ja"] .hero-title, html[lang="ja"] .section-title, html[lang="ja"] .contact-panel h2, html[lang="ja"] .closing-copy h2 { line-height: 1.18; letter-spacing: 0; }
.site-header .brand img, .site-footer .footer-logo img { image-rendering: -webkit-optimize-contrast; }
.hero-bg, .app-card img, .tech-card img, .direction-card img, .real-world img, .contact-closing img, .world-state-visual img { filter: saturate(1.02) contrast(1.02); }


/* Final legibility + compatibility hardening */
.hero-title, .section-title, .contact-panel h2, .closing-copy h2 {
  overflow-wrap: normal;
  word-break: normal;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}
p, li, a, h1, h2, h3 { text-wrap: pretty; }
@supports not (text-wrap: pretty) { p, li, a, h1, h2, h3 { overflow-wrap: break-word; } }
html[lang="ja"] p, html[lang="ja"] li, html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { word-break: auto-phrase; line-break: strict; }
@supports not (word-break: auto-phrase) { html[lang="ja"] p, html[lang="ja"] li, html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { word-break: normal; } }
.email, .email-box { overflow-wrap: anywhere; }
@media (max-width: 1180px) and (min-width: 961px) {
  .main-nav { gap: 17px; font-size: 14px; }
  .header-inner { gap: 20px; }
  .brand img { width: 300px; }
  .lang-switch { padding-left: 14px; gap: 8px; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 24px); max-width: var(--max); }
  .brand img { width: 245px; max-width: 80vw; }
  .hero-title { font-size: 42px; font-size: clamp(36px, 11vw, 48px); line-height: 1.10; }
  .section-title { font-size: 36px; font-size: clamp(30px, 9vw, 40px); line-height: 1.13; }
}

/* Cross-browser headline spacing: explicit neutral tracking avoids Firefox rendering large bold text too tightly. */
.hero-title, .section-title, .contact-panel h2, .closing-copy h2, .company-heading {
  letter-spacing: 0;
  font-kerning: auto;
}

/* Home application tiles remain links; reserve space for their arrow affordance. */
.app-grid-home .app-card-content { right: 64px; }

/* Minimal company page, reusing the existing site visual language. */
.company-summary {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
  margin-top: 30px;
}
.company-mission {
  padding: 34px;
  border: 1px solid #bfe7f4;
  border-radius: 18px;
  background: linear-gradient(145deg, #f4fbff, #ffffff);
  box-shadow: 0 10px 28px rgba(14,59,100,.06);
}
.company-mission h2 {
  margin: 4px 0 14px;
  font-size: 44px; font-size: clamp(34px, 3.7vw, 50px);
  line-height: 1.1;
  letter-spacing: 0;
}
.company-mission p { margin: 0; font-size: 17px; line-height: 1.55; color: #263f65; }
.company-facts { display: grid; gap: 14px; }
.company-fact {
  padding: 22px 24px;
  border: 1px solid #c7e4f2;
  border-radius: 14px;
  background: #fff;
}
.company-fact h3 { margin: 0 0 7px; font-size: 19px; }
.company-fact p { margin: 0; color: #526887; line-height: 1.5; }
@media (max-width: 860px) { .company-summary { grid-template-columns: 1fr; } }

/* Firefox-safe display headline spacing.
   Keep the existing typeface, size, weight and layout; only prevent tight
   kerning/ligatures and add a small amount of explicit tracking. */
.hero-title,
.section-title,
.contact-panel h2,
.closing-copy h2,
.company-heading,
.company-mission h2 {
  letter-spacing: 0.018em;
  font-kerning: none;
  font-variant-ligatures: none;
  font-feature-settings: "kern" 0, "liga" 0;
}

/* Japanese glyphs do not need Latin display tracking. */
html[lang="ja"] .hero-title,
html[lang="ja"] .section-title,
html[lang="ja"] .contact-panel h2,
html[lang="ja"] .closing-copy h2,
html[lang="ja"] .company-heading,
html[lang="ja"] .company-mission h2 {
  letter-spacing: 0.01em;
}


/* Browser compatibility refinement — hero headlines and legacy Safari flex spacing only. */
/* The five page-level H1s use a standardized system font alias so Firefox and Chromium
   resolve to the same native UI family wherever possible. */
.hero-title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Firefox can render very heavy native display text tighter than Chromium.
   Apply a small Firefox-only tracking correction to page-level hero H1s only. */
@supports (-moz-appearance: none) {
  .hero-title {
    letter-spacing: 0.032em;
    font-kerning: none;
    font-variant-ligatures: none;
    font-feature-settings: "kern" 0, "liga" 0;
  }
}

/* Safari before 14.1 did not implement gap on flex containers. These margins are
   fallbacks; modern browsers reset them and continue using the existing gap values. */
.main-nav > * + * { margin-left: 28px; }
.lang-switch > * + * { margin-left: 11px; }
.hero-actions > * + * { margin-left: 16px; }
.footer-nav > * + * { margin-left: 22px; }
.footer-lang > * + * { margin-left: 10px; }

@supports (gap: 1rem) {
  .main-nav > * + *,
  .lang-switch > * + *,
  .hero-actions > * + *,
  .footer-nav > * + *,
  .footer-lang > * + * { margin-left: 0; }
}

@media (max-width: 1040px) and (min-width: 861px) {
  .main-nav > * + * { margin-left: 20px; }
  @supports (gap: 1rem) { .main-nav > * + * { margin-left: 0; } }
}

@media (max-width: 860px) {
  .site-header.is-open .main-nav > * + * { margin-left: 0; }
  .hero-actions > * + * { margin-left: 0; margin-top: 16px; }
  @supports (gap: 1rem) { .hero-actions > * + * { margin-top: 0; } }
}


/* Legacy Safari header compatibility (pre-flex-gap Safari).
   Uses margin spacing directly rather than feature-detecting `gap`, because older
   Safari can report `gap` support via Grid while still lacking Flexbox gap. */
.main-nav,
.lang-switch,
.hero-actions,
.footer-nav,
.footer-lang {
  gap: 0;
}
.main-nav > * + * { margin-left: 28px; }
.lang-switch > * + * { margin-left: 11px; }
.hero-actions > * + * { margin-left: 16px; }
.footer-nav > * + * { margin-left: 22px; }
.footer-lang > * + * { margin-left: 10px; }

/* Keep the header action on one line in all engines and prevent Flexbox shrink. */
.header-cta {
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 132px;
  text-align: center;
}

/* The nav itself must not squeeze individual labels into each other. */
.main-nav > a,
.main-nav > .mobile-lang,
.lang-switch > a,
.lang-switch > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 1180px) and (min-width: 961px) {
  .main-nav > * + * { margin-left: 17px; }
  .lang-switch > * + * { margin-left: 8px; }
}

@media (max-width: 1040px) and (min-width: 961px) {
  .main-nav > * + * { margin-left: 14px; }
}

@media (max-width: 960px) {
  .site-header.is-open .main-nav > * + * { margin-left: 0; }
  .mobile-lang > * + * { margin-left: 14px; }
  .hero-actions > * + * { margin-left: 0; margin-top: 16px; }
}

@media (max-width: 620px) {
  .hero-actions > * + * { margin-top: 12px; }
}

/* Home hero subtitle refinement — only the secondary line under "Maritime Physical AI".
   Inline-block is intentional: it makes the two subtitle lines use their own line box,
   rather than inheriting the H1 line box used by some browsers. */
.hero-home .hero-title .light {
  display: inline-block;
  font-size: 0.68em;
  font-weight: 400;
  line-height: 0.94;
  vertical-align: top;
}
