/* ============================================================
   Tsunagu (つなぐ) — global connectivity infrastructure
   Static, dependency-free stylesheet
   ============================================================ */

:root {
  --primary: #1f4ed8;
  --primary-600: #1740b3;
  --primary-700: #12348f;
  --primary-050: #eef3fe;
  --accent: #e0432a;
  --accent-600: #c23520;
  --ink: #10222e;
  --ink-soft: #2a4150;
  --muted: #5a6f7f;
  --line: #e3eaf3;
  --bg: #f6f9fc;
  --card: #ffffff;
  --footer: #0d1e30;
  --footer-soft: #8ba0b5;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 34, 46, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(16, 34, 46, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(16, 34, 46, 0.28);

  --font-sans: "Inter", "Noto Sans JP", "Noto Sans SC",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo",
    "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;

  --maxw: 1160px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--primary-700); }

img, svg { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(224, 67, 42, 0.55); }
.btn-primary:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-050); color: var(--primary-600); }
.btn-light { background: #fff; color: var(--primary-700); }
.btn-light:hover { background: #eef3fe; color: var(--primary-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand .brand-kana { font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.brand svg { flex: none; }

.logo-mark { flex: none; }

.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.nav-links > li { margin: 0; position: relative; }
.nav-links a {
  display: block; padding: 8px 13px; border-radius: 8px;
  color: var(--ink-soft); font-size: 0.94rem; font-weight: 500;
}
.nav-links a:hover { background: var(--bg); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--primary); font-weight: 600; }

.has-dropdown > a::after {
  content: ""; display: inline-block; width: 7px; height: 7px;
  margin-left: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 6px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { font-size: 0.92rem; padding: 10px 12px; border-radius: 7px; }
.dropdown .drop-title { font-size: 0.74rem; color: var(--muted); padding: 8px 12px 4px; font-weight: 600; letter-spacing: 0.04em; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 10px 18px; font-size: 0.9rem; }

.lang-switch {
  position: relative; display: inline-flex;
}
.lang-switch > button {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.lang-switch > button::after {
  content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px);
}
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 150px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 6px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-menu a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 0.9rem; color: var(--ink-soft); }
.lang-menu a:hover { background: var(--bg); color: var(--ink); }
.lang-menu a.is-current { color: var(--primary); font-weight: 600; }

.nav-toggle {
  display: none; flex: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, #dfe9ff 0%, rgba(223, 233, 255, 0) 62%),
    radial-gradient(800px 420px at 6% 110%, #ffe9e2 0%, rgba(255, 233, 226, 0) 58%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  padding: 84px 0 72px;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-050);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
.hero-art {
  position: absolute; right: -40px; top: 40px; z-index: 1; opacity: 0.9;
  width: 460px; max-width: 46%; pointer-events: none;
}
@media (max-width: 900px) { .hero-art { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tint { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-head p { color: var(--muted); margin: 0; }

/* Grid of cards */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3e0f2; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-050); color: var(--primary); margin-bottom: 16px;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.card-link { display: block; color: inherit; border-radius: var(--radius); }
.card-link:hover { color: inherit; }
.card-link .card-arrow { color: var(--primary); font-weight: 600; margin-top: 14px; display: inline-flex; align-items: center; gap: 5px; font-size: 0.9rem; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .num { font-size: 2.2rem; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; }
.stat .label { font-size: 0.9rem; color: var(--muted); }

/* Feature list / two-column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.split .split-media { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--primary-050);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: 11px; width: 7px; height: 4px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* Table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 600; width: 34%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* Callout */
.callout { background: var(--primary-050); border-left: 4px solid var(--primary); border-radius: 10px; padding: 18px 20px; margin: 22px 0; }
.callout--warm { background: #fff4ef; border-left-color: var(--accent); }
.callout p { margin: 0; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before {
  content: counter(step); flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.95rem;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 1.4rem; color: var(--primary); font-weight: 400;
  transition: transform 0.2s var(--ease); line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--footer) 0%, #12335a 100%);
  color: #fff; border-radius: 22px; padding: 52px 46px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { color: #c8d7e6; margin: 0; max-width: 560px; }
.cta-band .btn { flex: none; }

/* Breadcrumb */
.breadcrumb { font-size: 0.84rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* Page hero (interior) */
.page-hero { padding: 48px 0 40px; }
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 680px; margin: 0; }

/* Product feature cards on detail pages */
.prod-banner { background: linear-gradient(120deg, var(--primary-050), #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; gap: 22px; align-items: flex-start; }
.prod-banner .icon { flex: none; width: 56px; height: 56px; }

/* Footer */
.site-footer { background: var(--footer); color: var(--footer-soft); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.88rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--footer-soft); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-bottom .legal { display: flex; gap: 18px; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 22px; }
.mt-4 { margin-top: 44px; }
.section-slim { padding: 44px 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 940px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { height: 62px; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 12px var(--gutter) 20px; gap: 2px;
  }
  .nav-links.mobile-open a { padding: 12px 8px; font-size: 1rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 12px; }
  .has-dropdown > a::after { display: none; }
}


/* ---------- Motion helpers ---------- */
html.js-motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
html.js-motion .reveal.is-visible { opacity: 1; transform: none; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: transparent; }
@keyframes tsunagu-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(.6deg); }
}
.hero-art { animation: tsunagu-float 8s ease-in-out infinite; }

/* ---------- Mobile IP pricing ---------- */
.price-range-pill {
  display: inline-flex; align-items: baseline; gap: 6px; margin-top: 16px;
  padding: 8px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); color: var(--muted); font-size: .84rem; font-weight: 600;
}
.price-range-pill b { color: var(--primary); font-size: 1.02rem; letter-spacing: -.02em; }
.price-range-pill small { font-weight: 500; }

.pricing-band { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
.pricing-card {
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pricing-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--primary), #6b8ef5);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfdcef; }
.pricing-card--featured { border-color: rgba(31, 78, 216, .4); box-shadow: 0 18px 44px -26px rgba(31, 78, 216, .5); }
.pricing-card--featured::before { background: linear-gradient(90deg, var(--accent), #f08a6b); }
.pricing-tag {
  align-self: flex-start; padding: 5px 11px; margin-bottom: 12px; border-radius: 999px;
  background: var(--primary-050); color: var(--primary); font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.pricing-card--featured .pricing-tag { background: #fdeee9; color: var(--accent); }
.pricing-card h3 { font-size: 1.28rem; margin-bottom: 4px; }
.price-range { display: flex; align-items: baseline; gap: 3px; margin: 6px 0 14px; color: var(--ink); }
.price-range b { font-size: clamp(2.8rem, 5.2vw, 3.9rem); line-height: .95; letter-spacing: -.045em; }
.price-currency { align-self: flex-start; margin-top: 8px; font-size: 1.3rem; font-weight: 700; }
.price-unit { color: var(--muted); font-size: .94rem; font-weight: 600; }
.price-from { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-right: 2px; }
.pricing-card p { color: var(--muted); font-size: .95rem; }
.price-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.price-list li { position: relative; padding-left: 24px; color: var(--ink-soft); font-size: .93rem; }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px rgba(31, 78, 216, .12);
}
.pricing-card--featured .price-list li::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(224, 67, 42, .12); }
.btn-block { width: 100%; margin-top: auto; text-align: center; }
.pricing-note { max-width: 760px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js-motion .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art { animation: none; }
  .pricing-card { transition: none; }
  .pricing-card:hover { transform: none; }
}
