:root {
  --ink: #101820;
  --ink-2: #3a4250;
  --paper: #ffffff;
  --paper-2: #f6f7fb;
  --line: #e7e9f1;
  --yellow: #e5ff3d;
  --pink: #ff3d9a;
  --indigo: #3d4dff;
  --purple: #7a3dff;
  --teal: #23c4b8;
  --grad-cta: linear-gradient(95deg, #ff5cb0 0%, #a85bff 50%, #5b6cff 100%);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= HEADER ================= */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(16, 24, 32, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand img {
  height: 56px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin: 0 auto;
  font-weight: 500;
  font-size: 14px;
  color: #1a2330;
}
.nav-links a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--pink);
}
.nav-links a.active {
  color: var(--pink);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
}
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s;
  white-space: nowrap;
}
.btn .arr {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  transition: transform 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:hover .arr {
  transform: translateX(2px);
}
.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(229, 255, 61, 0.45);
}
.btn-primary .arr {
  background: var(--ink);
  color: var(--yellow);
}
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 2px solid #2a31ff;
}
.btn-outline .arr {
  background: #2a31ff;
  color: #fff;
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 0;
}
.btn-ghost .arr {
  background: var(--ink);
  color: #fff;
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark .arr {
  background: var(--yellow);
  color: var(--ink);
}
.menu-burger {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
}
.menu-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.menu-burger span::before,
.menu-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.menu-burger span::before {
  top: -6px;
}
.menu-burger span::after {
  top: 6px;
}

/* ================= SECTION COMMONS ================= */
section {
  position: relative;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}
.sec-en {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 64px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.sec-jp {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #5b6072;
  letter-spacing: 0.06em;
}
.sec-desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  color: #3a4250;
  line-height: 1.9;
  margin-top: 18px;
  max-width: 240px;
}
.seemore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  margin-top: 24px;
  color: var(--ink);
}
.seemore .arr {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.2s;
}
.seemore:hover .arr {
  transform: translateX(3px);
  background: var(--pink);
}

/* ================= PAGE HEADER (subpage hero) ================= */
.page-hero {
  position: relative;
  padding: 80px 0 70px;
  overflow: hidden;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .crumbs {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #7a8290;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.page-hero .crumbs a {
  color: #7a8290;
  transition: color 0.2s;
}
.page-hero .crumbs a:hover {
  color: var(--pink);
}
.page-hero .crumbs .sep {
  color: #cfd3df;
}
.page-hero h1.page-title {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  color: var(--ink);
}
.page-hero h1.page-title .accent {
  color: var(--pink);
}
.page-hero h1.page-title .accent2 {
  color: var(--indigo);
}
.page-hero .page-jp {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.page-hero .page-lead {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: #3a4250;
  line-height: 1.95;
  max-width: 620px;
  margin: 0;
}
.page-hero .ph-script {
  font-family: "Caveat", cursive;
  color: var(--purple);
  font-size: 30px;
  margin: 6px 0 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.page-hero .ph-deco {
  position: absolute;
  pointer-events: none;
}
.page-hero .ph-deco.b1 {
  right: -90px;
  top: -60px;
  width: 340px;
  opacity: 0.55;
}
.page-hero .ph-deco.b2 {
  right: 8%;
  top: 30%;
  width: 120px;
  opacity: 0.85;
}
.page-hero .ph-deco.dots {
  right: 18%;
  bottom: 14%;
  width: 80px;
  opacity: 0.6;
}
.page-hero .ph-deco.spark {
  left: 42%;
  top: 18%;
  width: 36px;
  opacity: 0.9;
}
.page-hero .ph-deco.curl {
  right: 32%;
  top: 8%;
  width: 110px;
  opacity: 0.7;
  transform: rotate(8deg);
}

/* ================= CTA BANNER (shared) ================= */
.cta-banner {
  padding: 70px 0 80px;
}
.cta-inner {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: var(--grad-cta);
  color: #fff;
  padding: 54px 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}
.cta-eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 14px;
}
.cta-inner h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 42px;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.cta-inner p {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.95);
}
.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-buttons .btn-primary {
  background: var(--yellow);
  color: var(--ink);
}
.cta-buttons .btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 0;
}
.cta-buttons .btn-ghost .arr {
  background: var(--ink);
  color: #fff;
}
.cta-art {
  position: relative;
  height: 280px;
}
.cta-deco-y {
  position: absolute;
  left: -26px;
  top: -26px;
  width: 60px;
  height: 60px;
  background: #54b6ff;
  border-radius: 50%;
}
.cta-deco-yel {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  background: var(--yellow);
  border-radius: 50%;
}
.cta-curl-w {
  position: absolute;
  right: -14px;
  top: -12px;
  width: 80px;
  color: #fff;
}
.cta-dots-w {
  position: absolute;
  left: -30px;
  bottom: -20px;
  width: 90px;
  opacity: 0.7;
}

