/* Speedcom Co., Ltd. — corporate site styles */
:root {
  --ink: #0d1726;
  --navy: #0f2340;
  --navy-2: #16315a;
  --blue: #2457d6;
  --blue-soft: #e8eefc;
  --teal: #0f8a7e;
  --teal-soft: #e3f4f1;
  --muted: #5a6678;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 23, 38, .06), 0 8px 24px rgba(13, 23, 38, .06);
  --max: 1160px;
  --font: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic UI", "YuGothic", "Meiryo", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
html[data-lang="en"] body { letter-spacing: 0; line-height: 1.65; }
img, svg { display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* bilingual switching */
html[data-lang="ja"] .en, html[data-lang="en"] .ja { display: none !important; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.35; margin: 0 0 16px; font-weight: 700; }
.section-lead { color: var(--muted); max-width: 720px; margin: 0 0 48px; font-size: 16px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; height: 68px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .06em; line-height: 1.2; }
.brand-text { line-height: 1.15; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--muted); padding: 4px 12px; border-radius: 999px;
}
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 35, 64, .0), rgba(15, 35, 64, .35)),
    linear-gradient(135deg, #0b1b33 0%, #0f2340 45%, #173863 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 95%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 96px 24px 104px; }
.hero .eyebrow { color: #9fbaff; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.28; margin: 0 0 22px; font-weight: 700; letter-spacing: .01em; }
.hero h1 .accent { color: #b9ccff; }
html[data-lang="en"] .hero h1 { font-size: clamp(30px, 3.7vw, 46px); letter-spacing: -.01em; }
.hero p.lead { font-size: 17px; color: #c9d4e6; margin: 0 0 34px; max-width: 560px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1d49b8; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.hero-points { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; color: #c9d4e6; font-size: 14px; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { flex: none; }

/* product mock */
.mock {
  background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  overflow: hidden; font-size: 13.5px; line-height: 1.7;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #f3f5f9; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dbe5; }
.mock-bar b { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mock-bar em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.mock-body { padding: 18px 20px 20px; }
.q { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.q .avatar { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.a-head { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; }
.tag { font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.a-list { margin: 0 0 12px; padding-left: 18px; }
.a-list li { margin: 3px 0; }
sup.c { color: var(--blue); font-weight: 700; font-size: 10px; margin-left: 1px; }
.mock-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.sources { border-top: 1px dashed var(--line); padding-top: 10px; }
.sources div { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin: 3px 0; }
.sources div b { color: var(--blue); font-size: 11px; min-width: 18px; }
.chart-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.chart-box p { margin: 0 0 6px; font-size: 11.5px; color: var(--muted); }

/* ---------- value strip ---------- */
.strip { border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { padding: 30px 28px; display: flex; gap: 16px; align-items: flex-start; }
.strip-item + .strip-item { border-left: 1px solid var(--line); }
.strip-item h3 { margin: 0 0 4px; font-size: 16px; }
.strip-item p { margin: 0; color: var(--muted); font-size: 14px; }
.icon-chip { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-2px); border-color: #c8d4ea; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-head .num { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.card h3 { margin: 0; font-size: 20px; line-height: 1.4; }
.card .sub { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.card p { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%230f8a7e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
html[data-lang="en"] .checks li::before { margin-top: 2px; }

/* ---------- technology pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.step::after {
  content: ""; position: absolute; right: -12px; top: 38px; width: 10px; height: 10px; z-index: 2;
  border-top: 2px solid #9aabc6; border-right: 2px solid #9aabc6; transform: rotate(45deg);
}
.step:last-child::after { display: none; }
.step .no { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .08em; }
.step h4 { margin: 6px 0 8px; font-size: 16.5px; line-height: 1.4; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.step.highlight { background: var(--navy); border-color: var(--navy); color: #fff; }
.step.highlight p { color: #c9d4e6; }
.step.highlight .no { color: #9fbaff; }
.tech-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.tech-note { border-left: 3px solid var(--blue); padding: 4px 0 4px 18px; }
.tech-note h4 { margin: 0 0 6px; font-size: 16px; }
.tech-note p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- audiences ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aud { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aud h4 { margin: 14px 0 6px; font-size: 16px; }
.aud p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.trust { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.trust h4 { margin: 0 0 6px; font-size: 16.5px; }
.trust p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- company ---------- */
.company { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.profile { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.profile tr:last-child th, .profile tr:last-child td { border-bottom: 0; }
.profile th { width: 30%; background: var(--bg-2); font-weight: 600; color: var(--navy-2); white-space: nowrap; }
.profile ul { margin: 0; padding-left: 18px; }
.mission { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px; }
.mission .eyebrow { color: #9fbaff; }
.mission h3 { font-size: 22px; line-height: 1.5; margin: 0 0 14px; }
.mission p { color: #c9d4e6; margin: 0; font-size: 15px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row h5 { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.info-row p { margin: 2px 0 0; font-size: 16px; font-weight: 500; }
.copy-btn { margin-left: 8px; font: inherit; font-size: 12px; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 1px 8px; cursor: pointer; color: var(--muted); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--navy-2); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); padding: 11px 13px; border: 1px solid #cfd7e3; border-radius: 9px; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(36, 87, 214, .25); border-color: var(--blue); }
.form textarea { min-height: 120px; resize: vertical; }
.form .note { font-size: 12.5px; color: var(--muted); margin: 0; }
.form .err { font-size: 13px; color: #c2361f; margin: 0; min-height: 1em; }

/* ---------- footer ---------- */
.footer { background: #0b1729; color: #a9b6c9; padding: 56px 0 32px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer .brand { color: #fff; }
.footer .brand small { color: #8193ad; }
.footer address { font-style: normal; margin-top: 14px; line-height: 1.8; }
.footer-links { display: flex; gap: 48px; }
.footer-links h6 { color: #fff; font-size: 13px; margin: 0 0 10px; }
.footer-links a { display: block; color: #a9b6c9; margin: 4px 0; }
.footer-links a:hover { color: #fff; }
.disclaimer { font-size: 12.5px; color: #7f8ea6; margin: 24px 0 0; line-height: 1.8; }
.copyright { font-size: 12.5px; color: #7f8ea6; margin-top: 12px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 72px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .company, .contact { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .menu-btn { display: grid; place-items: center; }
  .header-inner { gap: 12px; }
  .lang-switch { order: 3; }
  .strip-grid, .services, .trust-grid, .tech-notes { grid-template-columns: 1fr; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .pipeline, .aud-grid { grid-template-columns: 1fr; }
  .mock-grid, .form .row2 { grid-template-columns: 1fr; }
  .profile th { width: auto; white-space: normal; }
  .profile th, .profile td { display: block; width: 100%; }
  .profile th { border-bottom: 0; padding-bottom: 6px; }
  .profile td { padding-top: 6px; }
  .brand small { display: none; }
}
