/* ==========================================================================
   GigaBubble Inc. — Corporate site
   Brand: GigaBubble Blue (#0098DA) / Charcoal (#25282D) / White
   ========================================================================== */

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

:root {
  --blue: #0098da;
  --blue-deep: #0071a8;
  --blue-soft: #e6f5fc;
  --blue-tint: #f3f9fd;
  --ink: #25282d;
  --ink-soft: #3d424a;
  --muted: #5f6873;
  --line: #e2e9f0;
  --bg: #ffffff;
  --max: 1160px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --shadow-sm: 0 2px 8px rgba(18, 52, 77, .06);
  --shadow-md: 0 18px 48px rgba(18, 52, 77, .10);
  --shadow-lg: 0 30px 80px rgba(0, 113, 168, .18);
  /* System fonts only — no external font requests */
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, Roboto, "Noto Sans JP", sans-serif;
  --header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt";
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.3; }
/* Japanese headings: break at phrase boundaries (Chrome/Edge), keep lines balanced */
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; text-wrap: balance; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.logo-image { width: auto; height: 60px; }

.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: color .2s ease, background .2s ease;
}
.header-nav a:hover { color: var(--blue-deep); background: var(--blue-tint); }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--blue-tint); border: 1px solid var(--line);
}
.lang-switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  min-width: 40px; height: 30px; padding: 0 10px; border-radius: 999px;
  font: 600 12px/1 var(--font-display); letter-spacing: .08em; color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.nav-toggle {
  display: none; appearance: none; border: 1px solid var(--line); background: #fff; cursor: pointer;
  width: 42px; height: 42px; border-radius: 50%; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px;
  background: var(--ink); transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.button svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:hover svg { transform: translateX(3px); }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(0, 152, 218, .32); }
.button-primary:hover { background: var(--blue-deep); box-shadow: 0 14px 30px rgba(0, 113, 168, .34); }
.button-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.button-outline:hover { border-color: var(--blue); color: var(--blue-deep); }
.button-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.button-white { background: #fff; color: var(--blue-deep); box-shadow: 0 12px 30px rgba(0, 40, 70, .18); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 112px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 30%, var(--blue-soft), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--blue-tint) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 6px 14px 6px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font: 600 13px/1.4 var(--font-display); letter-spacing: .08em; color: var(--blue-deep);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }

.hero h1 {
  font-size: clamp(28px, 3.6vw, 52px); line-height: 1.35; letter-spacing: .01em; margin-bottom: 28px;
}
.hero h1 .accent { color: var(--blue); }
.line { display: inline-block; }
html[lang="en"] .hero h1 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.08; }
.lead { font-size: 17px; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* hero brand: company logo */
.hero-brand { display: flex; justify-content: center; align-items: center; }
.hero-brand img { width: 100%; max-width: 360px; }


/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-tint { background: var(--blue-tint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font: 700 13px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--blue);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 14px 0 0 -1px rgba(0, 152, 218, .35); margin-right: 14px; }
.section h2 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: .02em; }
html[lang="en"] .section h2 { font-family: var(--font-display); letter-spacing: -.01em; }
.section-note { color: var(--muted); font-size: 15px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.body-copy { color: var(--ink-soft); font-size: 16px; }
.body-copy p + p { margin-top: 1.2em; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 72px; }
.value-card {
  position: relative; overflow: hidden; padding: 36px 30px 32px; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.value-card::after {
  content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%;
  background: var(--blue-soft); transition: transform .4s ease;
}
.value-card:hover::after { transform: scale(1.25); }
.value-num { position: relative; z-index: 1; display: block; margin-bottom: 20px; font: 700 14px/1 var(--font-display); color: var(--blue); letter-spacing: .1em; }
.value-card h3 { position: relative; z-index: 1; font-size: 20px; margin-bottom: 10px; }
.value-card p { position: relative; z-index: 1; color: var(--muted); font-size: 15px; line-height: 1.8; }

/* Apps */
.apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.app-card {
  display: flex; flex-direction: column; padding: 40px; border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.app-head { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.app-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 8px 20px rgba(0, 0, 0, .10); flex-shrink: 0; }
.app-name-en { display: block; margin-bottom: 4px; font: 600 12px/1.4 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); }
.app-card h3 { font-size: 24px; }
.platforms { display: flex; gap: 8px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px;
  font: 600 12px/1 var(--font-display); letter-spacing: .06em; background: var(--blue-tint); color: var(--ink-soft); border: 1px solid var(--line);
}
.app-description { color: var(--muted); font-size: 15px; flex: 1; }
.app-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; padding: 0; list-style: none; }
.app-features li { padding: 6px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; background: var(--blue-soft); color: var(--blue-deep); }
.store-links { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.store-link { display: inline-flex; border-radius: 10px; transition: transform .2s ease, opacity .2s ease; }
.store-link:hover { transform: translateY(-2px); opacity: .88; }
.badge { height: 48px; width: auto; }

/* Company */
.company-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.company-table { border-top: 2px solid var(--ink); }
.company-table > div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 26px 4px; border-bottom: 1px solid var(--line); }
.company-table dt { font-weight: 700; font-size: 15px; }
.company-table dd { color: var(--ink-soft); }
.company-table a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(0, 113, 168, .3); }
.company-table a:hover { text-decoration-color: currentColor; }