/* ================= FOOTER ================= */
footer.site {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}
.foot {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.foot .brand img {
  height: 48px;
}
.foot nav {
  display: flex;
  gap: 22px;
  font-size: 12px;
  font-weight: 600;
  color: #3a4250;
}
.foot .copy {
  margin-left: auto;
  font-size: 11px;
  color: #7a8290;
}
.foot .sns {
  display: flex;
  gap: 10px;
  align-items: center;
}
.foot .sns img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

/* ================= BG decoration helpers ================= */
.bg-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* ================= TAGS / BADGES ================= */
.cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.cat.web {
  background: var(--indigo);
}
.cat.app {
  background: #ff8a3d;
}
.cat.brand {
  background: var(--purple);
}
.cat.aws {
  background: var(--teal);
}
.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  flex: none;
}
.badge.press {
  background: #ff8a3d;
}
.badge.info {
  background: #ffb43d;
  color: #241300;
}
.badge.recruit {
  background: var(--purple);
}
.badge.event {
  background: var(--teal);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 24px;
  }
  .sec-en {
    font-size: 44px;
  }
  .page-hero {
    padding: 50px 0 50px;
  }
}

/* ================= MOBILE: full width + hamburger menu ================= */
html {
  width: 100%;
  overflow-x: hidden;
}
body {
  width: 100%;
  max-width: 100vw;
}

@media (min-width: 981px) {
  .menu-burger {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .wrap {
    padding: 0 16px;
    max-width: 100vw;
  }
  .nav {
    gap: 12px;
    height: 90px;
  }
  .brand img {
    height: 72px;
  }
  /* hide desktop CTA buttons; only burger remains */
  .nav-cta {
    margin-left: auto;
    gap: 8px;
  }
  .nav-cta .btn {
    display: none;
  }
  .menu-burger {
    display: grid;
  }

  /* relax fixed widths */
  .cta-inner {
    padding: 28px 18px;
    border-radius: 24px;
  }
  .cta-inner h2 {
    font-size: 28px;
    line-height: 1.4;
  }
  .cta-art {
    height: 200px;
  }

  /* CTA buttons should wrap and be full width */
  .btn {
    font-size: 12px;
    padding: 0 14px;
    height: 42px;
  }
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 14px;
  }
  h1.hero-title {
    font-size: 50px !important;
    line-height: 1 !important;
  }
  .sec-en {
    font-size: 36px;
  }
  .page-hero h1.page-title {
    font-size: 56px !important;
  }
  .page-hero .ph-deco {
    display: none;
  } /* clean up clutter on tiny screens */
  .nb-head .sec-en {
    font-size: 36px;
  }
  .news-blog {
    padding-bottom: 60px;
  }
  .service,
  .works,
  .strength,
  .faq-sec {
    padding: 60px 0;
  }
  .hero {
    padding: 36px 0 60px;
  }
  .cta-inner {
    padding: 22px 16px;
  }
  .cta-inner h2 {
    font-size: 22px;
  }
  .foot {
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .foot .copy {
    margin-left: 0;
  }
  .foot nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }
}

/* ================= MOBILE DRAWER ================= */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  display: none;
  flex-direction: column;
  padding: 22px 22px 30px;
  overflow-y: auto;
  animation: drawerIn 0.25s ease;
}
.mobile-drawer.open {
  display: flex;
}
@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mobile-drawer .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-drawer .top .brand img {
  height: 44px;
}
.mobile-drawer .close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 24px;
  cursor: pointer;
  border: 0;
  line-height: 1;
}
.mobile-drawer nav.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 26px;
}
.mobile-drawer nav.drawer-nav a {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
}
.mobile-drawer nav.drawer-nav a:hover {
  color: var(--pink);
}
.mobile-drawer nav.drawer-nav a .arr-mini {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #cfd3df;
}
.mobile-drawer .ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.mobile-drawer .ctas .btn {
  width: 100%;
  height: 52px;
  justify-content: center;
  font-size: 13px;
}
.mobile-drawer .sns-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.mobile-drawer .sns-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.mobile-drawer .footer-meta {
  margin-top: 24px;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: #7a8290;
}

/* prevent body scroll while drawer is open */
body.no-scroll {
  overflow: hidden;
  height: 100%;
}

/* ================= FOOTER NOTE LINK ================= */
.foot .note-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.15s;
  text-decoration: none;
}
.foot .note-link:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}
.foot .note-link:hover .note-pill {
  background: var(--yellow);
  color: var(--ink);
}
.foot .note-pill {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.06em;
  background: #41c9b4;
  color: #fff;
  padding: 3px 7px;
  border-radius: 3px;
  transition: all 0.15s;
}
.foot .note-handle {
  font-weight: 700;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .foot .note-link {
    order: 99;
  }
  .foot .note-handle {
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ================ TEMP HIDE: Freelance / Recruit ================ */
/* 「フリーランスの方へ」と「採用情報」へのリンクを一旦全ページで非表示。
   このブロックを削除すれば即復活。ページファイル自体は残してある。 */
a[href*="freelance/"],
a[href*="recruit/"] {
  display: none !important;
}

/* ================ Service-closed badge ================ */
.closed-badge {
  display: inline-flex;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #fff;
  background: #d4203a;
  padding: 3px 9px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
.closed-badge::before {
  content: "●";
  font-size: 8px;
  margin-right: 4px;
  color: #ffcc00;
}
