@charset "UTF-8";
/* ============================================================
   GROW UP SYSTEMS — common.css
   全ページ共通スタイル（デザイントークン / ベース / 共通パーツ）
   ============================================================ */

/* ---- Design tokens ---------------------------------------- */
:root {
  --bg: #0D0F12;
  --bg-raised: #14171B;
  --ink: #E4E6EA;
  --ink-soft: #7C828C;
  --line: rgba(228,230,234,0.12);
  --line-strong: rgba(228,230,234,0.22);
  --accent: #3DDC84;
  --accent-soft: rgba(61,220,132,0.12);
  --accent-deep: #2BB76C;
  --warm: #FF8A3D;
  --warm-soft: rgba(255,138,61,0.12);
  --grid-line: rgba(61,220,132,0.05);
  --btn-primary-ink: #06140C;
  --editor-bg: #07090B;
  --editor-fade: rgba(7,9,11,0.95);
  --editor-fade-mid: rgba(7,9,11,0.2);
  --editor-text: #C7CBD1;
  --editor-lineno: #454A52;
  --editor-key: #FF8A3D;
  --editor-str: #3DDC84;
  --editor-fn: #7FB7FF;
  --editor-com: #5A6068;
  --editor-num: #D6A6FF;
  --diff-bg: #0A0C0F;
  --accent-glow: rgba(61,220,132,0.35);
  --accent-glow-soft: rgba(61,220,132,0.18);
  --header-bg-scrolled: rgba(13,15,18,0.85);
  --recruit-bg: #0A1410;
  --footer-bg: #07090B;
  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 64px);
}
html[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-raised: #F4F6FA;
  --ink: #0F1729;
  --ink-soft: #5C6878;
  --line: rgba(15,23,41,0.10);
  --line-strong: rgba(15,23,41,0.18);
  --accent: #2563EB;
  --accent-soft: rgba(37,99,235,0.10);
  --accent-deep: #1D4ED8;
  --warm: #D9730D;
  --warm-soft: rgba(217,115,13,0.10);
  --grid-line: rgba(37,99,235,0.06);
  --btn-primary-ink: #FFFFFF;
  --editor-bg: #FAFBFD;
  --editor-fade: rgba(250,251,253,0.96);
  --editor-fade-mid: rgba(250,251,253,0.25);
  --editor-text: #1F2733;
  --editor-lineno: #A8AEBA;
  --editor-key: #AF00DB;
  --editor-str: #0B7C3F;
  --editor-fn: #2563EB;
  --editor-com: #6B7785;
  --editor-num: #C9650A;
  --diff-bg: #F4F6FA;
  --accent-glow: rgba(37,99,235,0.30);
  --accent-glow-soft: rgba(37,99,235,0.15);
  --header-bg-scrolled: rgba(255,255,255,0.85);
  --recruit-bg: #EEF2F7;
  --footer-bg: #F4F6FA;
}

html, body, .site-header, .diff-card, .hero-code, .site-footer,
.recruit-section, .section-alt, .feature-card, .tag, .info-table td, .info-table th {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---- Skip link (a11y) ------------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--accent); color: var(--btn-primary-ink);
  padding: 8px 16px; border-radius: 4px; font-family: var(--font-mono); font-size: 13px;
  z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---- Typography helpers ----------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); display: inline-block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
.section-lead { color: var(--ink-soft); max-width: 620px; margin-bottom: 48px; }

section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.section-alt { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  padding: 14px 26px; border-radius: 4px; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer;
  -webkit-appearance: none; appearance: none; /* input[type=submit] のネイティブ描画を無効化 */
}
.btn-primary { background: var(--accent); color: var(--btn-primary-ink); box-shadow: 0 0 0 1px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 0 24px var(--accent-glow); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn::after { content: "→"; transition: transform .15s ease; }
.btn:hover::after { transform: translateX(3px); }

.text-link { font-family: var(--font-mono); font-size: 14px; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; }
.text-link::after { content: "→"; transition: transform .15s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* ---- Header / Nav ----------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; max-width: none; }
.logo { font-family: var(--font-mono); font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.logo .dot { color: var(--accent); }
.logo .sub {
  font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--ink-soft);
  margin-left: 8px; border-left: 1px solid var(--line-strong); padding-left: 8px;
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 14px; position: relative; padding: 4px 0; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent);
  transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  font-family: var(--font-mono); font-size: 13px; background: var(--accent); color: var(--btn-primary-ink) !important;
  padding: 10px 18px; border-radius: 4px;
}
.nav-cta:hover { background: var(--accent-deep); }