/* Contact */
.contact-section { padding: 120px 0; }
.contact-box {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 72px 72px; border-radius: 40px; color: #fff;
  background: linear-gradient(135deg, #12a9e8 0%, var(--blue) 45%, #006ea6 100%);
  box-shadow: var(--shadow-lg);
}
.contact-box .kicker { color: rgba(255, 255, 255, .85); }
.contact-box .kicker::before { box-shadow: 14px 0 0 -1px rgba(255, 255, 255, .4); }
.contact-box h2 { color: #fff; margin-bottom: 14px; }
.contact-box p { color: rgba(255, 255, 255, .88); max-width: 30em; }
.contact-box .bubble { background: rgba(255, 255, 255, .12); z-index: -1; }
.contact-box .cb-1 { width: 340px; height: 340px; right: -80px; top: -140px; }
.contact-box .cb-2 { width: 180px; height: 180px; right: 22%; bottom: -110px; background: rgba(255, 255, 255, .08); }
.contact-box .cb-3 { width: 40px; height: 40px; left: 46%; top: 28px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }
.contact-mail { font: 500 14px/1.4 var(--font-display); color: rgba(255, 255, 255, .85); letter-spacing: .04em; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand-logo { display: inline-flex; padding: 12px 16px; border-radius: 14px; background: #fff; }
.footer-brand-logo img { width: auto; height: 64px; }
.footer-brand p { margin-top: 16px; }
.footer-nav { display: flex; gap: 56px; }
.footer-nav h4 { margin: 0 0 14px; font: 700 12px/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom-solo { padding-top: 0 !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- Sub pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: 88px 0 72px; background: linear-gradient(180deg, #fff 0%, var(--blue-tint) 100%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); }
.page-hero .bubble { background: var(--blue-soft); }
.page-hero .ph-1 { width: 320px; height: 320px; right: -60px; top: -120px; }
.page-hero .ph-2 { width: 60px; height: 60px; right: 24%; bottom: 30px; background: rgba(0, 152, 218, .18); }
.page-body { padding: 72px 0 120px; }
.prose { max-width: 820px; color: var(--ink-soft); }
.prose h2 { font-size: 20px; color: var(--ink); margin: 48px 0 12px; padding-left: 18px; border-left: 4px solid var(--blue); line-height: 1.5; }
.prose h2:first-of-type { margin-top: 40px; }
.prose a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 4px; }
.prose .meta { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.legal-table { max-width: 920px; margin-top: 40px; }
.sdk-list { max-width: 820px; display: grid; gap: 16px; margin: 24px 0 8px; }
.sdk-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.sdk-card h3 { font-size: 17px; margin-bottom: 12px; color: var(--ink); }
.sdk-card dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sdk-card dt { font-weight: 700; color: var(--ink); }
.sdk-card dd { color: var(--ink-soft); }
.sdk-card a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
@media (max-width: 560px) { .sdk-card dl > div { grid-template-columns: 1fr; gap: 2px; } }
.lang-note { padding: 14px 18px; border-radius: 12px; background: var(--blue-tint); border: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.legal-table > div { grid-template-columns: 220px 1fr; }
.legal-table dd { line-height: 1.9; }
.legal-table a { word-break: break-all; }
.todo { background: #fff3cd; color: #8a5a00; padding: 2px 6px; border-radius: 4px; font-weight: 700; }

.not-found { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.not-found-code { font: 800 clamp(96px, 18vw, 180px)/1 var(--font-display); color: var(--blue); letter-spacing: -.04em; }
.not-found h1 { font-size: clamp(24px, 3vw, 32px); margin: 16px 0 12px; }
.not-found p { color: var(--muted); margin-bottom: 36px; }

/* ---------- Reveal on scroll (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-brand { display: none; }
  .about-grid, .company-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-box { flex-direction: column; align-items: flex-start; padding: 56px 48px; }
  .contact-actions { align-items: flex-start; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .logo-image { height: 46px; }
  .nav-toggle { display: inline-block; }
  .header-tools { margin-left: auto; }
  .header-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 8px 24px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .header-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .header-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .header-nav a:last-child { border-bottom: 0; }
  .header-nav a:hover { background: transparent; }
  .values { grid-template-columns: 1fr; margin-top: 48px; }
  .apps-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: 48px 0 80px; }
  .lead { font-size: 16px; }
  .hero-actions .button { flex: 1 1 100%; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 36px; }
  .app-card { padding: 28px 24px; border-radius: 26px; }
  .app-icon { width: 76px; height: 76px; border-radius: 19px; }
  .app-card h3 { font-size: 22px; }
  .badge { height: 44px; }
  .company-table > div { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .contact-section { padding: 84px 0; }
  .contact-box { padding: 44px 26px; border-radius: 28px; }
  .contact-actions, .contact-actions .button { width: 100%; }
  .footer-nav { gap: 40px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
