/* =========================================================
   株式会社Cloud - style.css
   色やフォントは :root の変数をまとめて変えれば全体に反映されます
   ========================================================= */
:root {
  --ink: #0f172a;        /* 本文・見出し */
  --ink-2: #475569;      /* サブテキスト */
  --line: #e2e8f0;       /* 罫線 */
  --soft: #f5f8fc;       /* 薄い背景 */
  --brand: #2563eb;      /* メインカラー */
  --brand-2: #06b6d4;    /* グラデーション用 */
  --dark: #0b1324;       /* 濃いセクション */
  --radius: 16px;
  --container: 1120px;
  --font-en: "Inter", "Noto Sans JP", sans-serif;
  --font-ja: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--ink);
  background: #fff;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.4; }
p { margin: 0; }

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

.eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.eyebrow--light { color: #bae6fd; }

.grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--brand); border-color: var(--brand); box-shadow: 0 10px 24px rgba(37,99,235,.25); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: #fff; }
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; font-family: var(--font-en); font-size: 1.05rem; }
.btn--white:hover { background: #fff; border-color: #fff; color: var(--brand); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header__logo img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  font-family: var(--font-en); font-weight: 600; font-size: .92rem;
  text-decoration: none; color: var(--ink-2); transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--brand); }

.header__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 180px 0 80px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(6,182,212,.18), transparent 70%),
    radial-gradient(700px 500px at 10% 0%, rgba(37,99,235,.14), transparent 70%),
    linear-gradient(rgba(15,23,42,.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(15,23,42,.05) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero__title {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
}
.hero__lead { margin-top: 28px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.stats {
  list-style: none; padding: 0; margin: 96px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(15,23,42,.06);
}
.stats li { padding: 28px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats strong {
  display: block;
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.1;
  color: var(--brand);
}
.stats small { font-size: .5em; margin-left: 2px; }
.stats span { display: block; margin-top: 8px; font-size: .85rem; color: var(--ink-2); line-height: 1.6; }

/* ---------- Section common ---------- */
.section { padding: 120px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--dark); color: #e2e8f0; }
.section--dark .section__title { color: #fff; }
.section--dark .section__lead { color: #94a3b8; }
.section--dark .eyebrow { color: #7dd3fc; }
.section__head { margin-bottom: 56px; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
.section__lead { margin-top: 16px; color: var(--ink-2); max-width: 640px; }

/* ---------- Service ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15,23,42,.08); border-color: #bfdbfe; }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.service__num { font-family: var(--font-en); font-weight: 800; color: var(--brand); letter-spacing: .1em; }
.service__icon {
  width: 48px; height: 48px; padding: 12px;
  border-radius: 12px; background: #eff6ff;
  fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.service h3 { font-size: 1.25rem; margin-bottom: 14px; }
.service p { color: var(--ink-2); font-size: .95rem; }

/* ---------- Works ---------- */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work {
  padding: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.work__cat { font-size: 1.05rem; color: #fff; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.work ul { list-style: none; margin: 0; padding: 0; }
.work li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; }
.work li + li { border-top: 1px dashed rgba(255,255,255,.08); }
.work b {
  font-family: var(--font-en); font-weight: 800; font-size: 1.3rem;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.work span { font-size: .92rem; color: #cbd5e1; }

/* ---------- Values ---------- */
.values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.value { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.value__num { font-family: var(--font-en); font-weight: 800; font-size: 2.4rem; line-height: 1; color: #cbd5e1; transition: color .3s; }
.value:hover .value__num { color: var(--brand); }
.value h3 { font-family: var(--font-en); font-size: 1.6rem; font-weight: 700; }
.value h3 small { display: block; font-family: var(--font-ja); font-size: .85rem; font-weight: 500; color: var(--brand); margin-top: 4px; letter-spacing: .05em; }
.value p { margin-top: 12px; color: var(--ink-2); max-width: 720px; }

/* ---------- Company ---------- */
.company { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.company .section__head { margin-bottom: 0; }
.company__table { margin: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.company__table div { display: grid; grid-template-columns: 160px 1fr; padding: 24px 32px; }
.company__table div + div { border-top: 1px solid var(--line); }
.company__table dt { font-weight: 700; }
.company__table dd { margin: 0; color: var(--ink-2); }
.company__table a { color: var(--brand); }

/* ---------- Contact ---------- */
.contact {
  padding: 120px 0;
  color: #fff; text-align: center;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(6,182,212,.45), transparent 70%),
    radial-gradient(600px 300px at 80% 100%, rgba(99,102,241,.45), transparent 70%),
    var(--brand);
}
.contact h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
.contact p { margin: 20px auto 40px; color: #dbeafe; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #94a3b8; padding: 56px 0 40px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__logo { height: 26px; width: auto; }
.footer__nav { display: flex; gap: 24px; font-family: var(--font-en); font-size: .9rem; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: #fff; }
.footer__copy { width: 100%; font-size: .8rem; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.pc-hide { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .services, .works { grid-template-columns: 1fr; }
  .company { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .header__toggle {
    display: grid; place-items: center; gap: 6px;
    width: 44px; height: 44px; padding: 12px 10px;
    background: none; border: 0; cursor: pointer;
  }
  .header__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .3s; }
  .header__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .header__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px;
    background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 16px; justify-content: center; }

  .hero { padding: 130px 0 56px; }
  .stats { margin-top: 64px; }
  .stats li { padding: 20px 16px; }
  .section, .contact { padding: 80px 0; }
  .service, .work { padding: 28px 24px; }
  .work li { grid-template-columns: 1fr; gap: 2px; }
  .value { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .value__num { font-size: 1.6rem; }
  .value h3 { font-size: 1.35rem; }
  .company__table div { grid-template-columns: 1fr; gap: 4px; padding: 20px; }
  .sp-hide { display: none; }
  .pc-hide { display: inline; }
  .footer__nav { flex-wrap: wrap; gap: 16px; }
}