/* ---- Theme toggle ----------------------------------------- */
.theme-toggle {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; padding: 4px 0;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.theme-toggle-track {
  position: relative; width: 40px; height: 22px; border-radius: 11px;
  background: var(--bg-raised); border: 1px solid var(--line-strong);
  transition: background-color .25s ease, border-color .25s ease;
}
.theme-toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  transition: transform .25s ease, background-color .25s ease;
}
.theme-toggle[aria-pressed="true"] .theme-toggle-thumb { transform: translateX(18px); }
.theme-toggle-label { width: 32px; text-align: left; }

/* ---- Hamburger (mobile) ----------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header-bg-scrolled); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 24px;
    transform: translateY(-130%);
    transition: transform .3s ease;
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links a::after { display: none; }
  .nav-cta { margin-top: 16px; text-align: center; }
  .theme-toggle { margin-top: 16px; }
}

/* ---- Footer ----------------------------------------------- */
.site-footer { background: var(--footer-bg); color: var(--ink); padding: 24px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand .logo { color: var(--ink); margin-bottom: 16px; }
.footer-brand p { color: var(--ink-soft); font-size: 14px; max-width: 300px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; letter-spacing: 0.04em; font-weight: 500; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--ink); opacity: 0.85; margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); font-family: var(--font-mono); }
.footer-bottom a:hover { color: var(--accent); }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ---- Legal / Privacy content ------------------------------ */
.legal { max-width: 820px; }
.legal h2 { font-size: 19px; margin: 40px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 1.4em; margin: 8px 0 16px; }
.legal li { color: var(--ink-soft); margin-bottom: 6px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .legal-contact { font-style: normal; color: var(--ink-soft); line-height: 2; margin: 8px 0 16px; }
.legal .legal-date { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); margin-top: 32px; }

/* ---- Page header (sub pages) ------------------------------ */
.page-head { padding: 150px 0 64px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--line-strong); }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); }
.page-head p { color: var(--ink-soft); margin-top: 16px; max-width: 600px; }

/* ---- Shared CTA band -------------------------------------- */
.final-cta { text-align: center; }
.final-cta h2 { margin-bottom: 36px; }

/* ---- Page loader ------------------------------------------ */
html.is-loading, html.is-loading body { overflow: hidden; }
.page-loader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--bg);
  transition: opacity .6s ease, visibility .6s ease;
}
.page-loader.is-loaded { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(20px, 5vw, 34px); letter-spacing: 0.06em;
  color: var(--ink);
  display: flex; align-items: baseline; white-space: pre;
}
.loader-logo span {
  display: inline-block; opacity: 0; transform: translateY(8px);
  animation: loaderLetter .24s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.028s);
}
.loader-logo .sp { width: 0.4em; }
.loader-logo .dots { color: var(--accent); }
@keyframes loaderLetter { to { opacity: 1; transform: none; } }

/* ---- Header logo (image, theme-aware) --------------------- */
.logo-img { height: 24px; width: auto; display: block; }
/* タブレット以下でロゴを小さく（段階的に縮小） */
@media (max-width: 900px) { .logo-img { height: 20px; } }
@media (max-width: 600px) { .logo-img { height: 17px; } }
.logo .logo-light { display: none; }
html[data-theme="light"] .logo .logo-dark { display: none; }
html[data-theme="light"] .logo .logo-light { display: block; }

/* ---- Large button ----------------------------------------- */
.btn-lg { font-size: 16px; padding: 20px 40px; border-radius: 6px; }
.btn-xl { font-size: 20px; padding: 28px 72px; border-radius: 10px; gap: 14px; }
@media (max-width: 560px) { .btn-xl { font-size: 17px; padding: 22px 36px; width: 100%; justify-content: center; } }

/* ---- Reduced motion / focus ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
